/* Shared outline-pill product filters across the collection previews. */
.collection-filter-review .ico-collection-quick-filters__track {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
    padding: 4px 4px 6px;
    margin-inline: -4px;
    scrollbar-width: thin;
    scrollbar-color: var(--g2) transparent;
}
.ico-type-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 5px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--g1);
    background: var(--cream);
    color: var(--black);
    font: 400 13px/1.4 var(--sans);
    letter-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: start;
    transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}
.ico-type-button__label { text-decoration: none; }
.ico-type-button__count {
    color: #676767;
    min-width: 1ch;
    font-size: 9px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    text-align: center;
    transform: translateY(-4px);
}
.ico-type-button[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--cream); }
.ico-type-button[aria-pressed="true"] .ico-type-button__count { color: var(--cream); }
.ico-type-button:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; position: relative; z-index: 1; }
.ico-type-button:disabled { opacity: 0.45; cursor: not-allowed; }

/* Rounded, outlined controls echo the site's secondary CTA buttons. */
.collection-filter-review--pill .ico-type-button { border-radius: 999px; font-size: 11px; font-weight: 500; text-transform: uppercase; }

/* Editorial studies keep the utility filter bar unchanged. */
.collection-option--editorial:where([data-pill-treatment]:not([data-pill-treatment="previous"])) .ico-collection-quick-filters__track { gap: 8px; }
.collection-option--editorial:where([data-pill-treatment]:not([data-pill-treatment="previous"])) .ico-type-button {
    min-height: 52px;
    padding-inline: 20px;
    gap: 6px;
    border-color: #c8c7c2;
    background: transparent;
    font-weight: 400;
    text-transform: none;
}
.collection-option--editorial:where([data-pill-treatment]:not([data-pill-treatment="previous"])) .ico-type-button__label {
    font: 400 28px/1.15 var(--serif);
    text-decoration: none;
}
.collection-option--editorial:where([data-pill-treatment]:not([data-pill-treatment="previous"])) .ico-type-button__count {
    font: 400 11px/1 var(--sans);
    font-variant-numeric: tabular-nums;
    transform: translateY(-6px);
}
.collection-option--editorial:where([data-pill-treatment]:not([data-pill-treatment="previous"])) .ico-type-button[aria-pressed="true"] {
    background: var(--black);
    border-color: var(--black);
    color: var(--cream);
}
.collection-option--editorial[data-pill-treatment="serif-soft"] .ico-type-button {
    background: #e7e7e3;
    border-color: transparent;
}
.collection-option--editorial[data-pill-treatment="serif-soft"] .ico-type-button__label { font-weight: 300; }
.collection-option--editorial[data-pill-treatment="serif-soft"] .ico-type-button[aria-pressed="true"] {
    background: #dad9d3;
    border-color: var(--black);
    color: var(--black);
}
.collection-option--editorial[data-pill-treatment="serif-soft"] .ico-type-button[aria-pressed="true"] .ico-type-button__count { color: var(--black); }
.collection-option--editorial[data-pill-treatment="sans-light"] .ico-type-button__label { font: 300 18px/1.4 var(--sans); }

@media (hover: hover) and (pointer: fine) {
    .ico-type-button:not(:disabled):not([aria-pressed="true"]):hover { background: var(--white); border-color: var(--stone); }
    .collection-option--editorial:where([data-pill-treatment]:not([data-pill-treatment="previous"])) .ico-type-button:not(:disabled):not([aria-pressed="true"]):hover {
        background: var(--white);
        border-color: var(--black);
    }
    .collection-option--editorial[data-pill-treatment="serif-soft"] .ico-type-button:not(:disabled):not([aria-pressed="true"]):hover { background: #deded8; }
}
@media (max-width: 640px) {
    .collection-option--editorial:where([data-pill-treatment]:not([data-pill-treatment="previous"])) .ico-type-button { padding-inline: 16px; }
    .collection-option--editorial:where([data-pill-treatment]:not([data-pill-treatment="previous"])) .ico-type-button__label { font-size: 26px; }
    .collection-option--editorial[data-pill-treatment="sans-light"] .ico-type-button__label { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .ico-type-button { transition: none; }
}
