/* =========================================================
   Master Palm Official Store — black industrial storefront
   Patch 428

   Loaded as the final storefront theme layer. The legacy
   `masterpalm-store-white` class remains in markup only for
   compatibility with structural selectors from earlier patches.
========================================================= */

html{
  background:#050607!important;
  color:#f4f6f8!important;
}

body.masterpalm-store-dark{
  --mp-dark-bg:#050607;
  --mp-dark-bg-2:#080b0e;
  --mp-dark-bg-3:#0b1014;
  --mp-dark-panel:#0f1419;
  --mp-dark-panel-2:#151b21;
  --mp-dark-panel-3:#1b232b;
  --mp-dark-line:rgba(255,255,255,.16);
  --mp-dark-line-soft:rgba(255,255,255,.09);
  --mp-dark-text:#f4f6f8;
  --mp-dark-muted:#c5cbd1;
  --mp-dark-muted-2:#9aa4ae;
  --mp-red:#d71920;
  --mp-red-dark:#99070c;
  --mp-orange:#ff6a00;
  --mp-ink:#f4f6f8;
  --mp-text:#f4f6f8;
  --mp-muted:#c5cbd1;
  --mp-line:rgba(255,255,255,.16);
  --mp-line-soft:rgba(255,255,255,.09);
  --mp-soft:#10161b;
  --mp-soft-2:#151c23;
  --mp-graphite:#10161b;
  --mp-white:#fff;
  --mp-shadow:0 22px 56px rgba(0,0,0,.48);
  --mp-shadow-sm:0 12px 30px rgba(0,0,0,.34);
  color-scheme:dark;
  background:
    radial-gradient(circle at 50% -12%,rgba(171,180,188,.15),transparent 38%),
    linear-gradient(180deg,#0b0f13 0%,#050607 43%,#07090b 100%)!important;
  color:var(--mp-dark-text)!important;
}

body.site-frontend.masterpalm-theme.masterpalm-store-dark,
body.masterpalm-store-white.masterpalm-store-dark,
body.mp-b2b-store.masterpalm-store-dark,
body.mpb2b-store.masterpalm-store-dark{
  background:
    radial-gradient(circle at 50% -12%,rgba(171,180,188,.15),transparent 38%),
    linear-gradient(180deg,#0b0f13 0%,#050607 43%,#07090b 100%)!important;
  color:var(--mp-dark-text)!important;
}

body.masterpalm-store-dark #site-main{
  min-height:60vh;
  background:
    radial-gradient(circle at 50% 0,rgba(160,168,176,.11),transparent 34%),
    linear-gradient(180deg,#0b1014 0%,#050607 46%,#07090b 100%)!important;
  color:var(--mp-dark-text)!important;
}

/* ---------------------------------------------------------
   Contrast lock: stop black/dark text from being inherited
   onto the black storefront shell.
--------------------------------------------------------- */
/* Earlier white-theme patches assign dark text directly to many wrapper
   elements. Establish a readable foreground on common content containers
   first; the component-specific rules below then restore muted, price,
   stock, alert and intentionally-light-surface colors. */
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
){
  color:var(--mp-dark-text)!important;
}

body.masterpalm-store-dark #site-main :where(
  h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,strong,b,legend,summary
){
  color:var(--mp-dark-text)!important;
}

body.masterpalm-store-dark #site-main :where(
  p,li,dd,dt,figcaption,.lead,.small
){
  color:var(--mp-dark-muted)!important;
}

body.masterpalm-store-dark #site-main :where(
  .text-dark,.text-black,.text-body,.text-body-emphasis,.text-reset,
  [class*="text-gray-9"],[class*="text-slate-9"]
){color:var(--mp-dark-text)!important}

body.masterpalm-store-dark #site-main :where(
  .text-muted,.text-body-secondary,.text-secondary,.form-text,.help-text
){color:var(--mp-dark-muted)!important}

body.masterpalm-store-dark #site-main a:not(.btn):not(.mp-btn):not(.mpb2b-btn){
  color:#f5f7f9;
}
body.masterpalm-store-dark #site-main a:not(.btn):not(.mp-btn):not(.mpb2b-btn):hover,
body.masterpalm-store-dark #site-main a:not(.btn):not(.mp-btn):not(.mpb2b-btn):focus-visible{
  color:#ff3a42;
}

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:#ff343b!important}
body.masterpalm-store-dark #site-main :where(.mpb2b-stock,.text-success){color:#6ddd95!important}

body.masterpalm-store-dark #site-main :where(hr,.border-top,.border-bottom,.border-start,.border-end,.border){
  border-color:var(--mp-dark-line)!important;
}

/* Generic CMS and Bootstrap surfaces. */
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
){
  background:linear-gradient(180deg,rgba(22,29,36,.98),rgba(8,11,14,.99))!important;
  color:var(--mp-dark-text)!important;
  border-color:var(--mp-dark-line)!important;
}

body.masterpalm-store-dark #site-main :where(
  .card,.ses-panel,.ses-card,.ses-list-card,.ses-page-list-card,
  .mp-category-copy,.mp-category-sidebar,.mp-product-list-card,
  .mp-product-summary-panel,.mp-product-tabs,.mp-form-panel
){box-shadow:0 18px 46px rgba(0,0,0,.34)!important}

body.masterpalm-store-dark #site-main :where(.accordion-button:not(.collapsed),.list-group-item.active){
  background:#1a222a!important;
  color:#fff!important;
}
body.masterpalm-store-dark #site-main .accordion-button:after{filter:invert(1) grayscale(1)}

/* Forms, controls, tables and common buttons. */
body.masterpalm-store-dark #site-main :where(label,.form-label,.form-check-label){
  color:#eef2f5!important;
}
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:#0e1419!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.22)!important;
}
body.masterpalm-store-dark #site-main :where(input,textarea)::placeholder{
  color:#909ba5!important;
  opacity:1;
}
body.masterpalm-store-dark #site-main :where(
  input:not([type="checkbox"]):not([type="radio"]):focus,
  select:focus,textarea:focus,.form-control:focus,.form-select:focus
){
  background:#111920!important;
  color:#fff!important;
  border-color:var(--mp-red)!important;
  box-shadow:0 0 0 .2rem rgba(215,25,32,.20)!important;
}
body.masterpalm-store-dark #site-main :where(.form-check-input){
  background-color:#0d1318;
  border-color:rgba(255,255,255,.38);
}
body.masterpalm-store-dark #site-main :where(.form-check-input:checked){
  background-color:var(--mp-red);
  border-color:var(--mp-red);
}
body.masterpalm-store-dark #site-main :where(.btn-outline-dark,.btn-outline-secondary,.mpb2b-btn-outline){
  background:rgba(255,255,255,.035)!important;
  color:#f4f6f8!important;
  border-color:rgba(255,255,255,.32)!important;
}
body.masterpalm-store-dark #site-main :where(.btn-outline-dark,.btn-outline-secondary,.mpb2b-btn-outline):hover{
  background:var(--mp-red)!important;
  color:#fff!important;
  border-color:var(--mp-red)!important;
}
body.masterpalm-store-dark #site-main :where(.mpb2b-btn-light){
  background:#1b232b!important;
  color:#fff!important;
  border-color:var(--mp-dark-line)!important;
}
body.masterpalm-store-dark #site-main :where(table,.table){
  --bs-table-color:#edf1f4;
  --bs-table-bg:transparent;
  --bs-table-striped-color:#edf1f4;
  --bs-table-striped-bg:rgba(255,255,255,.035);
  --bs-table-hover-color:#fff;
  --bs-table-hover-bg:rgba(255,255,255,.055);
  --bs-table-border-color:rgba(255,255,255,.14);
  color:#edf1f4!important;
  border-color:rgba(255,255,255,.14)!important;
}
body.masterpalm-store-dark #site-main :where(table th,table td,.table th,.table td){
  color:#edf1f4!important;
  border-color:rgba(255,255,255,.14)!important;
}

/* ---------------------------------------------------------
   Header, search, language control and navigation
--------------------------------------------------------- */
body.masterpalm-store-dark .mpb2b-header{
  background:#070a0d!important;
  color:#fff!important;
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 14px 34px rgba(0,0,0,.38)!important;
}
body.masterpalm-store-dark .mpb2b-topbar{
  background:linear-gradient(90deg,#020304,#12171c)!important;
  border-bottom:1px solid rgba(255,255,255,.09);
}
body.masterpalm-store-dark .mpb2b-mainhead{
  background:linear-gradient(180deg,#11171d,#080b0e)!important;
  border-bottom-color:rgba(255,255,255,.12)!important;
}
body.masterpalm-store-dark .mpb2b-brand,
body.masterpalm-store-dark .mpb2b-head-link,
body.masterpalm-store-dark .mpb2b-cart-link{
  color:#fff!important;
}
body.masterpalm-store-dark .mpb2b-brand span{
  border-left-color:rgba(255,255,255,.18)!important;
}
body.masterpalm-store-dark .mpb2b-brand strong,
body.masterpalm-store-dark .mpb2b-head-link span,
body.masterpalm-store-dark .mpb2b-cart-link span,
body.masterpalm-store-dark .mpb2b-head-link i,
body.masterpalm-store-dark .mpb2b-cart-link i{
  color:#fff!important;
}
body.masterpalm-store-dark .mpb2b-brand em,
body.masterpalm-store-dark .mpb2b-head-link em,
body.masterpalm-store-dark .mpb2b-cart-link em{
  color:#b9c1c9!important;
}
body.masterpalm-store-dark .mpb2b-cart-link{
  border-left-color:rgba(255,255,255,.18)!important;
}
body.masterpalm-store-dark .mpb2b-head-search{
  background:#06090c!important;
  border-color:rgba(255,255,255,.22)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
body.masterpalm-store-dark .mpb2b-head-search input{
  background:#06090c!important;
  color:#fff!important;
}
body.masterpalm-store-dark .mpb2b-head-search input::placeholder{color:#9aa4ae!important}
body.masterpalm-store-dark .mpb2b-nav{
  background:#050709!important;
  border-bottom-color:var(--mp-red)!important;
}
body.masterpalm-store-dark .mpb2b-nav a:hover,
body.masterpalm-store-dark .mpb2b-nav button:hover,
body.masterpalm-store-dark .mpb2b-nav .is-open > .mpb2b-nav-item-row > a{
  background:#1a222a!important;
}
body.masterpalm-store-dark .mpb2b-nav-submenu,
body.masterpalm-store-dark .mpb2b-nav-submenu .mpb2b-nav-submenu{
  background:rgba(7,10,13,.99)!important;
  border-color:rgba(255,255,255,.18)!important;
  box-shadow:0 22px 52px rgba(0,0,0,.58)!important;
}
body.masterpalm-store-dark .mpb2b-nav-submenu a,
body.masterpalm-store-dark .mpb2b-nav-submenu .mpb2b-submenu-toggle{
  color:#f2f5f7!important;
}
body.masterpalm-store-dark .mpb2b-nav-submenu a:hover,
body.masterpalm-store-dark .mpb2b-nav-submenu .mpb2b-submenu-toggle:hover,
body.masterpalm-store-dark .mpb2b-nav-submenu .is-open > .mpb2b-nav-item-row > a{
  background:#1a222a!important;
  color:#ff4047!important;
}
body.masterpalm-store-dark .mpb2b-header .ses-translate-panel,
body.masterpalm-store-dark .mpb2b-header .ses-language-menu,
body.masterpalm-store-dark.masterpalm-store-white .mpb2b-header .ses-translate-panel,
body.masterpalm-store-dark.masterpalm-store-white .mpb2b-header .ses-language-menu{
  background:#0b1014!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.18)!important;
  box-shadow:0 22px 52px rgba(0,0,0,.58)!important;
}
body.masterpalm-store-dark .mpb2b-header .ses-language-option,
body.masterpalm-store-dark.masterpalm-store-white .mpb2b-header .ses-language-option{
  color:#f4f6f8!important;
}
body.masterpalm-store-dark .mpb2b-header .ses-language-option:hover,
body.masterpalm-store-dark .mpb2b-header .ses-language-option.is-active,
body.masterpalm-store-dark.masterpalm-store-white .mpb2b-header .ses-language-option:hover,
body.masterpalm-store-dark.masterpalm-store-white .mpb2b-header .ses-language-option.is-active{
  background:#1a222a!important;
  color:#ff4047!important;
}

/* ---------------------------------------------------------
   Homepage, slideshow and feature panels
--------------------------------------------------------- */
body.masterpalm-store-dark .mpb2b-home-hero{
  background:#080b0e!important;
  border-bottom-color:rgba(255,255,255,.12)!important;
}
body.masterpalm-store-dark .mpb2b-home-hero:before{
  background-image:
    linear-gradient(90deg,rgba(2,3,4,.96) 0%,rgba(5,7,9,.87) 34%,rgba(5,7,9,.42) 62%,rgba(5,7,9,.12) 100%),
    var(--mp-hero-bg,linear-gradient(135deg,#11171d,#050607))!important;
}
body.masterpalm-store-dark .mpb2b-home-hero:after{
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 1px,transparent 1px 96px),radial-gradient(circle at 78% 38%,rgba(215,25,32,.21),transparent 31%)!important;
}
body.masterpalm-store-dark .mpb2b-hero-copy h1,
body.masterpalm-store-dark .mpb2b-hero-copy p,
body.masterpalm-store-dark .mpb2b-chips div{
  color:#fff!important;
}
body.masterpalm-store-dark .mpb2b-hero-copy p{color:#d7dde2!important}
body.masterpalm-store-dark .mpb2b-store-home-slideshow,
body.masterpalm-store-dark .mpb2b-store-slide{
  background:#050607!important;
}
body.masterpalm-store-dark .mpb2b-store-home-slideshow .mpb2b-store-slide-frame{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  border-color:transparent!important;
}
body.masterpalm-store-dark .mpb2b-store-slide-copy{color:#fff!important}
body.masterpalm-store-dark .mpb2b-text-desktop-whitebox .mpb2b-store-slide-copy,
body.masterpalm-store-dark .mpb2b-text-mobile-whitebox .mpb2b-store-slide-copy{
  background:rgba(7,10,13,.82)!important;
  border:1px solid rgba(255,255,255,.18)!important;
  color:#fff!important;
  box-shadow:0 20px 52px rgba(0,0,0,.44)!important;
  backdrop-filter:blur(8px);
}
body.masterpalm-store-dark .mpb2b-text-desktop-whitebox .mpb2b-store-slide-copy:before,
body.masterpalm-store-dark .mpb2b-text-mobile-whitebox .mpb2b-store-slide-copy:before{
  background:rgba(15,20,25,.68)!important;
  box-shadow:none!important;
}
body.masterpalm-store-dark.mp-b2b-store .mpb2b-text-desktop-whitebox .mpb2b-store-slide-copy h1,
body.masterpalm-store-dark.mp-b2b-store .mpb2b-text-mobile-whitebox .mpb2b-store-slide-copy h1{
  color:#ff343b!important;
}
body.masterpalm-store-dark.mp-b2b-store .mpb2b-text-desktop-whitebox .mpb2b-store-slide-copy h2,
body.masterpalm-store-dark.mp-b2b-store .mpb2b-text-mobile-whitebox .mpb2b-store-slide-copy h2{
  color:#fff!important;
}
body.masterpalm-store-dark.mp-b2b-store .mpb2b-text-desktop-whitebox .mpb2b-store-slide-copy p,
body.masterpalm-store-dark.mp-b2b-store .mpb2b-text-mobile-whitebox .mpb2b-store-slide-copy p{
  color:#d5dbe0!important;
}
body.masterpalm-store-dark .mpb2b-text-desktop-whitebox .mpb2b-store-slide-copy .mpb2b-pill,
body.masterpalm-store-dark .mpb2b-text-mobile-whitebox .mpb2b-store-slide-copy .mpb2b-pill{
  background:rgba(255,255,255,.06)!important;
  border:1px solid rgba(255,255,255,.22)!important;
  color:#eef2f5!important;
}
body.masterpalm-store-dark .mpb2b-text-desktop-whitebox .mpb2b-btn-outline,
body.masterpalm-store-dark .mpb2b-text-mobile-whitebox .mpb2b-btn-outline{
  background:rgba(255,255,255,.04)!important;
  border-color:rgba(255,255,255,.5)!important;
  color:#fff!important;
}
body.masterpalm-store-dark .mpb2b-mini-panel{
  background:linear-gradient(145deg,#171e25,#0c1115)!important;
  border-color:rgba(255,255,255,.15)!important;
  color:#fff!important;
  box-shadow:var(--mp-shadow-sm)!important;
}
body.masterpalm-store-dark .mpb2b-mini-panel strong,
body.masterpalm-store-dark .mpb2b-mini-panel em{color:#fff!important}
body.masterpalm-store-dark .mpb2b-mini-panel p{color:#c4cbd2!important}
body.masterpalm-store-dark .mpb2b-volume-card{
  background:linear-gradient(180deg,#151c22,#090d10)!important;
  border-color:rgba(255,255,255,.14)!important;
}
body.masterpalm-store-dark .mpb2b-volume-top{
  background:#080b0e!important;
  border-bottom:1px solid rgba(255,255,255,.12);
}
body.masterpalm-store-dark .mpb2b-volume-card th{color:#f4f6f8!important}
body.masterpalm-store-dark .mpb2b-volume-card td{color:#ff4047!important}
body.masterpalm-store-dark .mpb2b-volume-card th,
body.masterpalm-store-dark .mpb2b-volume-card td{border-color:rgba(255,255,255,.13)!important}
body.masterpalm-store-dark .mpb2b-home-product-section{background:transparent!important}
body.masterpalm-store-dark .mpb2b-home-product-section.is-alt{
  background:linear-gradient(180deg,rgba(22,28,34,.84),rgba(7,9,11,.92))!important;
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
body.masterpalm-store-dark .mpb2b-section-title h2,
body.masterpalm-store-dark .mpb2b-section-title a{color:#f4f6f8!important}
body.masterpalm-store-dark .mpb2b-section-title-stacked p{color:#c4cbd2!important}

/* Product cards keep a light image canvas, with a dark information body. */
body.masterpalm-store-dark .mpb2b-product-card{
  background:linear-gradient(180deg,#171e25,#0a0e12)!important;
  border-color:rgba(255,255,255,.15)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.28)!important;
}
body.masterpalm-store-dark .mpb2b-product-card:hover{
  border-color:rgba(255,255,255,.34)!important;
  box-shadow:0 20px 46px rgba(0,0,0,.46)!important;
}
body.masterpalm-store-dark .mpb2b-product-media,
body.masterpalm-store-dark .mpb2b-cart-img,
body.masterpalm-store-dark .mpb2b-gallery-main,
body.masterpalm-store-dark .mpb2b-thumb,
body.masterpalm-store-dark .mp-product-list-media,
body.masterpalm-store-dark .mp-product-main-image,
body.masterpalm-store-dark .mp-related-card img{
  background-color:#f7f9fb!important;
  border-color:#d9dfe5!important;
}
body.masterpalm-store-dark .mpb2b-product-media-empty,
body.masterpalm-store-dark .mpb2b-cart-img-empty,
body.masterpalm-store-dark .mpb2b-gallery-main--empty{
  background:#e9edf1!important;
  color:#65717d!important;
}
body.masterpalm-store-dark .mpb2b-product-body strong,
body.masterpalm-store-dark .mpb2b-product-body em{
  color:#f5f7f9!important;
}
body.masterpalm-store-dark .mpb2b-spec-mini{color:#b9c2ca!important}
body.masterpalm-store-dark .mpb2b-price small{color:#d4d9de!important}
body.masterpalm-store-dark .mpb2b-price-muted{
  background:rgba(255,106,0,.11)!important;
  color:#ffe0c3!important;
  border-left-color:var(--mp-orange)!important;
}
body.masterpalm-store-dark .mpb2b-card-actions>a{
  background:#121920!important;
  border-color:rgba(255,255,255,.22)!important;
  color:#f4f6f8!important;
}
body.masterpalm-store-dark .mpb2b-card-actions>a:hover{
  background:#1a222a!important;
  border-color:var(--mp-red)!important;
  color:#ff4047!important;
}
body.masterpalm-store-dark .mpb2b-quote-check{color:#d4d9de!important}
body.masterpalm-store-dark .mpb2b-cert-row{
  background:#090d10!important;
  border-color:rgba(255,255,255,.13)!important;
}
body.masterpalm-store-dark .mpb2b-cert-row div div{border-color:rgba(255,255,255,.12)!important}
body.masterpalm-store-dark .mpb2b-cert-row i,
body.masterpalm-store-dark .mpb2b-cert-row strong{color:#f4f6f8!important}
body.masterpalm-store-dark .mpb2b-cert-row span{color:#b9c2ca!important}

/* ---------------------------------------------------------
   Catalog and filter column
--------------------------------------------------------- */
body.masterpalm-store-dark .mpb2b-catalog-page,
body.masterpalm-store-dark .mpb2b-product-detail,
body.masterpalm-store-dark .mpb2b-shop-page{
  background:transparent!important;
  color:#f4f6f8!important;
}
body.masterpalm-store-dark .mpb2b-catalog-head h1,
body.masterpalm-store-dark .mpb2b-page-title h1{color:#f4f6f8!important}
body.masterpalm-store-dark .mpb2b-catalog-head p,
body.masterpalm-store-dark .mpb2b-page-title p{color:#c4cbd2!important}
body.masterpalm-store-dark .mpb2b-catalog-search{
  background:#0b1014!important;
  border-color:rgba(255,255,255,.2)!important;
}
body.masterpalm-store-dark .mpb2b-catalog-search input{
  background:#0b1014!important;
  color:#fff!important;
}
body.masterpalm-store-dark .mpb2b-filter-panel,
body.masterpalm-store-dark .mpb2b-catalog-aside .mpb2b-side-card,
body.masterpalm-store-dark .mpb2b-side-card,
body.masterpalm-store-dark .mpb2b-results-bar{
  background:linear-gradient(180deg,#151c23,#090d11)!important;
  color:#edf1f4!important;
  border-color:rgba(255,255,255,.15)!important;
}
body.masterpalm-store-dark .mpb2b-filter-title,
body.masterpalm-store-dark .mpb2b-filter-group{border-color:rgba(255,255,255,.11)!important}
body.masterpalm-store-dark .mpb2b-filter-title strong,
body.masterpalm-store-dark .mpb2b-filter-group h3,
body.masterpalm-store-dark .mpb2b-side-card strong{color:#f4f6f8!important}
body.masterpalm-store-dark .mpb2b-filter-group a{color:#ccd2d8!important}
body.masterpalm-store-dark .mpb2b-side-card p{color:#b9c1c9!important}
body.masterpalm-store-dark .mpb2b-pagination a{
  background:#11171d!important;
  color:#f4f6f8!important;
  border-color:rgba(255,255,255,.2)!important;
}
body.masterpalm-store-dark .mpb2b-pagination a.is-active,
body.masterpalm-store-dark .mpb2b-pagination a:hover{
  background:var(--mp-red)!important;
  border-color:var(--mp-red)!important;
  color:#fff!important;
}

/* Category tree is authored in a separate late patch; override it here. */
body.masterpalm-store-dark .mpb2b-category-tree,
body.masterpalm-store-dark .mpb2b-category-tree-all,
body.masterpalm-store-dark .mpb2b-category-tree-row,
body.masterpalm-store-dark .mpb2b-category-tree-children{
  background:transparent!important;
  color:#eef2f5!important;
  border-color:rgba(255,255,255,.11)!important;
}
body.masterpalm-store-dark .mpb2b-category-tree-link,
body.masterpalm-store-dark .mpb2b-category-tree-toggle{
  color:#d3d9de!important;
}
body.masterpalm-store-dark .mpb2b-category-tree-link:hover,
body.masterpalm-store-dark .mpb2b-category-tree-link.is-active,
body.masterpalm-store-dark .mpb2b-category-tree-row.is-active > .mpb2b-category-tree-link{
  color:#ff4047!important;
  background:rgba(215,25,32,.12)!important;
}

/* ---------------------------------------------------------
   Product detail, specifications and media
--------------------------------------------------------- */
body.masterpalm-store-dark .mpb2b-breadcrumb{color:#aab4bd!important}
body.masterpalm-store-dark .mpb2b-breadcrumb a{color:#f4f6f8!important}
body.masterpalm-store-dark .mpb2b-gallery-main{
  box-shadow:0 18px 46px rgba(0,0,0,.34)!important;
}
body.masterpalm-store-dark .mpb2b-gallery-zoom{
  background:#121920!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.23)!important;
}
body.masterpalm-store-dark .mpb2b-product-copy h1,
body.masterpalm-store-dark .mpb2b-model-row,
body.masterpalm-store-dark .mpb2b-product-certs div{
  color:#f4f6f8!important;
}
body.masterpalm-store-dark .mpb2b-product-copy p,
body.masterpalm-store-dark .mpb2b-product-copy .mpb2b-tax,
body.masterpalm-store-dark .mpb2b-model-row strong{color:#c1c8cf!important}
body.masterpalm-store-dark .mpb2b-product-certs i{color:#e2e6ea!important}
body.masterpalm-store-dark .mpb2b-moq,
body.masterpalm-store-dark .mpb2b-buybox,
body.masterpalm-store-dark .mpb2b-detail-spec-row,
body.masterpalm-store-dark .mpb2b-benefit-card,
body.masterpalm-store-dark .mpb2b-tab-content,
body.masterpalm-store-dark .mpb2b-media-card{
  background:linear-gradient(180deg,#161d24,#090d11)!important;
  border-color:rgba(255,255,255,.15)!important;
  color:#f4f6f8!important;
  box-shadow:0 14px 36px rgba(0,0,0,.3)!important;
}
body.masterpalm-store-dark .mpb2b-moq i,
body.masterpalm-store-dark .mpb2b-moq strong,
body.masterpalm-store-dark .mpb2b-current-price small,
body.masterpalm-store-dark .mpb2b-detail-spec-row div,
body.masterpalm-store-dark .mpb2b-detail-spec-row i,
body.masterpalm-store-dark .mpb2b-benefit-card i,
body.masterpalm-store-dark .mpb2b-benefit-card strong,
body.masterpalm-store-dark .mpb2b-media-card strong{
  color:#f4f6f8!important;
}
body.masterpalm-store-dark .mpb2b-moq span,
body.masterpalm-store-dark .mpb2b-detail-spec-row span,
body.masterpalm-store-dark .mpb2b-benefit-card span,
body.masterpalm-store-dark .mpb2b-media-card em{
  color:#b8c1c9!important;
}
body.masterpalm-store-dark .mpb2b-tier-table th,
body.masterpalm-store-dark .mpb2b-tier-table td{color:#edf1f4!important;border-color:rgba(255,255,255,.13)!important}
body.masterpalm-store-dark .mpb2b-qty button,
body.masterpalm-store-dark .mpb2b-qty input{
  background:#0e1419!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.22)!important;
}
body.masterpalm-store-dark .mpb2b-tab-links{border-color:rgba(255,255,255,.14)!important}
body.masterpalm-store-dark .mpb2b-tab-links a{color:#e3e7eb!important}
body.masterpalm-store-dark .mpb2b-tab-links a.is-active{color:#ff4047!important}
body.masterpalm-store-dark .mpb2b-tab-content p,
body.masterpalm-store-dark .mpb2b-tab-content li{color:#c6cdd3!important}
body.masterpalm-store-dark .mpb2b-spec-table td:first-child{
  background:#121920!important;
  color:#fff!important;
}

/* ---------------------------------------------------------
   Cart, checkout, payment and shipping
--------------------------------------------------------- */
body.masterpalm-store-dark .mpb2b-cart-table,
body.masterpalm-store-dark .mpb2b-box,
body.masterpalm-store-dark .mpb2b-summary,
body.masterpalm-store-dark .mpb2b-form-card{
  background:linear-gradient(180deg,#161d24,#090d11)!important;
  color:#f4f6f8!important;
  border-color:rgba(255,255,255,.15)!important;
  box-shadow:0 14px 38px rgba(0,0,0,.32)!important;
}
body.masterpalm-store-dark .mpb2b-cart-table th{
  background:#0d1217!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.13)!important;
}
body.masterpalm-store-dark .mpb2b-cart-table td,
body.masterpalm-store-dark .mpb2b-cart-product strong,
body.masterpalm-store-dark .mpb2b-box-row,
body.masterpalm-store-dark .mpb2b-summary-line,
body.masterpalm-store-dark .mpb2b-summary-total{
  color:#edf1f4!important;
  border-color:rgba(255,255,255,.13)!important;
}
body.masterpalm-store-dark .mpb2b-cart-product span,
body.masterpalm-store-dark .mpb2b-cart-product small,
body.masterpalm-store-dark .mpb2b-summary-line small{color:#b7c0c8!important}
body.masterpalm-store-dark .mpb2b-cart-total,
body.masterpalm-store-dark .mpb2b-summary-total strong{color:#ff4148!important}
body.masterpalm-store-dark .mpb2b-payment-option,
body.masterpalm-store-dark .mpb2b-shipping-option,
body.masterpalm-store-dark .mpb2b-shippo-rate-box,
body.masterpalm-store-dark .mpb2b-live-price-preview,
body.masterpalm-store-dark .mpb2b-muted-note,
body.masterpalm-store-dark .mpb2b-shipping-rate-empty{
  background:#111820!important;
  color:#eef2f5!important;
  border-color:rgba(255,255,255,.18)!important;
  box-shadow:none!important;
}
body.masterpalm-store-dark .mpb2b-payment-option strong,
body.masterpalm-store-dark .mpb2b-shipping-option strong,
body.masterpalm-store-dark .mpb2b-shippo-rate-box strong,
body.masterpalm-store-dark .mpb2b-live-price-preview strong{color:#fff!important}
body.masterpalm-store-dark .mpb2b-payment-option small,
body.masterpalm-store-dark .mpb2b-shipping-option small,
body.masterpalm-store-dark .mpb2b-shippo-rate-box span{color:#b9c2ca!important}
body.masterpalm-store-dark .mpb2b-cart-shippo-extra input{
  background:#0d1318!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.2)!important;
}
body.masterpalm-store-dark .mpb2b-live-price-preview.is-quote-required,
body.masterpalm-store-dark .mpb2b-quote-check.is-added::after{
  background:rgba(215,25,32,.13)!important;
  color:#ffb8bc!important;
  border-color:rgba(255,78,87,.42)!important;
}
body.masterpalm-store-dark .mp-cart-option-summary{
  background:rgba(215,25,32,.10)!important;
  color:#f4f6f8!important;
  border-left-color:var(--mp-red)!important;
}
body.masterpalm-store-dark .mp-cart-option-summary small,
body.masterpalm-store-dark .mp-checkout-option-summary{color:#c7ced4!important}

/* Alerts remain semantically colored and readable on dark pages. */
body.masterpalm-store-dark .mpb2b-alert{
  background:#3a260f!important;
  color:#ffe9c7!important;
  border-color:#8f6125!important;
}
body.masterpalm-store-dark .mpb2b-alert-success,
body.masterpalm-store-dark .alert-success,
body.masterpalm-store-dark .mpb2b-shippo-message.is-success,
body.masterpalm-store-dark [data-mpb2b-shipping-rate-message].is-success{
  background:#0e2d20!important;
  color:#c9f7dc!important;
  border-color:#286b4a!important;
}
body.masterpalm-store-dark .alert-danger,
body.masterpalm-store-dark .alert-error,
body.masterpalm-store-dark .mpb2b-shippo-message.is-error,
body.masterpalm-store-dark [data-mpb2b-shipping-rate-message].is-error{
  background:#3a1216!important;
  color:#ffd4d7!important;
  border-color:#873139!important;
}
body.masterpalm-store-dark .mpb2b-empty{
  background:#0d1318!important;
  color:#c9d0d6!important;
  border-color:rgba(255,255,255,.24)!important;
}
body.masterpalm-store-dark .mpb2b-empty strong{color:#fff!important}
body.masterpalm-store-dark .mpb2b-empty p{color:#b7c0c8!important}

/* ---------------------------------------------------------
   Modal palette and guaranteed product-option stacking
--------------------------------------------------------- */
body.masterpalm-store-dark .modal-content{
  background:#0c1116;
  color:#f4f6f8;
  border-color:rgba(255,255,255,.17);
}
body.masterpalm-store-dark .modal-header,
body.masterpalm-store-dark .modal-footer{
  background:#10171d;
  color:#fff;
  border-color:rgba(255,255,255,.13);
}
body.masterpalm-store-dark .modal-body{background:#0b1014;color:#f4f6f8}
body.masterpalm-store-dark .modal :where(.modal-title,h1,h2,h3,h4,h5,h6,label,legend,strong){
  color:#fff!important;
}
body.masterpalm-store-dark .modal :where(p,small,.text-muted,.form-text){
  color:#c2cad1!important;
}
body.masterpalm-store-dark .modal .btn-outline-dark{
  background:#141c23!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.28)!important;
}
body.masterpalm-store-dark .modal .btn-outline-dark:hover,
body.masterpalm-store-dark .modal .btn-outline-dark:focus-visible{
  background:#202a33!important;
  color:#fff!important;
  border-color:var(--mp-red)!important;
}
body.masterpalm-store-dark .modal .btn-close{filter:invert(1) grayscale(1);opacity:.92}

body.masterpalm-store-dark .mpb2b-cart-added-modal .modal-header,
body.masterpalm-store-dark .mpb2b-cart-added-modal .modal-footer,
body.masterpalm-store-dark .mpb2b-cart-added-modal .modal-body{
  background:#0c1116!important;
  border-color:rgba(255,255,255,.13)!important;
}
body.masterpalm-store-dark .mpb2b-cart-added-kicker{color:#ff575e!important}
body.masterpalm-store-dark .mpb2b-cart-added-icon{
  background:#123122!important;
  color:#69d391!important;
}
body.masterpalm-store-dark .mpb2b-express-shipping-modal .modal-content,
body.masterpalm-store-dark .mpb2b-express-shipping-modal .modal-body,
body.masterpalm-store-dark .mpb2b-express-shipping-modal .modal-footer{
  background:#0c1116!important;
  color:#f4f6f8!important;
  border-color:rgba(255,255,255,.14)!important;
}
body.masterpalm-store-dark .mpb2b-express-shipping-intro,
body.masterpalm-store-dark .mpb2b-express-shipping-grid label,
body.masterpalm-store-dark .mpb2b-express-rate-toolbar strong{color:#f4f6f8!important}
body.masterpalm-store-dark .mpb2b-express-rate-toolbar small{color:#b9c2ca!important}
body.masterpalm-store-dark .mpb2b-express-shipping-grid .form-control,
body.masterpalm-store-dark .mpb2b-express-rate-panel .form-select,
body.masterpalm-store-dark .mpb2b-express-rate-panel{
  background:#10171d!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.2)!important;
}

/* Product option modal must outrank filter/header/image layers and Bootstrap's generic backdrop. */
body > #mpProductOptionModal.mp-product-option-modal{
  position:fixed!important;
  inset:0!important;
  z-index:2147483646!important;
  isolation:isolate;
}
body.mp-product-option-modal-open > .modal-backdrop,
body.mp-product-option-modal-open.modal-open > .modal-backdrop,
body.mp-product-option-modal-open > .modal-backdrop.show{
  z-index:2147483635!important;
}
body.masterpalm-store-dark .mp-product-option-modal .modal-content{
  background:#0b1014!important;
  color:#f4f6f8!important;
  border:1px solid rgba(255,255,255,.17)!important;
  box-shadow:0 32px 90px rgba(0,0,0,.68)!important;
}
body.masterpalm-store-dark .mp-product-option-modal .modal-header{
  background:linear-gradient(180deg,#202932,#11171d)!important;
  border-bottom-color:var(--mp-red)!important;
}
body.masterpalm-store-dark .mp-product-option-modal .modal-body,
body.masterpalm-store-dark .mp-product-option-modal .modal-footer{
  background:#0b1014!important;
  color:#f4f6f8!important;
  border-color:rgba(255,255,255,.14)!important;
}
body.masterpalm-store-dark .mp-option-product-summary{
  background:#151d24!important;
  color:#fff!important;
  border-left-color:var(--mp-red)!important;
}
body.masterpalm-store-dark .mp-option-product-summary strong{color:#fff!important}
body.masterpalm-store-dark .mp-option-product-summary span{color:#c3cbd2!important}
body.masterpalm-store-dark .mp-option-group{
  background:#10171d!important;
  color:#f4f6f8!important;
  border-color:rgba(255,255,255,.17)!important;
}
body.masterpalm-store-dark .mp-option-group legend,
body.masterpalm-store-dark .mp-option-choice strong{color:#fff!important}
body.masterpalm-store-dark .mp-option-group > p,
body.masterpalm-store-dark .mp-option-choice small{color:#bdc6ce!important}
body.masterpalm-store-dark .mp-option-choice{
  background:#0c1217!important;
  color:#f4f6f8!important;
  border-color:rgba(255,255,255,.17)!important;
}
body.masterpalm-store-dark .mp-option-choice:hover{
  background:#182129!important;
  border-color:var(--mp-red)!important;
}
body.masterpalm-store-dark .mp-product-option-modal .form-select{
  background:#0a0f13!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.22)!important;
}

/* ---------------------------------------------------------
   Footer and sitewide utilities
--------------------------------------------------------- */
body.masterpalm-store-dark .mpb2b-footer-main{
  background:linear-gradient(180deg,#11171d,#050607)!important;
  color:#f4f6f8!important;
  border-top:1px solid rgba(255,255,255,.11);
}
body.masterpalm-store-dark .mpb2b-footer-main h3,
body.masterpalm-store-dark .mpb2b-footer-main strong,
body.masterpalm-store-dark .mpb2b-footer-main a{color:#f4f6f8!important}
body.masterpalm-store-dark .mpb2b-footer-main p,
body.masterpalm-store-dark .mpb2b-footer-main span,
body.masterpalm-store-dark .mpb2b-footer-main li{color:#b8c1c9!important}
body.masterpalm-store-dark .mpb2b-footer-contact div{color:#b8c1c9!important}
body.masterpalm-store-dark .mpb2b-footer-main a:hover{color:#ff4047!important}
body.masterpalm-store-dark .mpb2b-footer-bottom{
  background:#020304!important;
  border-top:1px solid rgba(255,255,255,.09);
}
body.masterpalm-store-dark .mpb2b-newsletter-form input{
  background:#090d11!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.22)!important;
}
body.masterpalm-store-dark .ses-go-top{
  background:var(--mp-red)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.18)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.38)!important;
}

/* Preserve intentionally light media/payment canvases. */
body.masterpalm-store-dark :where(
  .mpb2b-product-media,.mpb2b-cart-img,.mpb2b-gallery-main,.mpb2b-thumb,
  .mpb2b-footer-payment-icon,.mp-product-list-media,.mp-product-main-image
) :where(img,svg){color:initial}
body.masterpalm-store-dark .mpb2b-footer-payment-icon{background:#fff!important}

@media (max-width:900px){
  body.masterpalm-store-dark .mpb2b-nav .mpb2b-container{
    background:#070a0d!important;
  }
  body.masterpalm-store-dark .mpb2b-nav-submenu,
  body.masterpalm-store-dark .mpb2b-nav-submenu .mpb2b-nav-submenu{
    background:#10171d!important;
    border-color:rgba(255,255,255,.11)!important;
    box-shadow:none!important;
  }
}

@media (prefers-reduced-motion:reduce){
  body.masterpalm-store-dark *,
  body.masterpalm-store-dark *:before,
  body.masterpalm-store-dark *:after{
    scroll-behavior:auto!important;
  }
}

/* =========================================================
   Legacy storefront routes that received white page-specific
   styles in Patches 315–333. These selectors intentionally
   outrank those compatibility files without changing layout.
========================================================= */

/* Collection index, category detail and legacy /product catalog. */
body.site-frontend.masterpalm-store-dark.masterpalm-store-white:is(.mp-category-detail-page,.mp-tool-collections-page,.mp-product-catalog-page-body),
body.site-frontend.masterpalm-store-dark.masterpalm-store-white:is(.mp-category-detail-page,.mp-tool-collections-page,.mp-product-catalog-page-body) #site-main{
  background:
    radial-gradient(circle at 50% 0,rgba(160,168,176,.10),transparent 34%),
    linear-gradient(180deg,#0b1014,#050607 46%,#07090b)!important;
  color:#f4f6f8!important;
}
body.masterpalm-store-dark.masterpalm-store-white:is(.mp-category-detail-page,.mp-tool-collections-page,.mp-product-catalog-page-body) :where(
  .mp-page-hero,.mp-category-product-page,.mp-collection-page,.mp-product-catalog-page
){
  background:transparent!important;
  color:#f4f6f8!important;
  border-color:rgba(255,255,255,.14)!important;
}
body.masterpalm-store-dark.masterpalm-store-white:is(.mp-category-detail-page,.mp-tool-collections-page,.mp-product-catalog-page-body) .mp-page-hero{
  background:linear-gradient(135deg,#111820,#070a0d 62%,#2a0508)!important;
  border-bottom:1px solid rgba(255,255,255,.14)!important;
}
body.masterpalm-store-dark.masterpalm-store-white:is(.mp-category-detail-page,.mp-tool-collections-page,.mp-product-catalog-page-body) :where(
  .mp-page-hero h1,.mp-section-title h2,.mp-section-title-left h2,.mp-product-results-head h2,
  .mp-catalog-filter-head h2,.mp-category-sidebar h2
){color:#f4f6f8!important;text-shadow:none!important}
body.masterpalm-store-dark.masterpalm-store-white:is(.mp-category-detail-page,.mp-tool-collections-page,.mp-product-catalog-page-body) :where(
  .mp-page-hero p,.mp-breadcrumb,.mp-breadcrumb a,.mp-product-results-head p
){color:#c3cbd2!important;text-shadow:none!important}
body.masterpalm-store-dark.masterpalm-store-white:is(.mp-category-detail-page,.mp-tool-collections-page,.mp-product-catalog-page-body) :where(
  .mp-category-sidebar,.mp-category-copy,.mp-sidebar-quote,
  .mp-product-list-card,.mp-product-list-body,
  .mp-related-collection-card,.mp-related-collection-copy,
  .mp-category-card,.mp-category-card .mp-card-body,
  .mp-quote-strip,.mp-mini-feature-strip,.mp-mini-feature-strip>article,
  .mp-catalog-filter-panel,.mp-catalog-empty,.mp-catalog-clear-results
){
  background:linear-gradient(180deg,#171e25,#090d11)!important;
  color:#f4f6f8!important;
  border-color:rgba(255,255,255,.15)!important;
  box-shadow:0 14px 36px rgba(0,0,0,.30)!important;
}
body.masterpalm-store-dark.masterpalm-store-white.mp-category-detail-page :where(
  .mp-category-nav-row>a,.mp-category-nav-toggle
),
body.masterpalm-store-dark.masterpalm-store-white.mp-product-catalog-page-body :where(
  .mp-catalog-filter-actions a,.mp-catalog-pagination a,.mp-catalog-relation-chips a
){
  background:#10171d!important;
  color:#e8ecef!important;
  border-color:rgba(255,255,255,.18)!important;
}
body.masterpalm-store-dark.masterpalm-store-white.mp-category-detail-page :where(
  .mp-category-nav-row>a:hover,.mp-category-nav-row>a.is-active,.mp-category-nav-toggle:hover
),
body.masterpalm-store-dark.masterpalm-store-white.mp-product-catalog-page-body :where(
  .mp-catalog-filter-actions a:hover,.mp-catalog-pagination a:hover,.mp-catalog-pagination a.is-active,
  .mp-catalog-relation-chips a:hover,.mp-catalog-relation-chips a.is-active
){
  background:rgba(215,25,32,.16)!important;
  color:#ff474e!important;
  border-color:var(--mp-red)!important;
}
body.masterpalm-store-dark.masterpalm-store-white.mp-category-detail-page .mp-category-nav-children{
  background:transparent!important;
  border-left-color:rgba(255,255,255,.14)!important;
}
body.masterpalm-store-dark.masterpalm-store-white:is(.mp-category-detail-page,.mp-tool-collections-page,.mp-product-catalog-page-body) :where(
  .mp-category-copy h2,.mp-category-copy h3,.mp-category-copy h4,
  .mp-product-list-body h3,.mp-product-list-body h3 a,
  .mp-related-collection-copy strong,.mp-category-card .mp-card-body strong,
  .mp-quote-strip-copy strong,.mp-mini-feature-strip strong,
  .mp-sidebar-quote strong,.mp-catalog-filter-head strong
){color:#f4f6f8!important}
body.masterpalm-store-dark.masterpalm-store-white:is(.mp-category-detail-page,.mp-tool-collections-page,.mp-product-catalog-page-body) :where(
  .mp-category-copy p,.mp-category-copy li,.mp-product-list-body p,
  .mp-related-collection-copy p,.mp-category-card .mp-card-body small,
  .mp-quote-strip-copy p,.mp-mini-feature-strip span,.mp-sidebar-quote span
){color:#bcc5cd!important}
body.masterpalm-store-dark.masterpalm-store-white:is(.mp-category-detail-page,.mp-tool-collections-page,.mp-product-catalog-page-body) :where(
  .mp-product-list-media,.mp-related-collection-media,.mp-category-card .mp-card-media
){
  background-color:#f5f7f9!important;
  border-color:#d9dfe5!important;
}
body.masterpalm-store-dark.masterpalm-store-white:is(.mp-category-detail-page,.mp-tool-collections-page,.mp-product-catalog-page-body) :where(
  .mp-product-list-media.is-missing-image,.mp-related-collection-media.is-missing-image,.mp-category-card.is-missing-image .mp-card-media
){background-color:#dfe4e8!important;color:#5e6974!important}
body.masterpalm-store-dark.masterpalm-store-white.mp-product-catalog-page-body :where(
  .mp-catalog-filter-field label,.mp-catalog-filter-head label
){color:#eef2f5!important}
body.masterpalm-store-dark.masterpalm-store-white.mp-product-catalog-page-body :where(
  .mp-catalog-filter-field input,.mp-catalog-filter-field select,.mp-inline-search input
){
  background:#0d1318!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.22)!important;
}
body.masterpalm-store-dark.masterpalm-store-white.mp-tool-collections-page .mp-cta-band{
  background:linear-gradient(90deg,#75060b,#d71920,#75060b)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.16)!important;
}
body.masterpalm-store-dark.masterpalm-store-white.mp-tool-collections-page .mp-cta-band :where(strong,span,p,a){color:#fff!important}

/* Contact and industrial service/page routes. */
body.site-masterpalm.masterpalm-store-dark.mp-contact-page:not(.mp-request-quote-page),
body.site-masterpalm.masterpalm-store-dark.mp-pages-page,
body.site-masterpalm.masterpalm-store-dark.mp-contact-page:not(.mp-request-quote-page) #site-main,
body.site-masterpalm.masterpalm-store-dark.mp-pages-page #site-main,
body.site-masterpalm.masterpalm-store-dark.mp-contact-page:not(.mp-request-quote-page) :where(.mp-industrial-contact,.mp-contact-workspace),
body.site-masterpalm.masterpalm-store-dark.mp-pages-page :where(.mp-section,.mp-section-dark,.ses-inner-content,.ses-inner-block-gallery){
  background:linear-gradient(180deg,#0b1014,#050607 48%,#07090b)!important;
  color:#f4f6f8!important;
}
body.site-masterpalm.masterpalm-store-dark.mp-contact-page:not(.mp-request-quote-page) .mp-contact-hero,
body.site-masterpalm.masterpalm-store-dark.mp-pages-page .mp-page-hero{
  background-image:linear-gradient(105deg,rgba(4,6,8,.96),rgba(9,13,17,.88) 52%,rgba(73,5,9,.74)),var(--mp-contact-hero-image,none)!important;
  background-color:#080b0e!important;
  background-size:cover!important;
  background-position:center!important;
  color:#f4f6f8!important;
  border-color:rgba(255,255,255,.14)!important;
}
body.site-masterpalm.masterpalm-store-dark.mp-contact-page:not(.mp-request-quote-page) :where(
  .mp-contact-breadcrumb,.mp-contact-breadcrumb a,.mp-kicker,.mp-contact-title,.mp-contact-lead,.mp-contact-lead strong
),
body.site-masterpalm.masterpalm-store-dark.mp-pages-page :where(
  .mp-page-hero h1,.mp-page-hero p,.mp-breadcrumb,.mp-breadcrumb a,.ses-inner-section-title
){color:#f4f6f8!important}
body.site-masterpalm.masterpalm-store-dark.mp-contact-page:not(.mp-request-quote-page) :where(
  .mp-response-card,.mp-branch-console,.mp-inquiry-console,.mp-console-head,.mp-branch-card,
  .mp-contact-office-credential,.mp-map-plate,.mp-contact-feature
),
body.site-masterpalm.masterpalm-store-dark.mp-pages-page :where(
  .mp-service-card,.ses-inner-copy,.ses-inner-tile,.ses-inner-tile.has-gradient
){
  background:linear-gradient(180deg,#171e25,#090d11)!important;
  color:#f4f6f8!important;
  border-color:rgba(255,255,255,.15)!important;
  box-shadow:0 16px 42px rgba(0,0,0,.34)!important;
}
body.site-masterpalm.masterpalm-store-dark.mp-pages-page .mp-service-card{
  background-image:linear-gradient(180deg,rgba(20,27,34,.94),rgba(7,10,13,.96)),var(--mp-bg,none)!important;
  background-size:cover!important;
}
body.site-masterpalm.masterpalm-store-dark.mp-contact-page:not(.mp-request-quote-page) :where(
  .mp-response-card strong,.mp-console-head h2,.mp-branch-card h3,.mp-map-selected strong,
  .mp-contact-feature strong,.mp-contact-office-credential
),
body.site-masterpalm.masterpalm-store-dark.mp-pages-page :where(
  .mp-service-card strong,.ses-inner-copy,.ses-inner-copy h1,.ses-inner-copy h2,.ses-inner-copy h3,
  .ses-richtext,.ses-richtext h1,.ses-richtext h2,.ses-richtext h3,
  .ses-inner-tile__copy strong,.ses-inner-tile__number
){color:#f4f6f8!important}
body.site-masterpalm.masterpalm-store-dark.mp-contact-page:not(.mp-request-quote-page) :where(
  .mp-response-card span,.mp-branch-card p,.mp-branch-lines,.mp-map-selected,
  .mp-route-note,.mp-contact-feature span
),
body.site-masterpalm.masterpalm-store-dark.mp-pages-page :where(
  .mp-service-card p,.ses-inner-copy p,.ses-inner-copy li,.ses-richtext p,.ses-richtext li,.ses-inner-tile__copy em
){color:#bcc5cd!important}
body.site-masterpalm.masterpalm-store-dark.mp-contact-page:not(.mp-request-quote-page) :where(
  .mp-field label,.mp-inquiry-console label
){color:#eef2f5!important}
body.site-masterpalm.masterpalm-store-dark.mp-contact-page:not(.mp-request-quote-page) :where(
  .mp-field input,.mp-field textarea,.mp-field select,.mp-inquiry-console .form-control,.mp-inquiry-console .form-select
){
  background:#0d1318!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.22)!important;
}
body.site-masterpalm.masterpalm-store-dark.mp-contact-page:not(.mp-request-quote-page) .mp-map-plate__head{
  background:#06090c!important;
  color:#fff!important;
}
body.site-masterpalm.masterpalm-store-dark.mp-contact-page:not(.mp-request-quote-page) .mp-map-plate iframe{
  background:#fff!important;
}

/* Customer account pages. */
body.masterpalm-theme.masterpalm-store-dark.mp-account-page #site-main,
body.masterpalm-theme.masterpalm-store-dark.mp-account-page .mp-account-shell{
  background:linear-gradient(180deg,#0b1014,#050607 48%,#07090b)!important;
  color:#f4f6f8!important;
}
body.masterpalm-theme.masterpalm-store-dark.mp-account-page :where(
  .mp-account-card,.mp-account-card__body,.mp-account-empty
){
  background:linear-gradient(180deg,#171e25,#090d11)!important;
  color:#f4f6f8!important;
  border-color:rgba(255,255,255,.15)!important;
  box-shadow:0 16px 42px rgba(0,0,0,.34)!important;
}
body.masterpalm-theme.masterpalm-store-dark.mp-account-page .mp-account-card__head{
  background:linear-gradient(180deg,#252f38,#11171d)!important;
  color:#fff!important;
  border-bottom-color:var(--mp-red)!important;
}
body.masterpalm-theme.masterpalm-store-dark.mp-account-page :where(
  .mp-account-card__body label,.mp-account-card__body .form-label,
  .mp-account-details dd,.mp-account-empty strong,.mp-account-empty p
){color:#f4f6f8!important}
body.masterpalm-theme.masterpalm-store-dark.mp-account-page :where(
  .mp-account-card__body .form-text,.mp-account-help,.mp-account-secondary span,.mp-account-details dt
){color:#b9c2ca!important}
body.masterpalm-theme.masterpalm-store-dark.mp-account-page :where(
  .mp-account-card__body input,.mp-account-card__body textarea,.mp-account-card__body select,
  .mp-account-card__body .form-control,.mp-account-card__body .form-select
){
  background:#0d1318!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.24)!important;
}
body.masterpalm-theme.masterpalm-store-dark.mp-account-page :where(
  .mp-account-table,.mp-account-table th,.mp-account-table td
){
  --bs-table-bg:#10171d;
  --bs-table-color:#edf1f4;
  --bs-table-border-color:rgba(255,255,255,.14);
  background:#10171d!important;
  color:#edf1f4!important;
  border-color:rgba(255,255,255,.14)!important;
}
body.masterpalm-theme.masterpalm-store-dark.mp-account-page .mp-account-table thead th{
  background:#080c0f!important;
  color:#fff!important;
}
body.masterpalm-theme.masterpalm-store-dark.mp-account-page .btn-outline-dark{
  background:#121920!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.28)!important;
}

/* Request-for-quote route. */
body.masterpalm-theme.masterpalm-store-dark .mp-rfq-page{
  background:transparent!important;
  color:#f4f6f8!important;
}
body.masterpalm-theme.masterpalm-store-dark :where(
  .mp-rfq-cart-panel,.mp-rfq-form-panel,.mp-rfq-item,.mp-rfq-empty,.mp-rfq-alert
){
  background:linear-gradient(180deg,#171e25,#090d11)!important;
  color:#f4f6f8!important;
  border-color:rgba(255,255,255,.15)!important;
  box-shadow:0 14px 36px rgba(0,0,0,.30)!important;
}
body.masterpalm-theme.masterpalm-store-dark :where(
  .mp-rfq-panel-head h2,.mp-rfq-item-info strong,.mp-rfq-manual-add h3
){color:#f4f6f8!important}
body.masterpalm-theme.masterpalm-store-dark :where(
  .mp-rfq-item-info span,.mp-rfq-item-qty label,.mp-rfq-form label,.mp-rfq-full-label
){color:#bcc5cd!important}
body.masterpalm-theme.masterpalm-store-dark :where(
  .mp-rfq-item-qty input,.mp-rfq-form input,.mp-rfq-form textarea,.mp-rfq-manual-grid input
){
  background:#0d1318!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.22)!important;
}
body.masterpalm-theme.masterpalm-store-dark .mp-rfq-item-media{
  background-color:#f5f7f9!important;
  border-color:#d9dfe5!important;
}
body.masterpalm-theme.masterpalm-store-dark .mp-rfq-item-qty button{
  background:#121920!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.24)!important;
}
body.masterpalm-theme.masterpalm-store-dark .mp-rfq-item-qty button:hover{
  background:var(--mp-red)!important;
  border-color:var(--mp-red)!important;
}
body.masterpalm-theme.masterpalm-store-dark.mp-request-quote-page .mp-rfq-browse-button:hover,
body.masterpalm-theme.masterpalm-store-dark.mp-request-quote-page .mp-rfq-browse-button:focus-visible{
  background:#10171d!important;
  color:#fff!important;
  border-color:var(--mp-red)!important;
}
body.masterpalm-theme.masterpalm-store-dark.mp-request-quote-page .mp-rfq-browse-button:hover :where(i,span),
body.masterpalm-theme.masterpalm-store-dark.mp-request-quote-page .mp-rfq-browse-button:focus-visible :where(i,span){
  color:#fff!important;
}

/* Zelle is an intentional light payment surface because the QR and banking
   reference need a white scan/print canvas. Keep its text explicitly dark. */
body.masterpalm-store-dark #site-main .mpb2b-form-card.mpb2b-zelle-panel{
  background:linear-gradient(135deg,#fff7ed 0%,#ffedd5 58%,#fff7ed 100%)!important;
  color:#111827!important;
  border-color:#fed7aa!important;
  box-shadow:0 18px 44px rgba(124,45,18,.18)!important;
}
body.masterpalm-store-dark #site-main .mpb2b-zelle-panel :where(h1,h2,h3,label,.form-label,p.fw-bold){
  color:#111827!important;
}
body.masterpalm-store-dark #site-main .mpb2b-zelle-panel :where(.text-muted,.form-text){
  color:#4b5563!important;
}
body.masterpalm-store-dark #site-main .mpb2b-zelle-reference,
body.masterpalm-store-dark #site-main .mpb2b-zelle-qr-card,
body.masterpalm-store-dark #site-main .mpb2b-zelle-qr-image-box{
  background:#fff!important;
  color:#111827!important;
  border-color:#fdba74!important;
}
body.masterpalm-store-dark #site-main .mpb2b-zelle-reference strong{color:#111827!important}
body.masterpalm-store-dark #site-main .mpb2b-zelle-reference span{color:#9a3412!important}
body.masterpalm-store-dark #site-main .mpb2b-zelle-reference em{color:#4b5563!important}
body.masterpalm-store-dark #site-main .mpb2b-zelle-qr-label{color:#7c2d12!important}
body.masterpalm-store-dark #site-main .mpb2b-zelle-panel :where(
  input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select
){
  background:#fff!important;
  color:#111827!important;
  border-color:#f97316!important;
}
body.masterpalm-store-dark #site-main .mpb2b-zelle-memo-reminder{
  background:#111827!important;
  color:#fff!important;
}
body.masterpalm-store-dark #site-main .mpb2b-zelle-memo-reminder strong{color:#f97316!important}

/* Header mobile language button follows the black header instead of retaining
   the white compatibility skin. */
body.masterpalm-store-dark .mpb2b-lang-mobile{
  background:#10171d!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.22)!important;
}
body.masterpalm-store-dark .mpb2b-lang-mobile :where(span,i){color:#fff!important}
