/* WBC 9.8.3 — full-width filter groups with three separators.
   This intentionally supersedes the old fixed-height, two-column coffee-type
   rules in the earlier responsive bundles. It does not style tea filters. */
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) {
 --wb-filter-gap:5px;
 display:grid!important;width:100%!important;max-width:100%!important;
 box-sizing:border-box!important;height:auto!important;min-height:0!important;
 margin:0 0 14px!important;padding:0!important;overflow:visible!important;
 align-items:end!important;justify-content:stretch!important;
}
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar[hidden] {display:none!important}
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-coffee-menu,
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-type-filter,
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-size-filter {
 box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
 margin:0!important;padding:0!important;flex:none!important;align-self:end!important;
}
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-coffee-menu {
 position:relative!important;
}
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) .wb-filter-toggle {
 width:100%!important;min-width:0!important;max-width:100%!important;
 height:44px!important;min-height:44px!important;max-height:none!important;
 box-sizing:border-box!important;padding:5px 9px!important;margin:0!important;
 font-size:13px!important;line-height:1.22!important;text-align:left!important;
 white-space:normal!important;justify-content:flex-start!important;
}
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) fieldset {
 border:0!important;display:block!important;overflow:visible!important;
 height:auto!important;min-height:0!important;
}
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) fieldset legend {
 float:none!important;box-sizing:border-box!important;width:100%!important;
 margin:0!important;padding:0 0 6px!important;white-space:normal!important;
 line-height:1.25!important;
}
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) .wb-type-buttons,
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) .wb-size-buttons {
 display:grid!important;
 grid-template-rows:minmax(44px,auto)!important;grid-auto-flow:column!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 height:auto!important;min-height:44px!important;
 gap:var(--wb-filter-gap)!important;align-items:stretch!important;justify-content:stretch!important;
}
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) .wb-type-buttons {
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) .wb-size-buttons {
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) .wb-type-buttons button,
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) .wb-size-buttons button {
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
 height:44px!important;min-height:44px!important;max-height:none!important;gap:2px!important;
 margin:0!important;padding:4px 3px!important;font-size:12px!important;line-height:1.2!important;
 white-space:normal!important;text-align:center!important;overflow-wrap:normal!important;
}
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) .wb-size-buttons .wb-size-metric,
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) .wb-size-buttons .wb-size-us {
 display:block!important;position:static!important;transform:none!important;inset:auto!important;
 margin:0!important;padding:0!important;white-space:nowrap!important;line-height:1.1!important;
}
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) .wb-size-buttons .wb-size-us {
 font-size:.86em!important;
}
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-filter-clear {
 box-sizing:border-box!important;height:44px!important;min-height:44px!important;
 min-width:0!important;max-width:100%!important;margin:0!important;padding:4px 5px!important;
 font-size:12px!important;line-height:1.2!important;white-space:normal!important;align-self:end!important;
}
html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-filter-active:empty {display:none!important}

/* Approved Option A: four full-width groups, the same button widths within
   the type and size sets, and all available space distributed between groups.
   Empty grid tracks 4, 6 and 8 are the three equal separator gaps. */
@media (min-width:900px) {
 html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) {
  --wb-filter-unit:min(96px,calc((100% - 96px) / 11.0208333333));
  --wb-group-gap:calc((100% - 30px - var(--wb-filter-unit) * 11.0208333333) / 3);
  --wb-divider-1:calc(var(--wb-filter-unit) * 2.875 + 5px + var(--wb-group-gap) * .5);
  --wb-divider-2:calc(var(--wb-filter-unit) * 5.875 + 15px + var(--wb-group-gap) * 1.5);
  --wb-divider-3:calc(var(--wb-filter-unit) * 9.875 + 30px + var(--wb-group-gap) * 2.5);
  grid-template-columns:
   minmax(0,calc(var(--wb-filter-unit) * 1.4375))
   5px
   minmax(0,calc(var(--wb-filter-unit) * 1.4375))
   minmax(0,var(--wb-group-gap))
   minmax(0,calc(var(--wb-filter-unit) * 3 + 10px))
   minmax(0,var(--wb-group-gap))
   minmax(0,calc(var(--wb-filter-unit) * 4 + 15px))
   minmax(0,var(--wb-group-gap))
   minmax(0,calc(var(--wb-filter-unit) * 1.1458333333))!important;
  grid-template-rows:auto!important;column-gap:0!important;row-gap:8px!important;
  background-image:linear-gradient(to right,
   transparent 0,transparent calc(var(--wb-divider-1) - 1px),
   #c8b18b calc(var(--wb-divider-1) - 1px),#c8b18b calc(var(--wb-divider-1) + 1px),
   transparent calc(var(--wb-divider-1) + 1px),transparent calc(var(--wb-divider-2) - 1px),
   #c8b18b calc(var(--wb-divider-2) - 1px),#c8b18b calc(var(--wb-divider-2) + 1px),
   transparent calc(var(--wb-divider-2) + 1px),transparent calc(var(--wb-divider-3) - 1px),
   #c8b18b calc(var(--wb-divider-3) - 1px),#c8b18b calc(var(--wb-divider-3) + 1px),
   transparent calc(var(--wb-divider-3) + 1px),transparent 100%)!important;
  background-position:left top!important;background-repeat:no-repeat!important;
  background-size:100% 100%!important;
 }
 html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-coffee-menu {grid-column:1!important;grid-row:1!important}
 html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-coffee-menu.wb-coffee-notes {grid-column:3!important;grid-row:1!important}
 html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-type-filter {grid-column:5!important;grid-row:1!important}
 html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-size-filter {grid-column:7!important;grid-row:1!important}
 html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-filter-clear {grid-column:9!important;grid-row:1!important;width:100%!important}
 html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-filter-active {grid-column:1/-1!important;grid-row:2!important}
 html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) .wb-coffee-menu > .wb-filter-choices:not([hidden]) {
  position:absolute!important;top:calc(100% + 5px)!important;left:0!important;right:auto!important;
  width:max(100%,210px)!important;max-width:calc(100vw - 40px)!important;
  z-index:60!important;
 }
}
/* Below desktop widths, keep each choice group on one line but stack the
   groups so they never overlap the product grid or horizontal-scroll. */
@media (max-width:899px) {
 html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) {
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:auto auto auto auto!important;gap:12px!important;
  align-items:start!important;
 }
 html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-coffee-menu {grid-column:1!important;grid-row:1!important;align-self:start!important}
 html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-coffee-menu.wb-coffee-notes {grid-column:2!important;grid-row:1!important}
 html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-type-filter {grid-column:1/-1!important;grid-row:2!important}
 html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-size-filter {grid-column:1/-1!important;grid-row:3!important}
 html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-filter-clear {grid-column:2!important;grid-row:4!important;justify-self:end!important;width:auto!important}
 html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) > .wb-filter-active {grid-column:1/-1!important;grid-row:5!important}
 html #wbc-store[data-category="Coffee"] #wb-filters.wb-filter-bar:not([hidden]) .wb-coffee-menu > .wb-filter-choices:not([hidden]) {
  position:static!important;top:auto!important;left:auto!important;right:auto!important;
  width:100%!important;max-width:100%!important;
 }
}
