@charset "UTF-8";
/* Element Pack — Theme Builder (Elementor Site Editor–inspired layout) */
/*
 * Fullscreen shell (this stylesheet loads only in visual Theme Builder mode).
 * Mirrors Elementor Theme Builder: hide WP admin menu bar & sidebar; app fills the viewport.
 */
/* Remove WP admin-bar offset (stylesheet only loads on this screen). */
html.wp-toolbar {
  padding-top: 0 !important;
}

body.edit-php.post-type-aea-theme-builder {
  overflow: hidden !important;
  margin-top: 0 !important;
  height: 100vh;
  max-height: 100vh;
}

body.edit-php.post-type-aea-theme-builder #wpadminbar {
  display: none !important;
}

body.edit-php.post-type-aea-theme-builder #adminmenuback,
body.edit-php.post-type-aea-theme-builder #adminmenuwrap,
body.edit-php.post-type-aea-theme-builder #adminmenu {
  display: none !important;
}

body.edit-php.post-type-aea-theme-builder.auto-fold #wpcontent,
body.edit-php.post-type-aea-theme-builder.folded #wpcontent,
body.edit-php.post-type-aea-theme-builder #wpcontent {
  margin-right: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
}

body.edit-php.post-type-aea-theme-builder #wpbody {
  padding-top: 0 !important;
}

body.edit-php.post-type-aea-theme-builder #wpbody-content {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  float: none !important;
}

body.edit-php.post-type-aea-theme-builder #wpfooter {
  display: none !important;
}

body.edit-php.post-type-aea-theme-builder #screen-meta,
body.edit-php.post-type-aea-theme-builder #screen-meta-links {
  display: none !important;
}

#aea-theme-builder {
  --aea-tb-accent: #d63384;
  --aea-tb-accent-soft: #fce7f3;
  --aea-tb-border: #eeeeee;
  --aea-tb-sidebar-bg: #ffffff;
  --aea-tb-sidebar-masthead: #eceef0;
  --aea-tb-sidebar-icon: #a4afb7;
  --aea-tb-sidebar-label: #495157;
  --aea-tb-sidebar-section: #6d7882;
  --aea-tb-canvas: #f1f1f1;
  --aea-tb-text: #515962;
  --aea-tb-muted: #9DA5AE;
  --aea-tb-sidebar-quick-bg: #ffc8ff;
  --aea-tb-sidebar-quick-icon: #515962;
  --aea-tb-active-dot: #0A875A;
  --aea-tb-inactive-dot: #9DA5AE;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 100050;
  display: flex;
  flex-direction: column;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--aea-tb-text);
  background: var(--aea-tb-canvas);
  border-radius: 0;
  box-shadow: none;
}

.aea-tb-app {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

/* Header */
.aea-tb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  border-bottom: 1px solid var(--aea-tb-border);
  background: #fff;
  /* box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03); */
  position: sticky;
  top: 0;
  z-index: 100;
}

.aea-tb-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aea-tb-header__logo {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

.aea-tb-header__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aea-tb-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.aea-tb-header__sep {
  width: 1px;
  height: 20px;
  background: var(--aea-tb-border);
  margin: 0 4px;
}

.aea-tb-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  color: var(--aea-tb-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.aea-tb-icon-btn:hover,
.aea-tb-icon-btn:focus {
  background: var(--aea-tb-sidebar-bg);
  color: var(--aea-tb-text);
}

.aea-tb-icon-btn .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

/* Layout */
.aea-tb-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

.aea-tb-sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--aea-tb-sidebar-bg);
  border-left: 1px solid var(--aea-tb-border);
  overflow: hidden;
  min-height: 0;
}

/* “All Parts” strip (Elementor Site Editor) */
.aea-tb-sidebar__masthead {
  flex-shrink: 0;
  background: #fff;
  /* border-bottom: 1px solid #e2e4e7; */
  padding: 20px 0px;
}

.aea-tb-sidebar__all-parts {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px 13px 12px;
  margin: 0;
  border: none;
  background: transparent;
  color: var(--aea-tb-sidebar-label);
  font-size: 13px;
  font-weight: 400;
  text-align: right;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.aea-tb-sidebar__all-parts:hover {
  background: rgba(0, 0, 0, 0.04);
}

.aea-tb-sidebar__all-parts.is-active {
  background: #E6E8EA;
  box-shadow: inset -4px 0 0 #515962;
  font-weight: 500;
}

.aea-tb-sidebar__icon--masthead {
  color: var(--aea-tb-sidebar-label);
}

.aea-tb-sidebar__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 0 20px;
  background: #fff;
}

.aea-tb-sidebar__section {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aea-tb-sidebar-section);
  padding: 18px 20px 10px 20px;
  margin: 0;
}

.aea-tb-sidebar__row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 10px;
  margin: 1px 0;
  min-height: 44px;
  transition: background 0.12s ease;
}

.aea-tb-sidebar__row:hover {
  background: #F9FAFA;
}

.aea-tb-sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 8px 8px 8px 6px;
  margin: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--aea-tb-sidebar-label);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.12s ease, background 0.12s ease;
}

.aea-tb-sidebar__item:hover {
  color: #515962;
}

.aea-tb-sidebar__row.is-active {
  background: #E6E8EA;
  box-shadow: inset -4px 0 0 #515962;
}

.aea-tb-sidebar__item.is-active {
  color: #515962;
  font-weight: 600;
  border-radius: 4px 0 0 4px;
}

.aea-tb-sidebar__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  flex-shrink: 0;
}

.aea-tb-sidebar__icon {
  color: var(--aea-tb-sidebar-icon);
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 1;
}

/* Elementor eicons (`<i class="… eicon-…">`) in sidebar */
#aea-theme-builder i.aea-tb-sidebar__icon {
  margin: 0;
  padding: 0;
  border: 0;
  font-style: normal;
  vertical-align: middle;
  text-align: center;
}

.aea-tb-sidebar__item.is-active .aea-tb-sidebar__icon {
  color: #6d7882;
}

.aea-tb-sidebar__label {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

/* Per-part quick add (+) — soft purple circle; visible on row hover / focus */
.aea-tb-sidebar__quick-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--aea-tb-sidebar-quick-bg);
  color: var(--aea-tb-sidebar-quick-icon);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: background 0.15s ease, transform 0.12s ease, opacity 0.12s ease, visibility 0.12s ease;
}

.aea-tb-sidebar__row:hover .aea-tb-sidebar__quick-add,
.aea-tb-sidebar__row:focus-within .aea-tb-sidebar__quick-add {
  opacity: 1;
  visibility: visible;
}

.aea-tb-sidebar__quick-add:hover,
.aea-tb-sidebar__quick-add:focus {
  background: #ed01ee;
  outline: none;
  transform: scale(1.05);
}

.aea-tb-sidebar__quick-add:focus-visible {
  outline: 2px solid #34d0fb;
  outline-offset: 2px;
}

.aea-tb-sidebar__quick-add .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 1;
}

.aea-tb-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}

.aea-tb-panel {
  flex: 1;
  padding: 28px 36px 0;
  overflow-y: auto;
  background: transparent;
}

.aea-tb-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.aea-tb-panel__title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #515962;
}

.aea-tb-sep {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 22px 0 26px;
}

/* Buttons */
.aea-tb-btn {
  display: inline-flex;
  align-items: 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, border-color 0.15s;
}

.aea-tb-footer .aea-tb-btn--primary {
  background: #ed01ee;
  color: #ffffff;
  border: none;
}

.aea-tb-footer .aea-tb-btn--primary:hover {
  background-image: linear-gradient(-313deg, #ed01ee 0%, #ed01ee 100%);
}

.aea-tb-btn--secondary {
  background: #69727d;
  color: #fff;
  border-color: #69727d;
  margin-top: 30px;
  display: block;
  text-align: center;
  margin-right: auto;
  margin-left: auto;
  text-transform: uppercase;
}

.aea-tb-btn--secondary:hover {
  background: #515962;
}

.aea-tb-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* “Add New”: gradient circle + label */
.aea-tb-add-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--aea-tb-text);
  transition: opacity 0.15s ease;
}

.aea-tb-add-new-btn:hover,
.aea-tb-add-new-btn:focus {
  opacity: 0.88;
  outline: none;
}

.aea-tb-add-new-btn:focus-visible {
  outline: 2px solid #08aeec;
  outline-offset: 3px;
  border-radius: 4px;
}

.aea-tb-add-new-btn__circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ed01ee;
  color: #fff;
  /* box-shadow: 0 2px 10px rgba(8, 174, 236, 0.35); */
  flex-shrink: 0;
}

.aea-tb-add-new-btn__circle .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 1;
}

.aea-tb-add-new-btn__text {
  white-space: nowrap;
}

.aea-tb-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #08aeec;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.aea-tb-link-btn:hover {
  color: #08AEEC;
}

/* Grid — dense columns like Elementor Theme Builder (≈5 on wide screens) */
.aea-tb-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  padding-bottom: 28px;
}

.aea-tb-template-grid--extended {
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
}

@media screen and (min-width: 1600px) {
  .aea-tb-template-grid:not(.aea-tb-template-grid--extended) {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .aea-tb-template-grid--extended {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* .aea-tb-template-grid--single-col {
	grid-template-columns: 1fr;
} */
.aea-tb-empty {
  color: var(--aea-tb-muted);
  font-size: 14px;
  margin: 0;
}

/* Cards */
.aea-tb-add-card,
.aea-tb-card {
  border: 1px solid var(--aea-tb-border);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.aea-tb-card.aea-tb-card--extended {
  border-color: #dcdfe1;
}

.aea-tb-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.aea-tb-add-card__head,
.aea-tb-card__header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--aea-tb-border);
}

.aea-tb-template-grid:not(.aea-tb-template-grid--extended) .aea-tb-card__header {
  padding-bottom: 10px;
}

.aea-tb-card__title-row {
  display: flex;
  align-items: center;
  /* flex-wrap: wrap; */
  gap: 6px;
}

.aea-tb-card__dot {
  display: block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.05);
  background-color: #9DA5AE;
  border: 2px solid #fff;
  border-radius: 100%;
}

.aea-tb-card__dot.is-active {
  background: var(--aea-tb-active-dot);
}

.aea-tb-card__dot.is-inactive {
  background: var(--aea-tb-inactive-dot);
}

.aea-tb-card__dot.is-published {
  background: var(--aea-tb-active-dot);
}

.aea-tb-card__dot.is-draft {
  background: var(--aea-tb-inactive-dot);
}

.aea-tb-card__name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex-grow: 1;
  overflow: hidden;
}

.aea-tb-card__draft {
  font-size: 12px;
  color: var(--aea-tb-muted);
}

.aea-tb-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  /* margin-top: 8px; */
  font-size: 13px;
  color: var(--aea-tb-muted);
}

.aea-tb-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.aea-tb-card__meta-item .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.aea-tb-card__actions {
  margin-top: 10px;
}

/* Extended cards (Header / Footer): Elementor Site Editor–style header */
.aea-tb-card--extended .aea-tb-card__header {
  padding: 12px 14px;
  border-color: #dcdfe1;
}

.aea-tb-card__header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.aea-tb-card__header-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(8px, 2vw, 25px);
}

.aea-tb-card__header-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}

.aea-tb-card--extended .aea-tb-card__name {
  color: #55595c;
  font-weight: 500;
}

.aea-tb-card__more-wrap {
  position: relative;
}

.aea-tb-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #dcdfe1;
  border-radius: 4px;
  background: #fff;
  color: #50575e;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.aea-tb-card__more:hover,
.aea-tb-card__more:focus {
  background: #f6f7f7;
  border-color: #c3c4c7;
  outline: none;
}

.aea-tb-card__more .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.aea-tb-card__more-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 188px;
  padding: 4px 0;
  margin: 0;
  background: #fff;
  border: 1px solid #dcdfe1;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  z-index: 40;
  box-sizing: border-box;
}

.aea-tb-card__more-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  margin: 0;
  border: none;
  background: none;
  text-align: right;
  font-size: 13px;
  line-height: 1.4;
  color: #2c3338;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  font-family: inherit;
}

.aea-tb-card__more-icon.dashicons {
  flex-shrink: 0;
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 1;
  color: #6d7882;
}

#aea-theme-builder i.aea-tb-card__more-icon {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  font-style: normal;
  font-size: 14px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  color: #6d7882;
  vertical-align: middle;
}

.aea-tb-card__more-label {
  flex: 1;
  min-width: 0;
}

.aea-tb-card__more-item:hover:not(.aea-tb-card__more-item--danger) .aea-tb-card__more-icon,
.aea-tb-card__more-item:focus:not(.aea-tb-card__more-item--danger) .aea-tb-card__more-icon {
  color: #2c3338;
}

.aea-tb-card__more-item--danger,
.aea-tb-card__more-item--danger .aea-tb-card__more-icon {
  color: #d63638;
}

.aea-tb-card__more-item--danger:hover,
.aea-tb-card__more-item--danger:focus {
  background: #fcf0f1;
  color: #d63638;
}

.aea-tb-card__more-item--danger:hover .aea-tb-card__more-icon,
.aea-tb-card__more-item--danger:focus .aea-tb-card__more-icon {
  color: #d63638;
}

.aea-tb-card__more-item:hover:not(.aea-tb-card__more-item--danger),
.aea-tb-card__more-item:focus:not(.aea-tb-card__more-item--danger) {
  background: #f0f0f1;
  outline: none;
}

.aea-tb-card__more-item--danger:hover,
.aea-tb-card__more-item--danger:focus {
  outline: none;
}

.aea-tb-card__more-divider {
  height: 1px;
  margin: 4px 0;
  padding: 0;
  border: 0;
  background: #f0f0f1;
}

.aea-tb-card--extended .aea-tb-card__body {
  min-height: 200px;
  background: #fff;
}

.aea-tb-card--extended .aea-tb-card__figure {
  min-height: 200px;
  background: #fff;
}

.aea-tb-card--extended .aea-tb-card__placeholder {
  min-height: 200px;
  background: #fff;
  background-image: none;
  opacity: 1;
  box-shadow: inset 0 0 0 1px #eef0f2;
}

.aea-tb-card--extended .aea-tb-card__thumb {
  min-height: 200px;
  background: #fff;
}

.aea-tb-card__footer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.aea-tb-card--extended .aea-tb-card__footer {
  justify-content: flex-start;
  border-color: #dcdfe1;
}

.aea-tb-card--extended .aea-tb-card__instances {
  flex: 0 1 auto;
  min-width: 0;
  color: #757575;
  font-size: 12px;
}

.aea-tb-card--extended .aea-tb-card__instances strong {
  font-weight: 600;
  color: #55595c;
}

.aea-tb-card--extended .aea-tb-card__footer .aea-tb-link-btn {
  color: #525962;
  text-decoration: underline;
  font-size: 12px;
  padding: 0;
}

.aea-tb-card--extended .aea-tb-card__footer .aea-tb-link-btn:hover {
  color: #08AEEC;
}

.aea-tb-card__edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  text-decoration: none;
  color: var(--aea-tb-text);
  border: 1px solid var(--aea-tb-border);
  padding: 4px 10px;
  border-radius: 4px;
}

.aea-tb-card__edit:hover {
  background: var(--aea-tb-sidebar-bg);
}

.aea-tb-card__body {
  flex: 1;
  min-height: 0;
  background: #fff;
  position: relative;
}

.aea-tb-template-grid--extended .aea-tb-card__body {
  min-height: 220px;
}

.aea-tb-card__figure {
  position: relative;
  margin: 0;
  min-height: 172px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fafafa;
}

.aea-tb-template-grid--extended .aea-tb-card__figure {
  min-height: 200px;
}

/* All Parts grid: no iframe — Preview switches sidebar to this template’s site part */
.aea-tb-card__figure--all-parts {
  align-items: stretch;
  justify-content: flex-end;
  background: #fff;
  min-height: 172px;
  margin: 10px 10px 0 10px;
}

.aea-tb-card:hover .aea-tb-card__figure--all-parts {
  background: #F9FAFA;
}

.aea-tb-template-grid--extended .aea-tb-card__figure--all-parts {
  min-height: 200px;
}

/* Elementor Site Editor–style SVG placeholders (bundled under assets/images/theme-builder/). */
.aea-tb-card__figure--all-parts .aea-tb-card__placeholder-image {
  display: block;
  position: absolute;
  right: 50%;
  top: 44%;
  transform: translate(50%, -50%);
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: calc(100% - 40px);
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

/* Preview: pinned to bottom; hover-reveal on fine pointers (touch keeps it visible). */
.aea-tb-card__figure--all-parts .aea-tb-card__preview-to-part {
  position: absolute;
  right: 50%;
  bottom: 0;
  transform: translateX(50%);
  z-index: 2;
  white-space: nowrap;
  transition: opacity 0.18s ease, visibility 0.18s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .aea-tb-card__figure--all-parts .aea-tb-card__preview-to-part {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .aea-tb-card:hover .aea-tb-card__figure--all-parts .aea-tb-card__preview-to-part,
.aea-tb-card:focus-within .aea-tb-card__figure--all-parts .aea-tb-card__preview-to-part,
.aea-tb-card__figure--all-parts .aea-tb-card__preview-to-part:focus-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
.aea-tb-card__preview-to-part {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  margin: 0;
  border: none;
  color: #2c3338;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  background-color: #fff;
}

.aea-tb-card__preview-to-part:hover,
.aea-tb-card__preview-to-part:focus {
  color: #515962;
  outline: none;
}

.aea-tb-card__preview-to-part:focus-visible {
  outline: 2px solid #08aeec;
  outline-offset: 2px;
}

.aea-tb-card__preview-to-part .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.aea-tb-card__preview-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: inherit;
  pointer-events: none;
}

/* Live preview iframe (scaled “thumbnail” of the frontend) */
.aea-tb-card__iframe-shell {
  position: relative;
  width: 100%;
  min-height: 172px;
  height: 200px;
  overflow: hidden;
  background: #fff;
}

.aea-tb-template-grid--extended .aea-tb-card__iframe-shell {
  min-height: 200px;
  height: 220px;
}

.aea-tb-card__iframe {
  position: absolute;
  top: 0;
  right: 0;
  width: 200%;
  max-width: none;
  height: 800px;
  border: 0;
  margin: 0;
  padding: 0;
  transform: scale(0.5);
  transform-origin: top right;
  pointer-events: none;
  background: #fff;
}

.aea-tb-card__thumb {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 172px;
  object-fit: cover;
  object-position: top center;
}

.aea-tb-template-grid--extended .aea-tb-card__thumb {
  min-height: 200px;
}

/* Horizontal “wireframe” blocks (Elementor global-parts grid) */
.aea-tb-card:not(.aea-tb-card--extended) .aea-tb-card__placeholder {
  min-height: 172px;
  background-color: #fafafa;
  background-image: repeating-linear-gradient(-180deg, #e4e4e4 0, #e4e4e4 9px, #fafafa 9px, #fafafa 21px);
  opacity: 1;
}

.aea-tb-card__footer {
  padding: 12px 14px;
  border-top: 1px solid var(--aea-tb-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.aea-tb-card__instances {
  font-size: 12px;
  color: var(--aea-tb-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}

.aea-tb-card__instances .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: var(--aea-tb-muted);
}

/* Footer bar */
.aea-tb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px 22px;
  border-top: 1px solid #e2e2e2;
  margin-top: auto;
}

/* Save & Close: only on Display conditions — hide whole slot, not [hidden] on <button> (avoids broken 1×1 flex ghost). */
.aea-tb-footer__conditions[hidden] {
  display: none !important;
}

.aea-tb-footer__conditions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.aea-tb-footer__link {
  font-size: 15px;
  color: #525962;
  text-decoration: none;
  font-weight: 500;
}

.aea-tb-footer__link:hover {
  color: #08aeec;
}

/* Conditions */
.aea-tb-back {
  background: none;
  border: none;
  padding: 0 0 16px;
  font-size: 13px;
  color: #525962;
  cursor: pointer;
}

.aea-tb-conditions__hero {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 30px;
}

.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-conditions__illu .eicon-theme-builder {
  font-size: 52px;
  color: #515962;
  opacity: 0.85;
}

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

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

.aea-tb-conditions-rows {
  width: 100%;
  max-width: 43.75rem;
  margin: 0 auto 12px;
}

.aea-tb-condition-location.aea-tb-condition-native {
  max-width: 100%;
}

/* Condition row: Elementor Site Editor–style independent cells */
.aea-tb-condition-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  background: transparent;
  border: none;
}

.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-condition-cell--polarity {
  flex: 0 0 auto;
  min-width: 110px;
  padding: 0 10px 0 26px;
  gap: 6px;
  background: #fff;
  cursor: pointer;
}

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

.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-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-condition-cell--location {
  flex: 1 1 0;
  min-width: 180px;
}

.aea-tb-condition-cell--sub {
  flex: 1 1 0;
  min-width: 180px;
}

.aea-tb-condition-cell--ids {
  flex: 2 1 0;
  min-width: 220px;
}

/* All native selects are invisible click-targets stretched over the cell.
   The visible text is rendered via a sibling .aea-tb-condition-cell__label
   (or the polarity mark), which guarantees a single chevron per cell. */
.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-condition-native::-ms-expand {
  display: none;
}

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

/* Visible label inside location/sub cells — mirrors the selected option. */
.aea-tb-condition-cell__label {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 10px 0 28px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #495057;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* Custom chevron (one only) for selects */
.aea-tb-condition-cell--polarity::after,
.aea-tb-condition-cell--location::after,
.aea-tb-condition-cell--sub::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;
}

/* Hidden helper used as a Select2 mount point fallback. */
.aea-tb-condition-ids-faux {
  display: none;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Select2 — fill the cell with no extra border */
#aea-theme-builder .aea-tb-condition-cell--ids .select2-container {
  z-index: 100001;
  width: 100% !important;
  height: 100%;
}

#aea-theme-builder .aea-tb-condition-cell--ids .select2-container--default .select2-selection--multiple {
  border: none;
  border-radius: 0;
  min-height: 34px;
  height: 100%;
  background: transparent;
  padding: 0 6px 0 28px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

#aea-theme-builder .aea-tb-condition-cell--ids .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  padding: 0 4px;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  width: 100%;
}

#aea-theme-builder .aea-tb-condition-cell--ids .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #e8ecef;
  border: none;
  color: #495057;
  font-size: 12px;
  margin: 2px 0;
  padding: 1px 6px;
  border-radius: 3px;
  line-height: 1.4;
}

#aea-theme-builder .aea-tb-condition-cell--ids .select2-container--default .select2-search--inline .select2-search__field {
  font-size: 13px;
  color: #495057;
  margin: 0;
  min-height: 26px;
}

#aea-theme-builder .aea-tb-condition-cell--ids .select2-container--default.select2-container--focus .select2-selection--multiple {
  border: none;
  box-shadow: none;
}

.aea-tb-condition-remove {
  flex: 0 0 auto;
  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;
}

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

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

/* Select2 inside builder (global z-index) */
#aea-theme-builder .select2-container {
  z-index: 100001;
}

/* Native <select> dropdown (location, sub) — Elementor-style optgroup */
.aea-tb-condition-native optgroup {
  font-weight: 600;
  color: #6d7882;
  font-size: 12px;
  background: #f7f8f9;
  font-style: normal;
}

.aea-tb-condition-native optgroup option {
  font-weight: 400;
  color: #495057;
  background: #fff;
  padding-right: 10px;
}

/* Scoped Select2 dropdown popup — clean Elementor-style */
.select2-dropdown.aea-tb-select2-dropdown {
  border: 1px solid #dce1e5;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(20, 23, 28, 0.08);
  background: #fff;
  overflow: hidden;
  margin-top: 4px;
}

.select2-dropdown.aea-tb-select2-dropdown .select2-search--dropdown {
  padding: 8px;
}

.select2-dropdown.aea-tb-select2-dropdown .select2-search--dropdown .select2-search__field {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #dce1e5;
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.4;
  color: #495057;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.select2-dropdown.aea-tb-select2-dropdown .select2-search--dropdown .select2-search__field:focus {
  border-color: #6d7882;
  box-shadow: 0 0 0 1px rgba(109, 120, 130, 0.25);
  outline: none;
}

.select2-dropdown.aea-tb-select2-dropdown .select2-results__options {
  max-height: 240px;
  padding: 4px 0;
}

.select2-dropdown.aea-tb-select2-dropdown .select2-results__option {
  padding: 8px 14px;
  font-size: 13px;
  color: #495057;
  line-height: 1.4;
}

.select2-dropdown.aea-tb-select2-dropdown .select2-results__option--highlighted[aria-selected],
.select2-dropdown.aea-tb-select2-dropdown .select2-results__option--highlighted[data-selected] {
  background: #f1f3f5;
  color: #14171c;
}

.select2-dropdown.aea-tb-select2-dropdown .select2-results__option[aria-selected=true] {
  background: #e8ecef;
  color: #14171c;
}

.select2-dropdown.aea-tb-select2-dropdown .select2-results__option--no-results,
.select2-dropdown.aea-tb-select2-dropdown .select2-results__message {
  color: #98a1a9;
  font-size: 13px;
  font-style: normal;
  padding: 10px 14px;
}

.select2-dropdown.aea-tb-select2-dropdown .select2-results__group {
  padding: 6px 14px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #98a1a9;
  background: #fafbfc;
  cursor: default;
}

.select2-dropdown.aea-tb-select2-dropdown .select2-results__option .select2-results__option {
  padding-right: 20px;
}

/* —— Add New: Elementor-style type grid —— */
.aea-tb-panel--add-new .aea-tb-back {
  margin-bottom: 8px;
}

.aea-tb-add-new__head {
  margin-bottom: 28px;
}

.aea-tb-add-new__title {
  font-size: 26px;
  font-weight: 600;
  margin: 0;
  max-width: 860px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.aea-tb-add-new-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding-bottom: 32px;
}

/* .aea-tb-add-card {
	position: relative;
	border: 1px solid var(--aea-tb-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
} */
.aea-tb-add-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aea-tb-add-card__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--aea-tb-text);
}

.aea-tb-add-card__info {
  color: var(--aea-tb-muted);
  text-decoration: none;
  display: inline-flex;
  line-height: 1;
}

.aea-tb-add-card__info:hover {
  color: var(--aea-tb-text);
}

.aea-tb-add-card__info .dashicons {
  font-size: 16px;
  width: 18px;
  height: 18px;
}

.aea-tb-add-card__preview {
  position: relative;
  min-height: 148px;
  /* background: #ececec; */
  padding: 14px 12px 20px;
}

.aea-tb-add-card__preview-inner {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.aea-tb-add-card__preview .aea-tb-add-card__placeholder-image {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 128px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  position: relative;
  z-index: 0;
}

.aea-tb-add-card__preview > .aea-tb-add-card__placeholder-image {
  margin-bottom: 6px;
}

.aea-tb-add-card__cover-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-decoration: none;
  color: inherit;
  border-radius: inherit;
}

.aea-tb-add-card__cover-link:focus {
  outline: none;
  outline-offset: 0;
  box-shadow: none;
}

.aea-tb-add-card__plus-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.aea-tb-add-card__plus {
  pointer-events: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--aea-tb-sidebar-quick-bg);
  color: var(--aea-tb-sidebar-quick-icon);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

span.aea-tb-add-card__plus {
  pointer-events: none;
  cursor: default;
}

.aea-tb-add-card__plus:hover,
.aea-tb-add-card:not(.is-disabled):hover .aea-tb-add-card__plus {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(155, 255, 247, 0.35);
}

.aea-tb-add-card__plus.is-unavailable {
  opacity: 0.5;
  filter: grayscale(0.3);
}

.aea-tb-add-card__plus .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.aea-tb-add-card.is-disabled .aea-tb-add-card__preview {
  filter: grayscale(0.15);
}

/* Wireframe placeholders (simplified layouts) */
.aea-tb-wf {
  height: 96px;
  margin: 0 auto;
  max-width: 132px;
  border-radius: 4px;
  background: #dcdcde;
  opacity: 0.9;
  position: relative;
  overflow: hidden;
}

.aea-tb-wf--header {
  background: linear-gradient(#b9bcc0 14px, #dcdcde 14px);
  box-shadow: inset 0 18px 0 #f0f0f1;
}

.aea-tb-wf--header::after {
  content: "";
  position: absolute;
  right: 10%;
  left: 10%;
  top: 38px;
  height: 8px;
  background: repeating-linear-gradient(-90deg, #b9bcc0 0, #b9bcc0 12px, transparent 12px, transparent 18px);
  border-radius: 2px;
}

.aea-tb-wf--footer {
  background: linear-gradient(to top, #b9bcc0 18px, #dcdcde 18px);
}

.aea-tb-wf--single_post,
.aea-tb-wf--single_page {
  background: linear-gradient(#b9bcc0 12px, transparent 12px), #dcdcde;
}

.aea-tb-wf--single_post::after,
.aea-tb-wf--single_page::after {
  content: "";
  position: absolute;
  right: 12%;
  left: 12%;
  top: 28px;
  bottom: 14px;
  background: linear-gradient(#c3c4c7 60%, transparent 60%);
  border-radius: 2px;
}

.aea-tb-wf--archive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
  background: #dcdcde;
}

.aea-tb-wf--archive::before,
.aea-tb-wf--archive::after {
  content: "";
  background: #b9bcc0;
  border-radius: 2px;
  min-height: 32px;
}

.aea-tb-wf--search::before {
  content: "";
  display: block;
  margin: 12px auto 8px;
  width: 70%;
  height: 14px;
  background: #b9bcc0;
  border-radius: 3px;
}

.aea-tb-wf--search::after {
  content: "";
  display: block;
  margin: 0 auto;
  width: 85%;
  height: 40px;
  background: repeating-linear-gradient(0deg, #c3c4c7, #c3c4c7 6px, #dcdcde 6px, #dcdcde 10px);
  border-radius: 2px;
}

.aea-tb-wf--single_product::after {
  content: "";
  position: absolute;
  inset: 14px 18px;
  background: #b9bcc0;
  border-radius: 4px;
}

.aea-tb-wf--products_archive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
  background: #dcdcde;
}

.aea-tb-wf--products_archive::before,
.aea-tb-wf--products_archive::after {
  content: "";
  background: #b9bcc0;
  border-radius: 2px;
  min-height: 34px;
}

.aea-tb-wf--loop_item {
  background: repeating-linear-gradient(-90deg, #dcdcde, #dcdcde 28px, #c3c4c7 28px, #c3c4c7 40px), repeating-linear-gradient(0deg, transparent, transparent 28px, #b9bcc0 28px, #b9bcc0 30px);
}

.aea-tb-wf--error_404::before {
  content: "404";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #8c8f94;
  letter-spacing: 0.06em;
}

.aea-tb-wf--custom {
  background: linear-gradient(-135deg, #dcdcde 45%, #c3c4c7 45%);
}

/* Elementor-style rename / trash dialogs */
.aea-tb-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.aea-tb-modal-overlay[hidden] {
  display: none !important;
}

.aea-tb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.aea-tb-modal-center {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
}

.aea-tb-dialog {
  position: relative;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  text-align: center;
}

.aea-tb-dialog[hidden] {
  display: none !important;
}

.aea-tb-dialog__title {
  margin: 0;
  padding: 20px 24px 12px;
  font-size: 16px;
  font-weight: 600;
  color: #3f444b;
  line-height: 1.35;
}

.aea-tb-dialog__body {
  padding: 0 24px 16px;
}

.aea-tb-dialog__input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #949494;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
  font-family: inherit;
}

.aea-tb-dialog__input:focus {
  border-color: #f7911d;
  outline: none;
  box-shadow: 0 0 0 1px #f7911d;
}

.aea-tb-dialog__message {
  margin: 0;
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #50575e;
}

.aea-tb-dialog__footer {
  display: flex;
  border-top: 1px solid #e8e8e8;
}

.aea-tb-dialog__foot-btn {
  flex: 1;
  margin: 0;
  padding: 14px 12px;
  border: none;
  border-left: 1px solid #e8e8e8;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: #3f444b;
  box-sizing: border-box;
}

.aea-tb-dialog__foot-btn:last-child {
  border-left: 0;
}

.aea-tb-dialog__foot-btn:hover,
.aea-tb-dialog__foot-btn:focus {
  background: #f6f7f7;
  outline: none;
}

.aea-tb-dialog__foot-btn--accent {
  color: #c36;
  font-weight: 600;
}

.aea-tb-dialog__foot-btn--danger {
  color: #d63638;
  font-weight: 700;
}