/* v2.2.3.5: complete preset coverage for dropdowns, tables, calculator zones and quick view */

/* Core shells under calculator */
.afp-widget.afp-product-builder.afp-builder-shell,
.afp-widget .afp-master-table,
.afp-widget .afp-master-row > td,
.afp-widget .afp-master-row > th,
.afp-widget .afp-master-row--control > td,
.afp-widget .afp-master-row--ranges > td,
.afp-widget .afp-master-row--summary > td,
.afp-widget .afp-master-row--fees > td,
.afp-widget .afp-master-row--submit > td,
.afp-widget .afp-master-row--control > th,
.afp-widget .afp-master-row--ranges > th,
.afp-widget .afp-master-row--summary > th,
.afp-widget .afp-master-row--fees > th,
.afp-widget .afp-master-row--submit > th,
.afp-widget .afp-live-panel,
.afp-widget .afp-summary,
.afp-widget .afp-submit-row,
.afp-widget .afp-price-table-wrap,
.afp-widget .afp-range-shell,
.afp-widget .afp-range-panel,
.afp-widget .afp-builder-card,
.afp-widget .afp-preview-card,
.afp-widget .afp-summary-footer {
  background: linear-gradient(180deg, var(--afp-panel-bg, #fffdfa) 0%, var(--afp-surface, #fffaf7) 100%) !important;
  border-color: var(--afp-border, #eadfd8) !important;
}

.afp-widget .afp-master-table__heading th,
.afp-widget .afp-master-row > th,
.afp-widget .afp-master-row > td,
.afp-widget .afp-price-table-wrap,
.afp-widget .afp-tier-table,
.afp-widget .afp-result-table,
.afp-widget .afp-range-shell,
.afp-widget .afp-summary,
.afp-widget .afp-submit-row,
.afp-widget .afp-option-row {
  border-color: var(--afp-border, #eadfd8) !important;
}

/* Dropdown trigger and menu on product page and quick view */
.afp-widget .afp-control--format-simple .afp-format-dropdown,
.afp-widget .afp-field-shell--format .afp-format-dropdown,
.nectar-quick-view-box .afp-widget--quickview .afp-control--format-simple .afp-format-dropdown,
.nectar-quick-view-box .afp-widget--quickview .afp-field-shell--format .afp-format-dropdown {
  background: transparent !important;
}

.afp-widget .afp-control--format-simple .afp-format-trigger,
.afp-widget .afp-field-shell--format .afp-format-trigger,
.nectar-quick-view-box .afp-widget--quickview .afp-control--format-simple .afp-format-trigger,
.nectar-quick-view-box .afp-widget--quickview .afp-field-shell--format .afp-format-trigger,
.afp-widget .afp-control--format-simple,
.afp-widget .afp-field-shell--format,
.nectar-quick-view-box .afp-widget--quickview .afp-control--format-simple,
.nectar-quick-view-box .afp-widget--quickview .afp-field-shell--format {
  background: linear-gradient(180deg, var(--afp-panel-bg, #fffdfa) 0%, var(--afp-surface, #fffaf7) 100%) !important;
  border-color: var(--afp-control-border, var(--afp-border, #eadfd8)) !important;
  box-shadow: none !important;
}

.afp-widget .afp-control--format-simple .afp-format-trigger__value,
.afp-widget .afp-field-shell--format .afp-format-trigger__value,
.nectar-quick-view-box .afp-widget--quickview .afp-control--format-simple .afp-format-trigger__value,
.nectar-quick-view-box .afp-widget--quickview .afp-field-shell--format .afp-format-trigger__value {
  color: var(--afp-control-text, var(--afp-text, #241c18)) !important;
}

.afp-widget .afp-control--format-simple .afp-format-menu,
.afp-widget .afp-field-shell--format .afp-format-menu,
.nectar-quick-view-box .afp-widget--quickview .afp-control--format-simple .afp-format-menu,
.nectar-quick-view-box .afp-widget--quickview .afp-field-shell--format .afp-format-menu {
  background: linear-gradient(180deg, var(--afp-panel-bg, #fffdfa) 0%, var(--afp-surface, #fffaf7) 100%) !important;
  border: 1px solid var(--afp-control-border, var(--afp-border, #eadfd8)) !important;
  box-shadow: 0 18px 38px rgba(24, 24, 24, 0.10), 0 6px 14px rgba(24, 24, 24, 0.04) !important;
}

.afp-widget .afp-control--format-simple .afp-format-option,
.afp-widget .afp-field-shell--format .afp-format-option,
.nectar-quick-view-box .afp-widget--quickview .afp-control--format-simple .afp-format-option,
.nectar-quick-view-box .afp-widget--quickview .afp-field-shell--format .afp-format-option {
  color: var(--afp-text, #241c18) !important;
  background: transparent !important;
}

.afp-widget .afp-control--format-simple .afp-format-option:hover,
.afp-widget .afp-control--format-simple .afp-format-option:focus-visible,
.afp-widget .afp-field-shell--format .afp-format-option:hover,
.afp-widget .afp-field-shell--format .afp-format-option:focus-visible,
.nectar-quick-view-box .afp-widget--quickview .afp-control--format-simple .afp-format-option:hover,
.nectar-quick-view-box .afp-widget--quickview .afp-control--format-simple .afp-format-option:focus-visible,
.nectar-quick-view-box .afp-widget--quickview .afp-field-shell--format .afp-format-option:hover,
.nectar-quick-view-box .afp-widget--quickview .afp-field-shell--format .afp-format-option:focus-visible {
  background: var(--afp-format-option-hover-bg, var(--afp-accent-soft, #f4ebe7)) !important;
  color: var(--afp-format-option-hover-text, var(--afp-text, #241c18)) !important;
}

.afp-widget .afp-control--format-simple .afp-format-option.is-selected,
.afp-widget .afp-control--format-simple .afp-format-option.is-selected:hover,
.afp-widget .afp-field-shell--format .afp-format-option.is-selected,
.afp-widget .afp-field-shell--format .afp-format-option.is-selected:hover,
.nectar-quick-view-box .afp-widget--quickview .afp-control--format-simple .afp-format-option.is-selected,
.nectar-quick-view-box .afp-widget--quickview .afp-control--format-simple .afp-format-option.is-selected:hover,
.nectar-quick-view-box .afp-widget--quickview .afp-field-shell--format .afp-format-option.is-selected,
.nectar-quick-view-box .afp-widget--quickview .afp-field-shell--format .afp-format-option.is-selected:hover {
  background: var(--afp-format-option-active-bg, var(--afp-accent, #b56c52)) !important;
  color: var(--afp-format-option-active-text, #fffdfb) !important;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--afp-format-option-active-bg, var(--afp-accent, #b56c52)) 22%, transparent), inset 0 1px 0 rgba(255,255,255,.18) !important;
}

/* Price range block */
.afp-widget .afp-range-toggle,
.afp-widget .afp-range-toggle__inner,
.afp-widget .afp-price-table-wrap,
.afp-widget .afp-price-table-wrap > * {
  background: linear-gradient(180deg, var(--afp-panel-bg, #fffdfa) 0%, var(--afp-surface, #fffaf7) 100%) !important;
  border-color: var(--afp-border, #eadfd8) !important;
}

.afp-widget .afp-range-toggle__action,
.afp-widget .afp-option-row__price,
.nectar-quick-view-box .afp-widget--quickview .afp-range-toggle__action,
.nectar-quick-view-box .afp-widget--quickview .afp-option-row__price {
  background: var(--afp-option-price-bg, var(--afp-button-secondary-bg, #fffaf7)) !important;
  color: var(--afp-option-price-text, var(--afp-button-secondary-text, #b56c52)) !important;
  border-color: var(--afp-option-price-border, var(--afp-button-secondary-border, #eadfd8)) !important;
}

/* Tables: headers, cells, active rows */
.afp-widget .afp-tier-table,
.afp-widget .afp-result-table,
.nectar-quick-view-box .afp-widget--quickview .afp-tier-table,
.nectar-quick-view-box .afp-widget--quickview .afp-result-table {
  border-color: var(--afp-tier-row-border, var(--afp-border, #eadfd8)) !important;
  background: var(--afp-tier-row-bg, #ffffff) !important;
}

.afp-widget .afp-tier-table thead th,
.afp-widget .afp-tier-table thead tr:first-child th,
.afp-widget .afp-tier-table th,
.afp-widget .afp-tier-table td,
.afp-widget .afp-result-table th,
.afp-widget .afp-result-table td,
.nectar-quick-view-box .afp-widget--quickview .afp-tier-table thead th,
.nectar-quick-view-box .afp-widget--quickview .afp-tier-table thead tr:first-child th,
.nectar-quick-view-box .afp-widget--quickview .afp-tier-table th,
.nectar-quick-view-box .afp-widget--quickview .afp-tier-table td,
.nectar-quick-view-box .afp-widget--quickview .afp-result-table th,
.nectar-quick-view-box .afp-widget--quickview .afp-result-table td {
  background: var(--afp-tier-row-bg, #ffffff) !important;
  border-color: var(--afp-tier-row-border, var(--afp-border, #eadfd8)) !important;
}

.afp-widget .afp-tier-table thead th,
.afp-widget .afp-result-table th,
.nectar-quick-view-box .afp-widget--quickview .afp-tier-table thead th,
.nectar-quick-view-box .afp-widget--quickview .afp-result-table th {
  background: color-mix(in srgb, var(--afp-tier-row-bg, #ffffff) 76%, var(--afp-accent-soft, #f4ebe7)) !important;
  color: var(--afp-muted, #7d6c66) !important;
}

.afp-widget .afp-tier-table tr.is-current td,
.afp-widget .afp-tier-table tr.is-current th,
.nectar-quick-view-box .afp-widget--quickview .afp-tier-table tr.is-current td,
.nectar-quick-view-box .afp-widget--quickview .afp-tier-table tr.is-current th {
  background: var(--afp-tier-row-active-bg, var(--afp-accent-soft, #f4ebe7)) !important;
  box-shadow: inset 3px 0 0 var(--afp-accent, #b56c52) !important;
}

/* Under-calculator backgrounds and shells that remained warm */
.afp-widget .afp-master-row--ranges,
.afp-widget .afp-master-row--summary,
.afp-widget .afp-master-row--submit,
.afp-widget .afp-master-row--control,
.afp-widget .afp-master-row--fees,
.afp-widget .afp-master-row--summary .afp-live-panel,
.afp-widget .afp-master-row--summary .afp-preview-card,
.afp-widget .afp-master-row--summary .afp-submit-row,
.afp-widget .afp-master-row--ranges .afp-range-shell,
.afp-widget .afp-master-row--control .afp-field-shell,
.afp-widget .afp-master-row--fees .afp-option-row,
.nectar-quick-view-box .afp-widget--quickview .afp-qv-section,
.nectar-quick-view-box .afp-widget--quickview .afp-qv-summary,
.nectar-quick-view-box .afp-widget--quickview .afp-preview-card--quickview {
  background: linear-gradient(180deg, var(--afp-panel-bg, #fffdfa) 0%, var(--afp-surface, #fffaf7) 100%) !important;
  border-color: var(--afp-border, #eadfd8) !important;
}

/* Totals and CTA row keep preset colors */
.afp-widget .afp-submit-row__total,
.afp-widget .afp-submit-row__total strong,
.afp-widget .afp-submit-row__label,
.nectar-quick-view-box .afp-widget--quickview .afp-qv-total,
.nectar-quick-view-box .afp-widget--quickview .afp-qv-total strong {
  color: var(--afp-text, #241c18) !important;
}

/* Secondary buttons in ranges / quick view */
.afp-widget .button.afp-note-link-button,
.afp-widget .afp-note-link-button.button,
.afp-widget .afp-checkout-button.button,
.nectar-quick-view-box .afp-widget--quickview .button.afp-note-link-button,
.nectar-quick-view-box .afp-widget--quickview .afp-checkout-button.button {
  background: var(--afp-button-secondary-bg, #ffffff) !important;
  color: var(--afp-button-secondary-text, var(--afp-accent, #b56c52)) !important;
  border-color: var(--afp-button-secondary-border, var(--afp-border, #eadfd8)) !important;
}

/* Gallery shell on left should also inherit preset borders consistently */
.single-product div.product .woocommerce-product-gallery.afp-clean-gallery-active.afp-clean-gallery-ready,
.single-product div.product .images.afp-clean-gallery-active.afp-clean-gallery-ready,
.single-product div.product .images.afp-clean-gallery-host,
.single-product div.product .afp-clean-gallery,
.single-product div.product .afp-clean-gallery__stage,
.single-product div.product .afp-clean-gallery__thumb,
.single-product div.product .afp-clean-gallery__thumb img {
  border-color: var(--afp-gallery-shell-border, var(--afp-border, #eadfd8)) !important;
}
