/*
 * STORE APP Patch 403
 * Master Palm graphite-dark storefront with corporate red accents.
 * White surfaces are intentionally reserved for modal, dropdown, popover,
 * and other temporary popup layers.
 */

:root{
  --mp-red:#B8001F;
  --mp-red-dark:#850017;
  --mp-red-bright:#DB1234;
  --mp-ink:#F5F7F9;
  --mp-graphite:#0D1116;
  --mp-graphite-2:#151B22;
  --mp-text:#E7EBEF;
  --mp-muted:#AAB3BE;
  --mp-line:#39424D;
  --mp-line-soft:#2B333D;
  --mp-soft:#171D24;
  --mp-soft-2:#202730;
  --mp-white:#FFFFFF;
  --mp-shadow:0 16px 34px rgba(0,0,0,.34);
  --mp-shadow-sm:0 8px 20px rgba(0,0,0,.26);
}

html{
  background:#0B0F13!important;
  color:#E7EBEF!important;
  color-scheme:dark;
}

body.site-frontend.site-masterpalm.masterpalm-store-dark,
body.site-frontend.site-masterpalm.masterpalm-store-dark #site-main{
  background:#0F141A!important;
  color:#E7EBEF!important;
}

body.site-frontend.site-masterpalm.masterpalm-store-dark{
  --bs-body-bg:#0F141A;
  --bs-body-color:#E7EBEF;
  --bs-secondary-color:#AAB3BE;
  --bs-tertiary-bg:#202730;
  --bs-border-color:#39424D;
  --bs-link-color:#F04962;
  --bs-link-hover-color:#FFFFFF;
}

body.masterpalm-store-dark #site-main,
body.masterpalm-store-dark #site-main p,
body.masterpalm-store-dark #site-main li,
body.masterpalm-store-dark #site-main dd,
body.masterpalm-store-dark #site-main label,
body.masterpalm-store-dark #site-main .text-body,
body.masterpalm-store-dark #site-main .text-dark{
  color:#E7EBEF!important;
}
body.masterpalm-store-dark #site-main .text-muted,
body.masterpalm-store-dark #site-main small,
body.masterpalm-store-dark #site-main .small{
  color:#AAB3BE!important;
}
body.masterpalm-store-dark #site-main h1,
body.masterpalm-store-dark #site-main h2,
body.masterpalm-store-dark #site-main h3,
body.masterpalm-store-dark #site-main h4,
body.masterpalm-store-dark #site-main h5,
body.masterpalm-store-dark #site-main h6,
body.masterpalm-store-dark #site-main strong,
body.masterpalm-store-dark #site-main b{
  color:#F7F8FA;
}
body.masterpalm-store-dark #site-main a:not(.btn):not(.mpb2b-btn){
  color:#F04962;
}
body.masterpalm-store-dark #site-main a:not(.btn):not(.mpb2b-btn):hover,
body.masterpalm-store-dark #site-main a:not(.btn):not(.mpb2b-btn):focus-visible{
  color:#FFFFFF;
}
body.masterpalm-store-dark #site-main hr{
  border-color:#39424D!important;
  opacity:1;
}

/* Remove legacy white/light page surfaces. */
body.masterpalm-store-dark #site-main :where(.bg-white,.bg-light,.bg-body,.bg-body-tertiary),
body.masterpalm-store-dark #site-main :where(.card,.list-group-item,.accordion-item,.offcanvas,.dropdown-menu),
body.masterpalm-store-dark #site-main :where(.table-responsive,.table),
body.masterpalm-store-dark #site-main :where(.mpb2b-empty,.mpb2b-muted-note,.mpb2b-alert),
body.masterpalm-store-dark #site-main :where(.mpb2b-filter-panel,.mpb2b-side-card,.mpb2b-catalog-aside .mpb2b-side-card),
body.masterpalm-store-dark #site-main :where(.mpb2b-benefit-card,.mpb2b-buybox,.mpb2b-moq,.mpb2b-volume-card),
body.masterpalm-store-dark #site-main :where(.mpb2b-product-card,.mpb2b-media-card,.mpb2b-cart-main,.mpb2b-cart-total),
body.masterpalm-store-dark #site-main :where(.mpb2b-checkout-main,.mpb2b-checkout-summary,.mpb2b-summary-card),
body.masterpalm-store-dark #site-main :where(.mpb2b-cert-row,.mpb2b-detail-spec-row,.mpb2b-live-price-preview),
body.masterpalm-store-dark #site-main :where(.mpb2b-category-tree,.mpb2b-category-tree-list,.mpb2b-category-tree-node),
body.masterpalm-store-dark #site-main :where(.mp-home-service-card,.mp-technology-card,.mp-information-card),
body.masterpalm-store-dark #site-main :where(.mp-promo-product-card,.mp-clearance-toolbar){
  background:#1A2027!important;
  color:#E7EBEF!important;
  border-color:#39424D!important;
  box-shadow:none;
}

body.masterpalm-store-dark #site-main :where(.card-header,.card-footer,.accordion-header,.accordion-button,.list-group-item-action){
  background:#202730!important;
  color:#F7F8FA!important;
  border-color:#39424D!important;
}
body.masterpalm-store-dark #site-main .accordion-button:not(.collapsed){
  background:#B8001F!important;
  color:#FFFFFF!important;
  box-shadow:none!important;
}
body.masterpalm-store-dark #site-main .accordion-button::after{filter:invert(1)}

/* Header and navigation. */
body.masterpalm-store-dark .mpb2b-header,
body.masterpalm-store-dark .mpb2b-mainhead,
body.masterpalm-store-dark .mp-site-header,
body.masterpalm-store-dark .mp-header-container{
  background:#151B22!important;
  color:#F7F8FA!important;
  border-color:#343D47!important;
  box-shadow:0 8px 24px rgba(0,0,0,.28)!important;
}
body.masterpalm-store-dark .mpb2b-topbar,
body.masterpalm-store-dark .mp-utility-bar{
  background:#090D11!important;
  border-bottom:1px solid #2D3540!important;
}
body.masterpalm-store-dark .mpb2b-brand,
body.masterpalm-store-dark .mpb2b-brand strong,
body.masterpalm-store-dark .mpb2b-head-link,
body.masterpalm-store-dark .mpb2b-cart-link,
body.masterpalm-store-dark .mpb2b-head-link i,
body.masterpalm-store-dark .mpb2b-cart-link i{
  color:#FFFFFF!important;
}
body.masterpalm-store-dark .mpb2b-brand span,
body.masterpalm-store-dark .mpb2b-cart-link{
  border-color:#3A444F!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:#AAB3BE!important;
}
body.masterpalm-store-dark .mpb2b-head-search,
body.masterpalm-store-dark .mp-main-nav,
body.masterpalm-store-dark .mpb2b-nav{
  border-color:#343D47!important;
}
body.masterpalm-store-dark .mpb2b-head-search{
  background:#0F141A!important;
}
body.masterpalm-store-dark .mpb2b-head-search input{
  background:#0F141A!important;
  color:#FFFFFF!important;
}
body.masterpalm-store-dark .mpb2b-head-search input::placeholder{color:#8F99A5!important}
body.masterpalm-store-dark .mpb2b-nav,
body.masterpalm-store-dark .mp-main-nav{
  background:#0A0E12!important;
  border-bottom-color:#B8001F!important;
}
body.masterpalm-store-dark .mpb2b-nav a:hover,
body.masterpalm-store-dark .mpb2b-nav button:hover,
body.masterpalm-store-dark .mp-nav-link:hover,
body.masterpalm-store-dark .mp-nav-link:focus-visible{
  background:#242C35!important;
  color:#FFFFFF!important;
}
body.masterpalm-store-dark .mpb2b-nav-category,
body.masterpalm-store-dark .mp-request-quote,
body.masterpalm-store-dark .mp-shop-online{
  background:#B8001F!important;
  color:#FFFFFF!important;
}
body.masterpalm-store-dark .mpb2b-nav-submenu,
body.masterpalm-store-dark .mp-nav-panel,
body.masterpalm-store-dark .mp-submenu{
  background:#171D24!important;
  color:#F7F8FA!important;
  border-color:#39424D!important;
  box-shadow:0 18px 40px rgba(0,0,0,.38)!important;
}
body.masterpalm-store-dark .mpb2b-nav-submenu a,
body.masterpalm-store-dark .mp-nav-panel a,
body.masterpalm-store-dark .mp-submenu a{color:#E7EBEF!important}

/* Hero and homepage sections. */
body.masterpalm-store-dark .mpb2b-home-hero{
  background:#10161C!important;
  border-color:#343D47!important;
}
body.masterpalm-store-dark .mpb2b-home-hero::before{
  background-image:linear-gradient(90deg,rgba(9,13,17,.98) 0%,rgba(12,17,22,.94) 38%,rgba(13,18,24,.70) 64%,rgba(13,18,24,.38) 100%),var(--mp-hero-bg,linear-gradient(135deg,#0E141A,#222B35))!important;
  filter:saturate(.9) brightness(.78)!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(184,0,31,.36),transparent 32%)!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:#FFFFFF!important}
body.masterpalm-store-dark .mpb2b-hero-copy h1 strong,
body.masterpalm-store-dark .mpb2b-chips i{color:#F04962!important}
body.masterpalm-store-dark .mpb2b-mini-panel,
body.masterpalm-store-dark .mpb2b-volume-card,
body.masterpalm-store-dark .mpb2b-cert-row{
  background:#1A2027!important;
  color:#E7EBEF!important;
  border-color:#39424D!important;
}
body.masterpalm-store-dark .mpb2b-mini-panel strong,
body.masterpalm-store-dark .mpb2b-mini-panel em,
body.masterpalm-store-dark .mpb2b-mini-panel p,
body.masterpalm-store-dark .mpb2b-volume-card th,
body.masterpalm-store-dark .mpb2b-volume-card td,
body.masterpalm-store-dark .mpb2b-cert-row strong,
body.masterpalm-store-dark .mpb2b-cert-row span,
body.masterpalm-store-dark .mpb2b-cert-row i{
  color:#E7EBEF!important;
}
body.masterpalm-store-dark .mpb2b-volume-card th,
body.masterpalm-store-dark .mpb2b-volume-card td,
body.masterpalm-store-dark .mpb2b-cert-row,
body.masterpalm-store-dark .mpb2b-cert-row div div{border-color:#39424D!important}
body.masterpalm-store-dark .mpb2b-home-products,
body.masterpalm-store-dark .mpb2b-section,
body.masterpalm-store-dark .mp-home-services,
body.masterpalm-store-dark .mp-technology-section{
  background:#0F141A!important;
}
body.masterpalm-store-dark .mpb2b-section-title h2,
body.masterpalm-store-dark .mpb2b-section-title a{color:#F7F8FA!important}
body.masterpalm-store-dark .mpb2b-section-title a:hover{color:#F04962!important}

/* Catalog, product cards, categories, and media. */
body.masterpalm-store-dark .mpb2b-catalog-page,
body.masterpalm-store-dark .mpb2b-product-detail,
body.masterpalm-store-dark .mp-clearance-products,
body.masterpalm-store-dark .mp-promo-showcase{
  background:#0F141A!important;
  color:#E7EBEF!important;
  border-color:#343D47!important;
}
body.masterpalm-store-dark .mpb2b-catalog-head h1,
body.masterpalm-store-dark .mpb2b-catalog-head p,
body.masterpalm-store-dark .mpb2b-results-bar,
body.masterpalm-store-dark .mpb2b-results-bar strong{color:#E7EBEF!important}
body.masterpalm-store-dark .mpb2b-catalog-search,
body.masterpalm-store-dark .mpb2b-filter-panel,
body.masterpalm-store-dark .mpb2b-side-card{
  background:#171D24!important;
  border-color:#39424D!important;
}
body.masterpalm-store-dark .mpb2b-filter-title,
body.masterpalm-store-dark .mpb2b-filter-group{border-color:#39424D!important}
body.masterpalm-store-dark .mpb2b-filter-title strong,
body.masterpalm-store-dark .mpb2b-filter-group h3,
body.masterpalm-store-dark .mpb2b-filter-group a,
body.masterpalm-store-dark .mpb2b-side-card strong,
body.masterpalm-store-dark .mpb2b-side-card p{color:#E7EBEF!important}
body.masterpalm-store-dark .mpb2b-filter-group a.is-active,
body.masterpalm-store-dark .mpb2b-filter-group a:hover{color:#F04962!important}

body.masterpalm-store-dark .mpb2b-product-card,
body.masterpalm-store-dark .mp-promo-product-card{
  background:#1A2027!important;
  border-color:#39424D!important;
  box-shadow:0 6px 18px rgba(0,0,0,.22)!important;
}
body.masterpalm-store-dark .mpb2b-product-card:hover,
body.masterpalm-store-dark .mp-promo-product-card:hover{
  border-color:#B8001F!important;
  box-shadow:0 12px 28px rgba(0,0,0,.34)!important;
}
body.masterpalm-store-dark .mpb2b-product-media,
body.masterpalm-store-dark .mpb2b-product-media-empty,
body.masterpalm-store-dark .mpb2b-gallery-main,
body.masterpalm-store-dark .mpb2b-gallery-main--empty,
body.masterpalm-store-dark .mpb2b-thumb,
body.masterpalm-store-dark .mp-promo-product-card__media,
body.masterpalm-store-dark .mpb2b-cart-img,
body.masterpalm-store-dark .mpb2b-cart-img-empty{
  background-color:#11171D!important;
  border-color:#343D47!important;
}
body.masterpalm-store-dark .mpb2b-product-body strong,
body.masterpalm-store-dark .mpb2b-product-body em,
body.masterpalm-store-dark .mpb2b-spec-mini,
body.masterpalm-store-dark .mp-promo-product-card__body>strong,
body.masterpalm-store-dark .mp-promo-product-card__body>small{
  color:#E7EBEF!important;
}
body.masterpalm-store-dark .mpb2b-price small,
body.masterpalm-store-dark .mpb2b-current-price small{color:#AAB3BE!important}
body.masterpalm-store-dark .mpb2b-price-muted,
body.masterpalm-store-dark .mpb2b-live-price-preview.is-quote-required{
  background:#2A151B!important;
  border-color:#8C2638!important;
  color:#F6B8C2!important;
}
body.masterpalm-store-dark .mpb2b-card-actions>a,
body.masterpalm-store-dark .mpb2b-card-actions button,
body.masterpalm-store-dark .mp-cart-square-button,
body.masterpalm-store-dark .mp-quote-square-button,
body.masterpalm-store-dark .mp-rfq-square-button{
  background:#242C35!important;
  border-color:#46515D!important;
  color:#FFFFFF!important;
}
body.masterpalm-store-dark .mpb2b-card-actions button,
body.masterpalm-store-dark .mp-cart-square-button{
  background:#B8001F!important;
  border-color:#B8001F!important;
}
body.masterpalm-store-dark .mpb2b-card-actions>a:hover,
body.masterpalm-store-dark .mp-quote-square-button:hover,
body.masterpalm-store-dark .mp-rfq-square-button:hover{
  background:#B8001F!important;
  border-color:#B8001F!important;
  color:#FFFFFF!important;
}
body.masterpalm-store-dark .mpb2b-quote-check{color:#C8D0D8!important}

/* Product detail, tabs, specification tables, and related media. */
body.masterpalm-store-dark .mpb2b-product-copy,
body.masterpalm-store-dark .mpb2b-product-rich-content,
body.masterpalm-store-dark .mpb2b-tab-content,
body.masterpalm-store-dark .mpb2b-tab-panel{color:#E7EBEF!important}
body.masterpalm-store-dark .mpb2b-buybox,
body.masterpalm-store-dark .mpb2b-benefit-card,
body.masterpalm-store-dark .mpb2b-moq,
body.masterpalm-store-dark .mpb2b-detail-spec-row,
body.masterpalm-store-dark .mpb2b-extra-specifications,
body.masterpalm-store-dark .mpb2b-specification-unified,
body.masterpalm-store-dark .mpb2b-specification-html,
body.masterpalm-store-dark .mpb2b-feature-application-card{
  background:#1A2027!important;
  border-color:#39424D!important;
  color:#E7EBEF!important;
}
body.masterpalm-store-dark .mpb2b-detail-spec-row div,
body.masterpalm-store-dark .mpb2b-tabs,
body.masterpalm-store-dark .mpb2b-tab-links,
body.masterpalm-store-dark .mpb2b-spec-table td,
body.masterpalm-store-dark .mpb2b-tier-table th,
body.masterpalm-store-dark .mpb2b-tier-table td,
body.masterpalm-store-dark .mpb2b-product-media-library{
  border-color:#39424D!important;
}
body.masterpalm-store-dark .mpb2b-detail-spec-row i,
body.masterpalm-store-dark .mpb2b-detail-spec-row strong,
body.masterpalm-store-dark .mpb2b-detail-spec-row span,
body.masterpalm-store-dark .mpb2b-benefit-card h3,
body.masterpalm-store-dark .mpb2b-benefit-card strong,
body.masterpalm-store-dark .mpb2b-benefit-card span,
body.masterpalm-store-dark .mpb2b-moq i,
body.masterpalm-store-dark .mpb2b-moq strong,
body.masterpalm-store-dark .mpb2b-moq span,
body.masterpalm-store-dark .mpb2b-tab-content p,
body.masterpalm-store-dark .mpb2b-tab-content li,
body.masterpalm-store-dark .mpb2b-tab-links a,
body.masterpalm-store-dark .mpb2b-spec-table td,
body.masterpalm-store-dark .mpb2b-tier-table th,
body.masterpalm-store-dark .mpb2b-tier-table td{
  color:#E7EBEF!important;
}
body.masterpalm-store-dark .mpb2b-spec-table td:first-child{
  background:#202730!important;
  color:#FFFFFF!important;
}
body.masterpalm-store-dark .mpb2b-tab-links a.is-active{
  background:#B8001F!important;
  border-color:#B8001F!important;
  color:#FFFFFF!important;
  padding-inline:14px;
}
body.masterpalm-store-dark .mpb2b-media-card{
  background:#1A2027!important;
  border-color:#39424D!important;
}
body.masterpalm-store-dark .mpb2b-media-card strong{color:#FFFFFF!important}
body.masterpalm-store-dark .mpb2b-media-card em{color:#AAB3BE!important}

/* Cart, checkout, RFQ, and account/content forms. */
body.masterpalm-store-dark #site-main :where(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea,.form-control,.form-select){
  background:#11171D!important;
  color:#FFFFFF!important;
  border-color:#46515D!important;
  box-shadow:none!important;
}
body.masterpalm-store-dark #site-main :where(input,textarea)::placeholder{color:#8994A0!important;opacity:1}
body.masterpalm-store-dark #site-main :where(input,select,textarea,.form-control,.form-select):focus{
  border-color:#B8001F!important;
  box-shadow:0 0 0 3px rgba(184,0,31,.22)!important;
}
body.masterpalm-store-dark #site-main input[type=checkbox],
body.masterpalm-store-dark #site-main input[type=radio]{accent-color:#B8001F}
body.masterpalm-store-dark .mpb2b-cart-table,
body.masterpalm-store-dark .mpb2b-cart-main,
body.masterpalm-store-dark .mpb2b-cart-total,
body.masterpalm-store-dark .mpb2b-checkout-layout,
body.masterpalm-store-dark .mpb2b-checkout-main,
body.masterpalm-store-dark .mpb2b-checkout-summary,
body.masterpalm-store-dark .mpb2b-summary-line,
body.masterpalm-store-dark .mpb2b-summary-total{
  background:#171D24!important;
  color:#E7EBEF!important;
  border-color:#39424D!important;
}
body.masterpalm-store-dark .mpb2b-cart-table th,
body.masterpalm-store-dark .mpb2b-cart-table td,
body.masterpalm-store-dark .mpb2b-summary-line,
body.masterpalm-store-dark .mpb2b-summary-total{border-color:#39424D!important;color:#E7EBEF!important}
body.masterpalm-store-dark .mpb2b-cart-product,
body.masterpalm-store-dark .mpb2b-cart-price,
body.masterpalm-store-dark .mpb2b-cart-option-list,
body.masterpalm-store-dark .mpb2b-summary-price{color:#E7EBEF!important}
body.masterpalm-store-dark .mpb2b-qty button,
body.masterpalm-store-dark .mp-cart-quantity button,
body.masterpalm-store-dark .mp-cart-quantity input{
  background:#242C35!important;
  border-color:#46515D!important;
  color:#FFFFFF!important;
}
body.masterpalm-store-dark .mpb2b-shipping-option,
body.masterpalm-store-dark .mpb2b-shippo-rate-box,
body.masterpalm-store-dark .mpb2b-shipping-rate-empty{
  background:#1A2027!important;
  color:#E7EBEF!important;
  border-color:#46515D!important;
}
body.masterpalm-store-dark .mpb2b-shipping-option strong,
body.masterpalm-store-dark .mpb2b-shipping-option small,
body.masterpalm-store-dark .mpb2b-shipping-option b,
body.masterpalm-store-dark .mpb2b-shippo-rate-box strong,
body.masterpalm-store-dark .mpb2b-shippo-rate-box span{color:#E7EBEF!important}
body.masterpalm-store-dark .mpb2b-shipping-option:has(input:checked){
  background:#29171D!important;
  border-color:#B8001F!important;
  box-shadow:0 0 0 3px rgba(184,0,31,.18)!important;
}

/* Lead-time surfaces. */
body.masterpalm-store-dark .mpb2b-lead-time,
body.masterpalm-store-dark .mpb2b-lead-time.is-in_stock,
body.masterpalm-store-dark .mpb2b-lead-time.is-extended,
body.masterpalm-store-dark .mpb2b-lead-time.is-made_to_order,
body.masterpalm-store-dark .mpb2b-lead-time.is-contact{
  background:#202730!important;
  color:#E7EBEF!important;
  border-left-color:#B8001F!important;
}
body.masterpalm-store-dark .mpb2b-lead-time strong,
body.masterpalm-store-dark .mpb2b-lead-time span{color:#E7EBEF!important}
body.masterpalm-store-dark .mpb2b-lead-time small{color:#AAB3BE!important}
body.masterpalm-store-dark .mpb2b-lead-time i{color:#F04962!important}

/* Promotional showcase and clearance pages. */
body.masterpalm-store-dark .mp-promo-showcase{
  background:#11171D!important;
  border-color:#343D47!important;
}
body.masterpalm-store-dark .mp-promo-showcase__header,
body.masterpalm-store-dark .mp-clearance-hero{
  background-color:#11171D!important;
}
body.masterpalm-store-dark .mp-promo-showcase__header.has-image{
  background-image:linear-gradient(90deg,rgba(9,13,17,.98) 0%,rgba(12,17,22,.86) 55%,rgba(12,17,22,.42) 100%),var(--mp-promo-image)!important;
}
body.masterpalm-store-dark .mp-promo-product-card__media{border-color:#39424D!important}
body.masterpalm-store-dark .mp-promo-product-card__actions>a:first-child{color:#FFFFFF!important}
body.masterpalm-store-dark .mp-clearance-toolbar{
  background:#1A2027!important;
  border-color:#39424D!important;
}

/* Buttons and badges. */
body.masterpalm-store-dark .mpb2b-btn-red,
body.masterpalm-store-dark #site-main .btn-danger,
body.masterpalm-store-dark #site-main .btn-primary{
  background:#B8001F!important;
  border-color:#B8001F!important;
  color:#FFFFFF!important;
  box-shadow:0 8px 20px rgba(184,0,31,.24)!important;
}
body.masterpalm-store-dark .mpb2b-btn-red:hover,
body.masterpalm-store-dark #site-main .btn-danger:hover,
body.masterpalm-store-dark #site-main .btn-primary:hover{
  background:#D20A2D!important;
  border-color:#D20A2D!important;
}
body.masterpalm-store-dark .mpb2b-btn-outline,
body.masterpalm-store-dark .mpb2b-btn-light,
body.masterpalm-store-dark #site-main .btn-outline-dark,
body.masterpalm-store-dark #site-main .btn-outline-secondary,
body.masterpalm-store-dark #site-main .btn-light{
  background:#242C35!important;
  border-color:#52606D!important;
  color:#FFFFFF!important;
}
body.masterpalm-store-dark .mpb2b-btn-outline:hover,
body.masterpalm-store-dark .mpb2b-btn-light:hover,
body.masterpalm-store-dark #site-main .btn-outline-dark:hover,
body.masterpalm-store-dark #site-main .btn-outline-secondary:hover{
  background:#B8001F!important;
  border-color:#B8001F!important;
  color:#FFFFFF!important;
}
body.masterpalm-store-dark .mpb2b-pill,
body.masterpalm-store-dark #site-main .badge.bg-light{
  background:#242C35!important;
  border-color:#52606D!important;
  color:#FFFFFF!important;
}

/* Tables and pagination. */
body.masterpalm-store-dark #site-main table,
body.masterpalm-store-dark #site-main .table{
  --bs-table-bg:#171D24;
  --bs-table-color:#E7EBEF;
  --bs-table-border-color:#39424D;
  --bs-table-striped-bg:#1E252D;
  --bs-table-striped-color:#E7EBEF;
  --bs-table-hover-bg:#252E38;
  --bs-table-hover-color:#FFFFFF;
  color:#E7EBEF!important;
  border-color:#39424D!important;
}
body.masterpalm-store-dark #site-main table th,
body.masterpalm-store-dark #site-main table td{border-color:#39424D!important}
body.masterpalm-store-dark .mpb2b-pagination a,
body.masterpalm-store-dark #site-main .page-link{
  background:#1A2027!important;
  border-color:#39424D!important;
  color:#E7EBEF!important;
}
body.masterpalm-store-dark .mpb2b-pagination a.is-active,
body.masterpalm-store-dark #site-main .page-item.active .page-link{
  background:#B8001F!important;
  border-color:#B8001F!important;
  color:#FFFFFF!important;
}

/* Content-page compatibility, service cards, and generic legacy blocks. */
body.masterpalm-store-dark #site-main :where(article,.content-page,.page-content,.information-page,.policy-page,.service-page,.news-page,.career-page),
body.masterpalm-store-dark #site-main :where(.mp-content-block,.mp-section-block,.mp-information-section,.mp-service-section){
  background-color:#0F141A!important;
  color:#E7EBEF!important;
}
body.masterpalm-store-dark #site-main :where(.mp-home-service-card,.mp-technology-card,.mp-information-card,.service-card,.technology-card,.news-card){
  background-color:#1A2027!important;
  border-color:#39424D!important;
  color:#E7EBEF!important;
}
body.masterpalm-store-dark #site-main :where(.mp-home-service-copy,.mp-technology-heading){color:#FFFFFF!important}

/* Footer. */
body.masterpalm-store-dark .mpb2b-footer-cta{
  background:linear-gradient(90deg,#0B0F13 0%,#151B22 60%,#850017 60%,#B8001F 100%)!important;
}
body.masterpalm-store-dark .mpb2b-footer-main{
  background:#11171D!important;
  border-color:#343D47!important;
  color:#E7EBEF!important;
}
body.masterpalm-store-dark .mpb2b-footer-main p,
body.masterpalm-store-dark .mpb2b-footer-main h3,
body.masterpalm-store-dark .mpb2b-footer-main a,
body.masterpalm-store-dark .mpb2b-footer-contact div{
  color:#E7EBEF!important;
}
body.masterpalm-store-dark .mpb2b-footer-main a:hover{color:#F04962!important}
body.masterpalm-store-dark .mpb2b-footer-bottom{
  background:#080B0F!important;
  border-top:1px solid #343D47!important;
}
body.masterpalm-store-dark .mpb2b-newsletter-form input[type=email]{
  background:#0F141A!important;
  border-color:#46515D!important;
  color:#FFFFFF!important;
}
body.masterpalm-store-dark .mpb2b-newsletter-form button{
  background:#B8001F!important;
  border-color:#B8001F!important;
}
body.masterpalm-store-dark .mpb2b-footer-payment-icon{background:transparent!important}

/* Breadcrumbs, alerts, and empty states. */
body.masterpalm-store-dark .mpb2b-breadcrumb,
body.masterpalm-store-dark .mpb2b-breadcrumb a{color:#C6CED7!important}
body.masterpalm-store-dark .mpb2b-breadcrumb a:hover{color:#F04962!important}
body.masterpalm-store-dark .mpb2b-alert,
body.masterpalm-store-dark .alert{
  background:#251A14!important;
  border-color:#73512D!important;
  color:#F3D7B5!important;
}
body.masterpalm-store-dark .mpb2b-alert-success,
body.masterpalm-store-dark .alert-success{
  background:#12261D!important;
  border-color:#2E7654!important;
  color:#C4F3D8!important;
}
body.masterpalm-store-dark .mpb2b-empty,
body.masterpalm-store-dark .mp-clearance-empty,
body.masterpalm-store-dark .mpb2b-muted-note{
  background:#171D24!important;
  border-color:#46515D!important;
  color:#C6CED7!important;
}
body.masterpalm-store-dark .mpb2b-empty strong{color:#FFFFFF!important}

/* Keep every temporary popup layer white and legible. */
body.masterpalm-store-dark :where(.modal-content,.popover,.toast,.dropdown-menu,.ses-translate-panel,.ses-language-menu,.newsletter-popup,.cookie-preferences-modal),
body.masterpalm-store-dark body > :where(.modal,.offcanvas) :where(.modal-content,.offcanvas-body,.offcanvas-header){
  color-scheme:light;
}
body.masterpalm-store-dark .modal-content,
body.masterpalm-store-dark .popover,
body.masterpalm-store-dark .toast,
body.masterpalm-store-dark .dropdown-menu,
body.masterpalm-store-dark .ses-translate-panel,
body.masterpalm-store-dark .ses-language-menu,
body.masterpalm-store-dark .newsletter-popup,
body.masterpalm-store-dark .cookie-preferences-modal{
  background:#FFFFFF!important;
  color:#17202B!important;
  border-color:#D3D9E0!important;
}
body.masterpalm-store-dark .modal-header,
body.masterpalm-store-dark .modal-body,
body.masterpalm-store-dark .modal-footer,
body.masterpalm-store-dark .offcanvas-header,
body.masterpalm-store-dark .offcanvas-body{
  background:#FFFFFF!important;
  color:#17202B!important;
  border-color:#D8DEE5!important;
}
body.masterpalm-store-dark .modal-content h1,
body.masterpalm-store-dark .modal-content h2,
body.masterpalm-store-dark .modal-content h3,
body.masterpalm-store-dark .modal-content h4,
body.masterpalm-store-dark .modal-content h5,
body.masterpalm-store-dark .modal-content h6,
body.masterpalm-store-dark .modal-content strong,
body.masterpalm-store-dark .modal-content label,
body.masterpalm-store-dark .modal-content p,
body.masterpalm-store-dark .modal-content small,
body.masterpalm-store-dark .dropdown-menu a,
body.masterpalm-store-dark .ses-translate-panel a{
  color:#17202B!important;
}
body.masterpalm-store-dark .modal-content input:not([type=checkbox]):not([type=radio]),
body.masterpalm-store-dark .modal-content select,
body.masterpalm-store-dark .modal-content textarea,
body.masterpalm-store-dark .modal-content .form-control,
body.masterpalm-store-dark .modal-content .form-select,
body.masterpalm-store-dark .offcanvas input:not([type=checkbox]):not([type=radio]),
body.masterpalm-store-dark .offcanvas select,
body.masterpalm-store-dark .offcanvas textarea{
  background:#FFFFFF!important;
  color:#111827!important;
  border-color:#AEB7C2!important;
}
body.masterpalm-store-dark .modal-content input::placeholder,
body.masterpalm-store-dark .modal-content textarea::placeholder{color:#6B7280!important}
body.masterpalm-store-dark .modal-content .btn-close,
body.masterpalm-store-dark .offcanvas .btn-close{filter:none!important}
body.masterpalm-store-dark .dropdown-item:hover,
body.masterpalm-store-dark .dropdown-item:focus,
body.masterpalm-store-dark .ses-language-option:hover,
body.masterpalm-store-dark .ses-language-option.is-active{
  background:#F1F3F5!important;
  color:#B8001F!important;
}
body.masterpalm-store-dark .modal-backdrop.show{opacity:.78!important;background:#05070A!important}

/* The product-video player intentionally remains black for media contrast. */
body.masterpalm-store-dark .mpb2b-video-modal .modal-content,
body.masterpalm-store-dark .mpb2b-video-modal .modal-header,
body.masterpalm-store-dark .mpb2b-video-modal .modal-body,
body.masterpalm-store-dark .mpb2b-video-modal .modal-footer{
  background:#07090C!important;
  color:#FFFFFF!important;
  border-color:#343D47!important;
}
body.masterpalm-store-dark .mpb2b-video-modal .modal-title,
body.masterpalm-store-dark .mpb2b-video-modal .modal-content strong{color:#FFFFFF!important}
body.masterpalm-store-dark .mpb2b-video-modal .btn-close{filter:invert(1)!important}

/* Mobile dark-navigation consistency. */
@media(max-width:900px){
  body.masterpalm-store-dark .mpb2b-nav .mpb2b-container,
  body.masterpalm-store-dark .mp-main-nav-inner{
    background:#0A0E12!important;
  }
  body.masterpalm-store-dark .mpb2b-nav a,
  body.masterpalm-store-dark .mpb2b-nav button,
  body.masterpalm-store-dark .mp-nav-item,
  body.masterpalm-store-dark .mp-nav-link-row{
    border-color:#343D47!important;
  }
}

/* Collection, category, product-list, and legacy storefront layouts. */
body.masterpalm-store-dark #site-main :where(.mp-page-hero,.mp-category-product-page,.mp-collection-page,.mp-product-catalog-page,.mp-product-category-sidebar,.mp-catalog-filter-panel,.mp-catalog-filter-head,.mp-catalog-relation-chips,.mp-catalog-pagination),
body.masterpalm-store-dark #site-main :where(.mp-product-list-card,.mp-product-list-body,.mp-category-card,.mp-card-body,.mp-category-copy,.mp-related-collection-card,.mp-sidebar-quote),
body.masterpalm-store-dark #site-main .mp-mini-feature-strip>article{
  background:#171D24!important;
  color:#E7EBEF!important;
  border-color:#39424D!important;
  box-shadow:none!important;
}
body.masterpalm-store-dark #site-main :where(.mp-product-list-media,.ses-list-card__media,.mp-product-main-image,.mp-product-thumb,.mp-product-gallery-panel){
  background-color:#11171D!important;
  border-color:#343D47!important;
}
body.masterpalm-store-dark #site-main :where(.mp-page-hero h1,.mp-page-hero h2,.mp-page-hero p,.mp-category-copy h1,.mp-category-copy h2,.mp-category-copy p,.mp-product-list-body h2,.mp-product-list-body h3,.mp-product-list-body p,.mp-category-card h2,.mp-category-card h3,.mp-category-card p,.mp-card-body h2,.mp-card-body h3,.mp-card-body p){
  color:#E7EBEF!important;
}
body.masterpalm-store-dark #site-main :where(.mp-category-nav-row>a,.mp-category-nav-toggle,.mp-inline-search,.mp-catalog-filter-field input,.mp-catalog-filter-field select,.mp-catalog-filter-actions a,.mp-catalog-pagination a,.mp-catalog-pagination span){
  background:#202730!important;
  color:#E7EBEF!important;
  border-color:#46515D!important;
}
body.masterpalm-store-dark #site-main :where(.mp-category-nav-row>a:hover,.mp-category-nav-row>a.is-active,.mp-category-nav-toggle:hover,.mp-catalog-pagination a:hover,.mp-catalog-pagination .is-active){
  background:#B8001F!important;
  color:#FFFFFF!important;
  border-color:#B8001F!important;
}

/* Contact, service, information, policy, news, and account pages. */
body.masterpalm-store-dark #site-main :where(.mp-response-card,.mp-branch-console,.mp-inquiry-console,.mp-branch-list,.mp-form-grid,.mp-branch-card,.mp-contact-office-credential,.mp-map-plate,.mp-contact-feature,.mp-contact-feature-strip),
body.masterpalm-store-dark #site-main :where(.mp-service-card,.mp-service-detail-card,.ses-inner-content,.ses-inner-container,.ses-inner-copy,.ses-richtext,.ses-article-body,.ses-inner-tile,.ses-list-card,.ses-card,.ses-home-services),
body.masterpalm-store-dark #site-main :where(.mp-account-card,.mp-account-card__body,.mp-account-table){
  background:#171D24!important;
  color:#E7EBEF!important;
  border-color:#39424D!important;
  box-shadow:none!important;
}
body.masterpalm-store-dark #site-main :where(.mp-branch-card:hover,.mp-branch-card.is-active,.mp-branch-card.active){
  background:#242C35!important;
  border-color:#B8001F!important;
}
body.masterpalm-store-dark #site-main :where(.mp-response-card h1,.mp-response-card h2,.mp-response-card h3,.mp-branch-console h1,.mp-branch-console h2,.mp-inquiry-console h1,.mp-inquiry-console h2,.mp-service-card h1,.mp-service-card h2,.mp-service-card h3,.mp-service-detail-card h1,.mp-service-detail-card h2,.mp-service-detail-card h3,.ses-inner-content h1,.ses-inner-content h2,.ses-inner-content h3,.ses-inner-copy h1,.ses-inner-copy h2,.ses-inner-copy h3,.mp-account-card h1,.mp-account-card h2,.mp-account-card h3){
  color:#FFFFFF!important;
}
body.masterpalm-store-dark #site-main :where(.mp-field input,.mp-field textarea,.mp-field select,.mp-account-card__body input,.mp-account-card__body textarea,.mp-account-card__body select){
  background:#11171D!important;
  color:#FFFFFF!important;
  border-color:#46515D!important;
}
body.masterpalm-store-dark #site-main .mp-account-table,
body.masterpalm-store-dark #site-main .mp-account-table th,
body.masterpalm-store-dark #site-main .mp-account-table td{
  background:#171D24!important;
  color:#E7EBEF!important;
  border-color:#39424D!important;
}

/* Make in-page dropdowns/popovers white despite dark #site-main specificity. */
body.masterpalm-store-dark #site-main .dropdown-menu,
body.masterpalm-store-dark #site-main .popover,
body.masterpalm-store-dark #site-main .toast,
body.masterpalm-store-dark #site-main .offcanvas,
body.masterpalm-store-dark #site-main .offcanvas-header,
body.masterpalm-store-dark #site-main .offcanvas-body{
  background:#FFFFFF!important;
  color:#17202B!important;
  border-color:#D3D9E0!important;
  color-scheme:light;
}
body.masterpalm-store-dark #site-main .dropdown-menu a,
body.masterpalm-store-dark #site-main .popover *,
body.masterpalm-store-dark #site-main .toast *,
body.masterpalm-store-dark #site-main .offcanvas *{color:#17202B!important}
body.masterpalm-store-dark #site-main .offcanvas input:not([type=checkbox]):not([type=radio]),
body.masterpalm-store-dark #site-main .offcanvas select,
body.masterpalm-store-dark #site-main .offcanvas textarea{
  background:#FFFFFF!important;
  color:#111827!important;
  border-color:#AEB7C2!important;
}

/* Popup-specific contrast after converting modal headers to white. */
body.masterpalm-store-dark .modal-content :where(.mpb2b-express-shipping-kicker,.mpb2b-product-option-modal__kicker,.mpb2b-product-option-modal__status,.mpb2b-product-option-modal__summary,.mpb2b-product-option-modal__product){
  color:#17202B!important;
}
body.masterpalm-store-dark .modal-content .mpb2b-product-option-modal__lead-time{
  background:#F1F3F5!important;
  color:#17202B!important;
  border-left-color:#B8001F!important;
}
body.masterpalm-store-dark .modal-content .mpb2b-product-option-modal__lead-time strong,
body.masterpalm-store-dark .modal-content .mpb2b-product-option-modal__lead-time span{color:#17202B!important}
body.masterpalm-store-dark .modal-content .mpb2b-product-option-modal__price{color:#B8001F!important}
