/* MusicBox 2.10 — full-width desktop shop layout and native WooCommerce price slider fixes.
 * Explicitly scoped to the shop/archive and the active MusicBox columns.
 * Does not edit product data, account pages or checkout. */
@media(min-width:782px){
  body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag,.tax-product_brand)
    .wp-block-columns.mbx-shop-layout.mbx-shop-layout--compact {
      width:calc(100vw - 28px)!important;
      max-width:none!important;
      min-width:0!important;
      box-sizing:border-box!important;
      display:flex!important;
      flex-wrap:nowrap!important;
      gap:clamp(12px,1vw,20px)!important;
      margin:12px 0 0!important;
      padding:0!important;
      position:relative!important;
      left:50%!important;
      transform:translateX(-50%)!important;
      align-items:flex-start!important;
    }
  body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag,.tax-product_brand)
    .mbx-shop-layout--compact > .wp-block-column.mbx-shop-sidebar {
      flex:0 0 clamp(295px,16.5vw,340px)!important;
      flex-basis:clamp(295px,16.5vw,340px)!important;
      width:clamp(295px,16.5vw,340px)!important;
      min-width:0!important;
      max-width:340px!important;
      box-sizing:border-box!important;
      margin:0!important;
    }
  body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag,.tax-product_brand)
    .mbx-shop-layout--compact > .wp-block-column.mbx-shop-results {
      flex:1 1 0%!important;
      flex-basis:0%!important;
      width:auto!important;
      max-width:none!important;
      min-width:0!important;
      margin:0!important;
      box-sizing:border-box!important;
    }
  /* Extendable's constrained layout applies max-width to inner Groups too.
     Remove it only on the wrappers of the MusicBox banner and main results. */
  body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag,.tax-product_brand)
    .mbx-shop-results > :is(.wp-block-shortcode,.wp-block-group,.wp-block-columns),
  body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag,.tax-product_brand)
    .mbx-shop-results :is(.wp-block-group,.wp-block-shortcode):has(> .mbx-shop-banner) {
      width:100%!important;
      max-width:none!important;
      min-width:0!important;
      box-sizing:border-box!important;
      margin-inline:0!important;
      padding-inline:0!important;
    }
  body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag,.tax-product_brand)
    .mbx-shop-results .mbx-shop-banner {
      width:100%!important;
      max-width:none!important;
      min-width:0!important;
      margin-inline:0!important;
      box-sizing:border-box!important;
    }
}
/* WooCommerce's CURRENT price filter has a .__content wrapper with __range,
   __left and __right children, not the old .__amounts wrappers.
   Grid enforces two equal fields inside the filter card. */
.mbx-shop-filters-v24 .wc-block-product-filter-price-slider,
.mbx-shop-filters-v24 .wp-block-woocommerce-product-filter-price,
.mbx-shop-filters-v24 .wp-block-woocommerce-product-filter-price-slider,
.mbx-shop-filters-v24 .wc-block-product-filter-price-slider__content {
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.mbx-shop-filters-v24 .wc-block-product-filter-price-slider__content {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:10px!important;
  row-gap:7px!important;
  align-items:center!important;
  margin:0!important;
  padding:0!important;
}
.mbx-shop-filters-v24 .wc-block-product-filter-price-slider__range {
  grid-column:1 / -1!important;
  grid-row:1!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  margin:0 0 4px!important;
}
.mbx-shop-filters-v24 .wc-block-product-filter-price-slider__left,
.mbx-shop-filters-v24 .wc-block-product-filter-price-slider__right {
  display:block!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
.mbx-shop-filters-v24 .wc-block-product-filter-price-slider__left {
  grid-column:1!important;
  grid-row:2!important;
}
.mbx-shop-filters-v24 .wc-block-product-filter-price-slider__right {
  grid-column:2!important;
  grid-row:2!important;
}
.mbx-shop-filters-v24 .wc-block-product-filter-price-slider__left input,
.mbx-shop-filters-v24 .wc-block-product-filter-price-slider__right input {
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:36px!important;
  margin:0!important;
  padding:6px 8px!important;
  border:1px solid #486073!important;
  border-radius:7px!important;
  background:#192a38!important;
  color:#f5fbff!important;
  font-size:12px!important;
  font-variant-numeric:tabular-nums;
}
/* In WooCommerce's inline slider layout the input wrappers are still
   grid children; keeping the slider first preserves legibility. */
.mbx-shop-filters-v24 .wc-block-product-filter-price-slider__content--inline {
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
}
@media(max-width:781px){
 .mbx-shop-filters-v24 .wc-block-product-filter-price-slider__content {
   grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
 }
}
