/* The normal site remains controlled by Elementor's existing light colors. */
html[data-ew-theme="dark"] { color-scheme: dark; background: #120F18; }
html[data-ew-theme="light"] { color-scheme: light; }
html[data-ew-theme="dark"] body {
  --gdm-bg: var(--ew-theme-background,#120F18);
  --gdm-surface: var(--ew-theme-surface,#1C1725);
  --gdm-surface-2: var(--ew-theme-surface-alt,#272031);
  --gdm-border: var(--ew-theme-border,#40364D);
  --gdm-text: var(--ew-theme-text,#F4F0F8);
  --gdm-muted: var(--ew-theme-muted,#C3B9CE);
  --gdm-accent: var(--ew-theme-accent,#C4A4E8);
  color: var(--gdm-text); background-color: var(--gdm-bg);
}
/* A few optional classes for elements that use fixed colors rather than globals. */
html[data-ew-theme="dark"] .gdm-surface { background-color: var(--gdm-surface) !important; color: var(--gdm-text) !important; }
html[data-ew-theme="dark"] .gdm-surface-2 { background-color: var(--gdm-surface-2) !important; color: var(--gdm-text) !important; }
html[data-ew-theme="dark"] .gdm-text { color: var(--gdm-text) !important; }
html[data-ew-theme="dark"] .gdm-border { border-color: var(--gdm-border) !important; }
/* A neutral backing preserves a dark logo's original artwork. */
html[data-ew-theme="dark"] :is(.elementor-widget-theme-site-logo, .gdm-logo):not(.ew-dark-image-replace):not(.ew-dark-image-white) img {
  background-color: #fff; border-radius: 4px; padding: 4px;
}

/* Smart search widget dark palette. */
html[data-ew-theme="dark"] .ew-search {
  --gs-accent: var(--ew-search-dark-accent, var(--ew-theme-accent)) !important; --gs-ink: var(--ew-search-dark-text, var(--ew-theme-text)) !important;
  --gs-muted: var(--ew-search-dark-muted, var(--ew-theme-muted)) !important; --gs-line: var(--ew-search-dark-border, var(--ew-theme-border)) !important; --gs-soft: var(--ew-search-dark-field, var(--ew-theme-surface-alt)) !important;
}
html[data-ew-theme="dark"] .ew-search .gs-form {
  color: var(--ew-search-dark-text, var(--ew-theme-text)) !important; background: var(--ew-search-dark-field, var(--ew-theme-surface-alt)) !important; border-color: var(--ew-search-dark-border, var(--ew-theme-border)) !important;
}
html[data-ew-theme="dark"] .ew-search .gs-form:focus-within {
  background: var(--ew-search-dark-panel, var(--ew-theme-surface)) !important; border-color: var(--ew-search-dark-accent, var(--ew-theme-accent)) !important; box-shadow: 0 0 0 3px rgb(196 164 232 / 15%) !important;
}
html[data-ew-theme="dark"] .ew-search :is(input.gs-input, .gs-title, .gs-message strong) { color: var(--ew-search-dark-text, var(--ew-theme-text)) !important; }
html[data-ew-theme="dark"] .ew-search :is(.gs-kind, .gs-heading, .gs-group-label, .gs-message, .gs-notice, .gs-close-hint) { color: var(--ew-search-dark-muted, var(--ew-theme-muted)) !important; }
html[data-ew-theme="dark"] .ew-search .gs-input::placeholder { color: var(--ew-search-dark-muted, var(--ew-theme-muted)) !important; }
html[data-ew-theme="dark"] .ew-search :is(.gs-search-icon, .gs-option svg, .gs-clear) { color: var(--ew-search-dark-muted, var(--ew-theme-muted)) !important; }
html[data-ew-theme="dark"] .ew-search .gs-panel {
  background: var(--ew-search-dark-panel, var(--ew-theme-surface)) !important; border-color: var(--ew-search-dark-border, var(--ew-theme-border)) !important; box-shadow: 0 14px 38px rgb(0 0 0 / 35%) !important;
}
html[data-ew-theme="dark"] .ew-search .gs-option { color: var(--ew-search-dark-text, var(--ew-theme-text)) !important; background: transparent !important; }
html[data-ew-theme="dark"] .ew-search :is(.gs-option:hover, .gs-option[aria-selected="true"], .gs-clear:hover) { background: var(--ew-search-dark-hover, var(--ew-theme-surface-alt)) !important; }
html[data-ew-theme="dark"] .ew-search :is(.gs-submit, .gs-submit:hover) { color: var(--ew-search-dark-button-text, var(--ew-theme-button-text)) !important; background: var(--ew-search-dark-accent, var(--ew-theme-accent)) !important; }
html[data-ew-theme="dark"] .ew-search .gs-footer { background: var(--ew-search-dark-footer, var(--ew-theme-background)) !important; color: var(--ew-search-dark-muted, var(--ew-theme-muted)) !important; border-color: var(--ew-search-dark-border, var(--ew-theme-border)) !important; }
html[data-ew-theme="dark"] .ew-search :is(.gs-all, .gs-group + .gs-group, .gs-close-hint) { border-color: var(--ew-search-dark-border, var(--ew-theme-border)) !important; }
html[data-ew-theme="dark"] .ew-search :is(.gs-all, .gs-all svg) { color: var(--ew-search-dark-accent, var(--ew-theme-accent)) !important; }
html[data-ew-theme="dark"] .ew-search .gs-cover { background: var(--ew-search-dark-hover, var(--ew-theme-surface-alt)) !important; }
html[data-ew-theme="dark"] .ew-search .gs-option mark { color: inherit !important; background: transparent !important; }

/* Common WooCommerce form/table surfaces. Product photos keep their colors. */
html[data-ew-theme="dark"] :is(.woocommerce, .wc-block-cart, .wc-block-checkout):not(.ew-drawer-root *) {
  color: #F4F0F8;
  --wc-form-color-background: #1C1725; --wc-form-color-text: #F4F0F8;
  --wc-form-color-border: #40364D; --wc-form-color-secondary: #C3B9CE;
}
html[data-ew-theme="dark"] :is(.woocommerce, .wc-block-cart, .wc-block-checkout) :is(.input-text, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], textarea, select, .select2-selection):not(.ew-drawer-root *) {
  background-color: #1C1725 !important; color: #F4F0F8 !important; border-color: #40364D !important;
}
html[data-ew-theme="dark"] .woocommerce :is(table.shop_table, .cart_totals, .woocommerce-checkout-payment, #payment, #payment .payment_box):not(.ew-drawer-root *) { background-color: #1C1725 !important; color: #F4F0F8 !important; border-color: #40364D !important; }
html[data-ew-theme="dark"] .woocommerce table.shop_table :is(th, td):not(.ew-drawer-root *) { border-color: #40364D !important; }
html[data-ew-theme="dark"] .woocommerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error):not(.ew-drawer-root *) { background-color: #272031; color: #F4F0F8; }
html[data-ew-theme="dark"] .woocommerce :is(.price, .amount, .woocommerce-Price-currencySymbol):not(.ew-drawer-root *) { color: #C4A4E8; }

/* Per-image opt-in. Light images, their links and their alt text stay intact. */
html[data-ew-theme="dark"] .ew-dark-image-white img { filter: brightness(0) invert(1) !important; }

/* Native Elementor/WooCommerce surfaces. Loaded only with elikoWidgets dark mode.
   Site-specific artwork and arbitrary containers are deliberately not recolored. */
html[data-ew-theme="dark"] .elementor-widget-woocommerce-my-account {
 --sections-background-color:var(--ew-theme-surface,#1C1725)!important;
 --sections-border-color:var(--ew-theme-border,#40364D)!important;
 --general-text-color:var(--ew-theme-text,#F4F0F8)!important;
 --forms-fields-normal-background-color:var(--ew-theme-surface-alt,#272031)!important;
 --forms-fields-normal-color:var(--ew-theme-text,#F4F0F8)!important;
 --tables-buttons-background-color:var(--ew-theme-surface-alt,#272031)!important;
 --tables-button-normal-text-color:var(--ew-theme-accent,#C4A4E8)!important;
}
html[data-ew-theme="dark"] .elementor-widget-woocommerce-my-account :is(.woocommerce-MyAccount-content-wrapper,address,.woocommerce-EditAccountForm,.woocommerce-address-fields) {background-color:var(--ew-theme-surface,#1C1725)!important;color:var(--ew-theme-text,#F4F0F8)!important;border-color:var(--ew-theme-border,#40364D)!important;}
html[data-ew-theme="dark"] .elementor-widget-woocommerce-my-account :is(.shop_table .button,.woocommerce-info .button,.order-again .button,.woocommerce-pagination .button) {background:var(--ew-theme-surface-alt,#272031)!important;color:var(--ew-theme-accent,#C4A4E8)!important;border-color:var(--ew-theme-border,#40364D)!important;}
html[data-ew-theme="dark"] .elementor-widget-woocommerce-my-account :is(p,address,legend,em,label) {color:var(--ew-theme-text,#F4F0F8)!important;}
html[data-ew-theme="dark"] .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation li:not(.is-active) a:hover {background:var(--ew-theme-surface-alt,#272031)!important;}
html[data-ew-theme="dark"] .elementor-widget-form :is(.elementor-field-textual,.elementor-field-type-recaptcha_v3 .elementor-field) {background-color:var(--ew-theme-surface-alt,#272031)!important;color:var(--ew-theme-text,#F4F0F8)!important;border-color:var(--ew-theme-border,#40364D)!important;}
html[data-ew-theme="dark"] .elementor-widget-form .elementor-field-textual::placeholder {color:var(--ew-theme-muted,#C3B9CE)!important;opacity:1;}
html[data-ew-theme="dark"] .elementor-widget-form .elementor-field-textual:focus {border-color:var(--ew-theme-accent,#C4A4E8)!important;outline:2px solid var(--ew-theme-accent,#C4A4E8);outline-offset:2px;}
html[data-ew-theme="dark"] .elementor-widget-form .elementor-button[type="submit"] {background-color:var(--ew-theme-button-bg,#C4A4E8)!important;color:var(--ew-theme-button-text,#19131F)!important;}
html[data-ew-theme="dark"] .elementor-widget-form .elementor-button[type="submit"] * {color:inherit!important;}
html[data-ew-theme="dark"] .elementor-widget-n-accordion .e-n-accordion-item:not([open]) > .e-n-accordion-item-title {background-color:var(--ew-theme-surface-alt,#272031)!important;color:var(--ew-theme-text,#F4F0F8)!important;}
html[data-ew-theme="dark"] .elementor-widget-n-accordion .e-n-accordion-item[open] > .e-n-accordion-item-title {background-color:var(--ew-theme-accent,#C4A4E8)!important;color:var(--ew-theme-button-text,#19131F)!important;}
html[data-ew-theme="dark"] .elementor-widget-n-accordion .e-n-accordion-item-title :is(.e-n-accordion-item-title-text,.e-n-accordion-item-title-icon) {color:inherit!important;}
html[data-ew-theme="dark"] :is(.elementor-widget-woocommerce-product-price,.single-product .product) :is(.price,.amount,.woocommerce-Price-currencySymbol) {color:var(--ew-theme-accent,#C4A4E8)!important;}
html[data-ew-theme="dark"] .jet-filter-label {color:var(--ew-theme-text,#F4F0F8)!important;}
html[data-ew-theme="dark"] .jet-range__inputs input {background:var(--ew-theme-surface-alt,#272031)!important;color:var(--ew-theme-text,#F4F0F8)!important;border-color:var(--ew-theme-border,#40364D)!important;}
