/* Charcoal appearance. Deliberately scoped: light mode remains unchanged. */
.opti-store .og-appearance-toggle{background:#f0f2f3;border-radius:50%;width:42px;height:42px;min-width:42px;flex:0 0 42px;padding:10px}
.og-appearance-toggle svg{display:block;width:22px;height:22px;flex:none}
.og-appearance-toggle .og-appearance-sun{display:none}
html[data-appearance="dark"]{color-scheme:dark;--og-ink:#f1f3f4;--og-muted:#b1b7be;--og-surface:#25282c;--og-line:#3b4046;--og-blue:#9abfff;--og-blue-dark:#b4cfff;--og-tint:#303e53;--og-focus-ink:#dce6f2;--og-focus-fill:#d1dfeb;--og-focus-on-fill:#18232c}
html[data-appearance="dark"] body.opti-store{background:#191c20;color:var(--og-ink);--og-action:#454b53;--og-action-hover:#565f69;--og-policy-surface:#272d34;--og-policy-ink:#c8d3df}
html[data-appearance="dark"] .og-appearance-toggle .og-appearance-moon{display:none}
html[data-appearance="dark"] .og-appearance-toggle .og-appearance-sun{display:block}
html[data-appearance="dark"] body.opti-store [data-brand-tone="fuel"]{--og-brand-surface:#31272a;--og-brand-action:#ae3c40;--og-brand-action-hover:#c0494d;--og-part-surface:#453035}
html[data-appearance="dark"] body.opti-store [data-brand-tone="wave"]{--og-brand-surface:#243234;--og-brand-action:#087f86;--og-brand-action-hover:#09959d;--og-part-surface:#2e4545}
html[data-appearance="dark"] body.opti-store [data-brand-tone="power"]{--og-brand-surface:#273245;--og-brand-action:#1d64d7;--og-brand-action-hover:#3379ec;--og-part-surface:#30415b}
html[data-appearance="dark"] body.opti-store [data-brand-tone="accessories"]{--og-brand-surface:#2b2f34;--og-part-surface:#363d44}
html[data-appearance="dark"] body.opti-store :is(.og-header-frame,.og-company-hero,.og-form-hero,.og-why-hero,.og-team-hero){background:#272d34;color:var(--og-ink)}
html[data-appearance="dark"] body.opti-store :is(.og-header-frame-home,.og-hero)[data-brand-tone]{background:var(--og-brand-surface)}
/* An opaque navigation bar stays continuous with the page when menus open. */
html[data-appearance="dark"] body.opti-store .og-header{background:#191c20;color:var(--og-ink);box-shadow:none!important}
/* The header frame sits above the backdrop. Both layers must share the same
   open-menu canvas, otherwise the undimmed hero colour forms a square seam. */
html[data-appearance="dark"] body.opti-store.og-menu-open .og-header-frame{background:#191c20!important;transition:none}
html[data-appearance="dark"] body.opti-store .og-menu-backdrop{background:#191c20}
html[data-appearance="dark"] body.opti-store .og-logo img{filter:brightness(0) invert(1)}
html[data-appearance="dark"] body.opti-store :is(.og-nav-trigger,.og-nav-link,.og-icon-button){color:var(--og-ink)!important}
html[data-appearance="dark"] body.opti-store :is(.og-nav-trigger:hover,.og-nav-trigger[aria-expanded="true"],.og-icon-button:hover,.og-appearance-toggle){background:#383e45}
html[data-appearance="dark"] body.opti-store :is(.og-mega,.og-search-dialog,.og-mobile-nav,.og-basket-preview,.pma-profile-panel,.og-cookie-dialog){background:#25292e;color:var(--og-ink);box-shadow:0 16px 50px #0005}
html[data-appearance="dark"] body.opti-store :is(.og-menu-card,.og-menu-link-stack a,.og-discover-link,.og-support-grid a,.og-mobile-group,.og-mobile-direct,.og-mobile-account-links>a,.og-search-suggestions a,.og-search-field,.og-search-result,.og-account-signin,.og-carousel-controls .og-icon-button){background:#30353b!important;color:var(--og-ink)!important}
html[data-appearance="dark"] body.opti-store :is(.og-menu-card>div,.og-discover-icon,.og-mobile-browse,.og-hero-controls .og-icon-button:hover,.og-feature-pagination button,.og-social-dot){background:#3b424a;color:#e3e7ec}
html[data-appearance="dark"] body.opti-store .og-menu-bottom>a+a{background:var(--og-action);color:#fff}
html[data-appearance="dark"] body.opti-store .og-menu-bottom>a+a:hover{background:var(--og-action-hover)}
html[data-appearance="dark"] body.opti-store :is(.og-mega small,.og-mega h2,.og-search-intro p,.og-search-price-note,.og-search-status,.og-mobile-section-label){color:var(--og-muted)}
html[data-appearance="dark"] body.opti-store :is(.og-mobile-section,.og-mobile-nav-links a,.og-mobile-nav-links .og-icon){color:var(--og-ink)}
html[data-appearance="dark"] body.opti-store :is(.og-menu-link-stack a,.og-discover-link,.og-support-grid a,.og-mobile-nav-links a,.og-search-result):hover{background:#3b424a!important}
/* Transparent product renders retain their real colours; never invert imagery. */
html[data-appearance="dark"] body.opti-store :is(.og-hero-media>img,.og-product-media img,.og-category-card img,.og-menu-card img,.og-product-gallery img,.og-compare-image img,.og-search-result img){mix-blend-mode:normal!important}
html[data-appearance="dark"] body.opti-store :is(.og-product-media,.og-category-card>div,.og-compare-image,.og-basket-thumb,.pma-basket-image,.pma-portal-product-image){background:#2c3138!important}
html[data-appearance="dark"] body.opti-store .og-product-gallery{background:var(--og-brand-surface,#2c3138)!important}
html[data-appearance="dark"] body.opti-store :is(.og-product-part,.og-product-volume,.og-volume-pill){background:var(--og-part-surface,#363d44)!important;color:#e8edf1!important}
html[data-appearance="dark"] body.opti-store :is(.og-product-summary,.og-product-summary .price,.og-product-summary .product_title,.og-card-price,.og-product-copy,.og-product-meta){color:var(--og-ink)}
html[data-appearance="dark"] body.opti-store :is(.product_meta,.og-product-summary .og-eyebrow,.woocommerce-breadcrumb,.woocommerce-result-count,.og-feature-copy p,.og-feature-kicker,.og-social-updated){color:var(--og-muted)}
html[data-appearance="dark"] body.opti-store .og-product-card .og-card-price a.button.wsp_button{color:var(--og-muted)!important}
html[data-appearance="dark"] body.opti-store :is(.og-benefit-card,.og-editorial-feature,.og-team-feature,.og-description-summary,.og-rrp-section,.og-company-index,.og-model-transition,.og-fuel-transition,.og-news-feature,.og-news-help,.og-why-card,.og-retailer-copy){background:#292e34;color:var(--og-ink)}
html[data-appearance="dark"] body.opti-store .og-editorial-feature[data-brand-tone]{background:var(--og-brand-surface)}
html[data-appearance="dark"] body.opti-store :is(.og-rrp-label,.og-badge,.og-card-stock,.og-story-meta a,.og-news-category){background:#3a424b;color:#d7dce2}
/* RRP children have explicit light-mode colours and cannot inherit the card ink. */
html[data-appearance="dark"] body.opti-store .og-rrp-amount{color:var(--og-ink)}
html[data-appearance="dark"] body.opti-store :is(.og-rrp-caption,.og-description-title .og-eyebrow){color:var(--og-muted)}
html[data-appearance="dark"] body.opti-store :is(.og-text-link,.og-feature-copy .og-text-link,.og-product-narrative .og-text-link,.og-company-article a){color:#b9d0ef!important}
html[data-appearance="dark"] body.opti-store [data-brand-tone="fuel"] .og-text-link{color:#efadae!important}
html[data-appearance="dark"] body.opti-store [data-brand-tone="wave"] .og-text-link{color:#8dd8d6!important}
html[data-appearance="dark"] body.opti-store .og-compare-table tbody tr:nth-child(odd){background:#252a30}
html[data-appearance="dark"] body.opti-store :is(.og-company-page-heading>p:last-child,.og-company-version,.og-company-index a,.og-policy-hero h1){color:var(--og-ink)}
html[data-appearance="dark"] body.opti-store .og-policy-page .og-company-hero{background:var(--og-policy-surface)}
html[data-appearance="dark"] body.opti-store.og-environment-page{--og-policy-surface:#273530;--og-policy-ink:#bfd8c8}
html[data-appearance="dark"] body.opti-store .og-policy-watermark{color:#d1dbe3}
html[data-appearance="dark"] body.opti-store .og-company-footer{background:#22262b}
/* Native forms and provider-owned checkout wrappers. */
html[data-appearance="dark"] body.opti-store :is(.og-form-card,.woocommerce-form-login,.woocommerce-ResetPassword,.og-reset-confirmation,.pma-checkout-card,.pma-portal-product,.pma-portal-support,.pma-portal-empty,.woocommerce-address-fields,.pma-order-success,.pma-order-card){background:#262b31!important;color:var(--og-ink)}
html[data-appearance="dark"] body.opti-store :is(.og-form-card,.woocommerce,.pma-portal) :is(label,legend,h1,h2,h3,h4){color:var(--og-ink)!important}
html[data-appearance="dark"] body.opti-store :is(input:not([type=checkbox],[type=radio],[type=submit]),textarea,select,.select2-selection--single,.select2-dropdown,.select2-search__field){background:#323840!important;color:var(--og-ink)!important;border-color:#525b66!important;box-shadow:none!important}
html[data-appearance="dark"] body.opti-store :is(input,textarea)::placeholder{color:#b1bac5;opacity:1}
html[data-appearance="dark"] body.opti-store :is(input,textarea,select):focus{border-color:#a7b4c4!important;outline:0!important;box-shadow:none!important}
/* The header search is one rounded field; its input shares the wrapper surface. */
html[data-appearance="dark"] body.opti-store .og-search-dialog .og-search-field input[type="search"]{background:transparent!important}
html[data-appearance="dark"] body.opti-store :is(.select2-selection__rendered,.select2-results__option,.forminator-description,.forminator-checkbox-label,.forminator-checkbox__label,.forminator-radio-label,.og-form-subtitle){color:#c4cbd3!important}
html[data-appearance="dark"] body.opti-store .select2-results__option--highlighted{background:#495564!important;color:white!important}
html[data-appearance="dark"] body.opti-store :is(.og-choice-options>.forminator-radio,.og-choice-options>.forminator-checkbox,.og-reset-tip,.woocommerce-EditAccountForm,.pma-profile-appearance,.pma-portal-welcome,.pma-portal-basket-banner,.pma-portal-order-list>article,.pma-portal-list-item){background:#30363e!important;color:var(--og-ink)!important}
html[data-appearance="dark"] body.opti-store .og-form-benefit>.og-icon{color:#b0c5d8}
html[data-appearance="dark"] body.opti-store :is(.og-form-subheading,.og-access-help p,.og-reset-confirmation p,.og-account-access .og-page-header p,.pma-portal p,.pma-appearance-content>p,.pma-profile-greeting>span){color:var(--og-muted)!important}
html[data-appearance="dark"] body.opti-store :is(.og-access-help a,.lost_password a,.pma-profile-links a,.pma-portal-product h3 a,.pma-portal-order-number,.og-basket-name){color:var(--og-ink)!important}
html[data-appearance="dark"] body.opti-store :is(.pma-profile-avatar,.pma-portal-business-mark,.pma-profile-close,.og-basket-close,.og-basket-empty-icon,.pma-appearance-preview){background:#3c4653;color:#e4eaf1}
html[data-appearance="dark"] body.opti-store :is(.og-basket-part,.pma-part,.pma-portal-pill,.pma-preview-label,.pma-destination,.og-basket-footer,.og-basket-quantity,.pma-quantity-control,.og-product-summary form.cart .quantity,.pma-profile-welcome-actions a+a,.pma-portal-button.is-soft){background:#353c44!important;color:#d5dce4!important}
html[data-appearance="dark"] body.opti-store :is(.og-basket-quantity button,.pma-quantity-step,.og-quantity-step){background:#4b545f!important;color:white!important}
html[data-appearance="dark"] body.opti-store :is(.og-basket-heading small,.og-basket-delivery,.og-basket-remove,.og-basket-status,.pma-summary-label,.pma-summary-intro,.pma-checkout-intro p,.pma-kicker,.pma-destination p,.pma-business-checkout .description,.pma-line-price span,.pma-appearance-content p){color:var(--og-muted)}
html[data-appearance="dark"] body.opti-store #payment :is(li.wc_payment_method,.payment_box){background:#31373f!important;color:var(--og-ink)!important}
html[data-appearance="dark"] body.opti-store :is(.og-success-feedback,.woocommerce-message,.woocommerce-info){background:#333e47!important;color:#e2e7ed!important}
html[data-appearance="dark"] body.opti-store :is(.woocommerce-error,.og-form-validation,.forminator-response-message.forminator-error){background:#482d33!important;color:#ffd5d8!important}
html[data-appearance="dark"] body.opti-store :is(.og-field-error,.pma-cart-status.is-error){color:#ffb1b6}
html[data-appearance="dark"] body.opti-store :is(.stock.in-stock,.pma-success-status){color:#9cddbb}
html[data-appearance="dark"] body.opti-store :is(input[type=checkbox],input[type=radio]){accent-color:#a8bdd5}
/* Header controls share one square geometry at each compact breakpoint.
   Earlier width-only rules made the menu/close control an oval on tablets. */
@media(max-width:1100px){
 body.opti-store .og-header{--og-header-control-size:44px}
 body.opti-store .og-header .og-header-actions{align-items:center;gap:8px}
 body.opti-store .og-header .og-header-actions :is(.og-icon-button,.pma-profile-avatar){box-sizing:border-box;width:var(--og-header-control-size)!important;min-width:var(--og-header-control-size)!important;max-width:var(--og-header-control-size)!important;height:var(--og-header-control-size)!important;min-height:var(--og-header-control-size)!important;max-height:var(--og-header-control-size)!important;flex:0 0 var(--og-header-control-size)!important;border-radius:50%;margin:0}
 body.opti-store .og-header .og-header-actions .og-icon-button{padding:8px}
 body.opti-store .og-header .og-header-actions .og-icon-button svg{width:24px;height:24px;flex:none}
}
@media(max-width:600px){
 body.opti-store .og-header{--og-header-control-size:36px;gap:8px;padding-inline:10px}
 body.opti-store .og-header .og-header-actions{gap:4px}
 body.opti-store .og-logo{width:clamp(100px,28vw,145px)}
 body.opti-store .og-logo img{width:100%}
}
@media(max-width:360px){
 body.opti-store .og-header{--og-header-control-size:30px;gap:6px!important;padding-inline:8px!important}
 body.opti-store .og-header .og-header-actions{gap:2px!important}
 body.opti-store .og-header .og-header-actions .og-icon-button{padding:6px!important}
 body.opti-store .og-header .pma-profile-avatar{font-size:11px}
 body.opti-store .og-logo{width:88px!important;min-width:88px!important;flex:0 0 88px!important}
}
/* Legacy JPEG hero has a white studio plate; a separate transparent derivative
   is used only in dark appearance. The catalogue/attachment record is unchanged. */
html[data-appearance="dark"] body.opti-store :is(img[src$="/2019/01/store-products-3.jpg"],img[src*="/2019/01/store-products-3-"]){content:url("appearance-images/optimix-rtr16-5l.png")}
html[data-appearance="dark"] body.opti-store .og-hero-media:has(img[src$="/2019/01/store-products-3.jpg"])>img{object-fit:contain}
/* Product tiles share one charcoal surface. Opaque legacy media is replaced
   through the catalogue manifest, including responsive sizes and comparisons. */
html[data-appearance="dark"] body.opti-store img.og-catalogue-cutout{mix-blend-mode:normal!important;filter:none!important;background:transparent!important}
html[data-appearance="dark"] body.opti-store .og-trade-notice{background:#2c3138!important;color:var(--og-ink)!important}
html[data-appearance="dark"] body.opti-store .og-trade-notice :is(h2,p,.og-icon){color:inherit}
/* Product colour must remain unchanged: darkening a render to hide its studio
   background makes the product itself disappear. Use actual cutouts instead. */
html[data-appearance="dark"] body.opti-store :is(.og-news-index-feature,.og-news-cta,.og-news-powered,.og-news-categories a,.og-story-meta a,.og-news-index-feature-copy .og-story-meta a){background:#2d333a!important;color:var(--og-ink)!important}
html[data-appearance="dark"] body.opti-store .og-news-logo{background:#e9ecef}
html[data-appearance="dark"] body.opti-store :is(.og-news-index-feature-copy p,.og-news-meta,.og-story-meta,.og-news-deck,.og-news-index-intro,.og-form-intro p){color:var(--og-muted)}
html[data-appearance="dark"] body.opti-store :is(.pma-profile-links a:hover,.pma-profile-basket,.pma-portal-shortcuts>a,.pma-portal-shortcuts>a:hover,.pma-appearance-choices label,.pma-photo-upload input){background:#353c44!important;color:var(--og-ink)!important}
html[data-appearance="dark"] body.opti-store :is(.pma-appearance-choices label:has(:checked),.pma-portal-pill.is-green){background:#3d5148;color:#cff0da}
/* Menu cutouts share a charcoal stage without darkening the product. */
html[data-appearance="dark"] body.opti-store .og-menu-card>div:has(img){background:#30363e}
html[data-appearance="dark"] body.opti-store .og-menu-card>div img{mix-blend-mode:normal!important}
html[data-appearance="dark"] body.opti-store :is(.pma-commerce-menu,.pma-delivery-strip){background:#343b43!important;color:#e8edf2!important}
html[data-appearance="dark"] body.opti-store :is(.pma-section-heading>a,.pma-line-remove,.pma-cart-remove,.pma-business-checkout .pma-legal a){color:#c8d9ee!important}
html[data-appearance="dark"] body.opti-store :is(.pma-delivery-strip p,.pma-delivery-strip strong,.pma-business-checkout .pma-legal){color:#c2cbd5!important}
html[data-appearance="dark"] body.opti-store .pma-proceed{background:#454b53!important;color:white!important}
html[data-appearance="dark"] body.opti-store.pma-business-checkout .form-row :is(input.input-text,textarea){background:#323840!important;color:#f1f3f4!important;border-color:#525b66!important}
html[data-appearance="dark"] body.opti-store.pma-business-checkout :is(.woocommerce-privacy-policy-text,.woocommerce-privacy-policy-text p,.woocommerce-terms-and-conditions-checkbox-text,.pma-summary-note){color:#b9c3cf!important}
html[data-appearance="dark"] body.opti-store.pma-business-checkout :is(.woocommerce-privacy-policy-link,.woocommerce-terms-and-conditions-link){color:#c8d9ee!important}
html[data-appearance="dark"] body.opti-store.pma-business-checkout #customer_details :is(input.input-text,textarea,select){background:#323840!important;color:#f1f3f4!important;border-color:#525b66!important}
html[data-appearance="dark"] body.opti-store .pma-stage-terms a{color:#c8d9ee!important}
html[data-appearance="dark"] body.opti-store :is(.pma-confirmation-hero,.pma-confirmation-overview,.pma-confirmation-payment,.pma-confirmation-details .woocommerce-order-details,.pma-confirmation-details .woocommerce-customer-details .col-1,.pma-confirmation-details .woocommerce-customer-details .col-2){background:#262b31!important;color:var(--og-ink)}
/* Hard-coded light component text inherits the same charcoal palette. */
html[data-appearance="dark"] body.opti-store :is(h1,h2,h3,h4,h5,h6){color:var(--og-ink)!important}
html[data-appearance="dark"] body.opti-store :is(.og-form-hero,.og-form-benefit,.og-form-card-heading,.og-news-index-heading,.og-news-card,.og-news-index-feature) p{color:var(--og-muted)!important}
html[data-appearance="dark"] body.opti-store .og-form-card #forminator-module-101970 :is(.forminator-input,.forminator-textarea,select){background:#323840!important;color:#f1f3f4!important;border-color:#525b66!important}
html[data-appearance="dark"] body.opti-store .og-form-card #forminator-module-101970 :is(.forminator-label,.forminator-radio-label,.forminator-checkbox-label,.forminator-checkbox__label){color:#d6dde5!important}
html[data-appearance="dark"] body.opti-store .woocommerce-MyAccount-navigation{background:#2b3037!important}
html[data-appearance="dark"] body.opti-store .woocommerce-MyAccount-navigation a{color:#c9d1dc!important}
html[data-appearance="dark"] body.opti-store .woocommerce-MyAccount-navigation li.is-active a{background:#424b57!important;color:white!important}
html[data-appearance="dark"] body.opti-store .pma-portal-shortcuts .og-icon{background:#454e59;color:#e8edf2}
html[data-appearance="dark"] body.opti-store #mobile-navigation{background:#25292e!important;color:#f1f3f4!important}
html[data-appearance="dark"] body.opti-store #mobile-navigation :is(.og-mobile-section-label,.og-mobile-nav-intro){color:#bac4cf!important}
html[data-appearance="dark"] body.opti-store :is(h1,h2,h3,h4,h5,h6) a{color:inherit!important}
html[data-appearance="dark"] body.opti-store .og-news-index>header p{color:var(--og-muted)!important}
/* The one-litre bottle uses a genuine alpha cutout in dark appearance only. */
html[data-appearance="dark"] body.opti-store :is(img[src$="/2019/01/store-products-9.jpg"],img[src*="/2019/01/store-products-9-"]){content:url("appearance-images/optimix-rtr16-1l.png")}
html[data-appearance="dark"] body.opti-store .og-retailer-information{background:#292e34;color:#e8edf1}
html[data-appearance="dark"] body.opti-store .og-retailer-information :is(p,.og-retailer-eyebrow){color:#c4cbd3}
html[data-appearance="dark"] body.opti-store .og-retailer-information .og-retailer-eyebrow{background:#3a424b}
html[data-appearance="dark"] body.opti-store :is(.og-feature-image,.og-social-image,.og-social-source){background:#30363e;color:#d7dfe8}
html[data-appearance="dark"] body.opti-store .og-retailer-information a:not(.og-button){color:#b9d0ef}

/* Carousel controls stay legible against photography and charcoal surfaces. */
html[data-appearance="dark"] body.opti-store :is(.og-feature-arrows,.og-social-arrows) .og-icon-button{background:#383f48!important;color:#f1f3f4!important;border-color:#59616c}
html[data-appearance="dark"] body.opti-store .og-feature-dot>span{background:#78838f}
html[data-appearance="dark"] body.opti-store .og-feature-dot[aria-current="true"]>span{background:#e8edf1}
html[data-appearance="dark"] body.opti-store .og-social-playback{color:#c4cbd3}
html[data-appearance="dark"] body.opti-store .og-social-playback button{background:#353c44;color:#e8edf1}

html[data-appearance="dark"] body.opti-store .og-search-result img{background:#30353b}
html[data-appearance="dark"] body.opti-store :is(.og-search-result-sku,.og-search-all){background:#3b434d;color:#e8edf1!important}
html[data-appearance="dark"] body.opti-store .og-search-result-stock{color:#9cddbb}
html[data-appearance="dark"] body.opti-store .og-search-result-stock[data-state="outofstock"]{color:#c4cbd3}

/* Shop search and sort share the same surfaces as the header search. */
html[data-appearance="dark"] body.opti-store .og-shop-search-field{background:#323840}
html[data-appearance="dark"] body.opti-store .og-shop-search-field input{background:transparent!important}
html[data-appearance="dark"] body.opti-store :is(.og-shop-search-field .og-icon,.og-sort-trigger,.og-sort-label,.og-filter-toggle,.og-filters summary){color:#dce3eb}
html[data-appearance="dark"] body.opti-store :is(.og-sort-trigger:hover,.og-sort-trigger[aria-expanded="true"],.og-sort-menu,.og-sort-option){background:#30363e!important;color:#e8edf1!important;border-color:#4a535e}
html[data-appearance="dark"] body.opti-store .og-sort-option[aria-selected="true"]{background:#46515e!important;color:#fff!important}
html[data-appearance="dark"] body.opti-store .og-sort-option:hover{background:#414a55!important}
html[data-appearance="dark"] body.opti-store .og-filters{background:#191c20;color:#c4cbd3}
html[data-appearance="dark"] body.opti-store .og-mobile-direct .og-icon{color:#dce3eb}

html[data-appearance="dark"] body.opti-store .og-filters .og-filter-options label{color:#c4cbd3!important}

html[data-appearance="dark"] body.opti-store .pma-destination address{color:#e8edf1!important}
html[data-appearance="dark"] body.opti-store .pma-remove{color:#c4cbd3!important}

/* Secondary basket action must remain distinct from the summary surface. */
html[data-appearance="dark"] body.opti-store .og-basket-secondary{background:#505963!important;color:#fff!important}
html[data-appearance="dark"] body.opti-store .og-basket-secondary:hover{background:#5b6570!important}

/* Match the compact slide switcher to the navigation bar. */
html[data-appearance="dark"] body.opti-store .og-hero-controls{background:#191c20!important;color:var(--og-ink)!important;box-shadow:none}

/* Shared supporting panels must carry both their surface and text palette.
   Keep photographs, the intentionally light retailer map and white footer CTA
   separate; a global element repaint would break those approved contrasts. */
html[data-appearance="dark"] body.opti-store :is(.og-trade-notice,.og-empty-cart,.og-team-share,.og-why-join,.og-map-correction-context){background:#2c3138!important;color:var(--og-ink)!important}
html[data-appearance="dark"] body.opti-store :is(.og-trade-notice,.og-empty-cart,.og-team-share,.og-why-join) :is(p,.og-icon){color:var(--og-muted)!important}
html[data-appearance="dark"] body.opti-store :is(.og-why-section-heading,.og-why-card-copy,.og-why-details,.og-news-cta) p,
html[data-appearance="dark"] body.opti-store :is(.og-team-directory-heading>p,.og-news-feature-label,.og-form-alternative,.og-form-preview-note){color:var(--og-muted)!important}
html[data-appearance="dark"] body.opti-store .og-why-join :is(.og-why-soft-button,.og-why-dark-button){background:#505963!important;color:#fff!important}
html[data-appearance="dark"] body.opti-store :is(.og-empty-cart-icon,.og-person-photo,.og-news-cover,.og-news-index-feature-image){background:#30363e;color:var(--og-ink)}
html[data-appearance="dark"] body.opti-store .og-news-top-link{color:#b9d0ef}
/* Forminator's light defaults use !important and higher specificity. Apply the
   same treatment to every enquiry/application form, not one module ID only. */
html[data-appearance="dark"] body.opti-store .og-form-card .forminator-ui :is(.forminator-input,.forminator-textarea,select),
html[data-appearance="dark"] body.opti-store.og-form-page .select2-container .select2-selection--single,
html[data-appearance="dark"] body.opti-store.og-form-page .forminator-select2+.select2 .select2-selection{background:#323840!important;color:var(--og-ink)!important;border-color:#525b66!important}
html[data-appearance="dark"] body.opti-store .og-form-card .forminator-ui :is(.forminator-input,.forminator-textarea,select):focus,
html[data-appearance="dark"] body.opti-store.og-form-page .select2-container--open .select2-selection--single{background:#323840!important;border-color:#a7b4c4!important;box-shadow:none!important}
html[data-appearance="dark"] body.opti-store .og-form-card .forminator-ui :is(.forminator-label,.forminator-radio-label,.forminator-checkbox-label,.forminator-checkbox__label){color:#d6dde5!important}
html[data-appearance="dark"] body.opti-store .og-form-card .forminator-ui .forminator-description{color:var(--og-muted)!important}
html[data-appearance="dark"] body.opti-store .og-form-card :is(.forminator-consent__label,.og-form-alternative) a{color:#c8d9ee!important}
html[data-appearance="dark"] body.opti-store .og-form-card .forminator-ui .forminator-error-message{color:#ffb1b6!important}
html[data-appearance="dark"] body.opti-store .og-form-card .forminator-ui .forminator-response-message.forminator-error:not(.forminator-accessibility){background:#482d33!important;color:#ffd5d8!important}
html[data-appearance="dark"] body.opti-store .og-form-card .og-choice-options label:has(input:checked){background:#404b57!important}
html[data-appearance="dark"] body.opti-store :is(.woocommerce-form-login,.woocommerce-ResetPassword) .required{color:#ffb1b6}
html[data-appearance="dark"] body.opti-store .woocommerce-ResetPassword>p{color:var(--og-muted)}

html[data-appearance="dark"] body.opti-store.og-form-page .select2-selection__placeholder{color:#b1bac5!important}
html[data-appearance="dark"] body.opti-store .og-team-directory-heading :is(p,span){color:var(--og-muted)!important}
html[data-appearance="dark"] body.opti-store .og-person-discipline{background:#353c44!important;color:#e8edf1!important}
html[data-appearance="dark"] body.opti-store .woocommerce-ResetPassword>p{color:var(--og-muted)!important}

/* Company copy, pilot biographies and the replacement-fuel guide share the
   same readable supporting ink, including text explicitly coloured in source. */
html[data-appearance="dark"] body.opti-store :is(.og-company-lead,.og-team-biography,.og-team-biography p,.og-team-biography li,.og-transition-caveat,.og-transition-source,.og-transition-card-label){color:var(--og-muted)!important}
html[data-appearance="dark"] body.opti-store .og-team-biography :is(strong,b){color:var(--og-ink)!important}
html[data-appearance="dark"] body.opti-store :is(.og-team-more,.og-team-gallery figure,.og-transition-card){background:#30363e;color:var(--og-ink)}
html[data-appearance="dark"] body.opti-store :is(.og-transition-search>div,.og-transition-discontinued,.og-transition-old>span){background:#353c44;color:var(--og-ink)}
html[data-appearance="dark"] body.opti-store .og-transition-search input{background:transparent!important}
html[data-appearance="dark"] body.opti-store :is(.og-transition-label,.og-transition-direction,.og-transition-discontinued a,.og-transition-source a){color:#efadae}
html[data-appearance="dark"] body.opti-store .og-transition-source a{color:#c8d9ee}
html[data-appearance="dark"] body.opti-store .og-fuel-transition-note{background:#31272a;color:var(--og-ink)}

/* Keep inset emphasis on filled controls and underline text links when tabbing. */
@media not (forced-colors: active) {
    body.opti-store :is(button,a,summary):focus-visible {
        outline: none !important;
    }
    body.opti-store :is(button,summary,a:is(.og-button,.button,.og-account-action),a:has(>img)):focus-visible {
        box-shadow: inset 0 -3px var(--og-focus-ink,#436181) !important;
    }
    body.opti-store a:focus-visible {
        text-decoration: underline !important;
        text-underline-offset: .2em;
    }
    body.opti-store :is(.og-icon-button,.pma-profile-avatar,.og-search-close,.og-basket-close,.pma-profile-close,.og-tour-back):focus-visible {
        text-decoration: none !important;
        background: var(--og-focus-fill,#d3e2ed) !important;
        color: var(--og-focus-on-fill,#192f40) !important;
        box-shadow: none !important;
    }
    body.opti-store[data-input-modality="pointer"] :is(button,a,summary):focus {
        outline: none !important;
    }
    body.opti-store .og-header :is(.og-nav-trigger,.og-mobile-section):focus-visible {
        outline: 2px solid var(--og-ink) !important;
        outline-offset: 3px;
        box-shadow: none !important;
    }
    body.opti-store[data-input-modality="pointer"] .og-header :is(.og-nav-trigger,.og-mobile-section):focus {
        outline: none !important;
        box-shadow: none !important;
    }
}
@media (forced-colors: active) {
    body.opti-store :is(button,a,summary):focus-visible {
        outline: 2px solid Highlight !important;
        outline-offset: 3px;
    }
}
html[data-appearance="dark"] body.opti-store .og-product-card .og-card-price a.og-trade-register-price {
    color: var(--og-muted) !important;
}
html[data-appearance="dark"] body.opti-store .og-product-summary .price a.og-trade-register-price {
    background: #423139 !important;
    color: #f4c4d4 !important;
}
html[data-appearance="dark"] body.opti-store .og-footer-contact {
    background: #3b424a !important;
    color: var(--og-ink) !important;
}
html[data-appearance="dark"] body.opti-store .og-footer-contact .og-button-disc {
    background: #515c69 !important;
    color: var(--og-ink) !important;
}
html[data-appearance="dark"] body.opti-store .og-map {
    background: #292e34;
}
html[data-appearance="dark"] body.opti-store .pma-stage-terms {
    color: var(--og-muted);
}

/* The team hero includes a light-coloured gradient layer, not just a surface.
   Match that layer too, so white headings never sit on the pale photo fade. */
html[data-appearance="dark"] body.opti-store .og-team-hero-backdrop:after{background:linear-gradient(90deg,transparent 18%,#272d3426 36%,#272d34bd 51%,#272d34 64%),linear-gradient(180deg,#272d3466,transparent 34%)}
html[data-appearance="dark"] body.opti-store :is(.og-team-filters button,.og-person-socials a){background:#353c44;color:#e8edf1}
html[data-appearance="dark"] body.opti-store .og-team-filters button[aria-pressed=true]{background:#505963;color:#fff}
@media(max-width:800px){html[data-appearance="dark"] body.opti-store .og-team-hero-backdrop:after{background:linear-gradient(180deg,#272d3433,transparent 25%,#272d3433 48%,#272d34 94%)}}

/* Open Select2/Forminator menus are appended to body, outside the form card. */
html[data-appearance="dark"] body.opti-store .forminator-select-dropdown.forminator-dropdown--default{background:#323840!important;color:var(--og-ink)!important;border-color:#525b66!important}
html[data-appearance="dark"] body.opti-store.og-form-page .select2-results__option,
html[data-appearance="dark"] body.opti-store .forminator-select-dropdown.forminator-dropdown--default .select2-results__option{background:#323840!important;color:#e8edf1!important}
html[data-appearance="dark"] body.opti-store.og-form-page .select2-results__option:is(.select2-results__option--highlighted,[aria-selected=true]),
html[data-appearance="dark"] body.opti-store .forminator-select-dropdown.forminator-dropdown--default .select2-results__option--highlighted{background:#495564!important;color:#fff!important}
html[data-appearance="dark"] body.opti-store .og-form-card .forminator-required{color:#ffb1b6!important}
html[data-appearance="dark"] body.opti-store .og-basket-empty p{color:var(--og-muted)!important;opacity:1}
html[data-appearance="dark"] body.opti-store .og-mobile-account-links .og-icon{color:#dce3eb!important}

/* Authenticated customer surfaces use the same component palette. */
html[data-appearance="dark"] body.opti-store :is(.pma-portal-card,.pma-appearance-card,.woocommerce-Address){background:#2c3138!important;color:var(--og-ink)!important}
html[data-appearance="dark"] body.opti-store :is(.pma-portal-order-list a,.pma-profile-address-help a){color:#c8d9ee!important}
html[data-appearance="dark"] body.opti-store :is(.woocommerce-EditAccountForm em,.pma-profile-address-help){color:var(--og-muted)!important}
html[data-appearance="dark"] body.opti-store .woocommerce .required{color:#ffb1b6!important}
html[data-appearance="dark"] body.opti-store .woocommerce .blockUI.blockOverlay{background:#25292e!important}

html[data-appearance="dark"] body.opti-store .pma-portal-section-heading a{color:#c8d9ee!important}
html[data-appearance="dark"] body.opti-store .woocommerce-Address address{color:var(--og-muted)!important}

html[data-appearance="dark"] body.opti-store :is(.pma-profile-page-heading,.pma-details-heading)>p{color:var(--og-muted)!important}

/* Address cards must fit beside the account navigation at tablet widths. */
body.opti-store .woocommerce-Addresses{grid-template-columns:repeat(2,minmax(0,1fr))}
body.opti-store .woocommerce-Address{min-width:0}
body.opti-store .woocommerce-Address-title{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:20px}
body.opti-store .woocommerce-Address-title h2{margin:0;min-width:0}
body.opti-store .woocommerce-Address-title .edit{margin:0;float:none;max-width:100%;white-space:normal}
html[data-appearance="dark"] body.opti-store .woocommerce-Address-title .edit{background:#505963!important;color:#fff!important}
@media(max-width:1000px){body.opti-store.woocommerce-account .woocommerce-Addresses{grid-template-columns:minmax(0,1fr)!important}}

/* Use the shared text palette for first-order tasks and saved-list details. */
html[data-appearance="dark"] body.opti-store :is(.pma-portal, .pma-portal-steps li a, .pma-portal-list-item a) {
    color: var(--og-ink);
}
html[data-appearance="dark"] body.opti-store :is(.pma-portal-steps li > span, .pma-portal-save) {
    background: var(--og-tint);
    color: var(--og-blue-dark);
}
html[data-appearance="dark"] body.opti-store :is(.pma-portal-text-button, .pma-profile-remove) {
    color: var(--og-muted);
}
html[data-appearance="dark"] body.opti-store .og-product-summary .stock.out-of-stock {
    color: #ffb1b6;
}
html[data-appearance="dark"] body.opti-store.pma-business-checkout .og-company-footer-bottom p {
    color: var(--og-muted) !important;
}
html[data-appearance="dark"] body.opti-store .og-cookie-dialog p {
    color: var(--og-muted);
}
/* Keep gallery captions readable across bright photos, including adjacent slides. */
html[data-appearance="dark"] .og-social-slide .og-social-caption {
    background: linear-gradient(to bottom, transparent, rgb(0 0 0 / 76%) 60px, rgb(0 0 0 / 80%));
    opacity: 1;
}
html[data-appearance="dark"] body.opti-store .og-cart-link .og-cart-count {
    background: var(--og-tint);
    color: var(--og-ink);
}
body.opti-store #pma-consent {
    --og-consent-ink: #1d1f20;
    --og-consent-paper: #fff;
    left: auto;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: min(400px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    overflow: auto;
    margin: 0;
    padding: 18px;
    border: 1px solid #1d1f2026;
    border-radius: 16px;
    background: var(--og-consent-paper);
    color: var(--og-consent-ink);
    box-shadow: 0 8px 32px #0000001f;
    font-size: 13px;
    line-height: 1.5;
}
body.opti-store #pma-consent h2 {
    margin: 0 0 8px;
    color: var(--og-consent-ink) !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
    letter-spacing: normal;
}
body.opti-store #pma-consent p {
    margin: 0 0 8px;
    color: var(--og-consent-ink);
    font-size: 13px;
    line-height: 1.5;
}
body.opti-store #pma-consent a {
    color: var(--og-consent-ink);
    text-underline-offset: 2px;
}
body.opti-store #pma-consent .pma-consent-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}
body.opti-store #pma-consent .pma-consent-button {
    appearance: none;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--og-consent-ink);
    border-radius: 10px;
    background: var(--og-consent-ink);
    color: var(--og-consent-paper) !important;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: none;
}
body.opti-store #pma-consent .pma-consent-button[data-pma-choice="denied"] {
    background: var(--og-consent-paper);
    color: var(--og-consent-ink) !important;
}
body.opti-store #pma-consent .pma-consent-button:hover {
    filter: none;
    background: #373a3c;
}
body.opti-store #pma-consent .pma-consent-button[data-pma-choice="denied"]:hover {
    background: #f1f2f3;
}
body.opti-store #pma-consent :is(button, a):focus-visible {
    outline: 2px solid var(--og-consent-ink) !important;
    outline-offset: 3px;
    box-shadow: none !important;
}
@media (forced-colors: active) {
    body.opti-store #pma-consent :is(button, a):focus-visible {
        outline-color: Highlight !important;
    }
}
@media (max-width: 359px) {
    body.opti-store #pma-consent { padding: 16px; }
    body.opti-store #pma-consent .pma-consent-actions { grid-template-columns: 1fr; }
}
html[dir="rtl"] body.opti-store #pma-consent { text-align: right; }
html[dir="rtl"] .og-iso-badge { direction: ltr; unicode-bidi: isolate; }
