/* Compact category filters only. Keep headings, content and desktop styles intact. */
@media (max-width: 767px) {
  html body [data-mobile-filter-row][role][aria-label] {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
  }
  html body [data-mobile-filter-row][role][aria-label] > button {
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
  }
  html body [data-mobile-filter-row][role][aria-label] > button > span {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
  }
}

/* Preserve readable 12px labels even on the narrowest supported screens. */
@media (max-width: 360px) {
  html body [data-mobile-filter-row][role][aria-label] { gap: 3px; }
  html body [data-mobile-filter-row][role][aria-label] > button { padding-inline: 3px; }
}
