.ea4v-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.ea4v-1-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.ea4v-2-cols>div,
.ea4v-1-col>div {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.ea4v-2-cols .file-config {
  padding-top: 61px;
}




a.ea4v-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #232323;
}

a.ea4v-inline-btn svg {
  width: 20px;
}

.ts-file-list {
  cursor: pointer;
}

/* div#_toolbar-content {
  position: sticky !important;
  top: 0 !important;
  z-index: 99;
  /* padding-top: 85px; */
/* background: white;
margin-bottom: 0 !important;
padding: 12px 0 !important; */
/* } */

*/ .ea4v-texteditor-popup .ts-popup-controller ul li:last-child {
  margin-left: unset !important;
}

.ea4v-texteditor-popup .ts-popup-controller ul li.first-btn {
  margin-left: auto;
}

.ts-filter-wrapper.flexify.ea4v-openai-content-settings>div {
  flex: 1;
  flex-wrap: wrap;
}


.ea4v-ai-generated-content {
  line-height: 1.5;
  font-size: 16px;
}

.ea4v-ai-subhead {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: #4f4f4f;
  letter-spacing: -0.3px;
  border-bottom: 1px solid #0000001a;
  padding-bottom: 10px;
}



.ts-form-group.ea4v-ea4v-create-post-schedule {
  width: 100%;
}

.mce-container.mce-flow-layout-item>div {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow: auto !important;
  padding-bottom: 10px !important;
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
  scrollbar-width: none;
  /* Firefox */
}

.mce-container.mce-flow-layout-item>div::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}

.ts-form-footer.flexify p.ea4v-submit-message span {
  color: green;
}

.ts-form-footer.flexify p.ea4v-submit-message svg {
  color: green;
  fill: green;
  width: 20px;
  height: 20px;
}

.ts-form-footer.flexify p.ea4v-submit-message {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin-top: 20px;
}

.mce-widget.mce-btn.loading {
  position: relative;
  pointer-events: none;
  /* Disable interactions */
  opacity: 0.7;
  /* Dim the button */
}

.mce-widget.mce-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  /* Center the spinner */
  border: 2px solid #000000;
  border-top-color: #06040400;
  /* Spinner color */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  -webkit-animation: spin 0.8s linear infinite;
  /* Safari and older versions of Chrome */
  -moz-animation: spin 0.8s linear infinite;
  /* Firefox */
  -o-animation: spin 0.8s linear infinite;
  /* Opera */
}

/* Keyframes with vendor prefixes */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
  }

  to {
    -webkit-transform: rotate(360deg);
  }
}

@-moz-keyframes spin {
  from {
    -moz-transform: rotate(0deg);
  }

  to {
    -moz-transform: rotate(360deg);
  }
}

@-o-keyframes spin {
  from {
    -o-transform: rotate(0deg);
  }

  to {
    -o-transform: rotate(360deg);
  }
}



.ea4v-ai-generator-controls {
  position: sticky;
  top: 10px;
  align-self: self-start;
}

.ea4v-ai-generator-controls textarea {
  overflow: auto;
}





.iti__country-list {
  width: 100%;
  border-radius: 0 0 10px 10px;
  box-shadow: 1px 1px 14px rgb(0 0 0 / 8%);
}

@media (min-width: 1025px) {
  .ea4v-texteditor-popup .ts-popup-root {
    background-color: #0000001f;
    position: fixed !important;
  }

  .ea4v-texteditor-popup .ts-field-popup-container {
    width: 1200px;
    max-width: 90vw;
  }

  .ea4v-texteditor-popup .ts-popup-content-wrapper {
    height: 550px;
    max-height: 90vh;
    max-height: 90dvh;
  }
}

@media (max-width: 850px) {
  .ea4v-2-cols {
    grid-template-columns: 1fr;
  }

  .ea4v-2-cols .file-config {
    padding-top: 0px;
  }

  .ea4v-ai-generator-controls {
    position: relative;
    top: 0;
    align-self: self-start;
  }


}

@media (max-width: 768px) {
  div.mce-top-part {
 
    flex-wrap: nowrap !important;
    overflow: auto !important;
    padding-bottom: 10px !important;
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    scrollbar-width: none;
  }

  .mce-container,
  .mce-container *,
  .mce-widget,
  .mce-widget *,
  .mce-reset {
    white-space: wrap;
  } */

  .ts-form-group .mce-container,
  /* .ts-form-group .mce-container-body {
    height: 88px !important;
  } */

  .ts-form-group .mce-btn {
    margin-top: 5px;
  }
}

@media (max-width: 500px) {
  .ts-filter-wrapper.flexify.ea4v-openai-content-settings>div {
    flex-basis: 100%;
  }

  .ts-filter-wrapper.flexify.ea4v-openai-content-settings {
    gap: 13px;
  }
}

@media (max-width: 1024px) {
  .ea4v-texteditor-popup .ts-field-popup-container {
    max-width: 100vw !important;
  }

  .ea4v-texteditor-popup .ts-popup-content-wrapper {
    max-height: 100vh !important;
    max-height: 100dvh !important;
  }
}



.mce-container-body.mce-flow-layout {
  overflow: auto;
}






ul.simplify-ul.ea4v-post-relation-list-card_template {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Tạo 3 cột có kích thước bằng nhau */
  gap: 16px;
  /* Khoảng cách giữa các phần tử */
  list-style: none;
  /* Loại bỏ dấu chấm của danh sách */
  padding: 0;
  margin: 0;
  padding: 20px;
}

ul.simplify-ul.ea4v-post-relation-list-card_template  li{
  border-bottom:0;
}

/* ul.simplify-ul.ea4v-post-relation-list-card_template a.checkbox-link{
  padding:0;
} */

ul.simplify-ul.ts-term-dropdown-list.min-scroll.ea4v-post-relation-list-card_template > li {
  padding: 0;
  border: 1px solid #e4e9e9;
  border-radius: 10px;
}


.ea4v-post-relation-load-more{
  grid-column: 1 / -1;
}



@media(max-width:768px) {
  ul.simplify-ul.ea4v-post-relation-list-card_template {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
}




ul.simplify-ul.ts-term-dropdown-list.min-scroll.search-users .ts-btn {
  width: 65px;
  gap: 3px;
  height: 26px;
}

ul.simplify-ul.ts-term-dropdown-list.min-scroll.search-users {
  margin-top: 11px;
}







.ea4v-icons-input.flexify {
  gap: 5px;
}

.ea4v-icons-input .icon i,
.ea4v-icons-input .icon svg {
  font-size: 26px;
  /* color: #232323; */
  width: 26px;
  height: 26px;
  flex-shrink: 0;

}
/* 
.ea4v-icons-input.flexify .active i {
  color: #fed915;
}
.ea4v-icons-input.flexify .active svg {
  fill: #fed915;
}
.ea4v-icons-input.flexify .inactive i {
  color: #a3a3a394;
}
.ea4v-icons-input.flexify .inactive svg {
  fill: #a3a3a394;
} */

.half-icon {
  position: relative;
}

.half-icon .icon.active {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;

}





/* phone  */

.iti {
  width: 100% !important;
}

.iti--separate-dial-code .iti__selected-flag {
  background-color: unset !important;
}

.iti__country-container {
  /* z-index: 100 !Important; */
}

input.iti__search-input {

  height: 40px;
  border: 0 !important;
  border-radius: 0 !important;
  padding-left: 14px !important;

}




.ts-form-group  .ts-no-posts {
  /* display: none; */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #00000054;
  border-radius: 7px;
  display: none;

}
.ts-form-group .ea4v-ai-loading .ts-no-posts{
  display: flex;
  
}

.ts-form-group .ts-no-posts .ts-loader {
  width: 28px !Important;
  height: 28px !Important;
  border: 2.5px solid var(--ts-shade-6) !Important;
  border-bottom-color: var(--ts-shade-2) !Important;
  border-radius: 50% !Important;
  display: inline-block !Important;
  box-sizing: border-box !Important;
  animation: tsrotation .75s linear infinite !Important;
}






.ea4v-openai-content-settings.fields ul.simplify-ul.ts-term-dropdown-list {
  display: flex;
  flex-wrap: wrap;
}