// #region button icons

.mce-i-smartcontentsync-smart-content {
  background: url("~@adminAssets/icons/smart-content-sync-editor-icon-24x24.svg") no-repeat center!important;
  background-size: 18px 18px;
}

// #endregion button icons

// #region Andale Vue Modal Styles
.andale-vue-modal {
  position: fixed;
  inset: 0;
  display: none;
  background: transparent;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms cubic-bezier(0.2, 0.8, 0.2, 1);

  &.is-active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
}

// .smartcontentsync-classic-modal {
//   max-width: 400px;
// }

.andale-vue-modal-background {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.andale-vue-modal.is-active .andale-vue-modal-background {
  opacity: 1;
  transition-delay: 0ms;
}

.andale-vue-modal:not(.is-active) .andale-vue-modal-background {
  transition: opacity 140ms cubic-bezier(0.4, 0, 1, 1) 40ms;
}

.andale-vue-modal-content {
  position: relative;
  background: #fff;
  color: #0f172a;
  padding: 1rem 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 720px;
  box-shadow: 0 10px 40px rgba(2, 6, 23, 0.35);

  opacity: 0;
  transform: scale(0.98);
  box-shadow: 0 2px 12px rgba(2, 6, 23, 0.2);
  transition:
    opacity 200ms cubic-bezier(0.2, 0.8, 0.2, 1) 40ms,
    transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1) 40ms,
    box-shadow 200ms cubic-bezier(0.2, 0.8, 0.2, 1) 40ms;
}

.andale-vue-modal.is-active .andale-vue-modal-content {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 10px 40px rgba(2, 6, 23, 0.35);
}

.andale-vue-modal:not(.is-active) .andale-vue-modal-content {
  transition:
    opacity 140ms cubic-bezier(0.4, 0, 1, 1),
    transform 140ms cubic-bezier(0.4, 0, 1, 1),
    box-shadow 140ms cubic-bezier(0.4, 0, 1, 1);
}

.andale-vue-modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eaeaea;
  gap: 10px;
}

.andale-vue-modal-close-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

body.andale-modal-open {
  overflow: hidden;
}

.smartcontentsync-classic-modal__row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.smartcontentsync-classic-editor__step {
  display: block;
  border-radius: 50%;
  background-color: #383434;
  width: 19px;
  color: white;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .andale-vue-modal {
    transition: opacity 120ms linear;
  }

  .andale-vue-modal-background {
    transition: opacity 120ms linear !important;
  }

  .andale-vue-modal-content {
    transform: none !important;
    transition: opacity 120ms linear, box-shadow 120ms linear !important;
  }
}


.smartcontentsync-classic-modal__search {
  flex: 1;
}

.smartcontentsync-classic-modal__results {
  margin-top: 12px;
  max-height: 280px;
  overflow: auto;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
}

.smartcontentsync-classic-modal__result {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;

  &:hover {
    background: #f7f7f7;
  }
}

.smartcontentsync-classic-modal__resultTitle {
  display: inline-block;
  margin-right: 10px;
}

.smartcontentsync-classic-modal__resultMeta {
  opacity: 0.7;
  font-size: 12px;
}

.smartcontentsync-classic-modal__attrs {
  margin-top: 16px;
}

.smartcontentsync-classic-modal__attrRow {
  display: flex;
  gap: 8px;
  align-items: center;
}

.smartcontentsync-classic-modal__attrKey {
  width: 220px;
}

.smartcontentsync-classic-modal__attrVal {
  flex: 1;
}

.smartcontentsync-classic-modal__attrItem {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
}


.smartcontentsync-classic-modal__step {
  margin-bottom: 16px;
}

.smartcontentsync-classic-modal__stepHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.smartcontentsync-classic-modal__stepBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #1d2327;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.smartcontentsync-classic-modal__stepTitle {
  margin: 0;
  font-size: 14px;
}

.smartcontentsync-classic-modal__results {
  margin-top: 8px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  max-height: 180px;
  overflow: auto;
}

.smartcontentsync-classic-modal__result {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f6f7f7;
  cursor: pointer;
  margin-bottom: 6px;
  text-align: left;

  &:last-child {
    margin-bottom: 0;
  }

  &:hover {
    background: #fff;
    border-color: #dcdcde;
  }

  &.is-selected {
    background: #e7f5ff;
    border-color: #2271b1;
  }
}

.smartcontentsync-classic-modal__resultRight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.smartcontentsync-classic-modal__resultMeta {
  opacity: 0.75;
}

.smartcontentsync-classic-modal__status {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f0f0f1;
  border: 1px solid #dcdcde;
}

.smartcontentsync-classic-modal__previewRow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.smartcontentsync-classic-modal__previewInput {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

// #endregion Andale Vue Modal Styles