/*
 * STORE APP Patch 411
 * Product-card option selection is a true Bootstrap modal. Older Store App
 * shipping/cart rules elevate every Bootstrap backdrop to 2147483090, while
 * this modal previously retained Bootstrap's default z-index. On category
 * pages that made the option dialog appear behind the darkened filter layer.
 */
body.site-masterpalm > #mpb2bProductOptionModal.mpb2b-product-option-modal,
body.site-masterpalm.modal-open > #mpb2bProductOptionModal.mpb2b-product-option-modal,
body.site-masterpalm > #mpb2bProductOptionModal.mpb2b-product-option-modal.show{
  position:fixed!important;
  inset:0!important;
  z-index:2147483120!important;
  isolation:isolate!important;
}

body.site-masterpalm > #mpb2bProductOptionModal.mpb2b-product-option-modal .modal-dialog{
  position:relative!important;
  z-index:2!important;
}

body.site-masterpalm > #mpb2bProductOptionModal.mpb2b-product-option-modal .modal-content{
  position:relative!important;
  z-index:3!important;
}

/* The established Store App backdrop remains immediately below the dialog. */
body.site-masterpalm.modal-open > .modal-backdrop,
body.site-masterpalm.modal-open > .modal-backdrop.show{
  z-index:2147483090!important;
}

/* Sticky catalog/filter surfaces must never establish a competing layer while
   any Bootstrap modal is open. Their visual layout is otherwise unchanged. */
body.site-masterpalm.modal-open #site-main :where(
  .mpb2b-filter-panel,
  .mp-category-sidebar,
  .ses-list-sidebar,
  .mpb2b-category-tree,
  .mpb2b-category-layout
){
  z-index:0!important;
}
