:root {
    color-scheme: light;
    --etha-focus: #684600;
}

#header .etha-appearance > div {
    display: flex;
    align-items: center;
    gap: .125rem;
}

#header .etha-appearance button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #f1f2f4;
    line-height: 1;
    box-shadow: none;
}

#header .etha-appearance button:is(:hover, [aria-pressed="true"]) {
    border-color: #ffcf56;
    color: #ffcf56;
}

#header .etha-appearance svg {
    width: 16px;
    height: 16px;
}

:root :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--etha-focus) !important;
    outline-offset: 2px;
}

:root[data-etha-scheme="dark"] {
    color-scheme: dark;
    --etha-bg: #17191c;
    --etha-panel: #23262b;
    --etha-raised: #30343b;
    --etha-fg: #f1f2f4;
    --etha-subtle: #c2c7d0;
    --etha-border: #858d99;
    --etha-dark-link: #ffcf56;
    --etha-dark-hover: #ffe4a2;
    --etha-focus: #ffdd80;
    --etha-muted-ink: var(--etha-subtle);
    --etha-link: var(--etha-dark-link);
    --etha-link-hover: var(--etha-dark-hover);
    --fs-experimental-link-color: var(--etha-dark-link);
    --fs-experimental-link-color-hover: var(--etha-dark-hover);
    --fs-color-background: var(--etha-bg);
}

:root[data-etha-scheme="dark"] :is(body, #wrapper, #main, .shop-page-title, .page-title, .page-wrapper) {
    color: var(--etha-fg);
    background-color: var(--etha-bg);
}

:root[data-etha-scheme="dark"] :is(#main, .shop-page-title, .nav-dropdown, .off-canvas) :is(h1, h2, h3, h4, h5, h6, label, legend, th, .quantity) {
    color: var(--etha-fg);
}

:root[data-etha-scheme="dark"] :is(#main, .shop-page-title, .nav-dropdown, .off-canvas) a:not(.button, .wp-element-button) {
    color: var(--etha-dark-link);
}

:root[data-etha-scheme="dark"] :is(#main, .shop-page-title, .nav-dropdown, .off-canvas) a:not(.button, .wp-element-button):is(:hover, :focus-visible) {
    color: var(--etha-dark-hover);
}

:root[data-etha-scheme="dark"] :is(.box-text, .nav-dropdown, .off-canvas .sidebar-menu, .off-canvas .cart-sidebar, .widget_shopping_cart, .mfp-content .mfp-figure, .woocommerce-info, .woocommerce-message, .woocommerce-error, .shop_table, .checkout-sidebar, .account-container, .blog-share, .comment-respond, .wpc-filters-widget-wrapper, .wnas-filter) {
    color: var(--etha-fg);
    background-color: var(--etha-panel);
}

:root[data-etha-scheme="dark"] :is(.woocommerce-breadcrumb, .woocommerce-result-count, .product_meta, .entry-meta, .wpc-term-count, .box-text .is-smaller, .entry-content .is-small) {
    color: var(--etha-subtle);
    opacity: 1;
}

:root[data-etha-scheme="dark"] :is(.product-small .box-image, .product-category .box-image, .product-gallery .woocommerce-product-gallery__image) {
    background-color: #fff;
}

:root[data-etha-scheme="dark"] :is(input:not([type="submit"], [type="button"], [type="checkbox"], [type="radio"], [type="range"], [type="reset"]), select, textarea) {
    color: var(--etha-fg);
    background-color: var(--etha-panel);
    border-color: var(--etha-border);
}

:root[data-etha-scheme="dark"] :is(input, textarea)::placeholder {
    color: var(--etha-subtle);
}

:root[data-etha-scheme="dark"] :is(.wnas-filter, .wpc-filters-main-wrap) :is(.wnas-filter__value, .wnas-filter__label, .wnas-filter__title, .wpc-filter-title, .wpc-filter-link, .wpc-term-count, label) {
    color: var(--etha-fg);
}

:root[data-etha-scheme="dark"] :is(.wnas-filter, .wpc-filters-main-wrap) :is(.wnas-filter__field-label, .wnas-filter__input-wrap) {
    color: var(--etha-fg);
    background-color: var(--etha-raised);
}

:root[data-etha-scheme="dark"] .wpc-filters-main-wrap li.wpc-term-item:has(:checked) .wpc-filter-link {
    color: var(--etha-dark-hover);
}

:root[data-etha-scheme="dark"] :is(.box-text[style*="background-color:rgb(255, 205, 12)"], .box-text[style*="background-color:#ffcd0c"]) {
    color: #252525;
}

:root[data-etha-scheme="dark"] #main .box-text:is([style*="background-color:rgb(255, 205, 12)"], [style*="background-color:#ffcd0c"]) a:not(.button) {
    color: #252525;
}

:root[data-etha-scheme="dark"] .button.is-outline:not(:hover, :focus-visible) {
    color: var(--etha-dark-link);
    border-color: currentColor;
}

:root[data-etha-scheme="dark"] #main .button:is(.primary,.secondary,.alt):not(.is-outline,.is-link,.is-underline) {
    color: #252525 !important;
}

:root:not([data-etha-scheme="dark"]) :is(#header, #footer) {
    --etha-focus: #ffdd80;
}

/* Flatsome Builder and legacy shop styles assign several fixed surface colors. */
:root[data-etha-scheme="dark"] #main :is(.section:not(.dark), .message-box, .wnas_brand_filter_widget, .products .box-text, .post-item .box-text, .box-shadow-1.col-inner, .col-inner[style*="background-color:rgb(255, 255, 255)"]) {
    background-color: var(--etha-panel) !important;
}

:root[data-etha-scheme="dark"] :is(.wnas-filter__values label > span:first-child, .wnas_brand_filter_widget .widget-title) {
    color: var(--etha-fg);
    background-color: var(--etha-raised) !important;
}

:root[data-etha-scheme="dark"] :is(.wnas-filter__suffix, .testimonial-meta, .wnas_brand_filter_widget .count, .wpcf7-form p) {
    color: var(--etha-subtle);
}

:root[data-etha-scheme="dark"] #main :is(.nav-pagination .page-number, .woocommerce-tabs .nav a):not(.active) {
    color: var(--etha-dark-link);
}

:root[data-etha-scheme="dark"] .nav-pagination > li > a:hover {
    color: #252525 !important;
}

:root[data-etha-scheme="dark"] #main .message-box:has(> .message-box-bg-overlay[style*="rgb(242, 184, 26)"]) :is(p, strong, a, h2, h3, h4) {
    color: #252525;
}

:root[data-etha-scheme="dark"] body #main :is(.product-category .box, .product-small .box, .post-item .box, .product-category > .col-inner, .product-small > .col-inner, .post-item > .col-inner, .row-box-shadow-1 > .col > .col-inner, .row-box-shadow-2 > .col > .col-inner, .col-inner:has(> .featured-box), .icon-box-text, .section-content .text:not(.dark *)) {
    background-color: var(--etha-panel) !important;
    color: var(--etha-fg);
}

:root[data-etha-scheme="dark"] body #main :is(.nav-pagination > li > a, .woocommerce-tabs ul.tabs li > a, a.button.is-outline:not(:hover, :focus-visible)) {
    color: var(--etha-dark-link) !important;
}

:root[data-etha-scheme="dark"] body #main :is(.nav-pagination > li > a, a.button.is-outline):is(:hover, :focus-visible) {
    color: #252525 !important;
}

:root[data-etha-scheme="dark"] body #main .message-box:has(> .message-box-bg-overlay[style*="rgb(242, 184, 26)"]) .text {
    color: var(--etha-fg);
}

:root[data-etha-scheme="dark"] body #main .message-box:has(> .message-box-bg-overlay[style*="rgb(242, 184, 26)"]) .text :is(p, strong, a) {
    color: var(--etha-fg);
}

html[data-etha-scheme="dark"] #main .product-category .box-text-inner,
html[data-etha-scheme="dark"] #main .product-small .title-wrapper,
html[data-etha-scheme="dark"] #main .post-item .blog-post-inner,
html[data-etha-scheme="dark"] #main .message-box h4 {
    background: var(--etha-panel) !important;
}

html[data-etha-scheme="dark"] #main .message-box:has(> .message-box-bg-overlay[style*="rgb(242, 184, 26)"]) :is(p, strong, a) {
    color: #252525 !important;
}

html[data-etha-scheme="dark"] #main .button.is-link,
html[data-etha-scheme="dark"] #main .nav-pagination a.page-number,
html[data-etha-scheme="dark"] #main .woocommerce-tabs .product-tabs li a {
    color: var(--etha-dark-link) !important;
}

html[data-etha-scheme="dark"] #main .nav-pagination a.page-number:is(:hover, :focus-visible) {
    color: #252525 !important;
}

html[data-etha-scheme="dark"] body #main :is(.woocommerce-pagination .page-number:not(.current), [role="tablist"] [role="tab"], .post-item h5 a.plain, .button.white.is-outline > span) {
    color: var(--etha-dark-link) !important;
    opacity: 1;
}

html[data-etha-scheme="dark"] body #main .woocommerce-pagination a.page-number:is(:hover, :focus-visible) {
    color: #252525 !important;
    background-color: var(--etha-dark-link);
}

html[data-etha-scheme="dark"] body #main .button.white.is-outline:is(:hover, :focus-visible) {
    background-color: var(--etha-dark-link);
    border-color: var(--etha-dark-link);
}

html[data-etha-scheme="dark"] body #main .button.white.is-outline:is(:hover, :focus-visible) > span {
    color: #252525 !important;
}

html[data-etha-scheme="dark"] #main blockquote {
    color: var(--etha-fg);
    border-color: var(--etha-border);
}

html[data-etha-scheme="dark"] #main .message-box:has(> .message-box-bg-overlay[style*="rgb(242, 184, 26)"]) a span {
    color: #252525 !important;
}

:root:not([data-etha-scheme="dark"]) #main :is(input:not([type="submit"], [type="button"], [type="checkbox"], [type="radio"], [type="range"], [type="reset"]), select, textarea) {
    border-color: #767676;
}

:root[data-etha-scheme="dark"] :is(input[type="checkbox"], input[type="radio"], input[type="range"]) {
    accent-color: var(--etha-dark-link);
}

/* Builder pages with explicit light surfaces or yellow editorial callouts. */
html[data-etha-scheme="dark"] body:is(.page-id-10468, .page-id-1922) #main .section-bg-overlay {
    background-color: rgb(23 25 28 / 85%) !important;
}

html[data-etha-scheme="dark"] #main :is(.box-text[style*="background-color:#f0f0f0"], .col-inner[style*="background-color:rgb(255,255,255)"]) {
    background-color: var(--etha-panel) !important;
}

html[data-etha-scheme="dark"] body:is(.page-id-11051, .page-id-10764) #main .section-content .col-inner:has(> :is(h2, h3, h4, p)) {
    background-color: var(--etha-panel) !important;
}

html[data-etha-scheme="dark"] body.page-id-7256 #main .col-inner[style*="background-color:#ffba00"] :is(p, strong, b, h2, h3, a) {
    color: var(--etha-ink) !important;
}

html[data-etha-scheme="dark"] body.page-id-1119 #main :is(.text > p.lead, .etha-customers li) {
    color: var(--etha-fg) !important;
}

:root[data-etha-scheme="dark"] select {
    appearance: auto;
    background-image: none;
    box-shadow: none;
}

:root[data-etha-scheme="dark"] :is(.wnas_brand_filter_widget, .widget_wnas_numeric_attribute_slider_widget, .wpc-filter-set-widget) {
    border-color: var(--etha-panel) !important;
}

:root[data-etha-scheme="dark"] .wnas-filter__track {
    background-color: var(--etha-border);
}

:root[data-etha-scheme="dark"] :is(#shop-sidebar, .off-canvas) aside.widget:is(.wnas_brand_filter_widget, .widget_wnas_numeric_attribute_slider_widget, .widget_wpc_filters_widget, .woocommerce) {
    background-color: var(--etha-panel);
    border-color: var(--etha-panel) !important;
}
