/********************************post-form********************************************/
.activity-stream-post-block {
  background: linear-gradient(90deg,#00ac20 14.27%,#2fb123 30.54%,#6cb727 67.25%,#7cb928 86.93%);
  padding: 24px;
  margin-bottom: 24px;
  border-radius: 24px;
}
/* .activity-stream-post-block .form-control{
    outline: 0;
    border: 0;
    font-size: 16px;
    line-height: 16px;
    font-weight: 400;
    border-radius: 26px;
    padding: 10px 15px;
    min-height: 36px;
    background: #fff !important;
    max-height: 36px;
  } */
.activity-stream-post-block .form-item-ctm-field-post textarea,
.custom-post-text_format-wrapper .ck-content p {
  outline: 0;
  border: 0;
  font-size: 16px;
  line-height: 16px;
  font-weight: 400;
  border-radius: 26px;
  /* padding: 10px 15px; */
  /* min-height: 36px; */
  background: #fff !important;
  /* max-height: 36px; */
  width: 100% !important;
  max-width: 100%;
}
.activity-stream-post-block .form-item-ctm-field-post .mentions-input,
.activity-stream-post-block .form-type-url {
  background: transparent;
}
.activity-stream-post-block .mentions-input .highlighter {
  display: none;
}
.activity-stream-post-block form .form-item-post-type,
.activity-stream-post-block form .form-item-ctm-shared-link {
  display: none;
}
.activity-stream-post-block .form-item-visibility-type,
.activity-stream-post-block #visibility_btn {
  display: none;
}
.activity-stream-post-block .form-item-ctm-field-post,
.custom-post-text_format-wrapper .form-group {
  /* .activity-stream-post-block .activity-post-bottom_fields-wrapper{ */
  margin-bottom: 12px;
  position: relative;
}
.activity-stream-post-block .activity-post-bottom_fields-wrapper .form-item input {
  outline: 0;
  border: 0;
  font-size: 16px;
  line-height: 16px;
  font-weight: 400;
  border-radius: 26px;
  padding: 10px 15px;
  min-height: 36px;
  background: #fff !important;
  max-height: 36px;
  width: 180px;
}
/* .activity-stream-post-block .form-item-ctm-field-video, .activity-stream-post-block .form-item-ctm-field-link {
    width: 180px;
    float: left;
    margin-bottom: 20px;
  } */
.activity-stream-post-block .activity-post-bottom_fields-wrapper {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.activity-stream-post-block .activity-post-bottom_fields-wrapper .expand-icon {
  background: #fff url(../img/new-icons/up-arrow.svg) no-repeat center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}
.activity-stream-post-block .activity-post-bottom_fields-wrapper .expand-icon.expanded {
  transform: rotate(180deg);
}
.activity-stream-post-block .activity-post-bottom_fields-wrapper .expand-icon:hover {
  background: var(--basicColor) url(../img/new-icons/up-arrow-hover.svg) no-repeat center;
}
body .form-type-managed-file .image-widget {
  margin-bottom: 0;
}
/*****************************poll****************************************/
body form:not(.layout-builder-configure-block) .nj-popup textarea.form-control {
  height: 36px;
}
.activity-stream-post-block .activity-poll-fields-wrapper #names-fieldset-wrapper fieldset {
  box-shadow: none;
  margin-top: 0;
  margin-bottom: 30px;
}
.activity-poll-fields-wrapper #names-fieldset-wrapper fieldset .fieldset-wrapper .form-item:not(:last-child) {
  margin-bottom: 10px;
}
.activity-stream-post-block .form-actions {
  text-align: right;
  width: 100%;
  margin-bottom: 0;
  clear: both;
  /* position: absolute;
    bottom: 25px;
    right: 25px; */
}
.activity-stream-post-block .activity-poll-fields-wrapper .form-actions input {
  /* display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: 35px;
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-bottom: 5px; */
  max-width: 100%;
}
.activity-stream-post-block .form-actions input {
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  border-radius: 24px;
  background: #fff;
  color: var(--basicColor);
  padding: 5px 22px 5px;
  height: 36px;
  border: 0;
  max-width: 158px;
  display: inline-block;
  /* border: 1px solid var(--basicColor) !important; */
  border: 0 !important;
}
.activity-stream-post-block .form-actions input:hover {
  /* background: var(--basicColor); */
  background-color: #26832d;
  color: #fff;
}
form:not(.layout-builder-configure-block) .select-wrapper select {
  height: 36px;
}
.activity-stream-post-block #post_pull_up_wrapper + * {
  clear: both;
}
#custom-post-form .custom_txt_format_wrapper .ck-editor .ck-editor__editable {
  padding: 10px !important;
}
@media (max-width: 767px) {
  body   .activity-stream-post-block   .activity-post-fields-wrapper   > *:not(.saved-poll-data) {
    width: 100% !important;
    padding: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}
/*****************************************************************/
.activity-stream-post-block .form-type-select {
  width: calc(100% - 270px);
  background: #fff;
  /* border-radius: 20px; */
  border-radius: 26px;
  /* padding: 0 20px; */
  margin-bottom: 47px;
  /* margin-bottom: 33px; */
  margin-right: 12px;
  position: relative;
  float: left;
}
.activity-stream-post-block .form-type-select .select2-container .select2-selection {
  box-shadow: none;
  min-height: 30px !important;
  border: 0;
  padding: 0 15px !important;
  background-color: unset;
  max-width: 100%;
}
.activity-stream-post-block .form-type-select .select2-container .select2-search input {
  width: 100%;
  margin: 0;
  height: 36px;
  outline: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  color: var(--black);
  padding: 0;
}
.activity-stream-post-block .form-type-select .select-wrapper:after {
  content: none;
}
.activity-stream-post-block .form-type-select .select-wrapper {
  position: unset;
  max-width: 100%;
}
.activity-stream-post-block #post-discussion-help {
  clear: both;
  font-size: 13px;
  line-height: 15px;
  color: var(--black);
  /* margin: 5px 0 20px; */
  float: left;
  position: absolute;
  bottom: -35px;
  left: 0;
  right: 0;
  /* display: none; */
}
.activity-stream-post-block #post-discussion-help p {
  margin: 0;
}
.activity-stream-post-block #post-url-wrapper {
  display: flex;
  float: right;
  /* width: 50%; */
  /* width: fit-content; */
  width: 258px;
  justify-content: end;
}
/* .activity-stream-post-block .form-item-new + #post-url-wrapper {
  padding-left: 15px;
} */
.activity-stream-post-block #post-url-wrapper > div {
  display: inline-block;
  float: left;
  margin-bottom: 20px;
}
.activity-stream-post-block .activity-post-fields-wrapper #post-url-wrapper > div:not(:last-child) {
  margin-right: 9px;
}
.activity-stream-post-block #post-url-wrapper > div:first-child {
  margin-right: 20px;
}
.activity-stream-post-block #post-url-wrapper a {
  width: 100%;
  height: 36px;
  outline: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  border-radius: 20px;
  padding: 5px 21px;
  display: inline-block;
  cursor: pointer;
  text-align: center;
  border: 1px solid var(--color-fff);
  background: transparent;
  color: #fff;
}
.activity-stream-post-block #post-url-wrapper a:hover {
  border: 1px solid #26832d !important;
  background: #26832d !important;
}
.activity-stream-post-block .activity-post-fields-wrapper #post-url-wrapper a {
  /* padding: 5px 15px; */
  padding: 7px 15px 5px;
}
.activity-stream-post-block #post-url-wrapper a:before {
  content: "";
  /* background: transparent url(../images/activity-stream/Add_Icon_Grey.png) no-repeat center; */
  background: url(../img/Add_Icon_White.svg) no-repeat center;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  display: inline-block;
}
.activity-stream-post-block #post-url-wrapper > div.post-add-poll .edit-poll,
.form-ok .activity-stream-post-block #post-url-wrapper > div.post-add-poll .add-poll {
  display: none;
}
.activity-stream-post-block .form-item-profile-image .file .file-size,
.activity-stream-post-block .form-item-profile-image .file .file-icon,
.activity-stream-post-block .form-item-profile-image .form-managed-file input:not([type="submit"]),
.activity-stream-post-block .form-item-profile-image label,
.activity-stream-post-block .form-item-ctm-file-upload .file .file-size,
.activity-stream-post-block .form-item-ctm-file-upload .file .file-icon,
.activity-stream-post-block .form-item-ctm-file-upload .form-managed-file input,
.activity-stream-post-block .form-item-ctm-file-upload label {
  display: none !important;
}
.activity-stream-post-block #post_pull_up_wrapper {
  float: left;
  width: 100%;
  /* max-height: 0; */
  overflow: hidden;
  transition: all 0.3s linear;
  margin-top: 12px;
}

.select2-container.select2-container--default .select2-results__group {
  display: none;
}
.select2-container .select2-dropdown {
  border: 1px solid #dbdbdb;
}
.select2-results ul li .select2-results__option {
  padding: 4px 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #666;
}
.select2-container.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--basicColor) !important;
  color: #fff;
}
.activity-stream-post-block .activity-post-fields-wrapper {
  float: left;
  width: 100%;
  overflow: hidden;
  transition: all 0.3s linear;
  margin-bottom: 12px;
}
.activity-stream-post-block .form-item-profile-image .post-image-wrapper,
.activity-stream-post-block .form-item-ctm-file-upload .post-image-wrapper {
  flex-wrap: wrap;
}
.activity-stream-post-block .form-item-profile-image .post-image-wrapper .preview,
.activity-stream-post-block .form-item-ctm-file-upload .post-image-wrapper .preview {
  width: 130px;
  padding-right: 10px;
  max-height: 70px;
}
.activity-stream-post-block .form-item-profile-image .post-image-wrapper .preview {
  max-height: 100%;
}
.activity-stream-post-block .form-item-profile-image .post-image-wrapper .preview img {
  height: 50px;
  margin-bottom: 10px;
  object-fit: contain;
}
.activity-stream-post-block .form-item-profile-image .post-image-wrapper .data {
  position: relative;
}
.activity-stream-post-block .form-item-profile-image .post-image-wrapper .data,
.activity-stream-post-block .form-item-ctm-file-upload .post-image-wrapper .data {
  width: calc(100% - 120px);
  background: #fff;
  padding: 0;
  display: table;
}
.activity-stream-post-block .form-item-profile-image .post-image-wrapper .data,
.activity-stream-post-block .form-item-ctm-file-upload .post-image-wrapper .data {
  width: calc(100% - 135px);
}
.activity-stream-post-block .form-item-profile-image .post-image-wrapper .data,
.activity-stream-post-block .form-item-ctm-file-upload .post-image-wrapper .data {
  padding: 5px;
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .activity-stream-post-block .form-actions input {
    font-size: 14px;
    line-height: 19px;
    height: 30px;
  }
  .activity-stream-post-block   .activity-post-bottom_fields-wrapper   .form-item   input {
    height: 30px;
    min-height: 30px;
  }
  .activity-stream-post-block   .activity-post-bottom_fields-wrapper   .expand-icon {
    width: 30px;
    height: 30px;
    background-size: 20px !important;
  }
  .activity-stream-post-block .form-item-ctm-field-post textarea {
    padding: 7px 12px;
  }
  .activity-stream-post-block   .form-type-select   .select2-container   .select2-search   input {
    height: 30px;
    font-size: 16px;
    line-height: 16px;
  }
  .activity-stream-post-block #post-url-wrapper a {
    height: 30px;
    font-size: 14px;
    line-height: 19px;
  }
  .activity-stream-post-block   .activity-post-bottom_fields-wrapper   .expand-icon:hover {
    background: #fff url(../img/down-arrow.png) no-repeat center;
  }
  .activity-stream-post-block   .activity-post-fields-wrapper   #post-url-wrapper   a {
    padding: 5px 15px 5px;
  }
  .ctm_file_upload.for_newpost .file {
    height: 30px;
    padding: 4px 20px;
  }
  .activity-stream-post-block   .form-item-profile-image   .post-image-wrapper   .data   input[value="Remove selected"] {
    height: 30px;
    padding: 0 12px;
  }
  .activity-stream-post-block   .activity-post-fields-wrapper   [type="checkbox"]   + label:after {
    top: 2px !important;
  }
  #custom-post-form .custom_txt_format_wrapper .ck-editor p {
    margin: 5px 0 !important;
  }
  #custom-post-form .custom_txt_format_wrapper .ck.ck-button {
    min-width: 20px;
    min-height: 20px;
    margin: 0 !important;
  }
}
.activity-stream-post-block .activity-post-fields-wrapper #post_icons_wrapper .form-type-checkbox {
  /* position: absolute; */
  /* bottom: 0; */
  margin-bottom: 40px;
}
.activity-stream-post-block .activity-post-fields-wrapper .form-type-checkbox label {
  color: #fff !important;
  padding-left: 25px;
}
.activity-stream-post-block .activity-post-fields-wrapper [type="checkbox"]:checked + label:before {
  border-right: 2px solid var(--basicColor);
  border-bottom: 2px solid var(--basicColor);
}
.activity-stream-post-block .activity-post-fields-wrapper input[type="checkbox"]:checked + label:after {
  border: 2px solid #fff;
  background: #fff;
}
.activity-stream-post-block .activity-post-fields-wrapper [type="checkbox"]:not(:checked) + label:after {
  border: 2px solid #fff;
}
.activity-stream-post-block form {
  position: relative;
}

/* UPLOADS */
.ctm_file_upload.for_newpost {
  position: relative;
}
.ctm_file_upload.for_newpost .file {
  width: calc(100% - 132px);
  margin-right: 12px;
  border: 1px solid #fff;
  background: no-repeat;
  padding: 8px 20px;
  border-radius: 24px;
  height: 36px;
  color: var(--color-fff);
}
.ctm_file_upload.for_newpost input[value="Remove"] {
  /* display: block !important; */
  position: absolute;
  right: 0px;
  max-width: fit-content;
  border: 1px solid var(--color-fff);
  top: 0;
  height: 100%;
  font-size: 14px;
  max-height: 36px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  border-radius: 24px;
  padding: 0;
  color: var(--color-fff);
  background-color: transparent;
  transition: none !important;
  padding: 0 12px;
}
.ctm_file_upload.for_newpost input[value="Remove"]:hover,
.activity-stream-post-block .form-item-profile-image .post-image-wrapper .data input[value="Remove selected"]:hover {
  background-color: #26832d;
  border: 1px solid #26832d;
}
.activity-stream-post-block .form-type-select .select2-container .selection,
.activity-stream-post-block .form-type-select .select2-container {
  width: 100% !important;
}
.activity-stream-post-block .form-type-select .select2-container .selection .select2-search {
  width: 100%;
}
.activity-stream-post-block .form-item-profile-image .post-image-wrapper .data {
  position: relative;
  background-color: transparent;
}
.activity-stream-post-block .form-item-profile-image .post-image-wrapper .data input[value="Remove selected"] {
  position: absolute;
  right: 0px;
  max-width: fit-content;
  border: 1px solid var(--color-fff);
  top: 0;
  height: 100%;
  font-size: 14px;
  height: 36px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  border-radius: 24px;
  /* padding: 0; */
  color: var(--color-fff);
  background-color: transparent;
  transition: none !important;
}
.activity-stream-post-block .form-item-profile-image .post-image-wrapper .data .file {
  background-color: transparent;
  border: 0;
  margin: 0px;
  padding: 0px;
}

/* .activity-stream-post-block .post-image-wrapper {
  margin-bottom: 20px !important;
} */
.activity-stream-post-block .form-item-profile-image .post-image-wrapper .data .file .file-link {
  padding: 0px;
  padding-left: 20px;
}

.activity-stream-post-block .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}
.activity-stream-post-block .select2-container--default .select2-selection--multiple .select2-selection__choice > button {
  border: 1px solid var(--basicColor);
  border-radius: 50%;
  margin-right: 2px;
  width: 16px;
  height: 16px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--basicColor);
  font-size: 13px;
  line-height: 19px;
}
.activity-stream-post-block .form-item-profile-image .post-image-wrapper .data input[value="Remove selected"]:focus-visible,
.ctm_file_upload.for_newpost input[value="Remove"]:focus-visible {
  outline: none;
}

.activity-stream-post-block .form-item-profile-image .post-image-wrapper .preview img:last-child,
.activity-stream-post-block .activity-post-fields-wrapper .form-type-checkbox:has(+ input[value="Remove selected"]) {
  margin-bottom: 0px;
}

@media screen and (min-width: 992px) and (max-width: 1200px) {
  .activity-stream-post-block #post_pull_up_wrapper {
    display: flex;
    flex-direction: column;
  }
  .activity-stream-post-block #post_pull_up_wrapper > * {
    width: 100%;
  }
  .activity-stream-post-block   .form-item-profile-image   .post-image-wrapper   .data {
    padding-bottom: 36px;
  }
  .activity-stream-post-block   .form-item-profile-image   .post-image-wrapper   .data   input[value="Remove selected"] {
    top: unset;
    bottom: 0;
  }
  .activity-stream-post-block #post-url-wrapper {
    justify-content: start;
  }
}
.activity-stream-post-block .ajax-progress-throbber {
  position: absolute;
  right: 0;
  top: -15px;
}
/* #post_icons_wrapper > div:nth-child(2):has(.file){
  padding-top: 30px;
}
#post_icons_wrapper > div:nth-child(3):has(.file){
  padding-top: 10px;
} */
#post_icons_wrapper {
  display: none;
}
#post_icons_wrapper input.js-hide[disabled] {
  display: none !important;
}
#post_icons_wrapper:has(.ajax-progress-throbber) .post-add-file a,
#post_icons_wrapper:has(.ajax-progress-throbber) .post-add-image a,
#post_icons_wrapper:has(.ajax-progress-throbber) .post-add-poll,
.activity-stream-post-block:has(#post_icons_wrapper .ajax-progress-throbber) .form-actions input,
#post_icons_wrapper:has(.ajax-progress-throbber) .form-type-checkbox:has(+ input[value="Remove selected"]),
#post_icons_wrapper:has(.ajax-progress-throbber) .ctm_file_upload.for_newpost input[value="Remove"] {
  cursor: not-allowed;
  pointer-events: none;
}
.activity-stream-post-block .form-item-profile-image .post-image-wrapper {
  justify-content: space-between;
}
.activity-stream-post-block .activity-post-fields-wrapper .data.image-widget-data .form-type-checkbox label {
  display: block !important;
}
.activity-stream-post-block .activity-post-fields-wrapper [type="checkbox"] + label:after {
  width: 18px !important;
  height: 18px !important;
  top: 1px !important;
}

.activity-stream-post-block .activity-post-fields-wrapper [type="checkbox"]:checked + label:before {
  top: 1px;
  left: 1px;
  width: 8px;
  height: 12px;
}
#post_icons_wrapper + .js-form-type-checkbox {
  margin-top: 12px;
}
.img-upload-error-msg {
  padding: 10px 15px 10px 15px;
  word-wrap: break-word;
  border: 1px solid;
  border-width: 1px 1px 1px 0;
  border-radius: 2px;
  overflow-wrap: break-word;
  color: #a51b00;
  border-color: #f9c9bf #f9c9bf #f9c9bf transparent;
  background-color: #fcf4f2;
  font-size: 12px;
}
@media screen and (min-width: 1201px) {
  .activity-stream-post-block .form-type-select {
    width: calc(100% - 287px);
  }
  .activity-stream-post-block #post-url-wrapper {
    width: 265px;
  }
}

/* Post without dicussion input */
#post_pull_up_wrapper:not(:has(> .form-type-select)) #post-url-wrapper {
  float: left;
  justify-content: start;
}
/* #post_pull_up_wrapper:not(:has(> .form-type-select)) #post-url-wrapper > div {
  margin-bottom: 0px;
} */
#custom-post-form .js-filter-wrapper {
  display: none;
}
#custom-post-form .custom_txt_format_wrapper .ck-editor .ck-editor__editable {
  box-shadow: none !important;
  border-radius: 0px 0px 24px 24px !important;
  border-color: #efefef;
}
#custom-post-form .custom_txt_format_wrapper .ck.ck-toolbar {
  border-radius: 24px 24px 0px 0;
  padding: 5px 10px;
}
.ck-body-wrapper .ck.ck-list__item .ck-list__item--text {
  font-size: 14px;
}
.ck-body-wrapper .ck.ck-list__item .ck-button:hover:not(.ck-disabled),
.ck-body-wrapper .ck.ck-list__item .ck-button.ck-on {
  background-color: var(--basicColor);
}
.empty-validation {
  /* display: none; */
  /* border: 1px solid #ccc;
  background: #fff;
  padding: 5px;
  font-weight: 400; */
  margin-top: 9px;
  position: absolute;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 9px 20px;
  border-radius: 5px;
  top: 100%;
  font-size: 13px;
  left: 50%;
  background-image: url(../img/new-icons/val.svg);
  background-repeat: no-repeat;
  background-position: center left 15px;
  padding-left: 45px;
  z-index: 99;
}
.empty-validation::after {
  content: "";
  position: absolute;
  top: -9px;
  left: 10px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid white;
}

.empty-validation::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 10px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}
#post_icons_wrapper + .js-form-type-checkbox input {
  z-index: 9;
}
