@charset "UTF-8";
/**
 * Element Pack — Theme Builder editor Display Conditions modal.
 * Colour / typography aligned with Elementor Pro Site Editor conditions UI.
 */
#aea-tb-ed-overlay {
  /* Elementor Pro reference palette */
  --aea-tb-ed-text: #495157;
  --aea-tb-ed-text-muted: #7d7e81;
  --aea-tb-ed-border: #dce1e5;
  --aea-tb-ed-btn-slate: #69727d;
  --aea-tb-ed-btn-slate-hover: #525961;
  --aea-tb-ed-focus: #467ff7;
  --aea-tb-ed-overlay-bg: rgba(72, 76, 81, 0.55);
  /* Match Theme Builder app shell (aea-theme-builder.css) for conditions copy */
  --aea-tb-muted: #9da5ae;
  position: fixed;
  inset: 0;
  background: var(--aea-tb-ed-overlay-bg);
  z-index: 199999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  overflow: auto;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#aea-tb-ed-overlay[hidden] {
  display: none;
}

#aea-tb-ed-modal {
  position: relative;
  width: min(1130px, 100%);
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12), 0 24px 70px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  color: var(--aea-tb-ed-text);
}

/* Elementor Pro `#elementor-publish__modal` `.elementor-templates-modal__header` analogue */
.aea-tb-ed-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 50px;
  padding: 8px 20px;
  border-bottom: 1px solid #e8eaec;
  background: #fff;
}

.aea-tb-ed-modal__header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.aea-tb-ed-modal__logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 6px;
}

.aea-tb-ed-modal__logo-img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
}

.aea-tb-ed-modal__logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1f2123;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.02em;
}

.aea-tb-ed-modal__header-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1f2123;
}

#aea-tb-ed-modal #aea-tb-ed-modal__close,
#aea-tb-ed-modal__close.aea-tb-ed-modal__close {
  position: static;
  flex-shrink: 0;
  align-self: center;
  top: auto;
  left: auto;
  inset: auto;
  background: transparent;
  border: 0;
  color: #9ca5ae;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 4px;
  z-index: 2;
}

#aea-tb-ed-modal #aea-tb-ed-modal__close:hover,
#aea-tb-ed-modal__close.aea-tb-ed-modal__close:hover {
  background: transparent;
  color: #6d7882;
}

#aea-tb-ed-modal__body {
  padding: 40px 56px 70px;
  text-align: center;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* Conditions hero — same layout/typography as #aea-tb-panel-conditions (aea-theme-builder.css) */
#aea-tb-ed-overlay .aea-tb-conditions__hero {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 30px;
}

#aea-tb-ed-overlay .aea-tb-conditions__illu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
}

#aea-tb-ed-overlay .aea-tb-conditions__illu .eicon-theme-builder {
  font-size: 52px;
  color: #515962;
  opacity: 0.85;
}

#aea-tb-ed-overlay .aea-tb-conditions__title {
  font-size: 1.625rem;
  font-weight: 600;
  margin: 0 0 20px;
  color: #515962;
  line-height: 1.25;
}

#aea-tb-ed-overlay .aea-tb-conditions__desc {
  font-size: 14px;
  color: var(--aea-tb-muted);
  line-height: 1.6;
  margin: 0;
}

#aea-tb-ed-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}

.aea-tb-ed-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: center;
}

/*
 * Include/Exclude polarity — mirrors Theme Builder panel (.aea-tb-panel-conditions).
 * aea-theme-builder.css does not load in Elementor editor; duplicate rules here scoped to overlay.
 */
#aea-tb-ed-overlay .aea-tb-condition-cell {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 0;
  background: #fff;
  border: 1px solid #dce1e5;
  border-radius: 4px;
  box-sizing: border-box;
  height: 36px;
}

#aea-tb-ed-overlay .aea-tb-condition-cell--polarity {
  flex: 0 0 auto;
  min-width: 110px;
  padding: 0 10px 0 26px;
  gap: 6px;
  background: #fff;
  cursor: pointer;
}

#aea-tb-ed-overlay .aea-tb-condition-polarity-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 6px;
  pointer-events: none;
}

#aea-tb-ed-overlay .aea-tb-condition-polarity-mark__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #515962;
  color: #fff;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

#aea-tb-ed-overlay .aea-tb-condition-polarity-mark__label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

#aea-tb-ed-overlay .aea-tb-condition-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  background-image: none;
  background-color: transparent;
  box-shadow: none;
  color: transparent;
  opacity: 0;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  z-index: 2;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
}

#aea-tb-ed-overlay .aea-tb-condition-native::-ms-expand {
  display: none;
}

#aea-tb-ed-overlay .aea-tb-condition-native:focus,
#aea-tb-ed-overlay .aea-tb-condition-native:focus-visible {
  outline: none;
  box-shadow: none;
}

#aea-tb-ed-overlay .aea-tb-condition-cell--polarity::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -2px;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 5px solid #6d7882;
  pointer-events: none;
  z-index: 1;
}

/* Location / sub selects — white boxes, Elementor border */
.aea-tb-ed-cell--loc,
.aea-tb-ed-cell--sub {
  position: relative;
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;
}

.aea-tb-ed-cell--loc::after,
.aea-tb-ed-cell--sub::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border-left: 1.5px solid var(--aea-tb-ed-btn-slate);
  border-bottom: 1.5px solid var(--aea-tb-ed-btn-slate);
  transform: rotate(-45deg);
  pointer-events: none;
  opacity: 0.85;
}

.aea-tb-ed-row select.aea-tb-ed-loc,
.aea-tb-ed-row select.aea-tb-ed-sub {
  min-width: 272px;
  max-width: 320px;
  height: 40px;
  padding: 0 14px 0 36px;
  border: 1px solid var(--aea-tb-ed-border);
  background: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--aea-tb-ed-text);
  box-shadow: none;
  margin: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  line-height: 38px;
  box-sizing: border-box;
  cursor: pointer;
}

.aea-tb-ed-row select.aea-tb-ed-loc:hover,
.aea-tb-ed-row select.aea-tb-ed-sub:hover {
  border-color: #c5cdd4;
}

.aea-tb-ed-row select.aea-tb-ed-loc:focus,
.aea-tb-ed-row select.aea-tb-ed-sub:focus {
  border-color: var(--aea-tb-ed-focus);
  outline: none;
  box-shadow: 0 0 0 1px var(--aea-tb-ed-focus);
}

.aea-tb-ed-cell--ids {
  min-width: 272px;
  max-width: 320px;
  flex: 0 1 auto;
}

.aea-tb-ed-cell--ids[hidden],
.aea-tb-ed-cell--sub[hidden] {
  display: none !important;
}

.aea-tb-ed-cell--ids .select2-container {
  width: 100% !important;
  min-height: 40px;
}

/* Ajax refinement field: one horizontal row like Elementor (search / optional IDs). */
.aea-tb-ed-cell--ids .select2-container--default .select2-selection--multiple {
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  border: 1px solid var(--aea-tb-ed-border) !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  cursor: text !important;
}

.aea-tb-ed-cell--ids .select2-selection__rendered {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  padding: 0 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.aea-tb-ed-cell--ids .select2-search--inline {
  flex: 1 1 auto !important;
  min-width: 40px !important;
  margin: 0 !important;
  float: none !important;
}

.aea-tb-ed-cell--ids .select2-search--inline .select2-search__field {
  margin: 0 !important;
  height: 38px !important;
  line-height: 38px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--aea-tb-ed-text) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  width: 100% !important;
  min-width: 120px !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  background: transparent !important;
}

.aea-tb-ed-cell--ids .select2-search--inline .select2-search__field::placeholder {
  color: #a4afb8 !important;
  opacity: 1 !important;
}

.aea-tb-ed-cell--ids .select2-selection__choice {
  margin: 2px 0 2px 6px !important;
  line-height: 26px !important;
  max-height: 28px !important;
  background: #eef1f4 !important;
  border: 1px solid var(--aea-tb-ed-border) !important;
  color: var(--aea-tb-ed-text) !important;
  font-size: 12px !important;
}

.aea-tb-ed-cell--ids .select2-selection__choice__remove {
  top: 1px !important;
}

.aea-tb-ed-cell--ids .select2-selection--multiple:focus-within {
  border-color: var(--aea-tb-ed-focus) !important;
  box-shadow: 0 0 0 1px var(--aea-tb-ed-focus) !important;
}

/*
 * Row remove — same as Theme Builder `.aea-tb-condition-remove` (aea-theme-builder.css).
 */
#aea-tb-ed-overlay .aea-tb-condition-remove {
  flex: 0 0 auto;
  align-self: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  color: #6d7882;
  font-size: 20px;
  line-height: 1;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background 0.15s ease, color 0.15s ease;
}

#aea-tb-ed-overlay .aea-tb-condition-remove:hover,
#aea-tb-ed-overlay .aea-tb-condition-remove:focus {
  color: #b32d2e;
  background: rgba(179, 45, 46, 0.06);
  outline: none;
}

#aea-tb-ed-overlay .aea-tb-condition-remove:focus-visible {
  box-shadow: 0 0 0 2px rgba(71, 158, 255, 0.35);
}

/* Buttons — match Theme Builder .aea-tb-btn / secondary / footer primary */
#aea-tb-ed-overlay .aea-tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
  line-height: 1.25;
  font-family: inherit;
}

#aea-tb-ed-modal__body > #aea-tb-ed-add-condition.aea-tb-btn--secondary {
  display: inline-flex;
  background: #69727d;
  color: #fff;
  border-color: #69727d;
  text-transform: uppercase;
  margin: 6px auto 0;
  text-align: center;
}

#aea-tb-ed-modal__body > #aea-tb-ed-add-condition.aea-tb-btn--secondary:hover {
  background: #515962;
}

#aea-tb-ed-modal__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px 22px;
  border-top: 1px solid var(--aea-tb-ed-border);
  background: #fafbfc;
  border-radius: 0 0 4px 4px;
}

#aea-tb-ed-status {
  flex: 1 1 auto;
  font-size: 12px;
  color: #d9534f;
  min-height: 18px;
  line-height: 1.4;
  text-align: right;
  min-width: 0;
}

#aea-tb-ed-cancel {
  flex-shrink: 0;
  background: transparent;
  color: var(--aea-tb-ed-text-muted);
  padding: 0 0 0 8px;
  border: 0;
  border-radius: 4px;
  min-height: 40px;
  height: 40px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
}

#aea-tb-ed-cancel:hover {
  color: var(--aea-tb-ed-text);
}

#aea-tb-ed-modal__footer #aea-tb-ed-save.aea-tb-btn--primary {
  flex-shrink: 0;
  margin-right: auto;
  background: linear-gradient(-313deg, #ED01EE 0%, #ED01EE 100%);
  color: #fff;
  border: none;
}

#aea-tb-ed-modal__footer #aea-tb-ed-save.aea-tb-btn--primary:hover {
  background: linear-gradient(-313deg, #ED01EE 0%, #ED01EE 100%);
}

#aea-tb-ed-save[disabled],
#aea-tb-ed-modal__footer #aea-tb-ed-save.aea-tb-btn--primary[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  #aea-tb-ed-modal__body {
    padding: 44px 22px 20px;
  }

  .aea-tb-ed-row {
    flex-wrap: wrap;
  }

  .aea-tb-ed-row select.aea-tb-ed-loc,
.aea-tb-ed-row select.aea-tb-ed-sub {
    min-width: 200px;
    max-width: 100%;
  }

  .aea-tb-ed-cell--ids {
    min-width: 200px;
    max-width: 100%;
    flex-basis: 100%;
  }
}
.aea-tb-ed-select2 {
  z-index: 200000 !important;
}