/*
 * STORE APP Patch 408
 * Product-detail Volume Pricing and Express Checkout are permanent storefront
 * surfaces. Keep them graphite dark; only actual modal/popup layers stay white.
 */
body.site-masterpalm.masterpalm-store-dark{
  --mp408-deep:#0B1015;
  --mp408-panel:#171D24;
  --mp408-raised:#202730;
  --mp408-hover:#2A333D;
  --mp408-border:#3B4652;
  --mp408-text:#FFFFFF;
  --mp408-muted:#C2CAD3;
  --mp408-red:#B8001F;
}

/* Outer disclosure cards and their open/closed headers. */
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-buybox details.mpb2b-buybox-disclosure,
body.site-masterpalm.masterpalm-store-dark #site-main details.mpb2b-volume-pricing,
body.site-masterpalm.masterpalm-store-dark #site-main details.mpb2b-express-disclosure{
  background:var(--mp408-panel)!important;
  color:var(--mp408-text)!important;
  border:1px solid var(--mp408-border)!important;
  box-shadow:none!important;
  color-scheme:dark;
}
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-buybox-disclosure>summary,
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-buybox-disclosure[open]>summary{
  background:var(--mp408-raised)!important;
  color:var(--mp408-text)!important;
  border-color:var(--mp408-border)!important;
  box-shadow:none!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-buybox-disclosure>summary:hover,
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-buybox-disclosure>summary:focus-visible{
  background:var(--mp408-hover)!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-buybox-disclosure>summary :where(span,strong,small,i){
  color:var(--mp408-text)!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-buybox-disclosure>summary::after{
  color:#F04A62!important;
}

/* Volume-pricing body and every table surface. */
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-volume-pricing .mpb2b-buybox-disclosure-body,
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-volume-pricing .mpb2b-tier-table,
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-volume-pricing .mpb2b-tier-table tbody,
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-volume-pricing .mpb2b-tier-table tr,
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-volume-pricing .mpb2b-tier-table th,
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-volume-pricing .mpb2b-tier-table td{
  background:var(--mp408-panel)!important;
  color:var(--mp408-text)!important;
  border-color:var(--mp408-border)!important;
  box-shadow:none!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-volume-pricing .mpb2b-tier-table th{
  background:var(--mp408-raised)!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-volume-pricing .mpb2b-tier-table :where(th,td,strong,span,small){
  color:var(--mp408-text)!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-volume-pricing .mpb2b-tier-price del{
  color:var(--mp408-muted)!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-volume-pricing .mpb2b-tier-price em{
  color:#F04A62!important;
}

/* Express-checkout permanent disclosure body. */
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-express-disclosure .mpb2b-detail-express,
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-express-disclosure .mpb2b-detail-express-buttons,
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-express-disclosure .mpb2b-detail-express-buttons form{
  background:var(--mp408-panel)!important;
  color:var(--mp408-text)!important;
  border-color:var(--mp408-border)!important;
  box-shadow:none!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-express-disclosure .mpb2b-detail-express :where(p,strong,span,small){
  color:var(--mp408-muted)!important;
}

/* Remove pastel/white express buttons from the permanent product-detail block. */
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-express-disclosure .mpb2b-express-btn{
  border-radius:0!important;
  color:#FFFFFF!important;
  box-shadow:none!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-express-disclosure .mpb2b-express-zelle{
  background:#6D1ED4!important;
  border-color:#8B4AE8!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-express-disclosure .mpb2b-express-stripe{
  background:#635BFF!important;
  border-color:#8A84FF!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-express-disclosure .mpb2b-express-paypal{
  background:#003087!important;
  border-color:#2D66C3!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-express-disclosure .mpb2b-express-btn:hover,
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-express-disclosure .mpb2b-express-btn:focus-visible{
  filter:brightness(1.12);
  color:#FFFFFF!important;
}

/* Explicitly preserve the separate shipping/payment dialog as a white popup. */
body.masterpalm-store-dark .mpb2b-express-shipping-modal .modal-content,
body.masterpalm-store-dark .mpb2b-express-shipping-modal .modal-header,
body.masterpalm-store-dark .mpb2b-express-shipping-modal .modal-body,
body.masterpalm-store-dark .mpb2b-express-shipping-modal .modal-footer,
body.masterpalm-store-dark .mpb2b-express-shipping-modal .mpb2b-express-rate-panel{
  background:#FFFFFF!important;
  color:#17202B!important;
  border-color:#D3D9E0!important;
  color-scheme:light;
}
body.masterpalm-store-dark .mpb2b-express-shipping-modal :where(h1,h2,h3,h4,h5,h6,p,span,small,strong,b,label){
  color:#17202B!important;
}
