/* Both choices use the existing language and header controls, with no page reload. */
:root{color-scheme:light}
.site-header .ma-sim-header-tools{display:flex;flex:0 0 auto;align-items:center;gap:10px;max-width:100%;flex-wrap:wrap}
.ma-sim-color-modes{display:inline-flex;flex:0 0 auto;align-items:center;padding:3px;border:1px solid var(--line);border-radius:26px;gap:2px;color:var(--ma-sim-header-text,#102f50)}
.ma-sim-color-modes[hidden]{display:none!important}
.site-header .ma-sim-color-modes button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;font-size:16px;line-height:1;transform:none}
.site-header .ma-sim-color-modes button[aria-pressed=true]{background:var(--ma-sim-header-text,#102f50);color:var(--ma-sim-header-bg,#fff)}
.site-header .ma-sim-color-modes button:not([aria-pressed=true]):hover{background:#b6d9ff33}
@media(max-width:1279px){.site-header .ma-sim-header-tools{order:3;flex-basis:100%}.site-header .ma-sim-header-tools .ma-sim-languages{order:0}.site-header .ma-sim-color-modes{order:1}}
@media print{.ma-sim-color-modes{display:none!important}}

/* Explicit night palette. Light mode retains the owner's three Customizer colors. */
:root[data-ma-sim-mode=dark]{color-scheme:dark;--ink:#e7eef8;--muted:#b3c3d6;--blue:#176dcc;--paper:#0c1522;--line:#34465d;--ma-sim-surface:#18273a;--ma-sim-raised:#22354e;--ma-sim-link:#91c5ff;--ma-sim-page-bg:#0c1522;--ma-sim-page-text:#e7eef8;--ma-sim-page-muted:#b3c3d6;--ma-sim-page-link:#91c5ff;--ma-sim-header-bg:#101d2e;--ma-sim-header-text:#e7eef8;--ma-sim-footer-bg:#09111c;--ma-sim-footer-text:#e7eef8}
html[data-ma-sim-mode=dark] :is(.ma-sim-page-surface,.site-footer){color:var(--ink)}
html[data-ma-sim-mode=dark] .ma-sim-page-surface a{color:var(--ma-sim-link)}
html[data-ma-sim-mode=dark] :is(.steps article,.destination-search>div,.ma-sim-contact,.ma-sim-dashboard,.ma-sim-help,.ma-sim-credit,.ma-sim-dashboard-card,.woocommerce-MyAccount-navigation ul,.ma-sim-faq details,.ma-sim-destination-card,.ma-sim-guide-notice,.ma-sim-scope-tabs,.ma-sim-catalog-pagination .page-numbers,.woocommerce ul.products li.product,.woocommerce-page ul.products li.product,.woocommerce table.shop_table,.woocommerce-account .woocommerce-MyAccount-content>form,.woocommerce div.product .woocommerce-tabs ul.tabs li,.woocommerce div.product .woocommerce-tabs ul.tabs li.active){background:var(--ma-sim-surface);color:var(--ink);border-color:var(--line)}
html[data-ma-sim-mode=dark] :is(.steps p,.ma-sim-contact-intro,.ma-sim-contact-grid p,.ma-sim-page-intro,.ma-sim-from-price,.ma-sim-phone-shot figcaption,.ma-sim-welcome,.ma-sim-dashboard-card span,.woocommerce .woocommerce-breadcrumb,.woocommerce .woocommerce-breadcrumb a,.woocommerce small,.woocommerce .product_meta){color:var(--muted)}
html[data-ma-sim-mode=dark] :is(.ma-sim-feature-icon,.ma-sim-card-arrow,.ma-sim-faq summary>span,.ma-sim-balance,.ma-sim-dashboard-card .woocommerce-Price-amount){color:var(--ma-sim-link)}
html[data-ma-sim-mode=dark] .site-header :is(.menu a,.ma-sim-brand-home){color:inherit}
html[data-ma-sim-mode=dark] :is(.ma-sim-menu-toggle,.ma-sim-agency-badge,.woocommerce-MyAccount-navigation .is-active>a,.ma-sim-scope-tabs>span){background:var(--ma-sim-raised);color:var(--ink)}
html[data-ma-sim-mode=dark] :is(.ma-sim-scope-tabs a,.ma-sim-scope-tabs a[aria-current=true]){color:var(--ink)}
html[data-ma-sim-mode=dark] :is(input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]),textarea,select,.woocommerce .quantity .qty,.quantity-control,.select2-container--default .select2-selection--single,.select2-dropdown,.wc-block-components-text-input input,.wc-block-components-combobox .wc-block-components-combobox-control input){background:var(--ma-sim-surface);color:var(--ink);border-color:var(--line)}
html[data-ma-sim-mode=dark] :is(input,textarea)::placeholder{color:#a5b6cc;opacity:1}
html[data-ma-sim-mode=dark] :is(.select2-container--default .select2-selection--single .select2-selection__rendered,.select2-results__option,.wc-block-components-text-input label,.wc-block-components-combobox label){color:var(--ink)}
html[data-ma-sim-mode=dark] :is(.select2-results__option--highlighted[aria-selected],.select2-results__option[aria-selected=true]){background:var(--ma-sim-raised);color:var(--ink)}
html[data-ma-sim-mode=dark] .ma-sim-page-surface :is(.button,a.button,button.button,input.button,input[type=submit],.destination-search button){background:#176dcc;color:#fff}
html[data-ma-sim-mode=dark] .ma-sim-page-surface :is(.button:hover,button.button:hover,.destination-search button:hover){background:#125cb0;color:#fff}
html[data-ma-sim-mode=dark] :is(.ma-sim-pill,.ma-sim-pill:disabled,.ma-sim-pill:disabled:hover){background:transparent;color:var(--ink);border-color:#6e85a2}
html[data-ma-sim-mode=dark] :is(.ma-sim-pill.selected,.ma-sim-pill:hover:not(:disabled)){background:var(--ma-sim-raised);color:#b6d9ff;border-color:#91c5ff}
html[data-ma-sim-mode=dark] .ma-sim-near-cart .button{background:var(--ma-sim-raised)!important;color:#b6d9ff!important}
html[data-ma-sim-mode=dark] :is(.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce #payment,.woocommerce-checkout #payment div.payment_box,.woocommerce-cart .cart-collaterals .cart_totals,.wc-block-components-notice-banner,.wc-block-checkout__payment-method,.wc-block-components-order-summary,.wc-block-components-checkout-step__content .wc-block-components-radio-control-accordion-option){background:var(--ma-sim-surface);color:var(--ink);border-color:var(--line)}
html[data-ma-sim-mode=dark] .woocommerce-checkout #payment div.payment_box::before{border-bottom-color:var(--ma-sim-surface)}
html[data-ma-sim-mode=dark] :is(.woocommerce table.shop_table th,.woocommerce table.shop_table td,.woocommerce form,.woocommerce fieldset,.woocommerce div.product .woocommerce-tabs ul.tabs::before,.wc-block-components-totals-wrapper,.wc-block-components-order-summary-item,.wc-block-components-checkout-step){border-color:var(--line)}
html[data-ma-sim-mode=dark] .woocommerce div.product .woocommerce-tabs ul.tabs li::before,html[data-ma-sim-mode=dark] .woocommerce div.product .woocommerce-tabs ul.tabs li::after{box-shadow:none;border-color:var(--line)}
html[data-ma-sim-mode=dark] .ma-sim-critical-data{background:#342b16;border-color:#a9822d;color:#fff0c7}
html[data-ma-sim-mode=dark] .ma-sim-auth-switch{background:transparent;color:#ffc078}
html[data-ma-sim-mode=dark] .ma-sim-page-surface :is(.woocommerce-orders-table__cell-order-number a,.woocommerce-orders-table .order-number a){color:var(--ma-sim-link)}
html[data-ma-sim-mode=dark] :is(.wc-block-components-title,.wc-block-components-product-name,.wc-block-components-product-metadata,.wc-block-components-totals-item,.wc-block-components-order-summary-item__quantity){color:var(--ink)}
/* Keep branded photos, flags, QR images and payment marks in their original colors. */
html[data-ma-sim-mode=dark] :is(.ma-sim-pwa-help,.ma-sim-pwa-help button){background:var(--ma-sim-surface);color:var(--ink);border-color:var(--line)}
html[data-ma-sim-mode=dark] .ma-sim-pwa-help::backdrop{background:#0009}
html[data-ma-sim-mode=dark] .ma-sim-pwa-install{background:#223f61;color:#fff;border-color:#6e85a2}
html[data-ma-sim-mode=dark] .woocommerce-account:not(.logged-in) #customer_login input.input-text{background:var(--ma-sim-surface);color:var(--ink);border-color:var(--line)}
@media print{:root[data-ma-sim-mode=dark]{color-scheme:light;--ink:#102f50;--muted:#526b82;--paper:#fff;--line:#bbcbd9;--ma-sim-surface:#fff;--ma-sim-raised:#edf4fb;--ma-sim-link:#086dd7;--ma-sim-page-bg:#fff;--ma-sim-page-text:#102f50;--ma-sim-page-muted:#526b82;--ma-sim-page-link:#086dd7;--ma-sim-header-bg:#fff;--ma-sim-header-text:#102f50;--ma-sim-footer-bg:#fff;--ma-sim-footer-text:#102f50}}
html[data-ma-sim-mode=dark] .site-header .ma-sim-languages a{color:var(--ma-sim-header-text)}
html[data-ma-sim-mode=dark] .site-header .ma-sim-languages a[aria-current=true]{color:var(--ma-sim-header-bg)}
html[data-ma-sim-mode=dark] .woocommerce div.product .woocommerce-tabs ul.tabs li a{color:var(--ink)}
html[data-ma-sim-mode=dark] .woocommerce div.product form.cart .reset_variations{color:var(--ma-sim-link)}
html[data-ma-sim-mode=dark] .site-footer small{color:inherit}
html[data-ma-sim-mode=dark] .woocommerce a.remove{color:#ffaaaa!important}
html[data-ma-sim-mode=dark] .woocommerce a.remove:hover{background:#8c2424;color:#fff!important}
