/* STORE APP Patch 624 — flat light-theme cleanup + no shadows.
   Goals:
   1) Remove decorative box/text shadows across storefront + distributor UI.
   2) In light mode, eliminate inherited graphite/black surfaces, especially product detail.
   3) Preserve dark-theme colors, red CTA semantics, image/media wells, and keyboard focus visibility. */

:root{
  --mp624-white:#ffffff;
  --mp624-page:#f4f6f8;
  --mp624-soft:#eef1f4;
  --mp624-soft-2:#e7ebef;
  --mp624-line:#cfd6dd;
  --mp624-line-strong:#b8c1ca;
  --mp624-ink:#111820;
  --mp624-text:#28333e;
  --mp624-muted:#65717d;
  --mp624-red:#b8001f;
  --mp624-red-bright:#d71920;
  --mp624-red-soft:#fff0f2;
}

/* ---------------------------------------------------------
   FLAT UI — remove decorative shadow effects in BOTH themes.
   --------------------------------------------------------- */
body.site-masterpalm *,
body.dp-b2b-public *,
body.dp-public-shell *,
body.dp-shell *{
  box-shadow:none!important;
  text-shadow:none!important;
}
body.site-masterpalm :focus-visible,
body.dp-b2b-public :focus-visible,
body.dp-public-shell :focus-visible,
body.dp-shell :focus-visible{
  outline:2px solid #d71920!important;
  outline-offset:2px!important;
}

/* ---------------------------------------------------------
   TRUE LIGHT THEME — shared page/header/navigation surfaces.
   --------------------------------------------------------- */
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main{
  background:var(--mp624-page)!important;
  color:var(--mp624-ink)!important;
  color-scheme:light!important;
}

html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark .mpb2b-header,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark .mpb2b-mainhead,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark .mp-site-header,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark .mp-header-container{
  background:var(--mp624-white)!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark .mpb2b-topbar,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark .mp-utility-bar{
  background:var(--mp624-soft)!important;
  background-image:none!important;
  color:var(--mp624-text)!important;
  border-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark .mpb2b-topbar :where(span,a,i),
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark .mp-utility-bar :where(span,a,i){
  color:var(--mp624-text)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark .mpb2b-topbar span:first-child i{color:var(--mp624-red)!important}

html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark .mpb2b-nav,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark .mp-main-nav{
  background:var(--mp624-white)!important;
  background-image:none!important;
  color:var(--mp624-ink)!important;
  border-top-color:var(--mp624-line)!important;
  border-bottom-color:var(--mp624-red)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark .mpb2b-nav :where(a,button),
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark .mp-main-nav :where(a,button){
  background:transparent!important;
  background-image:none!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark .mpb2b-nav :where(a,button):hover,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark .mp-main-nav :where(a,button):hover{
  background:var(--mp624-soft)!important;
  color:var(--mp624-red)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark :where(.mpb2b-nav-category,.mp-request-quote,.mp-shop-online){
  background:var(--mp624-red)!important;
  background-image:none!important;
  color:#fff!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark :where(.mpb2b-nav-submenu,.mp-submenu,.mp-nav-panel,.ses-translate-panel){
  background:var(--mp624-white)!important;
  background-image:none!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark :where(.mpb2b-nav-submenu,.mp-submenu,.mp-nav-panel,.ses-translate-panel) :where(a,button){
  background:var(--mp624-white)!important;
  color:var(--mp624-text)!important;
}

/* ---------------------------------------------------------
   PRODUCT DETAIL — hard override every inherited dark surface.
   --------------------------------------------------------- */
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-detail{
  background:var(--mp624-page)!important;
  background-image:none!important;
  color:var(--mp624-ink)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-detail>.mpb2b-container{
  background:transparent!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-breadcrumb{
  background:var(--mp624-soft)!important;
  background-image:none!important;
  color:var(--mp624-muted)!important;
  border:1px solid var(--mp624-line)!important;
  padding:10px 14px!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-breadcrumb a{color:var(--mp624-text)!important}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-breadcrumb a:hover{color:var(--mp624-red)!important}

html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main :where(
  .mpb2b-product-main,
  .mpb2b-product-detail-grid,
  .mpb2b-gallery,
  .mpb2b-product-copy,
  .mpb2b-buybox,
  .mpb2b-buybox--compact,
  .mpb2b-current-price,
  .mpb2b-model-row,
  .mpb2b-product-certs,
  .mpb2b-moq,
  .mpb2b-cordless-note,
  .mpb2b-cordless-buybox-note,
  .mpb2b-cordless-detail-notice,
  .mp-product-warning,
  .mp-product-notice
){
  background:var(--mp624-white)!important;
  background-image:none!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-detail-grid{
  background:transparent!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-copy{
  padding:18px!important;
  border:1px solid var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-buybox{
  border:1px solid var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main :where(
  .mpb2b-product-copy h1,.mpb2b-product-copy h2,.mpb2b-product-copy h3,
  .mpb2b-buybox h1,.mpb2b-buybox h2,.mpb2b-buybox h3,
  .mpb2b-model-row,.mpb2b-model-row strong,.mpb2b-product-certs div,
  .mpb2b-moq strong,.mpb2b-current-price small
){color:var(--mp624-ink)!important}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main :where(
  .mpb2b-product-copy p,.mpb2b-product-copy .mpb2b-tax,.mpb2b-moq span,
  .mpb2b-cordless-note span,.mpb2b-cordless-detail-notice span
){color:var(--mp624-muted)!important}

/* Product image areas stay clean white/light gray, with no shadow. */
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main :where(
  .mpb2b-gallery-main,.mpb2b-gallery-main--empty,.mpb2b-thumb,.mpb2b-product-media,
  .mp-card-media,.mp-product-list-media
){
  background-color:var(--mp624-white)!important;
  color:var(--mp624-text)!important;
  border-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-gallery-zoom{
  background:var(--mp624-white)!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line-strong)!important;
}

/* Option chooser: this was the large black block in the screenshots. */
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main :where(
  fieldset.mpb2b-product-options,
  .mpb2b-product-options,
  .mpb2b-option-group,
  .mpb2b-option-row,
  .mpb2b-option-panel,
  .mpb2b-option-card,
  .mpb2b-option-choice,
  .product-options,
  .product-option,
  .option-row,
  .option-card
){
  background:var(--mp624-soft)!important;
  background-image:none!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line)!important;
  border-left-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-options legend,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-options legend :where(span,strong){
  background:transparent!important;
  color:var(--mp624-ink)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-options>p{color:var(--mp624-muted)!important}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-option-list{background:transparent!important}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-option-item,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main label.mpb2b-product-option-item{
  background:var(--mp624-white)!important;
  background-image:none!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-option-item:hover,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-option-item:focus-within{
  background:#f9fafb!important;
  border-color:#9da8b2!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-option-item:has(input:checked){
  background:var(--mp624-red-soft)!important;
  border-color:var(--mp624-red)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-option-item :where(strong,span,strong){color:var(--mp624-ink)!important}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-option-item :where(small,em){color:var(--mp624-muted)!important}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-option-item b{color:var(--mp624-red)!important}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-option-item :where(input[type="checkbox"],input[type="radio"]){background-color:#fff!important;border-color:#8c98a4!important;accent-color:var(--mp624-red)!important}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-options :where(select,.form-select),
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-product-options select option{
  background:#fff!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line-strong)!important;
  color-scheme:light!important;
}

/* Quantity / live-price rows. */
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main :where(
  .mpb2b-live-price-preview,.mpb2b-purchase-quantity,.mpb2b-qty,.mpb2b-quote-threshold
){
  background:var(--mp624-soft)!important;
  background-image:none!important;
  color:var(--mp624-text)!important;
  border-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-qty :where(button,input),
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-purchase-quantity input{
  background:#fff!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line-strong)!important;
}

/* Volume pricing / express disclosure cards. */
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-buybox details.mpb2b-buybox-disclosure,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main details.mpb2b-volume-pricing,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main details.mpb2b-express-disclosure,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-buybox-disclosure-body,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-detail-express,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-detail-express-buttons,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-detail-express-buttons form{
  background:var(--mp624-white)!important;
  background-image:none!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line)!important;
  color-scheme:light!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-buybox-disclosure>summary,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-buybox-disclosure[open]>summary{
  background:var(--mp624-soft)!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-buybox-disclosure>summary:hover{background:var(--mp624-soft-2)!important}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-buybox-disclosure>summary :where(span,strong,small,i){color:var(--mp624-text)!important}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-buybox-disclosure>summary i{color:var(--mp624-red)!important}

html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-volume-pricing :where(.mpb2b-buybox-disclosure-body,.mpb2b-tier-table,tbody,tr,th,td){
  background:var(--mp624-white)!important;
  color:var(--mp624-text)!important;
  border-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-volume-pricing .mpb2b-tier-table th{
  background:var(--mp624-soft)!important;
  color:var(--mp624-ink)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-volume-pricing .mpb2b-tier-table :where(th,td,strong,span,small){color:var(--mp624-text)!important}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-volume-pricing .mpb2b-tier-price del{color:var(--mp624-muted)!important}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-volume-pricing .mpb2b-tier-price em,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-volume-pricing .mpb2b-tier-price strong{color:var(--mp624-red)!important}

/* Specification cards + lower tabs — remove the remaining black bands. */
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-detail-spec-row{
  background:transparent!important;
  background-image:none!important;
  border-color:transparent!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-detail-spec-row>div{
  background:var(--mp624-white)!important;
  background-image:none!important;
  color:var(--mp624-ink)!important;
  border:1px solid var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-detail-spec-row>div :where(i,strong){color:var(--mp624-ink)!important}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-detail-spec-row>div i{color:var(--mp624-red)!important}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-detail-spec-row>div span{color:var(--mp624-muted)!important}

html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main :where(
  .mpb2b-tabs,.mpb2b-product-tabs,.mpb2b-tab-links,.mpb2b-tab-content,.mpb2b-tab-panel,
  .mpb2b-specification-unified,.mpb2b-spec-grid,.mpb2b-extra-specifications,
  .mpb2b-feature-application-grid,.mpb2b-feature-application-card,.mpb2b-benefit-card,
  .mpb2b-product-media-library,.mpb2b-media-grid,.mpb2b-media-card
){
  background:var(--mp624-white)!important;
  background-image:none!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-tabs{
  border:1px solid var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-tab-links{
  background:var(--mp624-soft)!important;
  border-bottom:1px solid var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-tab-links a{
  background:transparent!important;
  color:var(--mp624-text)!important;
  border-color:transparent!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-tab-links a:hover{background:#e5e9ed!important;color:var(--mp624-red)!important}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-tab-links a.is-active{
  background:var(--mp624-white)!important;
  color:var(--mp624-red)!important;
  border-bottom-color:var(--mp624-red)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-tab-content :where(p,li,dd,dt,span){color:var(--mp624-text)!important}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main :where(.mpb2b-muted-note,.text-muted){color:var(--mp624-muted)!important}

html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main :where(.mpb2b-spec-table,.mpb2b-spec-table tbody,.mpb2b-spec-table tr,.mpb2b-spec-table td,.mpb2b-spec-table th){
  background:var(--mp624-white)!important;
  color:var(--mp624-text)!important;
  border-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-spec-table td:first-child{
  background:var(--mp624-soft)!important;
  color:var(--mp624-ink)!important;
  font-weight:800!important;
}

/* ---------------------------------------------------------
   CATALOG / PRODUCT LIST / CART / CHECKOUT — no black panels.
   --------------------------------------------------------- */
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main :where(
  .mpb2b-catalog-page,.mpb2b-shop-page,.mpb2b-filter-panel,.mpb2b-side-card,.mpb2b-results-bar,
  .mpb2b-catalog-search,.mpb2b-cart-table,.mpb2b-box,.mpb2b-summary,.mpb2b-form-card,
  .mpb2b-cart-main,.mpb2b-cart-total,.mpb2b-cart-card,.mpb2b-checkout-main,.mpb2b-checkout-summary,
  .mpb2b-summary-card,.mpb2b-checkout-card,.mpb2b-form-panel,.mpb2b-shipping-option,
  .mpb2b-payment-option,.mpb2b-shippo-rate-box,.mp-shop-total,.mp-order-card,.mp-order-summary,
  .mpb2b-live-price-preview,.mpb2b-muted-note,.mpb2b-shipping-rate-empty
){
  background:var(--mp624-white)!important;
  background-image:none!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-filter-panel,
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-results-bar{background:var(--mp624-soft)!important}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-cart-table th{background:var(--mp624-soft)!important;color:var(--mp624-ink)!important}

/* Generic dark Bootstrap/utilities inside the storefront become light in White mode. */
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main :where(
  .bg-dark,.text-bg-dark,.bg-black,.card,.card-header,.card-body,.card-footer,.list-group-item,
  .accordion-item,.accordion-header,.accordion-button,.accordion-body,.dropdown-menu,.offcanvas,
  .modal-content,.modal-header,.modal-body,.modal-footer,.table-responsive
){
  background:var(--mp624-white)!important;
  background-image:none!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main :where(.btn-dark,.mpb2b-btn-dark,.btn-outline-dark,.btn-secondary,.btn-outline-secondary){
  background:var(--mp624-soft)!important;
  background-image:none!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line-strong)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main :where(.btn-dark,.mpb2b-btn-dark,.btn-outline-dark,.btn-secondary,.btn-outline-secondary):hover{
  background:var(--mp624-soft-2)!important;
  color:var(--mp624-red)!important;
  border-color:#9ea8b2!important;
}

/* Forms should never become black in light mode. */
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark #site-main :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea,
  .form-control,.form-select,.input-group-text
){
  background:#fff!important;
  background-image:none!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line-strong)!important;
  color-scheme:light!important;
}

/* Footer is explicitly light in White theme. */
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark :where(
  .mpb2b-footer,.mpb2b-footer-main,.mpb2b-footer-contact,.mpb2b-footer-brand-column,
  .mpb2b-footer-link-column,.mpb2b-footer-bottom,footer
){
  background:var(--mp624-soft)!important;
  background-image:none!important;
  color:var(--mp624-text)!important;
  border-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark :where(
  .mpb2b-footer,.mpb2b-footer-main,.mpb2b-footer-contact,.mpb2b-footer-brand-column,
  .mpb2b-footer-link-column,.mpb2b-footer-bottom,footer
) :where(h1,h2,h3,h4,h5,h6,p,span,strong,a,li,i){color:var(--mp624-text)!important}

/* Storefront admin overlay should also be flat/light when the storefront is light. */
html[data-mp-theme="light"] body.site-masterpalm .sesfe-admin-bar,
html[data-mp-theme="light"] body.site-masterpalm .sesfe-admin-tab{
  background:#fff!important;
  background-image:none!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.site-masterpalm :where(.sesfe-btn-dark,.sesfe-btn-light,.sesfe-btn-icon){
  background:var(--mp624-white)!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line-strong)!important;
}
html[data-mp-theme="light"] body.site-masterpalm .sesfe-btn-primary{background:var(--mp624-red-bright)!important;color:#fff!important;border-color:var(--mp624-red-bright)!important}

/* ---------------------------------------------------------
   DISTRIBUTOR PUBLIC + PRIVATE PORTAL — flat light surfaces.
   --------------------------------------------------------- */
html[data-mp-theme="light"] body.dp-b2b-public,
html[data-mp-theme="light"] body.dp-public-shell,
html[data-mp-theme="light"] body.dp-shell{
  background:var(--mp624-page)!important;
  color:var(--mp624-ink)!important;
  color-scheme:light!important;
}
html[data-mp-theme="light"] body.dp-b2b-public :where(.dp-b2b-nav,.dp-landing-head,.dp-landing-grid article,.dp-application),
html[data-mp-theme="light"] body.dp-public-shell .dp-login-card,
html[data-mp-theme="light"] body.dp-shell :where(.dp-sidebar,.dp-topbar,.dp-card,.dp-stat,.dp-user,.dp-document,.dp-status-panel,.dp-product-result,.dp-builder-row){
  background:#fff!important;
  background-image:none!important;
  color:var(--mp624-ink)!important;
  border-color:var(--mp624-line)!important;
}
html[data-mp-theme="light"] body.dp-shell .dp-sidebar{background:var(--mp624-soft)!important}

/* Mobile menu stays light in White mode. */
@media (max-width:900px){
  html[data-mp-theme="light"] body.site-masterpalm.masterpalm-store-dark .mpb2b-nav .mpb2b-container.is-open{
    background:#fff!important;
    border-color:var(--mp624-line)!important;
  }
}
