/* STORE APP Patch 622 — persistent Dark / White theme switcher */
html{transition:background-color .18s ease,color .18s ease}
html[data-mp-theme="dark"]{color-scheme:dark;background:#050607}
html[data-mp-theme="light"]{color-scheme:light;background:#f6f7f9!important}
[data-mp-logo-variant="light"]{display:none!important}
html[data-mp-theme="light"] [data-mp-logo-variant="dark"]{display:none!important}
html[data-mp-theme="light"] [data-mp-logo-variant="light"]{display:inline-block!important}
.mp-theme-logo-wrap{display:inline-flex;align-items:center;justify-content:center;min-width:0}
.mp-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;min-width:42px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:#111820;color:#fff;box-shadow:none;cursor:pointer;transition:.18s ease}
.mp-theme-toggle:hover,.mp-theme-toggle:focus-visible{background:#d71920;border-color:#d71920;color:#fff;outline:0;box-shadow:0 0 0 .2rem rgba(215,25,32,.18)}
html[data-mp-theme="light"] .mp-theme-toggle{background:#fff;color:#111827;border-color:#cfd6dd;box-shadow:0 4px 12px rgba(15,23,42,.08)}
html[data-mp-theme="light"] .mp-theme-toggle:hover,html[data-mp-theme="light"] .mp-theme-toggle:focus-visible{background:#d71920;color:#fff;border-color:#d71920}

/* Main storefront white theme. This intentionally overrides the existing dark theme layer. */
html[data-mp-theme="light"] body.masterpalm-store-dark,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark,
html[data-mp-theme="light"] body.masterpalm-store-white.masterpalm-store-dark,
html[data-mp-theme="light"] body.mp-b2b-store.masterpalm-store-dark,
html[data-mp-theme="light"] body.mpb2b-store.masterpalm-store-dark{
  --mp-dark-bg:#f6f7f9;--mp-dark-bg-2:#fff;--mp-dark-bg-3:#eef1f4;--mp-dark-panel:#fff;--mp-dark-panel-2:#f7f9fb;--mp-dark-panel-3:#eef2f5;
  --mp-dark-line:#d9dee4;--mp-dark-line-soft:#e9edf1;--mp-dark-text:#14191f;--mp-dark-muted:#596472;--mp-dark-muted-2:#76818c;
  --mp-ink:#14191f;--mp-text:#14191f;--mp-muted:#596472;--mp-line:#d9dee4;--mp-line-soft:#e9edf1;--mp-soft:#f4f6f8;--mp-soft-2:#eef2f5;--mp-graphite:#eef2f5;--mp-white:#fff;
  --mp-shadow:0 18px 46px rgba(15,23,42,.10);--mp-shadow-sm:0 10px 26px rgba(15,23,42,.08);
  color-scheme:light;background:#f6f7f9!important;color:#14191f!important;
}
html[data-mp-theme="light"] body.masterpalm-store-dark #site-main{background:linear-gradient(180deg,#f8fafc 0,#f3f5f7 100%)!important;color:#14191f!important}
html[data-mp-theme="light"] body.masterpalm-store-dark #site-main :where(section,article,aside,div,nav,form,fieldset,details,summary,table,thead,tbody,tfoot,tr,th,td,ul,ol,li,dl,dt,dd,h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,strong,b,legend,summary){color:#14191f!important}
html[data-mp-theme="light"] body.masterpalm-store-dark #site-main :where(p,li,dd,dt,figcaption,.lead,.small,.text-muted,.text-body-secondary,.text-secondary,.form-text,.help-text){color:#596472!important}
html[data-mp-theme="light"] body.masterpalm-store-dark #site-main a:not(.btn):not(.mp-btn):not(.mpb2b-btn){color:#202936}
html[data-mp-theme="light"] body.masterpalm-store-dark #site-main a:not(.btn):not(.mp-btn):not(.mpb2b-btn):hover{color:#b5161d}
html[data-mp-theme="light"] body.masterpalm-store-dark #site-main :where(.card,.card-body,.card-header,.card-footer,.bg-white,.bg-light,.list-group-item,.accordion-item,.accordion-header,.accordion-button,.accordion-body,.tab-content,.dropdown-menu,.offcanvas,.ses-panel,.ses-card,.ses-list-card,.ses-list-sidebar,.ses-page-list-card,.ses-policy-card,.ses-news-article,.ses-article-body,.ses-template-render-host,.ses-template-isolated,.ses-content-template,.ses-inner-copy,.mp-category-copy,.mp-category-sidebar,.mp-product-list-card,.mp-product-list-body,.mp-product-summary-panel,.mp-product-tabs,.mp-related-products,.mp-aftersales-intro,.mp-form-panel,.mpb2b-card,.mpb2b-panel,.mpb2b-buybox,.mpb2b-summary-card,.mpb2b-cart-card,.mpb2b-checkout-card){background:#fff!important;color:#14191f!important;border-color:#d9dee4!important;box-shadow:0 12px 30px rgba(15,23,42,.07)!important}
html[data-mp-theme="light"] body.masterpalm-store-dark #site-main :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea,.form-control,.form-select,.input-group-text){background:#fff!important;color:#111827!important;border-color:#cbd3dc!important}
html[data-mp-theme="light"] body.masterpalm-store-dark #site-main :where(input,textarea)::placeholder{color:#8a95a1!important}
html[data-mp-theme="light"] body.masterpalm-store-dark #site-main :where(table,.table){--bs-table-color:#202936;--bs-table-bg:#fff;--bs-table-striped-color:#202936;--bs-table-striped-bg:#f8fafc;--bs-table-hover-color:#111827;--bs-table-hover-bg:#f3f5f7;--bs-table-border-color:#dce2e7;color:#202936!important}
html[data-mp-theme="light"] body.masterpalm-store-dark #site-main :where(table th,table td,.table th,.table td){color:#202936!important;border-color:#dce2e7!important}
html[data-mp-theme="light"] body.masterpalm-store-dark #site-main :where(.mpb2b-price,.mpb2b-current-price,.mpb2b-cart-price,.mpb2b-summary-price,.mpb2b-tier-price strong,.mpb2b-price-stack strong,.mpb2b-live-price-preview strong,[data-mpb2b-unit-price]){color:#b5161d!important}
html[data-mp-theme="light"] body.masterpalm-store-dark #site-main :where(.btn-outline-dark,.btn-outline-secondary,.mpb2b-btn-outline){background:#fff!important;color:#202936!important;border-color:#aeb7c1!important}
html[data-mp-theme="light"] body.masterpalm-store-dark #site-main :where(.btn-outline-dark,.btn-outline-secondary,.mpb2b-btn-outline):hover{background:#d71920!important;color:#fff!important;border-color:#d71920!important}

html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-header{background:#fff!important;color:#14191f!important;border-bottom:1px solid #dfe4e9!important;box-shadow:0 8px 26px rgba(15,23,42,.08)!important}
html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-topbar{background:#f1f4f6!important;color:#374151!important;border-bottom-color:#dfe4e9!important}
html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-topbar :where(span,i,button){color:#374151!important}
html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-mainhead{background:#fff!important;border-bottom-color:#dfe4e9!important}
html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-brand,html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-head-link,html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-cart-link{color:#14191f!important}
html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-brand :where(strong,span),html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-head-link :where(span,i),html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-cart-link :where(span,i){color:#14191f!important}
html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-brand em,html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-head-link em,html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-cart-link em{color:#6b7280!important}
html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-brand span,html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-cart-link{border-color:#d9dee4!important}
html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-head-search{background:#f7f9fb!important;border-color:#cbd3dc!important}
html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-head-search input{background:transparent!important;color:#111827!important}
html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-nav{background:#111820!important;border-color:#111820!important}
html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-nav :where(a,button,i){color:#fff!important}
html[data-mp-theme="light"] body.site-masterpalm .mpb2b-topbar-language #sesTranslatePanel.ses-translate-panel{background:#fff!important;border-color:#d5dbe1!important;box-shadow:0 24px 60px rgba(15,23,42,.18)!important}
html[data-mp-theme="light"] body.site-masterpalm .mpb2b-topbar-language #sesTranslatePanel .ses-language-option{color:#202936!important;background:#fff!important}
html[data-mp-theme="light"] body.site-masterpalm .mpb2b-topbar-language #sesTranslatePanel .ses-language-option:hover{background:#f2f4f7!important;color:#b5161d!important}
html[data-mp-theme="light"] body.masterpalm-store-dark .modal-content,html[data-mp-theme="light"] body.masterpalm-store-dark .offcanvas,html[data-mp-theme="light"] body.masterpalm-store-dark .dropdown-menu{background:#fff!important;color:#202936!important;border-color:#d6dde4!important}
html[data-mp-theme="light"] body.masterpalm-store-dark .mpb2b-footer,html[data-mp-theme="light"] body.masterpalm-store-dark footer{border-color:#d7dde3!important}

/* Distributor portal: dark is a real dark variant; white retains the existing clean industrial UI. */
html[data-mp-theme="dark"] body.dp-b2b-public,html[data-mp-theme="dark"] body.dp-public-shell,html[data-mp-theme="dark"] body.dp-shell{background:#080b0f!important;color:#eef2f5!important}
html[data-mp-theme="dark"] body.dp-b2b-public .dp-b2b-nav,html[data-mp-theme="dark"] body.dp-shell .dp-sidebar,html[data-mp-theme="dark"] body.dp-shell .dp-topbar,html[data-mp-theme="dark"] body.dp-shell :where(.dp-card,.dp-stat,.dp-user,.dp-document,.dp-status-panel,.dp-product-result,.dp-builder-row),html[data-mp-theme="dark"] body.dp-public-shell .dp-login-card,html[data-mp-theme="dark"] body.dp-b2b-public .dp-application{background:#111820!important;color:#eef2f5!important;border-color:rgba(255,255,255,.14)!important;box-shadow:0 18px 46px rgba(0,0,0,.32)!important}
html[data-mp-theme="dark"] body.dp-shell .dp-sidebar{background:linear-gradient(180deg,#0c1117,#080b0f)!important}
html[data-mp-theme="dark"] body.dp-shell :where(.dp-brand,.dp-nav a,.dp-topbar h1,.dp-section-title,.dp-document,.dp-builder-name,.dp-b2b-brand,.form-label,label,strong,h1,h2,h3,h4,h5,h6){color:#eef2f5!important}
html[data-mp-theme="dark"] body.dp-shell :where(.dp-muted,.dp-help,.dp-user span,.dp-stat .label,.text-muted),html[data-mp-theme="dark"] body.dp-b2b-public :where(p,.text-muted){color:#aeb8c2!important}
html[data-mp-theme="dark"] body.dp-shell .dp-nav a:hover,html[data-mp-theme="dark"] body.dp-shell .dp-nav a.active{background:#1a222b!important;color:#ff4a51!important}
html[data-mp-theme="dark"] body.dp-shell :where(.form-control,.form-select,textarea,input),html[data-mp-theme="dark"] body.dp-public-shell :where(.form-control,.form-select,textarea,input),html[data-mp-theme="dark"] body.dp-b2b-public :where(.form-control,.form-select,textarea,input){background:#0b1015!important;color:#fff!important;border-color:rgba(255,255,255,.22)!important}
html[data-mp-theme="dark"] body.dp-b2b-public .dp-b2b-nav{background:#111820!important;border-bottom-color:#d71920!important}
html[data-mp-theme="dark"] body.dp-b2b-public .dp-b2b-brand,html[data-mp-theme="dark"] body.dp-b2b-public .dp-b2b-nav nav a{color:#fff!important}
html[data-mp-theme="dark"] body.dp-b2b-public .dp-b2b-main{color:#eef2f5!important}
html[data-mp-theme="dark"] body.dp-b2b-public .dp-landing-head{background:linear-gradient(115deg,#111820,#171f28 72%)!important;border-left-color:#d71920!important}
html[data-mp-theme="dark"] body.dp-b2b-public .dp-landing h1,html[data-mp-theme="dark"] body.dp-b2b-public .dp-application h1,html[data-mp-theme="dark"] body.dp-b2b-public .dp-landing-grid h2{color:#fff!important}
html[data-mp-theme="dark"] body.dp-b2b-public .dp-landing-grid article{background:#111820!important;border-color:rgba(255,255,255,.14)!important}
html[data-mp-theme="light"] body.dp-b2b-public,html[data-mp-theme="light"] body.dp-shell,html[data-mp-theme="light"] body.dp-public-shell{color-scheme:light}

@media(max-width:700px){.mp-theme-toggle{width:38px;height:38px;min-width:38px}.mpb2b-mainhead .mp-theme-toggle{order:8}}
