/* TEMP FIX: nested toolbox group (e.g. "Taste the Arctic") overflowing the filter drawer */

/* Let a slot that holds a nested category take the full row instead of its content width */
.sub-categories > .sub-category-slot:has(> .filter-category) {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}

/* Make the nested category and its chip container fill the slot so chips wrap */
.sub-categories > .sub-category-slot > .filter-category {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.sub-categories > .sub-category-slot > .filter-category > .sub-categories {
  width: 100%;
  min-width: 0;
}

/* Cap single chips at the container width and let long names wrap */
.sub-categories--pills > .sub-category-slot,
.sub-categories--pills > .sub-category-slot > .pill {
  max-width: 100%;
  min-width: 0;
}
.sub-categories--pills > .sub-category-slot > .pill label {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
