/* Shared light/dark theme layer. Loaded after page styles. */

html[data-theme="dark"] {
    --theme-bg: #0a111c;
    --theme-bg-soft: #0e1825;
    --theme-surface: #111e2c;
    --theme-surface-raised: #162637;
    --theme-surface-hover: #1b3044;
    --theme-line: #2b4054;
    --theme-line-strong: #3a566f;
    --theme-text: #e9f1f8;
    --theme-muted: #a5b5c5;
    --theme-blue: #66b8f2;
    --theme-blue-strong: #2f8fd6;
    --theme-blue-soft: #173650;
    --theme-green: #72d99f;
    --theme-green-soft: #153a2a;
    --theme-amber: #f0c177;
    --theme-amber-soft: #3a2a16;
    --theme-red: #ff9a9a;
    --theme-red-soft: #3d2024;
    color-scheme: dark;
    background: var(--theme-bg) !important;
}

html[data-theme="dark"] body {
    color: var(--theme-text);
    background:
        radial-gradient(circle at 50% -180px, rgba(40, 111, 164, 0.2), transparent 520px),
        linear-gradient(90deg, #08101a 0%, #0d1723 12%, #0d1723 88%, #08101a 100%) !important;
}

html[data-theme="dark"] .main,
html[data-theme="dark"] .cont,
html[data-theme="dark"] .contcentr,
html[data-theme="dark"] .contcentrl {
    background-color: transparent;
}

html[data-theme="dark"] ::selection {
    color: #fff;
    background: #237bb9;
}

html[data-theme="dark"] input:not([type="image"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    color-scheme: dark;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #7f93a7;
    opacity: 1;
}

html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--theme-text);
    box-shadow: 0 0 0 1000px #142334 inset;
    caret-color: var(--theme-text);
}

html[data-theme="dark"] .catalog-page {
    --catalog-ink: #eaf2f9;
    --catalog-muted: #a1b1c2;
    --catalog-line: #2b4054;
    --catalog-soft: #172637;
    --catalog-surface: #111e2c;
    --catalog-blue: #58adeb;
    --catalog-blue-dark: #2b89cf;
    --catalog-blue-soft: #173650;
    --catalog-green: #72d99f;
    --catalog-green-soft: #153a2a;
}

html[data-theme="dark"] .product-page {
    --product-ink: #eaf2f9;
    --product-muted: #a1b1c2;
    --product-line: #2b4054;
    --product-soft: #172637;
    --product-surface: #111e2c;
    --product-blue: #58adeb;
    --product-blue-dark: #2b89cf;
    --product-blue-soft: #173650;
    --product-green: #72d99f;
    --product-green-soft: #153a2a;
}

/* Theme switch */
.theme-toggle {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: #175f91;
    font: 700 19px/1 Arial, sans-serif;
    border: 1px solid #bddce9;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 3px 10px rgba(19, 91, 134, 0.1);
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease,
        border-color 0.16s ease, transform 0.16s ease;
}

.theme-toggle:hover {
    color: #0b4f7c;
    border-color: #7bb9d8;
    background: #fff;
    transform: translateY(-1px);
}

.theme-toggle:focus-visible {
    outline: 3px solid rgba(55, 151, 214, 0.45);
    outline-offset: 3px;
}

.theme-toggle__icon {
    display: block;
    transform: translateY(-1px);
}

.theme-toggle--legal {
    margin-left: auto;
}

.theme-toggle--floating {
    position: fixed;
    z-index: 9998;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    box-shadow: 0 8px 24px rgba(8, 28, 45, 0.22);
}

html[data-theme="dark"] .theme-toggle {
    color: #ffd47a;
    border-color: #3e5970;
    background: #172a3b;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .theme-toggle:hover {
    color: #ffe2a3;
    border-color: #5d7990;
    background: #20384d;
}

/* Shared site header. Its original rules are inline after this file. */
html[data-theme="dark"] .site-header {
    color: var(--theme-text);
}

html[data-theme="dark"] .site-header__top {
    background-color: #132737;
    background-blend-mode: multiply, multiply;
    box-shadow: 0 9px 28px rgba(0, 0, 0, 0.34);
}

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

html[data-theme="dark"] .site-header__contact,
html[data-theme="dark"] .site-header__contact:visited {
    color: #dbeaf4;
}

html[data-theme="dark"] .site-header__socials a {
    border-color: #3a556b;
    background: rgba(16, 32, 46, 0.88);
}

html[data-theme="dark"] .site-header__cart,
html[data-theme="dark"] .site-header__cart:visited {
    color: #e8f3fa;
    border-color: #3b566c;
    background: rgba(16, 31, 45, 0.9);
}

html[data-theme="dark"] .site-header__cart small {
    color: #a7bac9;
}

html[data-theme="dark"] .site-header__cart img,
html[data-theme="dark"] .site-header__search #bs {
    filter: invert(1) brightness(1.7);
    opacity: 0.82;
}

html[data-theme="dark"] .site-header__nav {
    background: #0e5483;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .site-header .site-header__menu > li > a:hover,
html[data-theme="dark"] .site-header .site-header__menu > li > a.current {
    color: #ddecf7;
    background: #17344a;
}

html[data-theme="dark"] .site-header__search form {
    border: 1px solid #315067;
    background: #101e2b;
}

html[data-theme="dark"] .site-header__search #ps,
html[data-theme="dark"] .site-header__search #ps:focus {
    color: var(--theme-text);
    background: #101e2b;
}

html[data-theme="dark"] .site-header__search #ps:focus {
    box-shadow: inset 0 0 0 2px #4aa5df;
}

@media (max-width: 980px) {
    html[data-theme="dark"] .site-header__top {
        background-color: #132737;
        background-blend-mode: multiply;
    }

    html[data-theme="dark"] .site-header__contacts {
        background:
            linear-gradient(rgba(8, 21, 32, 0.78), rgba(8, 21, 32, 0.78)),
            url('/img/coolerar.gif') center / cover no-repeat;
    }
}

@media (max-width: 680px) {
    html[data-theme="dark"] .site-header__contacts {
        background:
            linear-gradient(rgba(8, 21, 32, 0.8), rgba(8, 21, 32, 0.8)),
            url('/img/coolerar.gif') center / cover no-repeat;
    }
}

/* Home */
html[data-theme="dark"] .home-section,
html[data-theme="dark"] .home-empty-state,
html[data-theme="dark"] .home-vendor-more {
    color: var(--theme-text);
    border-color: var(--theme-line);
    background: var(--theme-surface);
    box-shadow: 0 13px 34px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .home-categories-section {
    background: rgba(17, 30, 44, 0.64);
}

html[data-theme="dark"] .home-section-heading,
html[data-theme="dark"] .home-vendor-more > summary {
    border-color: var(--theme-line);
}

html[data-theme="dark"] .home-category-card,
html[data-theme="dark"] .home-category-card:link,
html[data-theme="dark"] .home-category-card:visited {
    color: var(--theme-text);
    border-color: #2e465b;
    background: linear-gradient(145deg, #152536 0%, #132231 60%, #163047 100%);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .home-category-card:hover {
    color: #fff;
    border-color: #4c7898;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .home-category-label,
html[data-theme="dark"] .home-vendor-link span,
html[data-theme="dark"] .home-vendor-more > summary span {
    color: var(--theme-muted);
}

html[data-theme="dark"] .home-category-content strong,
html[data-theme="dark"] .home-vendor-link,
html[data-theme="dark"] .home-vendor-link:visited,
html[data-theme="dark"] .home-vendor-more > summary {
    color: var(--theme-text);
}

html[data-theme="dark"] .home-category-action,
html[data-theme="dark"] .home-section-kicker {
    color: var(--theme-blue);
}

html[data-theme="dark"] .home-category-example {
    color: #c7d5e1;
    border-color: rgba(78, 111, 137, 0.8);
    background: rgba(12, 25, 37, 0.88);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .home-vendor-link,
html[data-theme="dark"] .home-vendor-more > summary {
    border-color: var(--theme-line);
    background: var(--theme-surface-raised);
}

html[data-theme="dark"] .home-vendor-link:hover,
html[data-theme="dark"] .home-vendor-more > summary:hover {
    color: #fff;
    border-color: #4b7595;
    background: var(--theme-surface-hover);
}

/* Catalog and search */
html[data-theme="dark"] .catalog-breadcrumbs a,
html[data-theme="dark"] .catalog-breadcrumbs a:link,
html[data-theme="dark"] .catalog-breadcrumbs a:visited,
html[data-theme="dark"] .catalog-clear-link,
html[data-theme="dark"] .catalog-clear-link:visited {
    color: #aebdcc;
}

html[data-theme="dark"] .catalog-active-filters {
    border-color: #31516b;
    background: #13283b;
}

html[data-theme="dark"] .catalog-active-label,
html[data-theme="dark"] .catalog-filter-title,
html[data-theme="dark"] .catalog-filter-details summary,
html[data-theme="dark"] .catalog-option,
html[data-theme="dark"] .catalog-button-secondary,
html[data-theme="dark"] .catalog-button-secondary:visited {
    color: #d5e1eb;
}

html[data-theme="dark"] .catalog-chip,
html[data-theme="dark"] .catalog-chip:link,
html[data-theme="dark"] .catalog-chip:visited {
    color: #87c8f5;
    border-color: #38637f;
    background: #172c3e;
}

html[data-theme="dark"] .catalog-filters,
html[data-theme="dark"] .catalog-filter-controls,
html[data-theme="dark"] .catalog-filter-details,
html[data-theme="dark"] .catalog-category-sidebar {
    border-color: var(--theme-line);
    background: var(--theme-surface);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .catalog-filter-block,
html[data-theme="dark"] .catalog-filter-details,
html[data-theme="dark"] .catalog-filter-note,
html[data-theme="dark"] .catalog-filter-actions,
html[data-theme="dark"] .catalog-category-list details {
    border-color: var(--theme-line);
}

html[data-theme="dark"] .catalog-filter-block select,
html[data-theme="dark"] .catalog-sort select,
html[data-theme="dark"] .catalog-range label,
html[data-theme="dark"] .catalog-range input,
html[data-theme="dark"] .catalog-button-secondary,
html[data-theme="dark"] .catalog-view-switch {
    color: var(--theme-text);
    border-color: var(--theme-line-strong);
    background: #142334;
}

html[data-theme="dark"] .catalog-filter-block option,
html[data-theme="dark"] .catalog-sort option {
    color: var(--theme-text);
    background: #142334;
}

html[data-theme="dark"] .catalog-filter-note,
html[data-theme="dark"] .catalog-filter-actions {
    background: #101d2a;
}

html[data-theme="dark"] .catalog-option-count,
html[data-theme="dark"] .catalog-range label,
html[data-theme="dark"] .catalog-toolbar p,
html[data-theme="dark"] .catalog-sort label {
    color: var(--theme-muted);
}

html[data-theme="dark"] .catalog-view-switch a,
html[data-theme="dark"] .catalog-view-switch a:visited {
    color: #a8b8c8;
    border-color: var(--theme-line);
}

html[data-theme="dark"] .catalog-product-card {
    border-color: var(--theme-line);
    background: var(--theme-surface);
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.23);
}

html[data-theme="dark"] .catalog-product-card:hover {
    border-color: #456d8c;
    box-shadow: 0 15px 32px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .catalog-product-image,
html[data-theme="dark"] .catalog-cart-product-image,
html[data-theme="dark"] .anons-product-image {
    border-color: #d9e3eb;
    background:
        radial-gradient(circle at center, #fff 42%, transparent 73%),
        linear-gradient(145deg, #f8fafc, #eaf2f7);
}

html[data-theme="dark"] .catalog-image-zoom {
    color: #bfe6ff;
    border-color: #47708d;
    background: rgba(18, 39, 55, 0.9);
}

html[data-theme="dark"] .catalog-product-meta,
html[data-theme="dark"] .catalog-product-specs li,
html[data-theme="dark"] .catalog-product-price span {
    color: var(--theme-muted);
}

html[data-theme="dark"] .catalog-product-content h3 a,
html[data-theme="dark"] .catalog-product-content h3 a:link,
html[data-theme="dark"] .catalog-product-content h3 a:visited,
html[data-theme="dark"] .catalog-product-specs strong,
html[data-theme="dark"] .catalog-product-price strong {
    color: var(--theme-text);
}

html[data-theme="dark"] .catalog-products.is-list .catalog-product-purchase,
html[data-theme="dark"] .search-products.is-list .catalog-product-purchase {
    border-color: var(--theme-line);
    background: #132232;
}

html[data-theme="dark"] .catalog-empty,
html[data-theme="dark"] .catalog-pagination a,
html[data-theme="dark"] .catalog-pagination a:visited {
    color: var(--theme-text);
    border-color: var(--theme-line);
    background: var(--theme-surface);
}

html[data-theme="dark"] .catalog-cart-dialog {
    color: var(--theme-text);
    border-color: #3c556a;
    background: #111e2c;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
}

html[data-theme="dark"] .catalog-cart-close,
html[data-theme="dark"] .catalog-cart-continue {
    color: #c3d1dd;
    border-color: var(--theme-line);
    background: #1a2b3b;
}

html[data-theme="dark"] .catalog-cart-product {
    border-color: var(--theme-line);
    background: #142334;
}

html[data-theme="dark"] .catalog-cart-heading h2,
html[data-theme="dark"] .catalog-cart-product strong,
html[data-theme="dark"] .catalog-cart-info dd {
    color: var(--theme-text);
}

html[data-theme="dark"] .catalog-cart-info dt,
html[data-theme="dark"] .catalog-cart-product span {
    color: var(--theme-muted);
}

html[data-theme="dark"] .catalog-category-list summary,
html[data-theme="dark"] .catalog-category-list li a,
html[data-theme="dark"] .catalog-category-list li a:visited,
html[data-theme="dark"] .catalog-category-list li a span {
    color: #c2d0dc;
}

html[data-theme="dark"] .catalog-category-list ul {
    border-color: var(--theme-line);
    background: #142334;
}

html[data-theme="dark"] .catalog-category-list li a:hover,
html[data-theme="dark"] .catalog-category-list li a.is-active {
    color: #9bd5fc;
    background: #173650;
}

html[data-theme="dark"] .catalog-mobile-categories,
html[data-theme="dark"] .catalog-mobile-category-forms {
    color: var(--theme-text);
    border-color: var(--theme-line);
    background: var(--theme-surface);
}

html[data-theme="dark"] .catalog-mobile-categories > summary,
html[data-theme="dark"] .catalog-mobile-category-forms label {
    color: #c8d5e0;
}

html[data-theme="dark"] .catalog-mobile-category-forms select {
    color: var(--theme-text);
    border-color: var(--theme-line-strong);
    background: #142334;
}

html[data-theme="dark"] .search-query-panel {
    border-color: var(--theme-line);
    background: var(--theme-surface);
    box-shadow: 0 11px 28px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .search-query-input,
html[data-theme="dark"] .search-query-input:focus {
    color: var(--theme-text);
    border-color: var(--theme-line-strong);
    background: #142334;
}

html[data-theme="dark"] .search-stock-filter,
html[data-theme="dark"] .search-stock-filter:hover {
    color: #d8e4ed;
    border-color: var(--theme-line);
    background: #162638;
}

html[data-theme="dark"] .search-stock-filter-control {
    border-color: #587188;
    background: #0f1c29;
}

html[data-theme="dark"] .search-stock-unavailable,
html[data-theme="dark"] .anons-stock-badge {
    color: var(--theme-amber);
    border-color: #70502b;
    background: var(--theme-amber-soft);
}

html[data-theme="dark"] .search-product-description,
html[data-theme="dark"] .search-product-id,
html[data-theme="dark"] .search-product-status,
html[data-theme="dark"] .search-product-placeholder,
html[data-theme="dark"] .anons-vendor-code,
html[data-theme="dark"] .anons-product-hint {
    color: var(--theme-muted);
}

html[data-theme="dark"] .search-product-placeholder-symbol,
html[data-theme="dark"] .search-details-button,
html[data-theme="dark"] .anons-image-placeholder {
    color: #9fc9e8;
    border-color: var(--theme-line-strong);
    background: #17293a;
}

html[data-theme="dark"] .anons-products-section {
    border-color: var(--theme-line);
    background: var(--theme-surface);
    box-shadow: 0 12px 31px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .anons-toolbar {
    border-color: var(--theme-line);
}

html[data-theme="dark"] .anons-vendor-code strong,
html[data-theme="dark"] .anons-empty h2 {
    color: var(--theme-text);
}

/* Product page */
html[data-theme="dark"] .product-page .product-main a,
html[data-theme="dark"] .product-page .product-main a:visited,
html[data-theme="dark"] .product-breadcrumbs a,
html[data-theme="dark"] .product-breadcrumbs a:visited {
    color: #8ccaf4;
}

html[data-theme="dark"] .product-overview,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .product-notify-modal {
    color: var(--theme-text);
    border-color: var(--theme-line);
    background: var(--theme-surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .product-gallery {
    border-color: #cadbe5;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.98) 0, rgba(255, 255, 255, 0.82) 40%, rgba(229, 242, 248, 0.92) 100%),
        #eef8fc;
}

html[data-theme="dark"] .product-main-image,
html[data-theme="dark"] .product-main-image:visited,
html[data-theme="dark"] .product-thumbnails a,
html[data-theme="dark"] .product-thumbnails a:visited,
html[data-theme="dark"] .product-manufacturer a {
    color: #53677a;
    border-color: #d4e1e9;
    background: #fff;
}

html[data-theme="dark"] .product-summary {
    background: linear-gradient(155deg, #111e2c 0%, #111e2c 56%, #142b3e 100%);
}

html[data-theme="dark"] .product-stock-unavailable {
    color: var(--theme-red);
    border-color: #75434a;
    background: var(--theme-red-soft);
}

html[data-theme="dark"] .product-price {
    border-color: #31516a;
    background: #142a3c;
}

html[data-theme="dark"] .product-price strong,
html[data-theme="dark"] .product-quick-info dd,
html[data-theme="dark"] .product-section-heading h2,
html[data-theme="dark"] .product-spec-list dd,
html[data-theme="dark"] .product-manufacturer strong,
html[data-theme="dark"] .product-review strong,
html[data-theme="dark"] .product-notify-modal h2 {
    color: var(--theme-text);
}

html[data-theme="dark"] .product-buy-form > label,
html[data-theme="dark"] .product-notify label,
html[data-theme="dark"] .product-question label,
html[data-theme="dark"] .product-review-form label,
html[data-theme="dark"] .product-description-copy,
html[data-theme="dark"] .product-review p,
html[data-theme="dark"] .product-empty-note,
html[data-theme="dark"] .product-review-login,
html[data-theme="dark"] .product-question > p,
html[data-theme="dark"] .product-support-card > div:last-child {
    color: #b5c4d0;
}

html[data-theme="dark"] .product-purchase-row input,
html[data-theme="dark"] .product-notify input,
html[data-theme="dark"] .product-question input,
html[data-theme="dark"] .product-question textarea,
html[data-theme="dark"] .product-review-form textarea {
    color: var(--theme-text);
    border-color: var(--theme-line-strong);
    background: #142334;
}

html[data-theme="dark"] .product-quick-info,
html[data-theme="dark"] .product-quick-info > div {
    border-color: var(--theme-line);
}

html[data-theme="dark"] .product-share,
html[data-theme="dark"] .product-share:visited {
    color: #94dfb4;
    border-color: #35634b;
    background: #163526;
}

html[data-theme="dark"] .product-share:hover {
    color: #b4f1cd;
    background: #1c4732;
}

html[data-theme="dark"] .product-notify-modal-close {
    color: #c3d1dd;
    background: #1a2b3b;
}

html[data-theme="dark"] .product-spec-list > div,
html[data-theme="dark"] .product-manufacturer,
html[data-theme="dark"] .product-related .eche > div,
html[data-theme="dark"] .product-review {
    border-color: var(--theme-line);
    background: #152536;
}

html[data-theme="dark"] .product-related .eche a,
html[data-theme="dark"] .product-related .eche a:visited {
    color: #c8d9e5;
}

html[data-theme="dark"] .product-related .eche img {
    padding: 4px;
    border-radius: 7px;
    background: #fff;
}

html[data-theme="dark"] .product-question-notice {
    color: #ffaaaa;
    border-color: #704047;
    background: var(--theme-red-soft);
}

html[data-theme="dark"] .product-question-notice.is-success {
    color: #91e0b3;
    border-color: #35634b;
    background: var(--theme-green-soft);
}

/* Delivery, contacts and buying guide */
html[data-theme="dark"] .delivery-main p,
html[data-theme="dark"] .delivery-main address,
html[data-theme="dark"] .delivery-main li,
html[data-theme="dark"] .delivery-main dt,
html[data-theme="dark"] .delivery-main dd,
html[data-theme="dark"] .contact-main p,
html[data-theme="dark"] .contact-main address,
html[data-theme="dark"] .contact-main li,
html[data-theme="dark"] .contact-main dt,
html[data-theme="dark"] .contact-main dd,
html[data-theme="dark"] .buy-guide-main p,
html[data-theme="dark"] .buy-guide-main li,
html[data-theme="dark"] .buy-guide-main small {
    color: #afbfcc;
}

html[data-theme="dark"] .delivery-navigation,
html[data-theme="dark"] .delivery-section,
html[data-theme="dark"] .contact-navigation,
html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .buy-guide-intro,
html[data-theme="dark"] .buy-guide-navigation,
html[data-theme="dark"] .buy-guide-section,
html[data-theme="dark"] .buy-guide-help {
    color: var(--theme-text);
    border-color: var(--theme-line);
    background: var(--theme-surface);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .delivery-navigation a,
html[data-theme="dark"] .delivery-navigation a:visited,
html[data-theme="dark"] .contact-navigation a,
html[data-theme="dark"] .contact-navigation a:visited,
html[data-theme="dark"] .buy-guide-navigation a,
html[data-theme="dark"] .buy-guide-navigation a:visited {
    color: #c8d6e1 !important;
    background: var(--theme-surface-raised);
}

html[data-theme="dark"] .delivery-navigation a:hover,
html[data-theme="dark"] .contact-navigation a:hover,
html[data-theme="dark"] .buy-guide-navigation a:hover {
    color: #9cd7ff !important;
    background: var(--theme-blue-soft);
}

html[data-theme="dark"] .delivery-section-heading,
html[data-theme="dark"] .contact-section-heading,
html[data-theme="dark"] .buy-guide-section-heading {
    border-color: var(--theme-line);
}

html[data-theme="dark"] .delivery-method-card,
html[data-theme="dark"] .delivery-notice,
html[data-theme="dark"] .delivery-checklist,
html[data-theme="dark"] .delivery-service-card,
html[data-theme="dark"] .delivery-alert,
html[data-theme="dark"] .delivery-payment-card,
html[data-theme="dark"] .delivery-contact-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .contact-shop-card,
html[data-theme="dark"] .contact-map,
html[data-theme="dark"] .contact-route-card,
html[data-theme="dark"] .contact-about,
html[data-theme="dark"] .contact-about-copy,
html[data-theme="dark"] .contact-about-facts > div,
html[data-theme="dark"] .contact-help-card,
html[data-theme="dark"] .buy-guide-intro-note,
html[data-theme="dark"] .buy-guide-step,
html[data-theme="dark"] .buy-guide-order-flow article,
html[data-theme="dark"] .buy-guide-info-card,
html[data-theme="dark"] .buy-guide-status-note {
    color: var(--theme-text);
    border-color: var(--theme-line);
    background: #152536;
    box-shadow: none;
}

html[data-theme="dark"] .delivery-method-card.is-featured,
html[data-theme="dark"] .buy-guide-info-card.is-accent,
html[data-theme="dark"] .delivery-notice.is-soft {
    border-color: #315a78;
    background: #142c40;
}

html[data-theme="dark"] .delivery-method-label,
html[data-theme="dark"] .delivery-payment-label,
html[data-theme="dark"] .delivery-contact-label,
html[data-theme="dark"] .contact-card-label,
html[data-theme="dark"] .buy-guide-intro-note > span,
html[data-theme="dark"] .buy-guide-info-label {
    color: #9ed7fa;
    background: #1b3b53;
}

html[data-theme="dark"] .delivery-method-number {
    color: #294257;
}

html[data-theme="dark"] .delivery-method-card.is-featured .delivery-method-number {
    color: #335875;
}

html[data-theme="dark"] .delivery-method-card h3,
html[data-theme="dark"] .delivery-notice h3,
html[data-theme="dark"] .delivery-service-content h3,
html[data-theme="dark"] .delivery-contact-card h3,
html[data-theme="dark"] .delivery-checklist > strong,
html[data-theme="dark"] .contact-card h3,
html[data-theme="dark"] .contact-route-card h3,
html[data-theme="dark"] .contact-map-consent h3,
html[data-theme="dark"] .contact-about-facts strong,
html[data-theme="dark"] .contact-help-card h3,
html[data-theme="dark"] .buy-guide-intro-note strong,
html[data-theme="dark"] .buy-guide-step h3,
html[data-theme="dark"] .buy-guide-order-flow h3,
html[data-theme="dark"] .buy-guide-info-card h3,
html[data-theme="dark"] .buy-guide-status-note strong {
    color: var(--theme-text);
}

html[data-theme="dark"] .delivery-method-note {
    color: var(--theme-muted) !important;
    border-color: var(--theme-line);
}

html[data-theme="dark"] .delivery-service-logo,
html[data-theme="dark"] .delivery-payment-logo,
html[data-theme="dark"] .contact-building {
    border-color: #d6e1e8;
    background: #fff;
}

html[data-theme="dark"] .contact-map-consent,
html[data-theme="dark"] .contact-about-copy {
    background: #132334;
}

html[data-theme="dark"] .contact-address {
    color: #bccbd7 !important;
}

html[data-theme="dark"] .contact-list a,
html[data-theme="dark"] .contact-list a:link,
html[data-theme="dark"] .contact-list a:visited,
html[data-theme="dark"] .contact-help-card > a,
html[data-theme="dark"] .contact-help-card > a:visited {
    color: #7bc5f4;
}

html[data-theme="dark"] .buy-guide-intro-copy > p:not(.buy-guide-kicker),
html[data-theme="dark"] .buy-guide-step-label,
html[data-theme="dark"] .buy-guide-main a:not(.catalog-button),
html[data-theme="dark"] .buy-guide-main a:not(.catalog-button):visited {
    color: #a9c8df;
}

html[data-theme="dark"] .buy-guide-step-number,
html[data-theme="dark"] .buy-guide-order-flow article > span {
    color: #a2d9fb;
    border-color: #355e7b;
    background: #183a55;
}

html[data-theme="dark"] .buy-guide-step small {
    color: #b5c7d4;
    border-color: #4d8ab2;
    background: #172b3d;
}

/* Cart */
html[data-theme="dark"] .cart-summary-card,
html[data-theme="dark"] .cart-panel,
html[data-theme="dark"] .cart-item,
html[data-theme="dark"] .cart-help-card,
html[data-theme="dark"] .cart-empty {
    color: var(--theme-text);
    border-color: var(--theme-line);
    background: var(--theme-surface);
    box-shadow: 0 12px 31px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .cart-panel-heading,
html[data-theme="dark"] .cart-list-head,
html[data-theme="dark"] .cart-summary-card dl > div,
html[data-theme="dark"] .cart-summary-card .cart-summary-total {
    border-color: var(--theme-line);
}

html[data-theme="dark"] .cart-panel-heading > div > span,
html[data-theme="dark"] .cart-list-head,
html[data-theme="dark"] .cart-product small,
html[data-theme="dark"] .cart-item-total span,
html[data-theme="dark"] .cart-delivery-field small,
html[data-theme="dark"] .cart-delivery-meta span,
html[data-theme="dark"] .cart-summary-card dt,
html[data-theme="dark"] .cart-summary-card dt small,
html[data-theme="dark"] .cart-checkout-form > p {
    color: var(--theme-muted);
}

html[data-theme="dark"] .cart-panel-heading h1,
html[data-theme="dark"] .cart-panel-heading h2,
html[data-theme="dark"] .cart-product-name,
html[data-theme="dark"] .cart-product-name:visited,
html[data-theme="dark"] .cart-item-total strong,
html[data-theme="dark"] .cart-delivery-meta strong,
html[data-theme="dark"] .cart-summary-card h2,
html[data-theme="dark"] .cart-summary-card dd,
html[data-theme="dark"] .cart-summary-total dt,
html[data-theme="dark"] .cart-summary-total dd,
html[data-theme="dark"] .cart-help-card h2,
html[data-theme="dark"] .cart-empty h1 {
    color: var(--theme-text);
}

html[data-theme="dark"] .cart-product-image,
html[data-theme="dark"] .cart-product-image:visited {
    border-color: #d4e1e8;
    background: #fff;
}

html[data-theme="dark"] .cart-quantity-control,
html[data-theme="dark"] .cart-quantity-control input,
html[data-theme="dark"] .cart-delivery-field select,
html[data-theme="dark"] .cart-checkout-form textarea {
    color: var(--theme-text);
    border-color: var(--theme-line-strong);
    background: #142334;
}

html[data-theme="dark"] .cart-quantity-control button,
html[data-theme="dark"] .cart-update-button {
    color: #afd9f3;
    border-color: var(--theme-line);
    background: #1a2d40;
}

html[data-theme="dark"] .cart-insurance-option,
html[data-theme="dark"] .cart-delivery-meta > div {
    color: var(--theme-text);
    border-color: var(--theme-line);
    background: #152536;
}

html[data-theme="dark"] .cart-additional-notice,
html[data-theme="dark"] .cart-page-notice,
html[data-theme="dark"] .cart-cdek-result,
html[data-theme="dark"] .cart-pending-note {
    color: #bde5cd;
    border-color: #35634b;
    background: var(--theme-green-soft);
}

html[data-theme="dark"] .cart-warning,
html[data-theme="dark"] .cart-cdek-result.is-unavailable,
html[data-theme="dark"] .cart-summary-warning {
    color: #f1cc8d;
    border-color: #6c512d;
    background: var(--theme-amber-soft);
}

html[data-theme="dark"] .cart-cdek-result.is-error {
    color: #ffaaaa;
    border-color: #704047;
    background: var(--theme-red-soft);
}

/* Login, registration, password recovery and account */
html[data-theme="dark"] .login-panel,
html[data-theme="dark"] .login-register-card,
html[data-theme="dark"] .login-benefits,
html[data-theme="dark"] .registration-section,
html[data-theme="dark"] .remember-panel,
html[data-theme="dark"] .remember-steps-card,
html[data-theme="dark"] .remember-help-card,
html[data-theme="dark"] .account-card,
html[data-theme="dark"] .account-orders-card,
html[data-theme="dark"] .account-help-card {
    color: var(--theme-text);
    border-color: var(--theme-line);
    background: var(--theme-surface);
    box-shadow: 0 12px 31px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .login-panel-heading,
html[data-theme="dark"] .registration-section-heading,
html[data-theme="dark"] .registration-actions,
html[data-theme="dark"] .account-card-heading,
html[data-theme="dark"] .account-profile-section + .account-profile-section,
html[data-theme="dark"] .account-profile-actions,
html[data-theme="dark"] .account-orders-heading {
    border-color: var(--theme-line);
}

html[data-theme="dark"] .login-panel h1,
html[data-theme="dark"] .login-register-card h2,
html[data-theme="dark"] .login-benefits h3,
html[data-theme="dark"] .login-benefits li strong,
html[data-theme="dark"] .registration-section-heading h2,
html[data-theme="dark"] .registration-company summary strong,
html[data-theme="dark"] .registration-actions strong,
html[data-theme="dark"] .remember-steps-card h2,
html[data-theme="dark"] .remember-steps strong,
html[data-theme="dark"] .account-card-heading h2,
html[data-theme="dark"] .account-orders-heading h2,
html[data-theme="dark"] .account-help-card h2,
html[data-theme="dark"] .account-profile-section h3,
html[data-theme="dark"] .account-detail-grid dd,
html[data-theme="dark"] .account-order-copy strong,
html[data-theme="dark"] .account-empty-state strong {
    color: var(--theme-text);
}

html[data-theme="dark"] .login-register-card > p,
html[data-theme="dark"] .login-register-card > span,
html[data-theme="dark"] .login-panel-heading > span,
html[data-theme="dark"] .login-benefits li small,
html[data-theme="dark"] .registration-section-heading > div > span,
html[data-theme="dark"] .registration-field-help,
html[data-theme="dark"] .registration-company summary small,
html[data-theme="dark"] .registration-actions p,
html[data-theme="dark"] .remember-field-help,
html[data-theme="dark"] .remember-steps small,
html[data-theme="dark"] .remember-help-card p,
html[data-theme="dark"] .account-card-heading > div > span,
html[data-theme="dark"] .account-detail-grid dt,
html[data-theme="dark"] .account-empty-copy,
html[data-theme="dark"] .account-order-copy small,
html[data-theme="dark"] .account-empty-state p {
    color: var(--theme-muted);
}

html[data-theme="dark"] .login-field > label,
html[data-theme="dark"] .login-field-heading label,
html[data-theme="dark"] .registration-field label,
html[data-theme="dark"] .registration-login-link {
    color: #c3d1dd;
}

html[data-theme="dark"] .login-field input,
html[data-theme="dark"] .registration-field input,
html[data-theme="dark"] .registration-field select,
html[data-theme="dark"] .registration-field textarea {
    color: var(--theme-text);
    border-color: var(--theme-line-strong);
    background: #142334;
}

html[data-theme="dark"] .login-field input:hover,
html[data-theme="dark"] .login-field input:focus,
html[data-theme="dark"] .registration-field input:hover,
html[data-theme="dark"] .registration-field input:focus,
html[data-theme="dark"] .registration-field select:focus,
html[data-theme="dark"] .registration-field textarea:hover,
html[data-theme="dark"] .registration-field textarea:focus {
    border-color: #5592bd;
    background: #17283a;
}

html[data-theme="dark"] .login-password-toggle,
html[data-theme="dark"] .registration-password-toggle {
    color: #a8c9e0;
    border-color: var(--theme-line);
    background: #1b2e41;
}

html[data-theme="dark"] .registration-company,
html[data-theme="dark"] .registration-company-content,
html[data-theme="dark"] .registration-actions,
html[data-theme="dark"] .account-detail-grid > div,
html[data-theme="dark"] .account-empty-copy,
html[data-theme="dark"] .account-order,
html[data-theme="dark"] .account-order:visited,
html[data-theme="dark"] .account-empty-state.is-compact {
    color: var(--theme-text);
    border-color: var(--theme-line);
    background: #152536;
}

html[data-theme="dark"] .registration-company summary,
html[data-theme="dark"] .account-order {
    border-color: var(--theme-line);
}

html[data-theme="dark"] .login-security-note,
html[data-theme="dark"] .remember-spam-note,
html[data-theme="dark"] .account-edit-lock,
html[data-theme="dark"] .account-alert {
    color: #f0cc8e;
    border-color: #6c512d;
    background: var(--theme-amber-soft);
}

html[data-theme="dark"] .login-security-note {
    color: #d9b978;
    border-color: transparent;
    background: transparent;
}

html[data-theme="dark"] .login-alert,
html[data-theme="dark"] .registration-alert,
html[data-theme="dark"] .remember-alert.is-error {
    color: #ffaaaa;
    border-color: #704047;
    background: var(--theme-red-soft);
}

html[data-theme="dark"] .remember-alert.is-success {
    color: #a6e8c1;
    border-color: #35634b;
    background: var(--theme-green-soft);
}

html[data-theme="dark"] .remember-help-card a,
html[data-theme="dark"] .remember-help-card a:link,
html[data-theme="dark"] .remember-help-card a:visited {
    color: #a8daf8;
    border-color: #3f6a87;
    background: #172c3e;
}

html[data-theme="dark"] .account-logout-form button {
    color: #ffb2b2;
    border-color: #704047;
    background: #342127;
}

/* Payment page */
html[data-theme="dark"] .payment-panel,
html[data-theme="dark"] .payment-summary-card,
html[data-theme="dark"] .payment-method-card,
html[data-theme="dark"] .payment-help-card,
html[data-theme="dark"] .payment-status-card,
html[data-theme="dark"] .payment-widget-shell {
    color: var(--theme-text);
    border-color: var(--theme-line);
    background: var(--theme-surface);
    box-shadow: 0 12px 31px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .payment-panel-heading,
html[data-theme="dark"] .payment-section-heading,
html[data-theme="dark"] .payment-summary-card dl > div,
html[data-theme="dark"] .payment-summary-card .payment-summary-total {
    border-color: var(--theme-line);
}

html[data-theme="dark"] .payment-panel-heading h1,
html[data-theme="dark"] .payment-panel-heading h2,
html[data-theme="dark"] .payment-method-card h3,
html[data-theme="dark"] .payment-card-number,
html[data-theme="dark"] .payment-summary-card h2,
html[data-theme="dark"] .payment-summary-card dd,
html[data-theme="dark"] .payment-summary-total dt,
html[data-theme="dark"] .payment-summary-total dd,
html[data-theme="dark"] .payment-help-card h2,
html[data-theme="dark"] .payment-status-card strong {
    color: var(--theme-text);
}

html[data-theme="dark"] .payment-panel-heading > span,
html[data-theme="dark"] .payment-method-card p,
html[data-theme="dark"] .payment-summary-card dt,
html[data-theme="dark"] .payment-summary-card dt small,
html[data-theme="dark"] .payment-status-description,
html[data-theme="dark"] .payment-file-field small {
    color: var(--theme-muted);
}

html[data-theme="dark"] .payment-method-card.is-featured {
    border-color: #386888;
    background: #142b3e;
}

html[data-theme="dark"] .payment-method-topline > span,
html[data-theme="dark"] .payment-method-topline img {
    border-color: #d5e1e8;
    background: #fff;
}

html[data-theme="dark"] .payment-card-number,
html[data-theme="dark"] .payment-file-field input[type="file"] {
    border-color: var(--theme-line-strong);
    background: #142334;
}

html[data-theme="dark"] .payment-file-field input[type="file"]::file-selector-button {
    color: #cfe2ef;
    border-color: var(--theme-line);
    background: #1a3043;
}

html[data-theme="dark"] .payment-order-table table,
html[data-theme="dark"] .payment-order-table th,
html[data-theme="dark"] .payment-order-table td {
    color: var(--theme-text) !important;
    border-color: var(--theme-line) !important;
    background: #132232 !important;
}

html[data-theme="dark"] .payment-order-table th {
    background: #1a3043 !important;
}

html[data-theme="dark"] .payment-notice,
html[data-theme="dark"] .payment-feedback,
html[data-theme="dark"] .payment-receipt-ready,
html[data-theme="dark"] .payment-widget-status {
    color: #bde5cd;
    border-color: #35634b;
    background: var(--theme-green-soft);
}

html[data-theme="dark"] .payment-notice.is-warning {
    color: #f0cc8e;
    border-color: #6c512d;
    background: var(--theme-amber-soft);
}

html[data-theme="dark"] .payment-feedback.is-error {
    color: #ffaaaa;
    border-color: #704047;
    background: var(--theme-red-soft);
}

html[data-theme="dark"] .payment-receipt-preview {
    border-color: #d5e1e8;
    background: #fff;
}

/* Compact result pages used after registration, payment and notifications. */
.legacy-message-page .cont {
    float: none;
    width: auto;
}

.legacy-message-page .left {
    display: none !important;
}

.legacy-message-page .legacy-message-card {
    display: block;
    width: auto;
    max-width: 760px;
    min-height: 0;
    margin: 34px auto 50px;
    padding: clamp(28px, 5vw, 52px);
    color: #33475b;
    text-align: center;
    border: 1px solid #d8e7ef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(25, 83, 116, 0.1);
    box-sizing: border-box;
}

.legacy-message-page .legacy-message-card .zagolovok,
.legacy-message-page .legacy-message-card > p:first-child {
    margin: 0 0 18px;
    color: #173f58;
    font: 750 clamp(25px, 4vw, 34px)/1.2 Arial, sans-serif;
}

.legacy-message-page .legacy-message-card h4 {
    margin: 22px 0 14px;
    color: #29445b;
    font: 750 18px/1.3 Arial, sans-serif;
}

.legacy-message-page .legacy-message-card p,
.legacy-message-page .legacy-message-card pre {
    color: #5d7182;
    font: 14px/1.65 Arial, sans-serif;
    white-space: pre-wrap;
}

.legacy-message-page .legacy-message-card .caseUl {
    width: auto !important;
    max-width: 560px;
    margin: 22px auto 0;
}

.legacy-message-page .legacy-message-card .caseUl ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.legacy-message-page .legacy-message-card .caseUl a {
    display: flex;
    min-height: 44px;
    padding: 9px 15px;
    align-items: center;
    justify-content: center;
    color: #176aa8;
    border: 1px solid #c9dfed;
    border-radius: 10px;
    background: #f3f9fd;
}

.legacy-message-page > table.mainborder {
    width: min(100%, 1400px);
}

.legacy-message-page .mainborder table {
    width: 100%;
}

html[data-theme="dark"] .legacy-message-page .legacy-message-card {
    color: var(--theme-text);
    border-color: var(--theme-line);
    background: var(--theme-surface);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .legacy-message-page .legacy-message-card .zagolovok,
html[data-theme="dark"] .legacy-message-page .legacy-message-card > p:first-child,
html[data-theme="dark"] .legacy-message-page .legacy-message-card h4 {
    color: var(--theme-text);
}

html[data-theme="dark"] .legacy-message-page .legacy-message-card p,
html[data-theme="dark"] .legacy-message-page .legacy-message-card pre {
    color: #b8c7d3;
}

html[data-theme="dark"] .legacy-message-page .legacy-message-card .caseUl a,
html[data-theme="dark"] .legacy-message-page .legacy-message-card .caseUl a:visited {
    color: #9ad4f8;
    border-color: #365a72;
    background: #172c3e;
}

html[data-theme="dark"] .legacy-message-page--error .legacy-message-card {
    border-color: #704047;
    background: #251a22;
}

/* Checkout */
html[data-theme="dark"] body.checkout-page {
    color: var(--theme-text);
}

html[data-theme="dark"] body.checkout-page .checkout-title,
html[data-theme="dark"] body.checkout-page .checkout-section-title,
html[data-theme="dark"] body.checkout-page .checkout-login-prompt strong,
html[data-theme="dark"] body.checkout-page #testForm1 .noresize,
html[data-theme="dark"] body.checkout-page .checkout-empty h1 {
    color: var(--theme-text);
}

html[data-theme="dark"] body.checkout-page .checkout-subtitle,
html[data-theme="dark"] body.checkout-page .checkout-summary,
html[data-theme="dark"] body.checkout-page .checkout-login-prompt span,
html[data-theme="dark"] body.checkout-page #TT p,
html[data-theme="dark"] body.checkout-page #testForm1 label,
html[data-theme="dark"] body.checkout-page .checkout-empty p,
html[data-theme="dark"] body.checkout-page .tblzak td::before {
    color: var(--theme-muted);
}

html[data-theme="dark"] body.checkout-page .checkout-card,
html[data-theme="dark"] body.checkout-page #TT,
html[data-theme="dark"] body.checkout-page #testForm1 > div:first-child,
html[data-theme="dark"] body.checkout-page .form1tbl,
html[data-theme="dark"] body.checkout-page #testForm1 > div:last-child,
html[data-theme="dark"] body.checkout-page .checkout-empty,
html[data-theme="dark"] body.checkout-page #tooltip {
    color: var(--theme-text);
    border-color: var(--theme-line);
    background: var(--theme-surface);
    box-shadow: 0 12px 31px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] body.checkout-page .tblzak td,
html[data-theme="dark"] body.checkout-page .tblzak tr {
    color: var(--theme-text);
    border-color: var(--theme-line);
}

html[data-theme="dark"] body.checkout-page .checkout-total td {
    color: var(--theme-text);
    background: #142b3e;
}

html[data-theme="dark"] body.checkout-page .tblzak a,
html[data-theme="dark"] body.checkout-page #nrp a,
html[data-theme="dark"] body.checkout-page #testForm1 a {
    color: #88caf5;
}

html[data-theme="dark"] body.checkout-page .input-group .button,
html[data-theme="dark"] body.checkout-page .caseUl li > a,
html[data-theme="dark"] body.checkout-page .checkout-region-prompt {
    color: #b5daf2;
    border-color: #355a73;
    background: #163149;
}

html[data-theme="dark"] body.checkout-page .input-group .tac,
html[data-theme="dark"] body.checkout-page #TT input[type="text"],
html[data-theme="dark"] body.checkout-page #TT input[type="password"],
html[data-theme="dark"] body.checkout-page #inp0,
html[data-theme="dark"] body.checkout-page #testForm1 input[type="text"],
html[data-theme="dark"] body.checkout-page #testForm1 input[type="tel"],
html[data-theme="dark"] body.checkout-page #testForm1 input[type="email"],
html[data-theme="dark"] body.checkout-page #testForm1 textarea {
    color: var(--theme-text);
    border-color: var(--theme-line-strong);
    background: #142334;
}

html[data-theme="dark"] body.checkout-page #myForm,
html[data-theme="dark"] body.checkout-page #nrp {
    color: #c3d4e0;
    border-color: #355a73;
    background: #142b3e;
}

html[data-theme="dark"] body.checkout-page #testForm1 #p1 label,
html[data-theme="dark"] body.checkout-page #testForm1 #p1 span {
    color: #c4d9e7;
    border-color: var(--theme-line);
    background: #17293a;
}

html[data-theme="dark"] body.checkout-page .checkout-delivery-result {
    color: #b6d8ed;
    border-color: #355a73;
    background: #142b3e;
}

html[data-theme="dark"] body.checkout-page .checkout-delivery-result.is-success {
    color: #a6e8c1;
    border-color: #35634b;
    background: var(--theme-green-soft);
}

html[data-theme="dark"] body.checkout-page .checkout-delivery-result.is-warning {
    color: #f0cc8e;
    border-color: #6c512d;
    background: var(--theme-amber-soft);
}

html[data-theme="dark"] body.checkout-page .checkout-delivery-result.is-error {
    color: #ffaaaa;
    border-color: #704047;
    background: var(--theme-red-soft);
}

html[data-theme="dark"] body.checkout-page .checkout-empty img {
    filter: invert(1) brightness(1.65);
    opacity: 0.78;
}

/* Error page */
html[data-theme="dark"] body.error-page {
    --error-ink: #eaf2f9;
    --error-muted: #a1b1c2;
    --error-line: #2b4054;
}

html[data-theme="dark"] .error-breadcrumbs,
html[data-theme="dark"] .error-breadcrumbs a,
html[data-theme="dark"] .error-breadcrumbs a:visited,
html[data-theme="dark"] .error-search label {
    color: #b0c1cf;
}

html[data-theme="dark"] .error-hero,
html[data-theme="dark"] .error-help-card,
html[data-theme="dark"] .error-reasons li {
    color: var(--theme-text);
    border-color: var(--theme-line);
    background: var(--theme-surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .error-search input {
    color: var(--theme-text);
    border-color: var(--theme-line-strong);
    background: #142334;
}

html[data-theme="dark"] .error-button--secondary,
html[data-theme="dark"] .error-button--secondary:link,
html[data-theme="dark"] .error-button--secondary:visited {
    color: #c9dfed;
    border-color: var(--theme-line-strong);
    background: #17293a;
}

html[data-theme="dark"] .error-button--secondary:hover {
    color: #a5dcff;
    background: #1b3348;
}

/* Legal documents */
html[data-theme="dark"] .legal-document-page {
    color: var(--theme-text);
}

html[data-theme="dark"] .legal-header,
html[data-theme="dark"] .legal-page {
    color: var(--theme-text);
    border-color: var(--theme-line);
    background: rgba(17, 30, 44, 0.96);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .legal-header a,
html[data-theme="dark"] .legal-header a:visited,
html[data-theme="dark"] .legal-header__brand,
html[data-theme="dark"] .legal-header__brand:visited,
html[data-theme="dark"] .legal-page a,
html[data-theme="dark"] .legal-page a:visited {
    color: #83c9f5 !important;
}

html[data-theme="dark"] .legal-page h1,
html[data-theme="dark"] .legal-page h2,
html[data-theme="dark"] .legal-table th {
    color: var(--theme-text);
}

html[data-theme="dark"] .legal-page__date {
    color: var(--theme-muted);
}

html[data-theme="dark"] .legal-table-wrap,
html[data-theme="dark"] .legal-table th,
html[data-theme="dark"] .legal-table td {
    border-color: var(--theme-line);
}

html[data-theme="dark"] .legal-table th {
    background: #1a354a;
}

html[data-theme="dark"] .legal-table td {
    background: #132232;
}

/* Footer and cookie panel are linked after this stylesheet. */
html[data-theme="dark"] .footer {
    background: linear-gradient(135deg, #0b4268 0%, #125b89 100%);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .cookie-notice {
    color: var(--theme-text);
    border-color: #36556c;
    background: #122131;
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .cookie-notice a,
html[data-theme="dark"] .cookie-notice a:visited {
    color: #88cdf7;
}

html[data-theme="dark"] .cookie-notice__button--secondary {
    color: #a8daf8;
    border-color: #4a8eb9;
    background: #172c3e;
}

html[data-theme="dark"] .cookie-notice__button--secondary:hover,
html[data-theme="dark"] .cookie-notice__button--secondary:focus {
    color: #fff;
    background: #1768a7;
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle {
        transition: none;
    }
}

@media print {
    .theme-toggle {
        display: none !important;
    }

    html[data-theme="dark"],
    html[data-theme="dark"] body,
    html[data-theme="dark"] .legal-document-page,
    html[data-theme="dark"] .legal-header,
    html[data-theme="dark"] .legal-page,
    html[data-theme="dark"] .legal-table,
    html[data-theme="dark"] .legal-table th,
    html[data-theme="dark"] .legal-table td {
        color: #000 !important;
        border-color: #bbb !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    html[data-theme="dark"] .legal-page a,
    html[data-theme="dark"] .legal-page a:visited,
    html[data-theme="dark"] .legal-page h1,
    html[data-theme="dark"] .legal-page h2,
    html[data-theme="dark"] .legal-table th {
        color: #000 !important;
    }
}
