html:not([data-site-theme="dark"]) .header_cart_main .cp_char_list li span:first-child {
    color: #5f5851;
}

/* Scope the palette to the explicit choice without changing selector specificity. */
:where(html[data-site-theme="dark"]) {
    color-scheme: dark;
    --theme-bg: #191614;
    --theme-surface: #231e1b;
    --theme-raised: #2d2622;
    --theme-hover: #382e29;
    --theme-line: #55453d;
    --theme-text: #f4ebe5;
    --theme-muted: #cdbeb4;
    --theme-link: #ffaba1;
    --theme-action: #bb2835;
    --theme-action-hover: #a7222d;
    --site-menu-surface: var(--theme-surface);
    --site-menu-text: var(--theme-text);
    --site-menu-active: var(--theme-link);
    background-color: var(--theme-bg);
    color: var(--theme-text);
}

:where(html[data-site-theme="dark"]) body {
    background-color: var(--theme-bg);
    color: var(--theme-text);
}

:where(html[data-site-theme="dark"]) body.seo-page {
    --seo-ink: var(--theme-text);
    --seo-muted: var(--theme-muted);
    --seo-line: var(--theme-line);
    --seo-tint: var(--theme-surface);
    --seo-red: var(--theme-action);
    --seo-red-hover: var(--theme-action-hover);
}

:where(html[data-site-theme="dark"]) :where(a) {
    color: var(--theme-link);
}

:where(html[data-site-theme="dark"]) :where(a, button, summary, input, textarea, select):focus-visible {
    outline: 2px solid var(--theme-link);
    outline-offset: 3px;
}

:where(html[data-site-theme="dark"]) .hl_fixed .hl_top,
:where(html[data-site-theme="dark"]) .footer .f_bottom,
:where(html[data-site-theme="dark"]) .container_main > :is(.seo_inner, .dealers_content, .content_inner),
:where(html[data-site-theme="dark"]) .content_inner > :is(.seo_inner, .dealers_content, .content_other),
:where(html[data-site-theme="dark"]) .container_main > .header_cart_main,
:where(html[data-site-theme="dark"]) .container_main .seo,
:where(html[data-site-theme="dark"]) .seo-local-legacy > .seo_inner,
:where(html[data-site-theme="dark"]) .seo-local-legacy > .seo_inner .seo,
:where(html[data-site-theme="dark"]) .seo-page #categories {
    background: var(--theme-bg);
}

:where(html[data-site-theme="dark"]) .hl_fixed .hl_top {
    box-shadow: inset 0 -1px var(--theme-line);
}

:where(html[data-site-theme="dark"]) .hl_fixed .hl_top :is(a.hl_phone, .hl_phone span, .hl_top_href) {
    color: var(--theme-text);
}

:where(html[data-site-theme="dark"]) .factory-brand-mark,
:where(html[data-site-theme="dark"]) .contact-page .contact-factory-logo {
    background: #f8f4ee;
    border-radius: 4px;
}

:where(html[data-site-theme="dark"]) .footer .f_top,
:where(html[data-site-theme="dark"]) .seo-page .footer .f_top,
:where(html[data-site-theme="dark"]) .seo-local-legacy .footer .f_top {
    background: var(--theme-surface);
    border-block: 1px solid var(--theme-line);
}

:where(html[data-site-theme="dark"]) .footer .f_nav a {
    color: var(--theme-text);
}

:where(html[data-site-theme="dark"]) .hl_nav[data-site-menu] .site-catalog-links {
    background: var(--theme-raised);
    border-color: var(--theme-line);
}

:where(html[data-site-theme="dark"]) .hl_nav[data-site-menu] .hl_nav_list .site-catalog-links a {
    color: var(--theme-text) !important;
}

:where(html[data-site-theme="dark"]) .hl_nav[data-site-menu] .hl_nav_list .site-catalog-links a:is(:hover, :focus-visible, [aria-current="page"]) {
    background: var(--theme-hover);
    color: var(--theme-link) !important;
}

@media (max-width: 1000px) {
    :where(html[data-site-theme="dark"]) .hl_nav[data-site-menu] .site-catalog > summary {
        color: var(--theme-text);
    }

    :where(html[data-site-theme="dark"]) .hl_nav[data-site-menu] .site-catalog > summary:is(:hover, :focus-visible) {
        color: var(--theme-link) !important;
    }

    :where(html[data-site-theme="dark"]) .hl_fixed button[data-site-menu-toggle] {
        background-image: none;
        color: var(--theme-text);
    }

    :where(html[data-site-theme="dark"]) .hl_fixed button[data-site-menu-toggle]::before {
        display: block;
        width: 22px;
        height: 3px;
        margin: auto;
        background: currentColor;
        box-shadow: 0 -7px currentColor, 0 7px currentColor;
        content: "";
    }
}

:where(html[data-site-theme="dark"]) .seo-page :is(.seo-product, .seo-callout:not(#geo-channel), .seo-benefits > article, .factory-video),
:where(html[data-site-theme="dark"]) .seo-page .seo-table thead {
    background: var(--theme-raised);
    border-color: var(--theme-line);
}

:where(html[data-site-theme="dark"]) .seo-page :is(.seo-reviews, .seo-review, .seo-product-detail) {
    background: var(--theme-bg);
}

:where(html[data-site-theme="dark"]) .seo-product-page .content_other {
    background: var(--theme-surface);
}

:where(html[data-site-theme="dark"]) .seo-page .seo-section a:not(.seo-btn, .seo-youtube-link, .factory-youtube),
:where(html[data-site-theme="dark"]) .seo-content-page .seo-contact .seo-actions a[href^="tel:"],
:where(html[data-site-theme="dark"]) .seo-page .seo-product-breadcrumbs,
:where(html[data-site-theme="dark"]) .seo-product-page :is(.seo-product-info, .content_text) a:not(.seo-btn),
:where(html[data-site-theme="dark"]) .seo-page .seo-section .seo-kicker,
:where(html[data-site-theme="dark"]) .seo-page .seo-facts strong,
:where(html[data-site-theme="dark"]) .seo-page .factory-facts dt,
:where(html[data-site-theme="dark"]) .seo-local-legacy .seo-local-text a:not(.openModal, .contacts-showroom-button),
:where(html[data-site-theme="dark"]) .catalog-related .catalog-related-list a,
:where(html[data-site-theme="dark"]) .catalog-delivery-copy a {
    color: var(--theme-link);
}

:where(html[data-site-theme="dark"]) .seo-page .seo-btn-outline {
    border-color: var(--theme-link);
    color: var(--theme-link);
}

:where(html[data-site-theme="dark"]) .seo-page .seo-btn-outline:is(:hover, :focus-visible) {
    background-color: var(--theme-hover);
}

:where(html[data-site-theme="dark"]) .seo-content .factory-video a.factory-youtube,
:where(html[data-site-theme="dark"]) .contact-page #contacts-video .contacts-showroom-button-outline {
    color: var(--theme-text);
    background: var(--theme-surface);
    border-color: var(--theme-line);
}

:where(html[data-site-theme="dark"]) .seo-page .seo-btn:focus-visible,
:where(html[data-site-theme="dark"]) .seo-page a:focus-visible,
:where(html[data-site-theme="dark"]) .seo-page summary:focus-visible {
    outline-color: var(--theme-link);
}

:where(html[data-site-theme="dark"]) .container_main .plashka_info > ul > li,
:where(html[data-site-theme="dark"]) .container_main .plashka_info > ul > li:hover,
:where(html[data-site-theme="dark"]) .container_main .plashka_info > ul > li:nth-child(n) > a,
:where(html[data-site-theme="dark"]) .category_content > .cat_list:has(.cl_inner) > li,
:where(html[data-site-theme="dark"]) .category_content .cat_list li .cl_inner,
:where(html[data-site-theme="dark"]) .category_content .cat_list li:hover .cl_inner,
:where(html[data-site-theme="dark"]) .category_content > .cat_list.flex-items a,
:where(html[data-site-theme="dark"]) .header_cart_main .cart_plashka,
:where(html[data-site-theme="dark"]) .seo-delivery-page .hd_plashka_list > li,
:where(html[data-site-theme="dark"]) .contact-page .row.contacts .contact-cell,
:where(html[data-site-theme="dark"]) .contact-page #contacts-video {
    background: var(--theme-raised);
    border-color: var(--theme-line);
    color: var(--theme-text);
}

:where(html[data-site-theme="dark"]) .container_main .plashka_info > ul > li:nth-child(n) > a:is(:hover, :focus-visible) {
    background-color: var(--theme-hover);
}

/* The alternate catalog tile has an important light texture in the legacy styles. */
:where(html[data-site-theme="dark"]) .container_main .plashka_info .pil_other > a {
    background: var(--theme-raised) !important;
}

:where(html[data-site-theme="dark"]) .container_main .plashka_info .pil_other > a:is(:hover, :focus-visible),
:where(html[data-site-theme="dark"]) .container_main .plashka_info .pil_inner:hover {
    background: var(--theme-hover) !important;
}

:where(html[data-site-theme="dark"]) .contact_content :is(.ui-accordion, .ui-accordion-header, .ui-accordion-content) {
    background: var(--theme-raised);
    border-color: var(--theme-line);
    color: var(--theme-text);
}

:where(html[data-site-theme="dark"]) .seo-delivery-page .hd_plashka_list {
    background: var(--theme-surface);
}

:where(html[data-site-theme="dark"]) .seo-delivery-page .hd_plashka_list > li + li {
    border-color: var(--theme-line) !important;
}

:where(html[data-site-theme="dark"]) .container_main :is(.pil_title, .pil_inner p, .cl_name, .cl_price),
:where(html[data-site-theme="dark"]) .header_cart_main .cart_plashka :is(h1, .cp_price, .cp_char_title),
:where(html[data-site-theme="dark"]) .header_cart_main .cp_char_list li span + span,
:where(html[data-site-theme="dark"]) .seo-delivery-page .hd_plashka_list :is(a, .hd_pl_name),
:where(html[data-site-theme="dark"]) .content_dostavka h2,
:where(html[data-site-theme="dark"]) .content_text :is(h2, h3),
:where(html[data-site-theme="dark"]) .contact-page :is(.contact-showroom .pl_title, .contact-cell h4) {
    color: var(--theme-text);
}

:where(html[data-site-theme="dark"]) .header_cart_main .cp_char_list li,
:where(html[data-site-theme="dark"]) .seo-local-legacy .seo-local-text {
    border-color: var(--theme-line);
}

:where(html[data-site-theme="dark"]) .header_cart_main .cp_char_list li span,
:where(html[data-site-theme="dark"]) .contact-page #contacts-roles,
:where(html[data-site-theme="dark"]) .seo-delivery-page .di_block :is(p, li),
:where(html[data-site-theme="dark"]) .content_text :is(p, li),
:where(html[data-site-theme="dark"]) .seo-local-legacy .seo-local-text p {
    color: var(--theme-muted);
}

:where(html[data-site-theme="dark"]) .crumbs_red .site-crumb-list a,
:where(html[data-site-theme="dark"]) .content_text a,
:where(html[data-site-theme="dark"]) .contact-page .row.contacts .contact-cell a {
    color: var(--theme-link);
}

:where(html[data-site-theme="dark"]) .header_cart_main .cp_img img,
:where(html[data-site-theme="dark"]) .category_content .cl_img img {
    background-color: #f5f1eb;
    border-radius: 4px;
}

:where(html[data-site-theme="dark"]) .delivery-hero-action .cro-quote,
:where(html[data-site-theme="dark"]) .cro-product-action .cro-quote {
    background: var(--theme-action);
    border-color: var(--theme-action);
    color: #fff;
}

:where(html[data-site-theme="dark"]) .delivery-hero-action .cro-quote:is(:hover, :focus-visible),
:where(html[data-site-theme="dark"]) .cro-product-action .cro-quote:is(:hover, :focus-visible) {
    background: var(--theme-action-hover);
}

:where(html[data-site-theme="dark"]) :is(#modal, #modal_m) > div {
    background: var(--theme-surface);
}

:where(html[data-site-theme="dark"]) :is(#modal, #modal_m) a[href="#close"]::after {
    background: var(--theme-raised);
    color: var(--theme-text);
}

/* The request and callback documents live in their own frames. */
:where(html[data-site-theme="dark"]) .TabbedPanelsWidget :is(.TabbedPanelsTab, .TabbedPanelsContent) {
    background-color: var(--theme-surface) !important;
    border-color: var(--theme-line) !important;
}

:where(html[data-site-theme="dark"]) .TabbedPanelsWidget .TabbedPanelsTab {
    display: grid;
    min-height: 52px !important;
    padding-block: 0 !important;
    place-items: center;
    background-image: none !important;
}

:where(html[data-site-theme="dark"]) .TabbedPanelsWidget .TabbedPanelsTab > div {
    float: none !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
}

:where(html[data-site-theme="dark"]) .TabbedPanelsWidget .TabbedPanelsTab p:not(:last-child) {
    display: none;
}

:where(html[data-site-theme="dark"]) .TabbedPanelsWidget .TabbedPanelsTab[aria-selected="true"] {
    background-color: var(--theme-hover) !important;
    border-color: var(--theme-link) !important;
}

:where(html[data-site-theme="dark"]) .TabbedPanelsWidget :is(.TabbedPanelsTab p, .TabbedPanelsContent > div p, .fld-label, .fld-label span, .cro-request),
:where(html[data-site-theme="dark"]) #page:has(.TabbedPanelsWidget) > div:first-child p {
    color: var(--theme-text) !important;
}

:where(html[data-site-theme="dark"]) .TabbedPanelsWidget .wrapped-input {
    background: var(--theme-bg) !important;
    border-color: var(--theme-line) !important;
    color: var(--theme-text) !important;
}

:where(html[data-site-theme="dark"]) .TabbedPanelsWidget .wrapped-input::placeholder {
    color: var(--theme-muted);
}

:where(html[data-site-theme="dark"]) .TabbedPanelsWidget .fld-err-st .wrapped-input,
:where(html[data-site-theme="dark"]) .TabbedPanelsWidget .wrapped-input:focus {
    border-color: var(--theme-link) !important;
}

:where(html[data-site-theme="dark"]) .cro-request .cro-form-state-success {
    color: #a4e0ae !important;
}

:where(html[data-site-theme="dark"]) .cro-request .cro-form-state-error {
    color: var(--theme-link) !important;
}
