/* Rollers.pl · Parking. The palette is inherited by Kadence, WooCommerce
   and blocks loaded after first paint. Brand and product colours stay local. */
html[data-theme="dark"] {
    color-scheme: dark;
    --rr-page: #0b0f1a;
    --rr-card: #151b2a;
    --rr-raised: #1b2236;
    --rr-line: #44506a;
    --rr-field-line: #76829a;
    --rr-text: #f5f6f9;
    --rr-muted: #bdc5d5;
    --rr-link: #91c5ff;
    --rr-media: #1a1b1e;
    --global-palette3: var(--rr-text);
    --global-palette4: #dce1ed;
    --global-palette5: #bdc5d5;
    --global-palette6: #a0adc2;
    --global-palette7: var(--rr-raised);
    --global-palette8: var(--rr-card);
    --global-palette9: var(--rr-page);
    --global-palette9rgb: 11, 15, 26;
    --global-palette-highlight: var(--rr-link);
    --global-palette-highlight-alt: #c3dcff;
    --global-gray-400: var(--rr-field-line);
    --global-gray-500: var(--rr-muted);
    --global-kb-border-color: var(--rr-line);
    --wp--preset--color--theme-palette-3: var(--rr-text);
    --wp--preset--color--theme-palette-8: var(--rr-card);
    --wp--preset--color--theme-palette-9: var(--rr-page);
    background-color: var(--rr-page);
}

html[data-theme="dark"] body {
    color: var(--rr-text);
    background-color: var(--rr-page) !important;
}

/* Header and navigation. Keep the branded top-level mobile menu buttons. */
html[data-theme="dark"] :is(.kb-header-container, .wp-block-kadence-header-row,
    .kb-header-row-inner, .wp-block-kadence-header .kb-row-layout-id130400_9acae4-c0,
    .wp-block-kadence-navigation .sub-menu, .mobile-drawer .drawer-inner,
    .wp-block-kadence-header .kt-accordion-panel-inner) {
    background: var(--rr-card) !important;
    color: var(--rr-text) !important;
    border-color: var(--rr-line) !important;
}
html[data-theme="dark"] .wp-block-kadence-header :is(.sub-menu .kb-link-wrap,
    .kt-blocks-accordion-header, .sub-menu .kb-nav-link-content) {
    color: var(--rr-text) !important;
    background-color: var(--rr-card) !important;
    border-color: var(--rr-line) !important;
}
html[data-theme="dark"] .wp-block-kadence-header :is(.sub-menu .kb-link-wrap:hover,
    .kt-blocks-accordion-header:hover, .sub-menu .kb-nav-link-content:focus-visible) {
    background-color: var(--rr-raised) !important;
}
html[data-theme="dark"] .kb-header-container :is(.wc-block-customer-account,
    .wc-block-customer-account__link, .dgwt-wcas-search-icon) {
    color: var(--rr-text) !important;
    background-color: transparent !important;
}
html[data-theme="dark"] .kb-header-container .dgwt-wcas-search-icon svg path {
    fill: currentColor;
}
html[data-theme="dark"] .wp-block-kadence-header-desktop .kb-navigation > li > .kb-link-wrap > :is(a.kb-nav-link-content, button) {
    color: var(--rr-text) !important;
}
html[data-theme="dark"] .wc-block-mini-cart__quantity-badge .wc-block-mini-cart__badge {
    background-color: #4fe6ff !important;
    color: #142027 !important;
}
html[data-theme="dark"] .kb-header-container :is(.wc-block-mini-cart__button, .wc-block-cart-link) .wc-block-mini-cart__icon {
    color: #b3a2ff !important;
    fill: currentColor !important;
}
/* Only the monochrome caption under the current red wordmark is painted.
   A future replacement logo is displayed as supplied. */
html[data-theme="dark"] .custom-logo-link:has(img[src*="Rollers-Folie-i-narzedzia-dla-specjailistow-black-low-carb"]) {
    display: inline-block;
    position: relative;
    line-height: 0;
}
html[data-theme="dark"] .custom-logo-link:has(img[src*="Rollers-Folie-i-narzedzia-dla-specjailistow-black-low-carb"])::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    background-color: var(--rr-text);
    clip-path: inset(68% 0 0);
    mask: url("/wp-content/uploads/2024/11/Rollers-Folie-i-narzedzia-dla-specjailistow-black-low-carb-320x106.png") center / 100% 100% no-repeat;
}

/* Home and editorial content. Slide images and logo files are untouched. */
html[data-theme="dark"] :is(.rr-home-cel a.rr-home-kafel, .kb-splide .splide__arrow,
    .kb-row-layout-id2437_040ed4-8a, .home .kb-advanced-slide-inner-wrap,
    .has-white-background-color, .entry-hero-container-inner, .site-footer-wrap) {
    color: var(--rr-text) !important;
    background-color: var(--rr-card) !important;
    border-color: var(--rr-line) !important;
}
html[data-theme="dark"] :is(.kt-adv-heading2437_ce7f03-19, .kt-adv-heading2437_c6394d-d0, .kontakt-stat-eyebrow,
    .kadence-bread-current, .kadence-breadcrumb-container, .site-footer-wrap .widget-title) {
    color: var(--rr-text) !important;
}
html[data-theme="dark"] :is(.entry-content p, .site-footer-wrap, .kadence-breadcrumb-container) a:not(.button):not(.wp-element-button) {
    color: var(--rr-link) !important;
}
html[data-theme="dark"] .home p.has-text-align-left.has-text-color.has-background {
    background: var(--rr-card) !important;
    color: var(--rr-text) !important;
}

/* Native controls, Woo blocks and classic checkout. Swatches, photographs,
   checkbox/radio states and branded payment buttons have their own paints. */
html[data-theme="dark"] :is(textarea, select, input:not([type]), input[type="text"],
    input[type="search"], input[type="email"], input[type="password"], input[type="tel"],
    input[type="number"], input[type="url"], input[type="date"], .select2-selection,
    .select2-dropdown, .wc-blocks-components-select__select,
    .wc-block-components-combobox .components-form-token-field__suggestions-list) {
    background-color: var(--rr-raised) !important;
    color: var(--rr-text) !important;
    border-color: var(--rr-field-line) !important;
}
html[data-theme="dark"] :is(input, textarea)::placeholder {
    color: var(--rr-muted) !important;
    opacity: 1;
}
html[data-theme="dark"] .select2-container--default .select2-results__option:is([aria-selected="true"], [data-selected="true"]):not(.select2-results__option--highlighted) {
    background-color: var(--rr-card) !important;
    color: var(--rr-text) !important;
}
html[data-theme="dark"] :is(.select2-selection__rendered, .wc-block-components-text-input label,
    .wc-blocks-components-select__label, .wc-block-components-combobox label) {
    color: var(--rr-muted) !important;
}
html[data-theme="dark"] :is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout,
    .woocommerce-account .woocommerce, .woocommerce form.checkout, .woocommerce-cart-form,
    .wc-block-components-order-summary, .woocommerce table.shop_table) {
    color: var(--rr-text);
    border-color: var(--rr-line);
}
html[data-theme="dark"] :is(.wc-block-components-drawer, .wc-block-components-drawer__content,
    .wc-block-components-sidebar, .wc-block-components-address-card,
    .wc-block-components-radio-control-accordion-option, .wc-block-components-radio-control__option,
    .woocommerce-checkout #payment, .woocommerce-checkout #payment .payment_box,
    .woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-Address,
    .cart_totals, .woocommerce table.shop_table th, .woocommerce-info, .woocommerce-message,
    .woocommerce-error, .wc-block-components-notice-banner, .rr-tool-backorder-note) {
    background-color: var(--rr-card) !important;
    color: var(--rr-text) !important;
    border-color: var(--rr-line);
}
html[data-theme="dark"] .wc-block-components-drawer :is(.wc-block-components-product-name,
    .wc-block-components-totals-item__label, .wc-block-formatted-money-amount) {
    color: var(--rr-text) !important;
}
html[data-theme="dark"] :is(.woocommerce-info, .woocommerce-message, .woocommerce-error,
    .wc-block-components-notice-banner) a:not(.button) { color: var(--rr-link) !important; }
html[data-theme="dark"] :is(.woocommerce-error, .wc-block-components-notice-banner.is-error) {
    border-color: #e78389 !important;
}
html[data-theme="dark"] .woocommerce-message { border-color: #75b89a !important; }
html[data-theme="dark"] .woocommerce .blockUI.blockOverlay { background: var(--rr-card) !important; }
html[data-theme="dark"] .woocommerce abbr.required { color: #ffa5ab !important; }
html[data-theme="dark"] :is(.woocommerce-checkout .place-order #place_order,
    .wc-block-components-product-button__button) {
    background-color: #f7630c !important;
    color: #1a202c !important;
}
html[data-theme="dark"] .wc-block-components-product-button__button > span {
    color: inherit !important;
}

/* FiboSearch, including the separate mobile overlay. */
html[data-theme="dark"] :is(.dgwt-wcas-sf-wrapp, .dgwt-wcas-suggestions-wrapp,
    .dgwt-wcas-details-wrapp, .dgwt-wcas-om-bar, .dgwt-wcas-overlay-mobile,
    .dgwt-wcas-om-return, .dgwt-wcas-suggestion, .dgwt-wcas-details-inner) {
    color: var(--rr-text) !important;
    background-color: var(--rr-card) !important;
    border-color: var(--rr-line) !important;
}
html[data-theme="dark"] :is(input.dgwt-wcas-search-input, .dgwt-wcas-suggestion-selected,
    .dgwt-wcas-suggestion:hover) {
    color: var(--rr-text) !important;
    background-color: var(--rr-raised) !important;
}
html[data-theme="dark"] :is(.dgwt-wcas-st-title, .dgwt-wcas-sp, .dgwt-wcas-details-product-title) {
    color: var(--rr-text) !important;
}
html[data-theme="dark"] .dgwt-wcas-om-return svg path { fill: currentColor !important; }
html[data-theme="dark"] :is(.dgwt-wcas-details-desc, .dgwt-wcas-details-product-sku,
    .dgwt-wcas-sku, .dgwt-wcas-sd) { color: var(--rr-muted) !important; }

/* Catalogue, filters and single product. The neutral colour belongs to the
   surround, never to an individual sample or an image. */
html[data-theme="dark"] :is(.woocommerce ul.products li.product .product-details,
    .wc-block-grid__product, .rr-seo-switch-link:not(.is-current), .rr-ff-w, .rr-fp-p,
    .rr-im > summary, .rr-im-b, .rr-film-dd__trigger, .rr-film-dd__panel,
    .rr-kz-pasek, .rr-kz-pasek button:not(.rr-kz-pasek-kup),
    .rr-fast-summary-col, .rr-fast-summary-col .quantity, .rr-fast-tabs-section,
    .rr-fast-cutting-notice, .rr-fast-tab-content table.shop_attributes th,
    .rr-kz-opis-btn, .rr-tds-row),
html[data-theme="dark"] :is(.rr-film-dd__opt, .rr-fast-tab-link) {
    color: var(--rr-text) !important;
    background-color: var(--rr-card) !important;
    border-color: var(--rr-line) !important;
}
html[data-theme="dark"] .rr-tds-row {
    background-image: none !important;
}
html[data-theme="dark"] .rr-tds-row > div > div {
    color: var(--rr-text) !important;
}
html[data-theme="dark"] .rr-tds-row :is(a:not([download]), button) {
    color: var(--rr-link) !important;
    background-color: var(--rr-raised) !important;
    border-color: var(--rr-line) !important;
}
html[data-theme="dark"] :is(.rr-film-dd__opt:hover, .rr-film-dd__opt--active,
    .rr-fast-tab-item.is-active .rr-fast-tab-link, .rr-home-cel .rr-home-kafel:hover) {
    background-color: var(--rr-raised) !important;
}
html[data-theme="dark"] :is(.rr-fast-product-container, .rr-fast-gallery-col .product_title,
    .rr-fast-breadcrumbs, .rr-fast-related-title, .rr-kz-dost-od, .rr-kz-pasek-cena,
    .rr-film-dd__name, .rr-film-dd__total, .rr-film-dd__price, .rr-im-t,
    .rr-fast-summary-col form.cart .variations label, .rr-fast-tab-content) {
    color: var(--rr-text) !important;
}
html[data-theme="dark"] :is(.rr-film-pre .rr-film-stand, .rr-film-dd__strike,
    .rr-film-dd__permb, .rr-film-dd__sub, .rr-fp-p span, .rr-film-roll-hint,
    .rr-im-n, .rr-kz-pasek-cena small, .rr-fast-summary-col .woocommerce-price-suffix) {
    color: var(--rr-muted) !important;
}
html[data-theme="dark"] :is(.product-details .price, .rr-fast-product-container .price,
    .rr-fast-breadcrumbs a, .woocommerce-pagination .page-numbers:not(.current)) {
    color: var(--rr-link) !important;
}
html[data-theme="dark"] :is(.wc-block-components-product-sale-badge, .woocommerce span.onsale) {
    color: var(--rr-text) !important;
    background-color: var(--rr-raised) !important;
    border-color: var(--rr-line) !important;
}
html[data-theme="dark"] .rr-film-dd__arrow { border-color: var(--rr-muted) !important; }
html[data-theme="dark"] .nav-links a.page-numbers {
    background-color: var(--rr-card) !important;
    color: var(--rr-link) !important;
}
html[data-theme="dark"] .archive .kt-blocks-accordion-header {
    background-color: var(--rr-card) !important;
    color: var(--rr-text) !important;
}
html[data-theme="dark"] .archive .kt-blocks-accordion-title { color: inherit !important; }
html[data-theme="dark"] :is(.stock .custom-availability-status.in-stock,
    .rr-film-active .rr-film-ship .custom-availability-status.in-stock,
    .rr-film-active .woocommerce-variation-price .rr-film-pre .rr-film-pill,
    .rr-film-backorder-note) { color: #8ed8aa !important; }
html[data-theme="dark"] :is(.rr-film-backorder-note, .rr-ask-backorder-note) {
    background-color: var(--rr-card) !important;
}
html[data-theme="dark"] .rr-ask-backorder-note { color: #ffa5ab !important; }
html[data-theme="dark"] .woocommerce-cart-form .product-price .amount {
    color: var(--rr-text) !important;
}
html[data-theme="dark"] .wp-block-kadence-header .sub-menu .kt-blocks-accordion-title {
    color: var(--rr-text) !important;
}
html[data-theme="dark"] :is(.woocommerce-loop-image-link, .wc-block-components-product-image,
    .rr-fast-gallery-box, .rr-fast-main-image-wrap,
    .rr-fast-thumb-item, .woocommerce-product-gallery.rr-wc-gallery-preview-ready .flex-viewport,
    .woocommerce-product-gallery.rr-wc-gallery-preview-ready .rr-wc-gallery-sticky-wrap) {
    background-color: var(--rr-media) !important;
    border-color: var(--rr-line) !important;
}

/* Visualizer chrome on the product page, leaving photographic content and
   coloured controls under the visualizer's own styles. */
html[data-theme="dark"] :is(.rv-wrap, .rv-wrap .rv-form-box, .rv-wrap .rv-upload-box, .rv-wrap .rv-advanced,
    .rv-wrap .rv-refbox, .rv-wrap .rv-ref-saved, .rv-wrap .rv-ref-drop,
    .rv-wrap .rv-gallery-details, .rv-wrap .rv-vw-wrap, .rv-wrap .rv-vw-card,
    .rv-wrap .rv-cs-semantic-box, .rv-wrap .rv-vw-zero-state, .rv-wrap .rv-vw-rodo-terms) {
    background-color: var(--rr-card) !important;
    color: var(--rr-text) !important;
    border-color: var(--rr-line) !important;
}
html[data-theme="dark"] .rv-wrap :is(.rv-header, .rv-upload-box-summary,
    .rv-advanced-summary, .rv-or span, .rv-ref-drop-text, .rv-ref-drop-sub,
    .rv-ref-hint, .rv-gallery-summary, .rv-status, .rv-used-foil, .rv-label-title,
    .rv-check, .rv-vw-card-title, .rv-vw-zero-state strong, .rv-vw-empty-leads-title, label) { color: var(--rr-text) !important; }
html[data-theme="dark"] .rv-wrap .rv-vw-zero-state { background-image: none !important; }
html[data-theme="dark"] .rv-wrap :is(.rv-meta, .rv-vw-profile, .rv-vw-note, .rv-vw-card-meta, .rv-vw-empty-leads-desc) {
    color: var(--rr-muted) !important;
}
html[data-theme="dark"] .rv-wrap :is(.rv-vw-card-portfolio-cta, .rv-vw-card-meta a, .rv-vw-rodo-terms a) {
    color: var(--rr-link) !important;
}
html[data-theme="dark"] .rv-wrap .rv-vw-cat-tag {
    color: var(--rr-muted) !important;
    background-color: var(--rr-card) !important;
    border-color: var(--rr-field-line) !important;
}
html[data-theme="dark"] .rv-wrap .rv-btn.rv-btn-standard { color: #101726 !important; }
html[data-theme="dark"] .rv-vw-teaser-secondary-btn.rv-vw-btn-applicators,
html[data-theme="dark"] .rv-wrap .rv-vw-teaser-secondary-btn.rv-vw-btn-my-leads {
    background-color: var(--rr-raised) !important;
    color: var(--rr-text) !important;
}

/* Quote form: applicator contacts, result messages and missing consent. */
html[data-theme="dark"] .rv-wrap .rv-vw-contact-item a { color: var(--rr-link) !important; }
html[data-theme="dark"] .rv-wrap .rv-vw-contact-item a:hover { color: var(--global-palette-highlight-alt) !important; }
html[data-theme="dark"] .rv-wrap .rv-vw-contact-item .rv-vw-card-ico { color: var(--rr-muted) !important; }
html[data-theme="dark"] .rv-wrap .rv-vw-status.rv-vw-ok { color: #8ed8aa !important; }
html[data-theme="dark"] .rv-wrap .rv-vw-status.rv-vw-err { color: #ffa5ab !important; }
html[data-theme="dark"] .rv-wrap .rv-vw-rodo-terms.rv-vw-field-missing-pulse {
    background-color: #2a1a10 !important;
    border-color: #ff9a4d !important;
    box-shadow: 0 0 0 3px rgba(255, 154, 77, .35) !important;
}

/* Customer's existing quote requests: list cards, the account link and the
   detail dialog opened from a card. Status badges keep their own colours. */
html[data-theme="dark"] :is(.rv-wrap .rv-lc, .rv-vw-leads-deeplink, .rv-ld-modal, .rv-ld-header, .rv-ld-loading) {
    background: var(--rr-card) !important;
    color: var(--rr-text) !important;
    border-color: var(--rr-line) !important;
}
html[data-theme="dark"] :is(.rv-wrap .rv-lc-top, .rv-wrap .rv-lc-media, .rv-wrap .rv-lc-offers,
    .rv-ld-section-title, .rv-ld-footer) { border-color: var(--rr-line) !important; }
html[data-theme="dark"] :is(.rv-wrap .rv-lc-row strong, .rv-wrap .rv-lc-media-label,
    .rv-ld-title, .rv-ld-section-title, .rv-ld-field strong, .rv-ld-close:hover,
    .rv-vw-leads-deeplink) { color: var(--rr-text) !important; }
html[data-theme="dark"] :is(.rv-wrap .rv-lc-row, .rv-wrap .rv-lc-label, .rv-wrap .rv-lc-contact,
    .rv-wrap .rv-lc-date, .rv-wrap .rv-lc-notes,
    .rv-vw-leads-deeplink-meta, .rv-vw-leads-deeplink-arrow,
    .rv-ld-field, .rv-ld-label, .rv-ld-date, .rv-ld-close, .rv-ld-notes) { color: var(--rr-muted) !important; }
html[data-theme="dark"] :is(.rv-wrap .rv-lc-row a, .rv-ld-field a) { color: var(--rr-link) !important; }
html[data-theme="dark"] .rv-wrap .rv-lc-offers-accepted { color: #8ed8aa !important; background-color: #12261d !important; }
html[data-theme="dark"] .rv-wrap .rv-lc-offers-active { color: #cdb8ff !important; background-color: #211a36 !important; }
html[data-theme="dark"] .rv-wrap .rv-lc-offers-waiting { color: var(--rr-muted) !important; background-color: var(--rr-raised) !important; }
html[data-theme="dark"] .rv-ld-offer-accepted { color: #8ed8aa !important; }
html[data-theme="dark"] .rv-ld-offer-active { color: #cdb8ff !important; }
html[data-theme="dark"] .rv-ld-offer-waiting { color: var(--rr-muted) !important; }
html[data-theme="dark"] :is(.rv-ld-notes, .rv-ld-input, .rv-ld-textarea) {
    background-color: var(--rr-raised) !important;
    color: var(--rr-text) !important;
    border-color: var(--rr-field-line) !important;
}

/* My account › quote requests (.rv-vw-rd, inline styles in rv_mobile_api.php).
   Most surfaces read --rd-*; the rest are fixed light colours. The rainbow
   stripe, card hero gradient and dark action buttons stay as they are. */
html[data-theme="dark"] .rv-vw-rd {
    --rd-bg: var(--rr-page);
    --rd-surface: var(--rr-card);
    --rd-surface-2: var(--rr-raised);
    --rd-border: var(--rr-line);
    --rd-border-2: var(--rr-raised);
    --rd-ink: var(--rr-text);
    --rd-ink-2: #dce1ed;
    --rd-ink-3: var(--rr-muted);
    --rd-ink-4: #a0adc2;
    --rd-accent: #a5b4fc;
    --rd-accent-soft: rgba(165, 180, 252, .16);
    --rd-ok: #8ed8aa;
    --rd-warn: var(--rr-muted);
    --rd-hot: #ffa5ab;
    --rd-info: var(--rr-link);
}
html[data-theme="dark"] :is(.rv-vw-client-prefs-banner, .rv-vw-client-prefs-banner-body,
    .rv-vw-client-mail-prefs.rv-vw-client-prefs-banner .rv-vw-client-prefs-banner-hero,
    .rv-vw-rd-card-body .rv-vw-rd-cells .cell, .rv-vw-rd-card-body .rv-vw-rd-cells .rv-inbox-cell,
    .rv-vw-rd-card-body .rv-vw-rd-notes, .rv-vw-rd-card-body .rv-vw-rd-photos,
    .rv-vw-rd-card-body .rv-vw-rd-film, .rv-vw-rd-module, .rv-vw-rd-card-body .rv-c25-spec,
    .rv-vw-rd-card-body .rv-c25-spec-form, .rv-vw-rd-card-body .rv-c25-spec-body,
    .rv-vw-rd-card-body .rv-c25-spec-empty, .rv-vw-rd-card-body .rv-vw-prefs-summary--inline,
    .rv-vw-rd-module .rv-vw-rd-chat--embedded, .rv-vw-rd-module--chat > .rv-vw-rd-chat,
    .rv-vw-rd-chat-fold.rv-vw-rd-module > .rv-vw-rd-chat, .rv-vw-rd-offer-form) {
    background: var(--rr-card) !important;
    color: var(--rr-text) !important;
    border-color: var(--rr-line) !important;
}
html[data-theme="dark"] :is(.rv-vw-rd-card-body, .rv-vw-rd-module-head,
    .rv-vw-rd-chat-fold.rv-vw-rd-module > summary, .rv-vw-rd-chat-fold.rv-vw-rd-module > summary::after,
    .rv-vw-rd-card-body .rv-c25-spec-head, .rv-vw-rd-offer-form-title,
    .rv-vw-lead-photo-add-slot:is(:hover, :focus-within)) {
    background: var(--rr-raised) !important;
    color: var(--rr-text) !important;
    border-color: var(--rr-line) !important;
}
html[data-theme="dark"] .rv-vw-rd-card-body .rv-c25-spec-input {
    background-color: var(--rr-raised) !important;
    color: var(--rr-text) !important;
    border-color: var(--rr-field-line) !important;
}
html[data-theme="dark"] :is(.rv-vw-client-prefs-banner-title,
    .rv-vw-client-mail-prefs.rv-vw-client-prefs-banner .rv-vw-client-prefs-banner-hero) { color: var(--rr-text) !important; }
html[data-theme="dark"] :is(.rv-vw-client-prefs-banner-icon, .rv-vw-client-prefs-banner-hint,
    .rv-vw-client-prefs-banner-chevron, .rv-vw-rd-card-body > .rv-vw-rd-section-label,
    .rv-vw-rd-card-body .rv-vw-rd-cells :is(.cell, .rv-inbox-cell) .lab,
    .rv-vw-lead-photo-add-icon) { color: var(--rr-muted) !important; }
html[data-theme="dark"] :is(.rv-vw-rd .rv-c25-msg.is-mine, .rv-vw-rd .rv-vw-rd-qa .rv-vw-rd-btn.is-hot,
    .rv-vw-rd .rv-vw-qa-btn.is-hot, .rv-vw-rd-pill.is-new-tag, .rv-vw-rd-pill.is-info-tag,
    .rv-vw-rd-inbox-head .cnt, .rv-vw-rd-row.is-unread .rv-vw-rd-avatar, .rv-vw-rd-exclusive) {
    color: #c3cdff !important;
}
html[data-theme="dark"] .rv-vw-rd-decide {
    background: var(--rr-raised) !important;
    border-color: var(--rr-line) !important;
}
html[data-theme="dark"] .rv-vw-rd-decide > span,
html[data-theme="dark"] .rv-vw-rd-cells .val[style*="color"] { color: var(--rr-muted) !important; }
html[data-theme="dark"] .rv-vw-rd-photos-flash.is-notice { background: #12261d !important; color: #8ed8aa !important; }
html[data-theme="dark"] .rv-vw-rd-photos-flash.is-error { background: #2c1518 !important; color: #ffa5ab !important; }
html[data-theme="dark"] .rv-vw-rd-state.is-accepted { background: #12261d !important; }
html[data-theme="dark"] .rv-vw-rd-state.is-accepted .rv-vw-rd-state-hd { color: #8ed8aa !important; }

/* Customer chat and reviews. Keep the author distinction and the rating. */
html[data-theme="dark"] :is(#rr-chat-panel, #rr-chat-composer, #rr-chat-input-area,
    #rr-chat-tease, .rr-msg.bot, .rr-quick-prompt, .rr-op-hand),
html[data-theme="dark"] :is(.rr-op-wrap .rr-op-sum, .rr-op-wrap .rr-op-trust,
    .rr-op-wrap .rr-op-f, .rr-op-wrap .rr-op-more,
    .rr-op-wrap .rr-op-item, .rr-op-wrap .rr-op-note, .rr-op-wrap .rr-op-reply,
    .rr-op-karta-wiecej > summary, .rr-op-wrap .rr-op-tag) {
    background-color: var(--rr-card) !important;
    color: var(--rr-text) !important;
    border-color: var(--rr-line) !important;
}
html[data-theme="dark"] :is(#rr-chat-tease, .rr-op-hand) { background-image: none !important; }
html[data-theme="dark"] #rr-chat-tease::after {
    background-color: var(--rr-card) !important;
    border-color: var(--rr-line) !important;
}
html[data-theme="dark"] .rr-op-wrap :is(.rr-op-tag, .rr-op-f).is-on {
    background-color: var(--rr-link) !important;
    border-color: var(--rr-link) !important;
    color: var(--rr-page) !important;
}
html[data-theme="dark"] .rr-op-wrap .rr-op-tag.is-on span { color: inherit; }
html[data-theme="dark"] .rr-op-wrap { --rr-op-mut: var(--rr-muted); --rr-op-bd: var(--rr-line); }
html[data-theme="dark"] .rr-op-wrap .rr-op-bar i { background-color: var(--rr-line); }
html[data-theme="dark"] .rr-op-wrap .rr-op-bar:is(:hover, .is-on):enabled { background-color: var(--rr-raised); }
html[data-theme="dark"] .rr-fab-x.is-on { color: var(--rr-text) !important; }
html[data-theme="dark"] .rr-fab-x::before {
    background-color: var(--rr-raised) !important;
    border-color: var(--rr-field-line) !important;
}
html[data-theme="dark"] #rr-chat-messages { background-color: var(--rr-page) !important; }
html[data-theme="dark"] #rr-chat-panel :is(#rr-chat-input, .rr-msg.bot a) {
    color: var(--rr-text) !important;
}
html[data-theme="dark"] :is(.rr-tease-text, .rr-op-title, .rr-op-text, .rr-op-who,
    .rr-op-h, .rr-op-big, .rr-op-karta-h, .rr-op-hand-num) { color: var(--rr-text) !important; }
html[data-theme="dark"] :is(.rr-msg-meta, .rr-op-meta, .rr-op-n, .rr-op-note-t,
    .rr-op-reply-t, .rr-op-sub) { color: var(--rr-muted) !important; }

/* Pressidium / CookieConsent v2 reads these properties on the body,
   the dialog root, and the floating button's shadow host. */
html[data-theme="dark"] :is(.pressidium-cc-theme, #cc--main, pressidium-floating-button) {
    --cc-bg: var(--rr-card);
    --cc-text: var(--rr-text);
    --cc-block-text: var(--rr-muted);
    --cc-btn-primary-bg: var(--rr-text);
    --cc-btn-primary-text: var(--rr-page);
    --cc-btn-primary-hover-bg: var(--rr-muted);
    --cc-btn-primary-hover-text: var(--rr-page);
    --cc-btn-secondary-bg: var(--rr-raised);
    --cc-btn-secondary-text: var(--rr-text);
    --cc-btn-secondary-hover-bg: var(--rr-line);
    --cc-btn-secondary-hover-text: var(--rr-text);
    --cc-section-border: var(--rr-line);
    --cc-cookie-table-border: var(--rr-line);
    --cc-cookie-category-block-bg: var(--rr-raised);
    --cc-cookie-category-block-bg-hover: var(--rr-line);
    --cc-overlay-bg: #03060c;
    --cc-toggle-bg-on: #325e9a;
    --cc-toggle-bg-off: var(--rr-field-line);
    --cc-toggle-bg-readonly: var(--rr-line);
    --cc-toggle-knob-bg: var(--rr-text);
    --cc-toggle-knob-icon-color: var(--rr-page);
    --cc-webkit-scrollbar-bg: var(--rr-line);
    --cc-webkit-scrollbar-bg-hover: var(--rr-field-line);
    --cc-btn-floating-bg: var(--rr-raised);
    --cc-btn-floating-icon: var(--rr-text);
    --cc-btn-floating-hover-bg: var(--rr-line);
    --cc-btn-floating-hover-icon: var(--rr-text);
}
html[data-theme="dark"] :focus-visible {
    outline-color: #a8cfff;
}
