/* STORE APP Patch 432
   Final storefront dark-theme cleanup after Patch 431.
   Goals: remove white-theme residue, darken remaining checkout/pricing/sidebar blocks,
   anchor category dropdowns to their menu parent, and remove quick-pay from listing cards. */

body.site-masterpalm,
body.site-masterpalm.masterpalm-store-dark,
body.site-masterpalm #site-main{
  --mp432-bg:#050607;
  --mp432-panel:#0b0f13;
  --mp432-panel-2:#10161c;
  --mp432-panel-3:#161e25;
  --mp432-line:rgba(255,255,255,.16);
  --mp432-line-strong:rgba(255,255,255,.26);
  --mp432-text:#f5f7fa;
  --mp432-muted:#c3ccd5;
  --mp432-muted-2:#9da8b2;
  --mp432-red:#d71920;
  --mp432-red-bright:#ff4a52;
  background:radial-gradient(circle at 20% 0,rgba(215,25,32,.12),transparent 34rem),linear-gradient(180deg,#10161c 0%,#050607 38%,#050607 100%)!important;
  color:var(--mp432-text)!important;
}

/* Neutralize legacy white-theme classes that templates may still emit. */
body.site-masterpalm.masterpalm-store-white,
body.site-masterpalm .masterpalm-store-white,
body.site-masterpalm .mp-collection-page-white,
body.site-masterpalm .mp-contact-light-page,
body.site-masterpalm .mp-white-page,
body.site-masterpalm .light-page,
body.site-masterpalm .bg-white,
body.site-masterpalm .bg-light,
body.site-masterpalm .text-bg-light,
body.site-masterpalm .card,
body.site-masterpalm .card-body,
body.site-masterpalm .list-group,
body.site-masterpalm .list-group-item,
body.site-masterpalm .accordion-item,
body.site-masterpalm .accordion-button,
body.site-masterpalm .accordion-body,
body.site-masterpalm .modal-content,
body.site-masterpalm .offcanvas,
body.site-masterpalm .dropdown-menu,
body.site-masterpalm .popover,
body.site-masterpalm .toast{
  background:linear-gradient(180deg,var(--mp432-panel-2),var(--mp432-panel))!important;
  color:var(--mp432-text)!important;
  border-color:var(--mp432-line)!important;
}

body.site-masterpalm .text-dark,
body.site-masterpalm .text-black,
body.site-masterpalm .text-body,
body.site-masterpalm .text-muted,
body.site-masterpalm p,
body.site-masterpalm li,
body.site-masterpalm dt,
body.site-masterpalm dd,
body.site-masterpalm label,
body.site-masterpalm small,
body.site-masterpalm .small,
body.site-masterpalm .form-text,
body.site-masterpalm .help-text,
body.site-masterpalm .description,
body.site-masterpalm .mpb2b-muted-note,
body.site-masterpalm .mpb2b-detail-express p,
body.site-masterpalm .mpb2b-buybox-disclosure-body,
body.site-masterpalm .mpb2b-product-copy p{
  color:var(--mp432-muted)!important;
}

body.site-masterpalm h1,
body.site-masterpalm h2,
body.site-masterpalm h3,
body.site-masterpalm h4,
body.site-masterpalm h5,
body.site-masterpalm h6,
body.site-masterpalm strong,
body.site-masterpalm .fw-bold,
body.site-masterpalm .mp-section-title h2,
body.site-masterpalm .mp-page-hero h1,
body.site-masterpalm .mp-card-body strong,
body.site-masterpalm .mpb2b-product-body strong,
body.site-masterpalm .mpb2b-product-copy h1,
body.site-masterpalm .mpb2b-buybox h3,
body.site-masterpalm .mpb2b-current-price small,
body.site-masterpalm .mpb2b-buybox-disclosure summary,
body.site-masterpalm .mpb2b-buybox-disclosure summary span,
body.site-masterpalm .mpb2b-express-shipping-modal h2,
body.site-masterpalm .mpb2b-express-shipping-modal label span{
  color:#fff!important;
}

/* Category/product sidebars and filters. */
body.site-masterpalm .mpb2b-sidebar,
body.site-masterpalm .mpb2b-catalog-sidebar,
body.site-masterpalm .mpb2b-category-sidebar,
body.site-masterpalm .mpb2b-products-sidebar,
body.site-masterpalm .mpb2b-filter-panel,
body.site-masterpalm .mpb2b-catalog-filter,
body.site-masterpalm .mpb2b-category-tree,
body.site-masterpalm .mpb2b-category-tree-list,
body.site-masterpalm .mpb2b-category-tree-node,
body.site-masterpalm .mpb2b-category-tree-children,
body.site-masterpalm .mp-category-sidebar,
body.site-masterpalm .mp-product-sidebar,
body.site-masterpalm .mp-catalog-sidebar,
body.site-masterpalm .mp-filter-sidebar,
body.site-masterpalm .mp-filter-panel,
body.site-masterpalm .mp-product-filters,
body.site-masterpalm .catalog-sidebar,
body.site-masterpalm .category-sidebar,
body.site-masterpalm .product-sidebar,
body.site-masterpalm .filter-sidebar,
body.site-masterpalm .shop-sidebar,
body.site-masterpalm .sidebar-widget,
body.site-masterpalm .mp-category-tree,
body.site-masterpalm .mp-catalog-category-tree,
body.site-masterpalm [class*="category-tree"],
body.site-masterpalm [class*="filter-panel"],
body.site-masterpalm [class*="sidebar"] .card{
  background:linear-gradient(180deg,rgba(18,24,31,.99),rgba(7,10,13,.99))!important;
  color:var(--mp432-text)!important;
  border-color:var(--mp432-line)!important;
  box-shadow:0 18px 48px rgba(0,0,0,.38)!important;
}
body.site-masterpalm .mpb2b-category-tree a,
body.site-masterpalm .mpb2b-category-tree-link,
body.site-masterpalm .mp-category-tree a,
body.site-masterpalm .mp-catalog-category-tree a,
body.site-masterpalm [class*="category-tree"] a,
body.site-masterpalm .category-sidebar a,
body.site-masterpalm .product-sidebar a,
body.site-masterpalm .shop-sidebar a{
  color:rgba(245,247,250,.92)!important;
  background:transparent!important;
}
body.site-masterpalm .mpb2b-category-tree a:hover,
body.site-masterpalm .mpb2b-category-tree-link:hover,
body.site-masterpalm .mpb2b-category-tree-link.is-active,
body.site-masterpalm [class*="category-tree"] a:hover,
body.site-masterpalm [class*="category-tree"] .active>a{
  color:#fff!important;
  background:linear-gradient(90deg,rgba(215,25,32,.28),rgba(215,25,32,.08))!important;
  border-color:rgba(215,25,32,.38)!important;
}

/* Product collection/cards/callouts that still carried white bodies. */
body.site-masterpalm .mp-section,
body.site-masterpalm .mp-page-section,
body.site-masterpalm .mp-collection-page,
body.site-masterpalm .mp-category-card,
body.site-masterpalm .mp-card-body,
body.site-masterpalm .mp-quote-strip,
body.site-masterpalm .mp-mini-feature-strip article,
body.site-masterpalm .mp-product-list-card,
body.site-masterpalm .mp-product-list-body,
body.site-masterpalm .mpb2b-product-card,
body.site-masterpalm .mpb2b-product-body,
body.site-masterpalm .mpb2b-empty,
body.site-masterpalm .mp-catalog-empty,
body.site-masterpalm .mp-alert,
body.site-masterpalm .mp-note,
body.site-masterpalm .product-note,
body.site-masterpalm .product-callout,
body.site-masterpalm .alert-light,
body.site-masterpalm .alert-secondary,
body.site-masterpalm .alert-warning{
  background:linear-gradient(180deg,rgba(18,24,31,.98),rgba(8,11,15,.98))!important;
  color:var(--mp432-text)!important;
  border-color:var(--mp432-line)!important;
}
body.site-masterpalm .mp-card-body small,
body.site-masterpalm .mp-product-list-body p,
body.site-masterpalm .mpb2b-product-body em,
body.site-masterpalm .mpb2b-spec-mini,
body.site-masterpalm .mpb2b-price small,
body.site-masterpalm .mp-product-list-price span{
  color:var(--mp432-muted)!important;
}

/* Keep transparent product artwork/payment/QR islands readable. */
body.site-masterpalm .mp-card-media,
body.site-masterpalm .mpb2b-product-media,
body.site-masterpalm .mp-product-list-media,
body.site-masterpalm .mpb2b-gallery-main,
body.site-masterpalm .mpb2b-thumb,
body.site-masterpalm .mp-product-image,
body.site-masterpalm .product-image,
body.site-masterpalm .product-thumb,
body.site-masterpalm .mpb2b-footer-payment-icons,
body.site-masterpalm .payment-icons,
body.site-masterpalm .payment-logo-row,
body.site-masterpalm img[src*="payment-icons"],
body.site-masterpalm img[src*="QR"],
body.site-masterpalm img[src*="qr"]{
  background-color:#f4f7fa!important;
  color:#17202a!important;
}
body.site-masterpalm .zelle-panel,
body.site-masterpalm .zelle-qr,
body.site-masterpalm .qr-code,
body.site-masterpalm .qr-wrapper{
  background:#fff!important;
  color:#111!important;
}

/* Volume pricing, express checkout, RFQ, MOQ, and cordless bare-tool notices. */
body.site-masterpalm .mpb2b-moq,
body.site-masterpalm .mpb2b-buybox,
body.site-masterpalm .mpb2b-buybox-disclosure,
body.site-masterpalm .mpb2b-buybox-disclosure-body,
body.site-masterpalm .mpb2b-volume-pricing,
body.site-masterpalm .mpb2b-express-disclosure,
body.site-masterpalm .mpb2b-detail-express,
body.site-masterpalm .mpb2b-detail-express-buttons,
body.site-masterpalm .mpb2b-quote-threshold,
body.site-masterpalm .mpb2b-cordless-note,
body.site-masterpalm .mpb2b-cordless-buybox-note,
body.site-masterpalm .mpb2b-cordless-detail-notice,
body.site-masterpalm .mp-cordless-note,
body.site-masterpalm .mp-product-warning,
body.site-masterpalm .mp-product-notice,
body.site-masterpalm [class*="cordless"] [class*="note"],
body.site-masterpalm [class*="bare-tool"],
body.site-masterpalm [class*="volume-pric"],
body.site-masterpalm .volume-pricing,
body.site-masterpalm .mp-price-breaks,
body.site-masterpalm .price-breaks,
body.site-masterpalm .quantity-breaks,
body.site-masterpalm .mp-express-checkout,
body.site-masterpalm .express-checkout,
body.site-masterpalm [class*="express-checkout"],
body.site-masterpalm .rfq-box,
body.site-masterpalm .mp-rfq-box,
body.site-masterpalm .rfq-panel,
body.site-masterpalm .mp-rfq-panel,
body.site-masterpalm [class*="rfq"]:not(.btn):not(button):not(a){
  background:linear-gradient(180deg,#131b22,#080d11)!important;
  color:var(--mp432-text)!important;
  border-color:var(--mp432-line)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.32)!important;
}
body.site-masterpalm .mpb2b-cordless-note,
body.site-masterpalm .mpb2b-cordless-detail-notice{
  border-left:4px solid var(--mp432-red)!important;
}
body.site-masterpalm .mpb2b-cordless-note i,
body.site-masterpalm .mpb2b-cordless-detail-notice i,
body.site-masterpalm .mpb2b-moq i,
body.site-masterpalm .mpb2b-buybox-disclosure summary i{
  color:var(--mp432-red-bright)!important;
}
body.site-masterpalm .mpb2b-cordless-note span,
body.site-masterpalm .mpb2b-cordless-detail-notice span,
body.site-masterpalm .mpb2b-cordless-note,
body.site-masterpalm .mpb2b-cordless-detail-notice{
  color:#f2f5f8!important;
}

body.site-masterpalm .mpb2b-tier-table,
body.site-masterpalm .mpb2b-tier-table th,
body.site-masterpalm .mpb2b-tier-table td,
body.site-masterpalm .mp-volume-pricing table,
body.site-masterpalm .volume-pricing table,
body.site-masterpalm [class*="volume-pric"] table,
body.site-masterpalm table{
  --bs-table-bg:transparent!important;
  --bs-table-color:var(--mp432-text)!important;
  --bs-table-border-color:var(--mp432-line)!important;
  background:transparent!important;
  color:var(--mp432-text)!important;
  border-color:var(--mp432-line)!important;
}
body.site-masterpalm .mpb2b-tier-table th,
body.site-masterpalm table thead th{
  background:rgba(215,25,32,.18)!important;
  color:#fff!important;
}
body.site-masterpalm .mpb2b-tier-price strong,
body.site-masterpalm .mpb2b-current-price,
body.site-masterpalm .mp-product-list-price.is-quote strong{
  color:var(--mp432-red-bright)!important;
}

body.site-masterpalm .mpb2b-express-btn,
body.site-masterpalm .mpb2b-pay-stripe,
body.site-masterpalm .mpb2b-pay-paypal,
body.site-masterpalm .mpb2b-pay-zelle,
body.site-masterpalm .btn-light,
body.site-masterpalm .btn-outline-dark,
body.site-masterpalm .btn-outline-secondary,
body.site-masterpalm .btn-secondary,
body.site-masterpalm .btn-outline-primary{
  background:#111820!important;
  color:#fff!important;
  border-color:var(--mp432-line-strong)!important;
}
body.site-masterpalm .mpb2b-express-btn:hover,
body.site-masterpalm .btn-light:hover,
body.site-masterpalm .btn-outline-dark:hover,
body.site-masterpalm .btn-outline-secondary:hover,
body.site-masterpalm .btn-secondary:hover,
body.site-masterpalm .btn-outline-primary:hover{
  background:var(--mp432-red)!important;
  color:#fff!important;
  border-color:var(--mp432-red)!important;
}

/* Product-card RFQ controls: remove white button treatment, use industrial red emphasis. */
body.site-masterpalm .mpb2b-rfq-button,
body.site-masterpalm .mpb2b-quote-check,
body.site-masterpalm .mp-rfq-square-button,
body.site-masterpalm .mp-quote-square-button,
body.site-masterpalm .rfq-button,
body.site-masterpalm .btn-rfq,
body.site-masterpalm .mp-rfq-button,
body.site-masterpalm a[href*="rfq"].btn,
body.site-masterpalm button[name*="rfq"]{
  background:linear-gradient(180deg,rgba(215,25,32,.18),rgba(65,8,12,.34))!important;
  color:#ff6a71!important;
  border-color:rgba(255,74,82,.56)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 10px 24px rgba(0,0,0,.28)!important;
}
body.site-masterpalm .mpb2b-rfq-button span,
body.site-masterpalm .mpb2b-rfq-button small,
body.site-masterpalm .mpb2b-rfq-button i,
body.site-masterpalm .mpb2b-quote-check span,
body.site-masterpalm .mpb2b-quote-check small,
body.site-masterpalm .mpb2b-quote-check i,
body.site-masterpalm .mp-rfq-square-button i,
body.site-masterpalm .mp-quote-square-button i{
  color:#ff6a71!important;
}
body.site-masterpalm .mpb2b-rfq-button:hover,
body.site-masterpalm .mpb2b-quote-check:hover,
body.site-masterpalm .mp-rfq-square-button:hover,
body.site-masterpalm .mp-quote-square-button:hover{
  background:linear-gradient(180deg,#d71920,#8f070c)!important;
  color:#fff!important;
  border-color:#ff6a71!important;
}
body.site-masterpalm .mpb2b-rfq-button:hover span,
body.site-masterpalm .mpb2b-rfq-button:hover small,
body.site-masterpalm .mpb2b-rfq-button:hover i,
body.site-masterpalm .mpb2b-quote-check:hover span,
body.site-masterpalm .mpb2b-quote-check:hover small,
body.site-masterpalm .mpb2b-quote-check:hover i,
body.site-masterpalm .mp-rfq-square-button:hover i,
body.site-masterpalm .mp-quote-square-button:hover i{
  color:#fff!important;
}

/* Express-shipping modal and form controls. */
body.site-masterpalm .mpb2b-express-shipping-modal .modal-content,
body.site-masterpalm .mpb2b-express-shipping-modal .modal-header,
body.site-masterpalm .mpb2b-express-shipping-modal .modal-body,
body.site-masterpalm .mpb2b-express-shipping-modal .modal-footer,
body.site-masterpalm .mpb2b-express-rate-panel,
body.site-masterpalm .mpb2b-express-rate-toolbar,
body.site-masterpalm .mpb2b-express-rate-list,
body.site-masterpalm .mpb2b-express-rate-row,
body.site-masterpalm .mpb2b-express-rate-empty{
  background:linear-gradient(180deg,#111820,#070b0f)!important;
  color:var(--mp432-text)!important;
  border-color:var(--mp432-line)!important;
}
body.site-masterpalm input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.site-masterpalm textarea,
body.site-masterpalm select,
body.site-masterpalm .form-control,
body.site-masterpalm .form-select,
body.site-masterpalm .input-group-text{
  background-color:#0d1318!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.22)!important;
}
body.site-masterpalm input::placeholder,
body.site-masterpalm textarea::placeholder{color:rgba(255,255,255,.48)!important;}
body.site-masterpalm select option{background:#0d1318!important;color:#fff!important;}

/* Shop by Category/menu anchoring. The dropdown is intentionally relative to its own wrapper, not viewport left:0. */
body.site-masterpalm .mpb2b-nav,
body.site-masterpalm .mpb2b-nav .mpb2b-container{
  overflow:visible!important;
}
body.site-masterpalm .mpb2b-nav .mpb2b-container{
  position:relative!important;
  display:flex!important;
  align-items:stretch!important;
}
body.site-masterpalm .mpb2b-nav-category-wrap{
  position:relative!important;
  flex:0 0 auto!important;
  width:max-content!important;
  max-width:100%!important;
  align-self:stretch!important;
  isolation:isolate!important;
}
body.site-masterpalm .mpb2b-nav-category-wrap>.mpb2b-nav-item-row,
body.site-masterpalm .mpb2b-nav-category-wrap>.mpb2b-nav-item-row>.mpb2b-nav-category{
  min-height:54px!important;
  display:flex!important;
  align-items:center!important;
  width:max-content!important;
}
body.site-masterpalm .mpb2b-nav-managed .has-submenu,
body.site-masterpalm .mpb2b-nav-item.has-submenu,
body.site-masterpalm .mpb2b-nav-subitem.has-submenu,
body.site-masterpalm .mpb2b-category-menu-item.has-submenu{
  position:relative!important;
}

@media (min-width:992px){
  body.site-masterpalm .mpb2b-nav-category-wrap>.mpb2b-category-submenu,
  body.site-masterpalm .mpb2b-nav-category-wrap>.mpb2b-nav-submenu.depth-1,
  body.site-masterpalm .mpb2b-nav-category-wrap.is-open>.mpb2b-category-submenu,
  body.site-masterpalm .mpb2b-nav-category-wrap:hover>.mpb2b-category-submenu,
  body.site-masterpalm .mpb2b-nav-category-wrap:focus-within>.mpb2b-category-submenu{
    position:absolute!important;
    inset-inline-start:0!important;
    left:0!important;
    right:auto!important;
    top:calc(100% + 8px)!important;
    transform:none!important;
    margin:0!important;
    min-width:320px!important;
    width:max-content!important;
    max-width:min(480px,calc(100vw - 32px))!important;
    background:#0e1419!important;
    color:#fff!important;
    border:1px solid var(--mp432-line)!important;
    border-radius:16px!important;
    box-shadow:0 28px 76px rgba(0,0,0,.58)!important;
    z-index:2147482500!important;
  }
  body.site-masterpalm .mpb2b-nav-category-wrap:not(.is-open):not(:hover):not(:focus-within)>.mpb2b-category-submenu,
  body.site-masterpalm .mpb2b-nav-category-wrap:not(.is-open):not(:hover):not(:focus-within)>.mpb2b-nav-submenu.depth-1{
    display:none!important;
  }
  body.site-masterpalm .mpb2b-nav-managed .has-submenu>.mpb2b-nav-submenu.depth-1,
  body.site-masterpalm .mpb2b-nav-item.has-submenu>.mpb2b-nav-submenu.depth-1{
    position:absolute!important;
    left:0!important;
    right:auto!important;
    top:calc(100% + 8px)!important;
    transform:none!important;
    max-width:min(420px,calc(100vw - 32px))!important;
    background:#0e1419!important;
    border-color:var(--mp432-line)!important;
    box-shadow:0 24px 64px rgba(0,0,0,.52)!important;
    z-index:2147482400!important;
  }
  body.site-masterpalm .mpb2b-nav-subitem.has-submenu>.mpb2b-nav-submenu.depth-2,
  body.site-masterpalm .mpb2b-category-menu-item.has-submenu>.mpb2b-nav-submenu.depth-2,
  body.site-masterpalm .mpb2b-category-submenu .has-submenu>.mpb2b-nav-submenu{
    position:absolute!important;
    left:calc(100% + 8px)!important;
    right:auto!important;
    top:0!important;
    transform:none!important;
    margin:0!important;
    min-width:300px!important;
    max-width:min(440px,calc(100vw - 32px))!important;
    background:#0e1419!important;
    border:1px solid var(--mp432-line)!important;
    border-radius:16px!important;
    box-shadow:0 24px 64px rgba(0,0,0,.52)!important;
    z-index:2147482501!important;
  }
}
body.site-masterpalm .mpb2b-nav-submenu .mpb2b-nav-item-row,
body.site-masterpalm .mpb2b-nav-submenu a,
body.site-masterpalm .mpb2b-nav-submenu button{
  color:rgba(255,255,255,.92)!important;
  background:transparent!important;
}
body.site-masterpalm .mpb2b-nav-submenu .mpb2b-nav-item-row:hover,
body.site-masterpalm .mpb2b-nav-submenu a:hover{
  color:#fff!important;
  background:rgba(215,25,32,.18)!important;
}
@media (max-width:991.98px){
  body.site-masterpalm .mpb2b-nav-category-wrap,
  body.site-masterpalm .mpb2b-nav-category-wrap>.mpb2b-nav-item-row,
  body.site-masterpalm .mpb2b-nav-category-wrap>.mpb2b-nav-item-row>.mpb2b-nav-category{width:100%!important;}
  body.site-masterpalm .mpb2b-nav-category-wrap>.mpb2b-category-submenu,
  body.site-masterpalm .mpb2b-nav-category-wrap>.mpb2b-nav-submenu.depth-1,
  body.site-masterpalm .mpb2b-nav-subitem.has-submenu>.mpb2b-nav-submenu.depth-2,
  body.site-masterpalm .mpb2b-category-menu-item.has-submenu>.mpb2b-nav-submenu.depth-2{
    position:static!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    box-shadow:none!important;
    margin-top:.5rem!important;
    border-radius:12px!important;
  }
  body.site-masterpalm .mpb2b-nav-submenu.depth-2{margin-left:1rem!important;}
}

/* Product-card quick-pay removal remains CSS-backed as a safety net; PHP templates are also patched. */
body.site-masterpalm .mpb2b-product-card .mpb2b-item-express,
body.site-masterpalm .mpb2b-product-card .mp-express-checkout,
body.site-masterpalm .mpb2b-product-card .express-checkout,
body.site-masterpalm .mpb2b-product-card [class*="express-checkout"],
body.site-masterpalm .mpb2b-product-card [class*="quick-pay"],
body.site-masterpalm .mpb2b-product-card [class*="quickpay"],
body.site-masterpalm .mp-product-card .mpb2b-item-express,
body.site-masterpalm .mp-product-card [class*="express-checkout"],
body.site-masterpalm .mp-product-card [class*="quick-pay"],
body.site-masterpalm .mp-product-card [class*="quickpay"],
body.site-masterpalm .catalog-grid [class*="express-checkout"],
body.site-masterpalm .product-grid [class*="express-checkout"],
body.site-masterpalm .mpb2b-product-grid [class*="express-checkout"],
body.site-masterpalm .catalog-grid [class*="quick-pay"],
body.site-masterpalm .product-grid [class*="quick-pay"],
body.site-masterpalm .mpb2b-product-grid [class*="quick-pay"],
body.site-masterpalm .catalog-grid [class*="quickpay"],
body.site-masterpalm .product-grid [class*="quickpay"],
body.site-masterpalm .mpb2b-product-grid [class*="quickpay"]{
  display:none!important;
}

/* Newsletter popup still ships inline light CSS in the partial; override after it loads. */
body.site-masterpalm #nlOverlay.nl-overlay,
body.site-masterpalm .nl-overlay{background:rgba(0,0,0,.74)!important;z-index:2147483605!important;}
body.site-masterpalm #nlOverlay .nl-modal,
body.site-masterpalm .nl-overlay .nl-modal,
body.site-masterpalm .nl-modal{
  background:linear-gradient(180deg,#171f27,#080d11)!important;
  color:var(--mp432-text)!important;
  border:1px solid var(--mp432-line)!important;
  box-shadow:0 34px 90px rgba(0,0,0,.72)!important;
}
body.site-masterpalm #nlOverlay .nl-close,
body.site-masterpalm .nl-modal .nl-close{background:#0c1217!important;color:#fff!important;border-color:rgba(255,255,255,.25)!important;}
body.site-masterpalm #nlOverlay .nl-badge,
body.site-masterpalm .nl-modal .nl-badge{background:rgba(215,25,32,.16)!important;color:#ff666d!important;border:1px solid rgba(255,64,71,.30)!important;}
body.site-masterpalm #nlOverlay .nl-title,
body.site-masterpalm .nl-modal .nl-title{color:#fff!important;}
body.site-masterpalm #nlOverlay .nl-desc,
body.site-masterpalm #nlOverlay .nl-fine,
body.site-masterpalm #nlOverlay .nl-msg,
body.site-masterpalm .nl-modal .nl-desc,
body.site-masterpalm .nl-modal .nl-fine,
body.site-masterpalm .nl-modal .nl-msg{color:var(--mp432-muted)!important;}

/* Avoid restyling the frontend-admin overlay; it has its own contrast system. */
body.site-masterpalm .sesfe-admin-shell,
body.site-masterpalm .sesfe-admin-shell *,
body.site-masterpalm .sesfe-modal,
body.site-masterpalm .sesfe-modal *{
  color:initial;
}


/* STORE APP Patch 438 - final dark layer rebased onto STORE_APP_V3 / Patch 437.
   This file intentionally loads after Patch 431 and replaces the missing Patch 432 CSS
   from the updated source baseline. */
body.site-masterpalm.masterpalm-store-dark{
  background:#050607!important;
}
body.site-masterpalm.masterpalm-store-dark.masterpalm-store-white{
  background:#050607!important;
}

/* Category detail/sidebar classes from the current V3 templates. */
body.site-masterpalm .mp-category-product-page,
body.site-masterpalm .mp-category-layout,
body.site-masterpalm .mp-category-main,
body.site-masterpalm .mp-category-copy,
body.site-masterpalm .mp-richtext,
body.site-masterpalm .mp-product-results-head,
body.site-masterpalm .mp-category-sidebar,
body.site-masterpalm .mp-category-sidebar h2,
body.site-masterpalm .mp-category-nav,
body.site-masterpalm .mp-category-nav-root,
body.site-masterpalm .mp-category-nav-root li,
body.site-masterpalm .mp-category-nav-children,
body.site-masterpalm .mp-category-nav-row,
body.site-masterpalm .mp-sidebar-quote,
body.site-masterpalm .mp-cta-band,
body.site-masterpalm .mp-cta-inner,
body.site-masterpalm .mp-product-results-head,
body.site-masterpalm .mp-inline-search{
  background:linear-gradient(180deg,rgba(18,24,31,.98),rgba(7,10,13,.98))!important;
  color:var(--mp432-text,#f5f7fa)!important;
  border-color:var(--mp432-line,rgba(255,255,255,.16))!important;
}
body.site-masterpalm .mp-category-nav a,
body.site-masterpalm .mp-category-nav-row a,
body.site-masterpalm .mp-category-nav-toggle,
body.site-masterpalm .mp-sidebar-quote a,
body.site-masterpalm .mp-cta-band a,
body.site-masterpalm .mp-inline-search button{
  color:rgba(245,247,250,.94)!important;
  border-color:rgba(255,255,255,.18)!important;
}
body.site-masterpalm .mp-category-nav-row:hover,
body.site-masterpalm .mp-category-nav-row:focus-within,
body.site-masterpalm .mp-category-nav a.is-active,
body.site-masterpalm .mp-category-nav .is-current > .mp-category-nav-row{
  background:linear-gradient(90deg,rgba(215,25,32,.30),rgba(215,25,32,.08))!important;
  color:#fff!important;
}
body.site-masterpalm .mp-category-nav-toggle{
  background:#111820!important;
}
body.site-masterpalm .mp-category-copy h1,
body.site-masterpalm .mp-category-copy h2,
body.site-masterpalm .mp-category-copy h3,
body.site-masterpalm .mp-category-copy h4,
body.site-masterpalm .mp-product-results-head h2,
body.site-masterpalm .mp-sidebar-quote strong,
body.site-masterpalm .mp-cta-band strong{
  color:#fff!important;
}
body.site-masterpalm .mp-category-copy p,
body.site-masterpalm .mp-category-copy li,
body.site-masterpalm .mp-product-results-head span,
body.site-masterpalm .mp-sidebar-quote span,
body.site-masterpalm .mp-cta-band span{
  color:var(--mp432-muted,#c3ccd5)!important;
}

/* Product listing card actions in the V3 category template. */
body.site-masterpalm .mp-product-list-actions > a:not(.mp-cart-square-button),
body.site-masterpalm .mpb2b-card-actions > a:not(.mp-cart-square-button),
body.site-masterpalm .mp-product-list-actions .mp-cart-square-button,
body.site-masterpalm .mpb2b-card-actions .mp-cart-square-button{
  background:#111820!important;
  color:#f5f7fa!important;
  border-color:rgba(255,255,255,.20)!important;
}
body.site-masterpalm .mp-product-list-actions > a:not(.mp-cart-square-button):hover,
body.site-masterpalm .mpb2b-card-actions > a:not(.mp-cart-square-button):hover,
body.site-masterpalm .mp-product-list-actions .mp-cart-square-button:hover,
body.site-masterpalm .mpb2b-card-actions .mp-cart-square-button:hover{
  background:#d71920!important;
  color:#fff!important;
  border-color:#ff4a52!important;
}
body.site-masterpalm .mp-product-list-actions .mp-rfq-square-button,
body.site-masterpalm .mp-product-list-actions .mp-quote-square-button,
body.site-masterpalm .mpb2b-card-actions .mp-rfq-square-button,
body.site-masterpalm .mpb2b-card-actions .mp-quote-square-button{
  background:linear-gradient(180deg,rgba(215,25,32,.28),rgba(65,8,12,.44))!important;
  color:#ff7b82!important;
  border-color:rgba(255,74,82,.64)!important;
}

/* Store App product detail remaining white surfaces. */
body.site-masterpalm .mpb2b-product-detail,
body.site-masterpalm .mpb2b-product-main,
body.site-masterpalm .mpb2b-product-copy,
body.site-masterpalm .mpb2b-product-tabs,
body.site-masterpalm .mpb2b-product-tabs .nav,
body.site-masterpalm .mpb2b-product-tabs .tab-content,
body.site-masterpalm .mpb2b-option-group,
body.site-masterpalm .mpb2b-option-row,
body.site-masterpalm .mpb2b-product-options,
body.site-masterpalm .mpb2b-option-panel,
body.site-masterpalm .mpb2b-option-card,
body.site-masterpalm .mpb2b-option-choice,
body.site-masterpalm .product-options,
body.site-masterpalm .product-option,
body.site-masterpalm .option-row,
body.site-masterpalm .option-card{
  background:linear-gradient(180deg,#131b22,#080d11)!important;
  color:#f5f7fa!important;
  border-color:rgba(255,255,255,.16)!important;
}
body.site-masterpalm .mpb2b-option-group label,
body.site-masterpalm .mpb2b-option-row label,
body.site-masterpalm .mpb2b-product-options label,
body.site-masterpalm .product-options label,
body.site-masterpalm .product-option label,
body.site-masterpalm .option-row label,
body.site-masterpalm .option-card label{
  color:#f5f7fa!important;
}
body.site-masterpalm .mpb2b-option-group small,
body.site-masterpalm .mpb2b-option-row small,
body.site-masterpalm .mpb2b-product-options small,
body.site-masterpalm .product-options small,
body.site-masterpalm .product-option small,
body.site-masterpalm .option-row small,
body.site-masterpalm .option-card small{
  color:#c3ccd5!important;
}

/* Darken any current V3 white compatibility class that survives inside page content. */
body.site-masterpalm [class*="-white"]:not(img):not(svg):not(.btn-close),
body.site-masterpalm [class*="white-"]:not(img):not(svg):not(.btn-close){
  background-color:#0b0f13!important;
  color:#f5f7fa!important;
  border-color:rgba(255,255,255,.16)!important;
}

/* Keep actual image wells and payment/QR assets light even with the generic white-class neutralizer. */
body.site-masterpalm .mp-card-media,
body.site-masterpalm .mp-product-list-media,
body.site-masterpalm .mpb2b-product-media,
body.site-masterpalm .mpb2b-gallery-main,
body.site-masterpalm .mpb2b-thumb,
body.site-masterpalm .mpb2b-footer-payment-icons,
body.site-masterpalm .payment-icons,
body.site-masterpalm .zelle-panel,
body.site-masterpalm .zelle-qr,
body.site-masterpalm .qr-code,
body.site-masterpalm .qr-wrapper{
  background:#f4f7fa!important;
  color:#17202a!important;
}

/* Ensure the loaded option popup stays above filter/sidebar layers. */
body.site-masterpalm .mpb2b-option-modal,
body.site-masterpalm .mp-product-option-popup,
body.site-masterpalm [data-mp-option-modal]{
  z-index:2147483646!important;
}
body.site-masterpalm .modal-backdrop.show{
  z-index:2147483635!important;
}
