/*
 * STORE APP Patch 406
 * Product-detail inline option panels are permanent storefront surfaces and
 * therefore use the graphite-dark theme. The product-card option modal remains
 * a true white popup through the existing modal rules.
 */
body.site-masterpalm.masterpalm-store-dark #site-main fieldset.mpb2b-product-options,
body.site-masterpalm.masterpalm-store-dark #site-main .mpb2b-buybox fieldset.mpb2b-product-options{
  background:#171D24!important;
  color:#FFFFFF!important;
  border:1px solid #3B4652!important;
  border-left:4px solid #B8001F!important;
  box-shadow:none!important;
  color-scheme:dark;
}
body.site-masterpalm.masterpalm-store-dark #site-main fieldset.mpb2b-product-options>legend{
  width:100%!important;
  background:transparent!important;
  color:#FFFFFF!important;
  border:0!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main fieldset.mpb2b-product-options>legend span{
  color:#F04A62!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main fieldset.mpb2b-product-options>p{
  color:#C2CAD3!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main fieldset.mpb2b-product-options .mpb2b-product-option-list{
  background:transparent!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main fieldset.mpb2b-product-options label.mpb2b-product-option-item{
  background:#202730!important;
  color:#FFFFFF!important;
  border:1px solid #46515D!important;
  box-shadow:none!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main fieldset.mpb2b-product-options label.mpb2b-product-option-item:hover,
body.site-masterpalm.masterpalm-store-dark #site-main fieldset.mpb2b-product-options label.mpb2b-product-option-item:focus-within{
  background:#2A333D!important;
  border-color:#7A8794!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main fieldset.mpb2b-product-options label.mpb2b-product-option-item:has(input:checked){
  background:#2A333D!important;
  border-color:#B8001F!important;
  box-shadow:inset 4px 0 0 #B8001F!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main fieldset.mpb2b-product-options label.mpb2b-product-option-item :where(span,strong,b){
  color:#FFFFFF!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main fieldset.mpb2b-product-options label.mpb2b-product-option-item small{
  color:#C2CAD3!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main fieldset.mpb2b-product-options :where(input[type=checkbox],input[type=radio]){
  accent-color:#B8001F!important;
}
body.site-masterpalm.masterpalm-store-dark #site-main fieldset.mpb2b-product-options select.form-select{
  background-color:#10161C!important;
  color:#FFFFFF!important;
  border-color:#56616D!important;
  color-scheme:dark;
}

/* Keep the product-card option chooser explicitly white as a popup. */
body.masterpalm-store-dark .mpb2b-product-option-modal .modal-content,
body.masterpalm-store-dark .mpb2b-product-option-modal .modal-header,
body.masterpalm-store-dark .mpb2b-product-option-modal .modal-body,
body.masterpalm-store-dark .mpb2b-product-option-modal .modal-footer,
body.masterpalm-store-dark .mpb2b-product-option-modal .mpb2b-card-option-group,
body.masterpalm-store-dark .mpb2b-product-option-modal .mpb2b-card-option-item{
  background:#FFFFFF!important;
  color:#17202B!important;
  border-color:#D3D9E0!important;
  color-scheme:light;
}
body.masterpalm-store-dark .mpb2b-product-option-modal :where(
  h1,h2,h3,h4,h5,h6,p,span,small,strong,b,label,legend
){
  color:#17202B!important;
}
body.masterpalm-store-dark .mpb2b-product-option-modal .mpb2b-product-option-modal__price,
body.masterpalm-store-dark .mpb2b-product-option-modal .mpb2b-card-option-group legend em{
  color:#B8001F!important;
}
