/* BROOLED Store v3.4.0 RC1.7
 * Product option presentation, compact custom volume input, catalogue toolbar alignment,
 * and resilient frontend presentation when another plugin mutates the main query.
 */

/* Desktop catalogue toolbar: Search + Filter + Sort + Apply share one level. */
.brooled-shop-controls,
body.brooled-native-site-template .brooled-shop-controls{
  display:grid!important;
  grid-template-columns:minmax(300px,1.65fr) minmax(180px,.75fr) minmax(200px,.82fr) auto!important;
  grid-template-areas:"search filter sort apply"!important;
  align-items:end!important;
  gap:12px!important;
  padding:16px!important;
}
.brooled-shop-controls .brooled-control-search,
body.brooled-native-site-template .brooled-shop-controls .brooled-control-search{grid-area:search!important;grid-column:auto!important;min-width:0!important}
.brooled-shop-controls .brooled-shop-filter,
body.brooled-native-site-template .brooled-shop-controls .brooled-shop-filter{grid-area:filter!important;min-width:0!important}
.brooled-shop-controls .brooled-shop-sort,
body.brooled-native-site-template .brooled-shop-controls .brooled-shop-sort{grid-area:sort!important;min-width:0!important}
.brooled-shop-controls .brooled-catalogue-apply,
body.brooled-native-site-template .brooled-shop-controls .brooled-catalogue-apply{
  grid-area:apply!important;
  align-self:end!important;
  width:auto!important;
  min-width:112px!important;
  min-height:44px!important;
  margin:0!important;
  padding:0 20px!important;
}
.brooled-shop-controls :is(input[type="search"],select),
body.brooled-native-site-template .brooled-shop-controls :is(input[type="search"],select){min-height:44px!important;width:100%!important}

/* Volume Size: all non-dropdown presentations render side-by-side and keep their
 * selected presentation instead of falling back to visible browser radio controls. */
.brooled-option-volume,
body.brooled-native-site-template .brooled-option-volume{
  display:block!important;
  min-width:0!important;
  padding:14px!important;
}
.brooled-option-volume>legend,
body.brooled-native-site-template .brooled-option-volume>legend{margin-bottom:10px!important}
.brooled-volume-selector-row,
body.brooled-native-site-template .brooled-volume-selector-row{
  display:flex!important;
  align-items:flex-end!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  min-width:0!important;
}
.brooled-volume-choices,
body.brooled-native-site-template .brooled-volume-choices,
.volume-presentation-list .brooled-volume-choices,
.volume-presentation-cards .brooled-volume-choices,
body.brooled-native-site-template .volume-presentation-list .brooled-volume-choices,
body.brooled-native-site-template .volume-presentation-cards .brooled-volume-choices{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-items:stretch!important;
  gap:9px!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
}
.brooled-volume-choice,
.volume-presentation-list .brooled-volume-choice,
.volume-presentation-cards .brooled-volume-choice,
body.brooled-native-site-template .brooled-volume-choice,
body.brooled-native-site-template .volume-presentation-list .brooled-volume-choice,
body.brooled-native-site-template .volume-presentation-cards .brooled-volume-choice{
  position:relative!important;
  display:inline-flex!important;
  width:auto!important;
  min-width:0!important;
  align-items:center!important;
  cursor:pointer!important;
}

/* Buttons, pills and image cards use an accessible visually-hidden radio input.
 * The Radio List presentation intentionally restores a real visible radio control. */
.volume-presentation-buttons .brooled-volume-choice>input,
.volume-presentation-pills .brooled-volume-choice>input,
.volume-presentation-cards .brooled-volume-choice>input,
body.brooled-native-site-template .volume-presentation-buttons .brooled-volume-choice>input,
body.brooled-native-site-template .volume-presentation-pills .brooled-volume-choice>input,
body.brooled-native-site-template .volume-presentation-cards .brooled-volume-choice>input{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
  margin:0!important;
}
.volume-presentation-list .brooled-volume-choice>input,
body.brooled-native-site-template .volume-presentation-list .brooled-volume-choice>input{
  position:static!important;
  width:18px!important;
  height:18px!important;
  opacity:1!important;
  pointer-events:auto!important;
  margin:0 7px 0 0!important;
  accent-color:var(--br-accent,#181410)!important;
  flex:0 0 18px!important;
}
.brooled-volume-choice-face,
body.brooled-native-site-template .brooled-volume-choice-face{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:72px!important;
  min-height:44px!important;
  padding:8px 13px!important;
  border:1px solid var(--br-border,#d6cec5)!important;
  border-radius:10px!important;
  background:var(--br-surface,#fff)!important;
  color:var(--br-text,#181410)!important;
  box-sizing:border-box!important;
}
.volume-presentation-pills .brooled-volume-choice-face,
body.brooled-native-site-template .volume-presentation-pills .brooled-volume-choice-face{border-radius:999px!important;padding-inline:16px!important}
.volume-presentation-cards .brooled-volume-choice-face,
body.brooled-native-site-template .volume-presentation-cards .brooled-volume-choice-face{
  width:116px!important;
  min-height:112px!important;
  flex-direction:column!important;
  gap:7px!important;
  padding:9px!important;
  border-radius:14px!important;
}
.volume-presentation-list .brooled-volume-choice-face,
body.brooled-native-site-template .volume-presentation-list .brooled-volume-choice-face{
  width:auto!important;
  min-width:70px!important;
  min-height:40px!important;
  padding:6px 10px!important;
  justify-content:flex-start!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.volume-presentation-list .brooled-volume-choice-face:before,
body.brooled-native-site-template .volume-presentation-list .brooled-volume-choice-face:before{display:none!important;content:none!important}
.brooled-volume-choice-face b,
body.brooled-native-site-template .brooled-volume-choice-face b{color:inherit!important;font-size:14px!important;font-weight:850!important;line-height:1.15!important;white-space:nowrap!important}
.brooled-volume-choice-face small,
body.brooled-native-site-template .brooled-volume-choice-face small{font-size:10px!important;line-height:1.15!important;color:var(--br-muted,#5f554c)!important}
.volume-presentation-buttons .brooled-volume-choice>input:checked+.brooled-volume-choice-face,
.volume-presentation-pills .brooled-volume-choice>input:checked+.brooled-volume-choice-face,
.volume-presentation-cards .brooled-volume-choice>input:checked+.brooled-volume-choice-face,
body.brooled-native-site-template .volume-presentation-buttons .brooled-volume-choice>input:checked+.brooled-volume-choice-face,
body.brooled-native-site-template .volume-presentation-pills .brooled-volume-choice>input:checked+.brooled-volume-choice-face,
body.brooled-native-site-template .volume-presentation-cards .brooled-volume-choice>input:checked+.brooled-volume-choice-face{
  background:var(--br-accent,#181410)!important;
  color:var(--br-button-text,#fff)!important;
  border-color:var(--br-accent,#181410)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--br-accent,#181410) 18%,transparent)!important;
}
.volume-presentation-buttons .brooled-volume-choice>input:checked+.brooled-volume-choice-face small,
.volume-presentation-pills .brooled-volume-choice>input:checked+.brooled-volume-choice-face small,
.volume-presentation-cards .brooled-volume-choice>input:checked+.brooled-volume-choice-face small{color:color-mix(in srgb,var(--br-button-text,#fff) 82%,transparent)!important}
.brooled-volume-choice-image,
body.brooled-native-site-template .brooled-volume-choice-image{display:block!important;width:68px!important;height:68px!important;object-fit:contain!important;border-radius:9px!important}

/* The custom value is deliberately an 8-character field and remains on the same
 * selector row. The shorter placeholder is scaled to fit the compact field. */
.brooled-volume-custom-wrap,
body.brooled-native-site-template .brooled-volume-custom-wrap{
  display:inline-flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-end!important;
  gap:4px!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  font-weight:800!important;
}
.brooled-volume-custom-wrap[hidden],
body.brooled-native-site-template .brooled-volume-custom-wrap[hidden]{display:none!important}
.brooled-volume-custom-wrap>span,
body.brooled-native-site-template .brooled-volume-custom-wrap>span{font-size:11px!important;line-height:1.1!important;color:var(--br-muted,#5f554c)!important;white-space:nowrap!important}
.brooled-volume-custom-wrap input,
body.brooled-native-site-template .brooled-volume-custom-wrap input{
  width:11ch!important;
  min-width:11ch!important;
  max-width:11ch!important;
  min-height:44px!important;
  padding:8px 7px!important;
  font-size:13px!important;
  line-height:1!important;
  box-sizing:border-box!important;
}
.brooled-volume-custom-wrap input::placeholder,
body.brooled-native-site-template .brooled-volume-custom-wrap input::placeholder{font-size:11px!important;letter-spacing:-.02em!important;opacity:.72!important}
.volume-presentation-dropdown .brooled-volume-selector-row>select,
body.brooled-native-site-template .volume-presentation-dropdown .brooled-volume-selector-row>select{width:min(100%,420px)!important;min-height:44px!important}

@media(max-width:860px){
  .brooled-shop-controls,
  body.brooled-native-site-template .brooled-shop-controls{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important;
    grid-template-areas:"search search search" "filter sort apply"!important;
  }
}
@media(max-width:620px){
  .brooled-shop-controls,
  body.brooled-native-site-template .brooled-shop-controls{
    grid-template-columns:1fr 1fr!important;
    grid-template-areas:"search search" "filter sort" "apply apply"!important;
  }
  .brooled-shop-controls .brooled-catalogue-apply,
  body.brooled-native-site-template .brooled-shop-controls .brooled-catalogue-apply{width:100%!important}
  .brooled-volume-selector-row,
  body.brooled-native-site-template .brooled-volume-selector-row{align-items:flex-start!important}
}
@media(max-width:460px){
  .brooled-shop-controls,
  body.brooled-native-site-template .brooled-shop-controls{grid-template-columns:1fr!important;grid-template-areas:"search" "filter" "sort" "apply"!important}
}
