.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);
  }
}


.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;

}


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

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





.ea4v-share-edit-permission-field-emails {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  overflow: auto;
  padding-bottom: 20px;
}

.ea4v-share-edit-permission-field-emails .item {
  background: #f4f4f4;
  border-radius: 7px;
  display: flex;
  padding: 3px 10px;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  line-height: 0;
}

.ea4v-share-edit-permission-field-emails .item span {
  flex-shrink: 0;

}

.ea4v-share-edit-permission-field-emails .email {
  font-weight: bold;
}


span.ea4v-share-edit-permission-pending-avatar svg {
  width: 27px;
  /* height: var(--ts-icon-size); */
  -o-object-fit: contain;
  object-fit: contain;
  fill: #afb3b7;
  transition: all .3s ease;
}

.ts-term-dropdown-list.min-scroll.ea4v-share-edit-permission .name {
  opacity: 0.7;
  font-size: 90%;
  margin-left: 5px;
}

.ea4v-share-edit-permission-field-emails .avatar img {
  height: 30px;
  width: 30px;
  border-radius: 50%;

  /* flex: 0; */

}

.ea4v-share-edit-permission-field-emails .remove svg {
  width: 15px;
  height: 15px;
}


.ea4v-share-edit-permission-popup {
  gap: 17px;
}

.ea4v-share-edit-permission-popup .title,
.ea4v-share-edit-permission-popup .subhead {
  font-size: 20px;

}

.ea4v-share-edit-permission-popup .subhead {
  font-size: 16px;
  font-weight: bold;
  margin-bottom:10px;
}

.ea4v-share-edit-permission-popup .ts-term-dropdown li a {
  padding: 0 !Important;

}

.ea4v-share-edit-permission-popup a.flexify.removed {
  text-decoration: line-through;
}

.ea4v-share-edit-permission-popup .notify-button {
  color: #881503;
}


.ea4v-error span {
  color: #c40000 ! Important;
  margin-top: 5px;
  font-size: 0.9rem;
}




ul.ea4v-share-edit-permission > li >div.a-no-link, ul.search-users>li>div.a-no-link {
  flex-wrap: nowrap;
  align-items: center;
  padding: 0;
  transition: .15s ease;
  font-size: var(--e-global-typography-text-font-size);
  width: 100%;
  grid-gap: 10px;
  height: 40px
}

.ea4v-share-edit-permission-popup .ts-form-group  input.ts-filter, .ea4v-share-edit-permission-popup .ts-form input  {
  padding: 15px;
  gap: 10px;
  height: 40px;
}
.ea4v-share-edit-permission-popup .ts-form input{
  padding-left:40px;
}


.ea4v-add-email .ts-input-icon {
  flex-wrap: nowrap;
}

.ea4v-add-email .ts-input-icon a {
  width: 100px;
  position: absolute;
  right: 0;
  top: 0;
  gap:5px;
  height: 40px;
}

.ea4v-add-email .ts-input-icon input.ts-filter {
  padding-left: 10px;
}


.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 {
    display: block !important;
    display: flex !important;
    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;
}


