/* Storefront theme. The existing palette remains the default. */
#flb-theme-toggle {
    flex: 0 0 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    margin: 0 -12px 0 0;
    color: var(--c-on-dark);
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    touch-action: manipulation;
}
#flb-theme-toggle:hover { background: var(--c-dark-3); }
#flb-theme-toggle:focus-visible { outline: 2px solid #ff913f; }
.theme-sun, html[data-theme=dark] .theme-moon { display: none; }
html[data-theme=dark] .theme-sun { display: inline; }
@media (max-width: 767px) {
    #flb-theme-toggle { margin: 0 -4px 0 -4px; flex-basis: 40px; }
    .hdr__row:has(#flb-theme-toggle) { gap: 9px; }
    html[data-theme] .hdr__search svg { left: 9px; width: 16px; }
    html[data-theme] .hdr__search input { padding-left: 31px; padding-right: 5px; }
}
@media (max-width: 379px) {
    .hdr__row:has(#flb-theme-toggle) .city-pick>summary { min-width: 40px; justify-content: center; }
}
html[data-theme=dark] {
    color-scheme: dark;
    --c-bg: #1a1a1c;
    --c-surface: #242426;
    --c-raised: #2d2d30;
    --c-line: #414044;
    --c-ink: #fafafa;
    --c-text: #e9e9eb;
    --c-muted: #bcbcc1;
    --c-dark: #161617;
    --c-dark-line: #343436;
    --c-on-dark-muted: #c0c0c6;
    --c-brand-soft: #37271e;
    --c-link: #ff9a50;
    --c-ok: #79dc9f;
    --c-ok-bg: #173828;
    --c-info: #91bcff;
    --c-info-bg: #1b2d49;
    --c-warn: #ffbf76;
    --c-warn-bg: #3d2c1b;
    --c-danger: #ff9894;
    --c-danger-bg: #482427;
    --shadow-pop: 0 12px 32px #0006;
    background: var(--c-bg);
    color: var(--c-text);
}
html[data-theme=dark] body, html[data-theme=dark] main { background-color: var(--c-bg); color: var(--c-text); }
html[data-theme=dark] .hdr__nav a { color: var(--c-ink); }
html[data-theme=dark] .hdr__nav a:hover { color: var(--c-link); }
html[data-theme=dark] .cv4 {
    --ink: var(--c-ink);
    --mut: var(--c-muted);
    background: var(--c-surface);
    border-color: var(--c-line);
}
html[data-theme=dark] .cv4-photo:has([data-theme-image=dark]) { background: #161617; }
html[data-theme=dark] .cv4 .cv4-actions button { background: #19191be6; color: white; }
html[data-theme=dark] .cv4 .cv4-actions button:is(:hover,[aria-pressed=true]) { color: var(--c-link); }
html[data-theme=dark] .cv4-panel { background: var(--c-brand-soft); border-color: #574030; color: #fff5eb; }
html[data-theme=dark] a.cv4-panel:hover { background: #463020; border-color: var(--c-link); }
html[data-theme=dark] .cv4-panel--plain { background: var(--c-raised); border-color: var(--c-line); }
html[data-theme=dark] :is(.cv4-cap,.cv4-way,.cv4-name a:hover,.cv4-reg:hover,.cv4-reg:hover span) { color: var(--c-link); }
html[data-theme=dark] .cv4 :is(.cv4-brand,.cv4-reg,.cv4-term,s) { color: var(--c-muted); }
html[data-theme=dark] .cv4 :is(.cv4-timer,.cv4-qty,.cv4-qty button,.cv4-qty input) { background: var(--c-bg); color: var(--c-ink); border-color: var(--c-line); }
html[data-theme=dark] .cv4 :is(.cv4-add--in,.cart-btn) { background: var(--c-brand-soft); color: var(--c-link); }
html[data-theme=dark] .cv4 .cv4-add--off { background: var(--c-raised); color: var(--c-muted); border-color: var(--c-line); }


html[data-theme=dark] {
    --c-soft: #28282b;
    --c-soft-2: #303034;
    --c-soft-line: var(--c-line);
    --c-media: #202022;
    --c-text-2: #ceced2;
}
:where(html[data-theme=dark]) a { color: inherit; }
html[data-theme=dark] :is(input:not([type=button],[type=submit],[type=checkbox],[type=radio]),textarea,select):not(#search-input) {
    background-color: var(--c-bg);
    color: var(--c-ink);
    border-color: var(--c-line);
}
html[data-theme=dark] :is(input,textarea)::placeholder { color: var(--c-muted); }
html[data-theme=dark] :focus-visible { outline-color: var(--c-link); }
html[data-theme=dark] #mmenu { background: var(--c-dark); border-color: var(--c-line); }
html[data-theme=dark] #mmenu a b { color: var(--c-text); }
html[data-theme=dark] #mmenu a img { filter: brightness(0) invert(1); }
html[data-theme=dark] :is(.hdr .city-pick__list,.catmenu,.catmenu__bar,.catmenu__col,.city-bar__in,
    .ship-modal__card,.age-modal__box,.age-modal__no,.flt-pop,.catalog-filters,.login-box,.auth-form) {
    background: var(--c-surface);
    color: var(--c-text);
    border-color: var(--c-line);
}
html[data-theme=dark] :is(.hdr .city-pick__list a,.catmenu a,.catmenu__back,.catmenu__close,
    .city-bar__q,.ship-modal__title,.age-modal__title,.login label,.auth-form label,.flt-pop label) { color: var(--c-ink); }
html[data-theme=dark] :is(.city-pick__geo,.ship-summary a,.ship-summary button,.city-bar__link,.ship-modal__more,
    .login a,.auth-form a,.consent-note a,.catmenu a.catmenu__all) { color: var(--c-link); }
html[data-theme=dark] :is(.hdr .city-pick__list a:hover,.hdr .city-pick__list a.is-current,.catmenu a:hover,
    .catmenu a.is-active,.catmenu a.active,.catmenu a[aria-expanded=true]) { background: var(--c-raised); color: var(--c-link); }
html[data-theme=dark] :is(.ship-modal__text,.ship-modal__close,.age-modal__text,.age-modal__x,
    .consent-note,.breadcrumbs span,.seo-text-bottom,.cat-total) { color: var(--c-muted); }
html[data-theme=dark] :is(.breadcrumbs a,.brands a,.subcats a,.ssubcats a,.cat-subnav a,.filters-mobile button.filters,
    .catalog-filters label,.ctrl .reset-btn) { color: var(--c-text); }
html[data-theme=dark] :is(.breadcrumbs,.subcats,.ssubcats,.seo-text-bottom,.cat-subnav,.flt-pop,.ship-summary) { border-color: var(--c-line); }
html[data-theme=dark] :is(.catalog-pager a,.pub-pager a,.hd-arrow,.hd-btn,.ctrl a.reset-btn) {
    color: var(--c-ink);
    background: var(--c-surface);
    border-color: var(--c-line);
}
html[data-theme=dark] :is(.catalog-pager a,.pub-pager a,.hd-arrow,.hd-btn,.ctrl a.reset-btn):hover {
    background: var(--c-raised);
    border-color: var(--c-link);
}
html[data-theme=dark] :is(.brands,.breadcrumbs,.subcats,.ssubcats,.cat-subnav,.promobox.hd-sec,.shops) a:hover { color: var(--c-link); }
html[data-theme=dark] :is(.promobox.hd-sec h2 a,.city-seo h2,.shops h2,.shops p b,.shops dt,.shops dd a) { color: var(--c-ink); }
html[data-theme=dark] :is(.city-seo p,.shops p,.geo-shops li,.shops dd) { color: var(--c-muted); }
html[data-theme=dark] :is(.shops>div,.geo-shops li) { background-color: var(--c-surface); border-color: var(--c-line); }
html[data-theme=dark] .geo-shops a { color: var(--c-link); }
html[data-theme=dark] :is(.promo-top,.hour-info__item,.hour-terms-mobile,.pub-card,.pc-bot,.pub-media) {
    color: var(--c-text);
    background: var(--c-surface);
    border-color: var(--c-line);
}
html[data-theme=dark] :is(.promo-head h1,.hour-info__item b,.hour-terms-mobile summary,.pub-top h1,.pub-card a) { color: var(--c-ink); }
html[data-theme=dark] :is(.hour-info__desc,.pc-date,.promo-head p) { color: var(--c-muted); }
html[data-theme=dark] :is(.promo-tabs .promo-tab:not(.on),.pub-tabs a:not(.on,.active)) {
    color: var(--c-text);
    background: var(--c-raised);
    border-color: var(--c-line);
}
html[data-theme=dark] :is(.promo-tabs .promo-tab,.pub-tabs a):hover { border-color: var(--c-link); }
html[data-theme=dark] :is(.club-direct,.club-benefits,.club-faq) { background-color: var(--c-bg); color: var(--c-ink); }
html[data-theme=dark] :is(.club-benefits,.club-faq) :is(.club-label,.club-title,svg) { color: var(--c-ink); }
html[data-theme=dark] :is(.club-benefit p,.club-faq details p) { color: var(--c-muted); }
html[data-theme=dark] :is(.club-faq-list,.club-faq details,.club-benefit+.club-benefit) { border-color: var(--c-line); }
html[data-theme=dark] .club-faq summary::after { color: var(--c-link); }
html[data-theme=dark] .club-tariffs { background: var(--c-brand-soft); }
html[data-theme=dark] .club-tariff .club-button { background: var(--c-brand); color: white !important; }
html[data-theme=dark] .acc :is(.acc-nav a,.acc-item__title,.acc-order__name,.acc-field__label,.acc-tile__hd) { color: var(--c-ink); }
html[data-theme=dark] .acc :is(.acc-btn-o,.acc-nav a:hover,.acc__back,.acc-more) { color: var(--c-link); }
html[data-theme=dark] .acc :is(.acc-btn-o,.acc-thumb--more,.acc-field__input) { background-color: var(--c-bg); border-color: var(--c-line); }
html[data-theme=dark] #cv4-dlg {
    --ink: var(--c-ink);
    --mut: var(--c-muted);
    --o: var(--c-link);
    background: var(--c-surface);
    color: var(--c-text);
}
html[data-theme=dark] #cv4-dlg :is(.cvm-close,.cvm-tabs b,.cvm-list,.cvm-views) {
    background: var(--c-raised);
    color: var(--c-text);
}
html[data-theme=dark] #cv4-dlg :is(.cvm-title small,.cvm-title span,.cvm-clear,.cvm-found) { color: var(--c-muted); }
html[data-theme=dark] #cv4-dlg :is(.cvm-bar,.cvm-list) { border-color: var(--c-line); }
html[data-theme=dark] .cv4 .cv4-avail button+button { border-color: var(--c-line); }
html[data-theme=dark] .cv4 .img-adult .adult-badge {
    background: rgba(15,15,17,.64);
    color: #fff;
    text-shadow: 0 1px 3px #000;
}
html[data-theme=dark] .cv4 .adult-badge b {
    padding: 6px;
    border: 1px solid currentColor;
    border-radius: 50%;
    line-height: 1.35;
}
@media (max-width: 991px) {
    /* The full-screen filter sheet must cover the fixed header in both themes. */
    html[data-theme] #fltbox { z-index: 40; padding-top: 52px; border-radius: 0; }
    html[data-theme] #fltbox h2 { z-index: 4; line-height: 48px; padding: 0 16px; }
    html[data-theme] #fltbox .close { top: 2px; right: 4px; width: 44px; height: 44px; }
}
@media (min-width: 768px) and (max-width: 1100px) {
    html[data-theme] footer .container .info { flex-wrap: wrap; gap: 16px; }
}




html[data-theme=dark] :is(.geo-shops li b,.contacts .requisites dd a,.contacts .requisites dt) { color: var(--c-text); }
html[data-theme=dark] .wcatalog-grid .ctrl .filters-mobile button.filters {
    color: #171719;
    filter: invert(1);
}
html[data-theme=dark] .catalog-filters { border-radius: var(--r-md); }
html[data-theme=dark] .catalog-filters :is(h2,form>div.ctrl),
html[data-theme=dark] .wcatalog-grid .ctrl :is(.sort-mode,.group-mode)>div div {
    color: var(--c-text);
    background: var(--c-surface);
    border-color: var(--c-line);
}
html[data-theme=dark] .wcatalog-grid .ctrl :is(.sort-mode,.group-mode)>div { color: var(--c-link); }
html[data-theme=dark] .catalog-filters form>div:not(.ctrl):hover { background: var(--c-raised); }
html[data-theme=dark] .catalog-filters h5 { color: #151515; filter: invert(1); }
html[data-theme=dark] .catalog-filters .close img { filter: brightness(0) invert(1); }
html[data-theme=dark] #cv4-dlg .cvm-place:hover,
html[data-theme=dark] #cv4-dlg .cvm-views button[aria-pressed=true] { background: var(--c-surface); }
html[data-theme=dark] #cv4-dlg .cvm-place.is-sel { background: var(--c-brand-soft); border-color: var(--c-link); }
html[data-theme=dark] #cv4-dlg :is(.cvm-state,.cvm-place span span) { color: var(--c-muted); }
html[data-theme=dark] #cv4-dlg :is(.cvm-place .cvm-stock,.cvm-retry) { color: var(--c-link); }
html[data-theme=dark] #cv4-dlg :is(.cvm-select,.is-sel .cvm-num) { background: var(--c-brand); }
html[data-theme=dark] :is(.acc-nav__list a.on,.acc-nav__list a:hover,.acc-items__hd,.acc-bar,.acc-tile__ico,.acc-filters button) {
    background: var(--c-raised);
    color: var(--c-text);
    border-color: var(--c-line);
}
html[data-theme=dark] .acc-filters button.on { background: var(--c-brand-soft); color: var(--c-link); }
html[data-theme=dark] .pt { --pt-line: var(--c-line); background: var(--c-bg); color: var(--c-text); }
html[data-theme=dark] .pt :is(.pt-label,.pt-title) { color: var(--c-ink); }
html[data-theme=dark] .pt :is(.pt-consent,.pt-consent a,.pt-block p,.pt-done p) { color: var(--c-muted); }
html[data-theme=dark] .pt :is(.pt-form-sec,.pt-kind span,.pt-done) { background: var(--c-surface); }
html[data-theme=dark] .pt .pt-kind input:checked+span { background: var(--c-brand-soft); }
html[data-theme=dark] .pt .pt-msg.err { color: var(--c-danger); }



html[data-theme=dark] .cities-page a { color: var(--c-text); border-color: var(--c-line); }
html[data-theme=dark] .cities-page :is(a:hover,h3),html[data-theme=dark] .page_text a { color: var(--c-link); }
html[data-theme=dark] .city-bar__in { border-radius: inherit; }
html[data-theme=dark] .hdr .city-pick__list .city-pick__geo { color: var(--c-link); }
