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



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







@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;
  }
}


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














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


.vx-popup .ea4v-post-relation-list-card_template li a.checkbox-link .checkmark {
  min-width: unset;
}

ul.ts-term-dropdown-list.ea4v-post-relation-list-card_template>li>a {
  padding: 0;
  border: unset;
  border-radius: 10px;
}



a.flexify.checkbox-link label {
  margin-top: 0 !important;
}

.ea4v-submit-result-message-success {
  color: green;
  margin-bottom: 20px;
}

/* Loading Overlay now handled globally in commons.css */

.ea4v-saved-label {
  color: #3e6d09 !important;

}







.ea4v-create-post-user-auth-popup .ea4v-popup-body {
  padding: 15px;
  gap: 13px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ea4v-create-post-user-auth-popup .ea4v-popup-body .ea4v-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.ea4v-create-post-user-auth-popup .verify-desc {
  margin-bottom: 20px;
  color: var(--ts-sub-text);
  font-size: 14px;
}

.ea4v-create-post-user-auth-popup .input-code {
  text-align: center;
  font-size: 24px;
  letter-spacing: 12px;
  font-weight: bold;
}

.ea4v-create-post-user-auth-popup .error-msg {
  margin-top: 10px;
  color: #ff4d4d;
  font-size: 13px;
}

.ea4v-create-post-user-auth-popup .footer-btn {
  flex: 1;
}

.ea4v-create-post-user-auth-popup .footer-btn:disabled,
.ea4v-create-post-user-auth-popup .footer-btn.ts-loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: not-allowed;
}

.ea4v-create-post-user-auth-popup .ea4v-btn-loading-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ea4v-create-post-user-auth-popup .ea4v-spinner {
  width: 16px;
  height: 16px;
  animation: ea4v-spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes ea4v-spin {
  to { transform: rotate(360deg); }
}

.ea4v-create-post-user-auth-popup.ea4v-create-post-user-auth-popup-success {
  text-align: center;
  padding: 40px 20px;
}

.ea4v-create-post-user-auth-popup .success-icon {
  color: #27ae60;
  margin-bottom: 20px;
}

.ea4v-create-post-user-auth-popup .success-icon span,
.ea4v-create-post-user-auth-popup .success-icon svg {
  font-size: 64px;
  width: 64px;
  height: 64px;
}

.ea4v-create-post-user-auth-popup .success-text {
  color: var(--ts-sub-text);
}

.ea4v-create-post-user-auth-popup .loader-wrapper {
  margin-top: 20px;
}

.ea4v-create-post-user-auth-popup .finalizing-text {
  font-size: 12px;
  color: #999;
  margin-top: 10px;
}



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

.ea4v-texteditor-popup .ts-popup-root {
  position: fixed !important;
}





/* create user after submit  */

.ea4v-create-post-user-auth-popup>.ts-popup-root {
  position: fixed !Important;
}

.ea4v-create-post-user-auth-popup>.ts-popup-root>div:after {
  background-color: #0000004A !important;
}