/* MusicBox V2.9 — compact WooCommerce filters, no internal scrollbars, vivid checkbox states.
   Scoped entirely to the MusicBox filter shortcode. The page scrolls normally. */
.mbx-shop-filters.mbx-shop-filters-v24 {
  overflow:visible!important;
  max-height:none!important;
  height:auto!important;
  box-sizing:border-box!important;
  padding:11px 13px!important;
}
@media(min-width:782px){
  .mbx-shop-layout--compact .mbx-shop-filters.mbx-shop-filters-v24 {
    position:static!important;
    max-height:none!important;
    min-height:0!important;
    overflow:visible!important;
    overscroll-behavior:auto!important;
  }
}
.mbx-shop-filters-v24 :is(.mbx-shop-filters-body,.wc-block-product-filters,.wc-block-product-filters__content,
  .wc-block-product-filter-checkbox-list,.wc-block-components-checkbox-list,
  .wp-block-woocommerce-product-filter-checkbox-list,
  .wc-block-product-filter-checkbox-list__items,
  .wc-block-product-filter-checkbox-list__list,
  .wc-block-components-checkbox-list__list,
  .wc-block-product-filter-taxonomy__items) {
  max-height:none!important;
  height:auto!important;
  overflow:visible!important;
  overflow-x:visible!important;
  overflow-y:visible!important;
  scrollbar-width:none!important;
}
/* Override the V2.5 compact selector (which had higher specificity). */
.mbx-shop-layout--compact .mbx-shop-filters-v24 :is(.wc-block-product-filter-checkbox-list,
 .wc-block-components-checkbox-list,.wc-block-product-filter-checkbox-list__items,
 .wc-block-product-filter-checkbox-list__list) {
 max-height:none!important;height:auto!important;
 overflow:visible!important;overflow-y:visible!important;overflow-x:visible!important;
 scrollbar-width:none!important;
}
/* Tight vertical rhythm, without making the individual touch targets too small. */
.mbx-shop-filters-v24 .mbx-shop-filters-heading {
  padding:0 0 8px!important;
  margin-bottom:1px!important;
}
.mbx-shop-filters-v24 :is(.wp-block-woocommerce-product-filter-taxonomy,
  .wp-block-woocommerce-product-filter-attribute,.wp-block-woocommerce-product-filter-price,
  .wp-block-woocommerce-product-filter-status,.wp-block-woocommerce-product-filter-active) {
  padding:7px 0!important;
  margin:0!important;
}
.mbx-shop-filters-v24 :is(.wp-block-woocommerce-product-filter-taxonomy,
  .wp-block-woocommerce-product-filter-attribute,.wp-block-woocommerce-product-filter-price,
  .wp-block-woocommerce-product-filter-status) > .wp-block-heading {
  margin:0 0 4px!important;
  padding:0!important;
  font-size:12px!important;
  line-height:1.25!important;
}
.mbx-shop-filters-v24 :is(.wc-block-components-checkbox,
  .wc-block-product-filter-checkbox-list li,.wc-block-product-filter-checkbox-list__item,
  .wc-block-components-checkbox-list li) {
  margin:0!important;
  padding:0!important;
  min-height:26px!important;
}
.mbx-shop-filters-v24 :is(.wc-block-components-checkbox__label,
  .wc-block-product-filter-checkbox-list__text, label, .wc-block-product-filter-checkbox-list__item-label) {
  line-height:1.3!important;
}
.mbx-shop-filters-v24 :is(.wc-block-product-filter-checkbox-list,.wc-block-components-checkbox-list) > * {
  margin-block:0!important;
}
/* Allow collapse/expand by group, while preserving WooCommerce's own product query state. */
.mbx-shop-filters-v24 .mbx-filter-group-is-collapsed > :not(.wp-block-heading) {display:none!important;}
.mbx-shop-filters-v24 .mbx-filter-group-toggle {
  appearance:none!important;-webkit-appearance:none!important;
  width:100%;border:0!important;background:transparent!important;
  color:#f1f6f9!important;display:flex;align-items:center;justify-content:space-between;
  padding:4px 1px!important;margin:0!important;gap:8px;text-align:left;
  font:inherit!important;font-weight:700!important;font-size:12px!important;
  cursor:pointer;border-radius:5px;min-height:27px!important;
}
.mbx-shop-filters-v24 .mbx-filter-group-toggle::after {
  content:'';width:7px;height:7px;border-right:1.5px solid #719F41;border-bottom:1.5px solid #719F41;
  transform:rotate(45deg);margin:0 5px 3px 0;transition:transform .15s;flex:0 0 auto;
}
.mbx-shop-filters-v24 .mbx-filter-group-toggle[aria-expanded="false"]::after {transform:rotate(-45deg);margin-bottom:0;}
.mbx-shop-filters-v24 .mbx-filter-group-toggle:focus-visible {outline:2px solid #719F41!important;outline-offset:2px;}
/* Checkboxes: green stroke when clear; solid green + white tick when checked.
   Use the native checkbox input so keyboard interaction and WooCommerce filtering stay intact. */
.mbx-shop-filters-v24 input[type="checkbox"],
.mbx-shop-filters-v24 input.wc-block-components-checkbox__input,
.mbx-shop-filters-v24 input.wc-block-product-filter-checkbox-list__input {
  -webkit-appearance:none!important;appearance:none!important;
  display:inline-grid!important;place-content:center!important;
  inline-size:16px!important;block-size:16px!important;min-inline-size:16px!important;
  padding:0!important;margin:0 7px 0 0!important;
  border:1.7px solid #719F41!important;
  border-radius:3px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#fff!important;
  vertical-align:middle;cursor:pointer;
  accent-color:#719F41!important;
  flex:0 0 16px!important;
}
.mbx-shop-filters-v24 input[type="checkbox"]:checked,
.mbx-shop-filters-v24 input[type="checkbox"][aria-checked="true"] {
  border-color:#719F41!important;
  background:#719F41!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8l3.2 3.1L13 4.5'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:center!important;
  background-size:13px 13px!important;
}
/* Some WooCommerce versions draw an extra SVG over the native checkbox. */
.mbx-shop-filters-v24 :is(.wc-block-components-checkbox__mark,.wc-block-product-filter-checkbox-list__checkmark) {
  color:white!important;stroke:#fff!important;pointer-events:none;
}
.mbx-shop-filters-v24 input[type="checkbox"]:focus-visible {
  outline:2px solid #a7c88c!important;outline-offset:2px!important;
}
/* Price controls: do not allow the minimum/maximum inputs or slider track to escape the panel. */
.mbx-shop-filters-v24 :is(.wp-block-woocommerce-product-filter-price,
  .wc-block-product-filter-price-slider,.wc-block-components-price-slider,
  .wp-block-woocommerce-product-filter-price-slider) {
  width:100%!important;min-width:0!important;max-width:100%!important;
  box-sizing:border-box!important;overflow:visible!important;
}
.mbx-shop-filters-v24 :is(.wc-block-product-filter-price-slider__controls,
  .wc-block-components-price-slider__controls,
  .wc-block-product-filter-price-slider__amounts,
  .wc-block-components-price-slider__amounts,
  .wc-block-components-price-slider__amounts-wrapper,
  .wc-block-product-filter-price-slider__amounts-wrapper) {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;width:100%!important;max-width:100%!important;min-width:0!important;
  padding:0!important;margin:5px 0 0!important;box-sizing:border-box!important;
}
.mbx-shop-filters-v24 :is(.wc-block-product-filter-price-slider__controls,
  .wc-block-components-price-slider__controls,
  .wc-block-product-filter-price-slider__amounts,
  .wc-block-components-price-slider__amounts) > * {
  max-width:100%!important;min-width:0!important;width:100%!important;
  flex:1 1 0!important;box-sizing:border-box!important;
}
.mbx-shop-filters-v24 :is(.wc-block-product-filter-price-slider,.wc-block-components-price-slider)
  :is(input[type="number"],input[type="text"],.wc-block-components-price-slider__amount,
  .wc-block-product-filter-price-slider__amount) {
  display:block!important;min-width:0!important;width:100%!important;
  max-width:100%!important;box-sizing:border-box!important;
  padding:7px 8px!important;font-size:12px!important;line-height:1.25!important;
}
.mbx-shop-filters-v24 :is(.wc-block-product-filter-price-slider__range,
  .wc-block-components-price-slider__range-input-wrapper,
  .wc-block-product-filter-price-slider__range-input-wrapper,
  .wc-block-components-price-slider__range-input,
  .wc-block-product-filter-price-slider__range-input) {
  min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
}
@media(max-width:781px){
  .mbx-shop-filters.mbx-shop-filters-v24{padding:10px 12px!important;}
  .mbx-shop-filters-v24 .mbx-shop-filters-body:not(.is-open){display:none!important;}
}
