/* Equal, always-open size options. Scope excludes brands and other attributes. */
.sm-catalog .wc-block-product-filter-chips.sm-size-grid {
    max-height: none;
    overflow: visible;
}
.sm-catalog .sm-size-grid .wc-block-product-filter-chips__fieldset {
    min-width: 0;
}
.sm-catalog .sm-size-grid .wc-block-product-filter-chips__items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.sm-catalog .sm-size-grid button.wc-block-product-filter-chips__item {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    height: 100%;
    margin: 0;
    padding: 10px 4px;
    border: 1px solid #c8cacc;
    border-radius: 6px;
    background: #fff;
    color: #17191b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    transition: border-color .15s, background-color .15s, color .15s;
}
.sm-catalog .sm-size-grid .wc-block-product-filter-chips__label {
    display: block;
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
.sm-catalog .sm-size-grid button.wc-block-product-filter-chips__item:hover {
    border-color: #17191b;
}
.sm-catalog .sm-size-grid button.wc-block-product-filter-chips__item[aria-checked="true"] {
    background: #17191b;
    border-color: #17191b;
    color: #fff;
}
.sm-catalog .sm-size-grid button.wc-block-product-filter-chips__item:focus-visible {
    outline: 2px solid #17191b;
    outline-offset: 3px;
}
.sm-catalog .sm-size-grid button.wc-block-product-filter-chips__item[hidden] {
    display: none;
}
@media (max-width: 780px) {
    .sm-catalog .sm-size-grid button.wc-block-product-filter-chips__item {
        min-height: 48px;
        font-size: 14px;
    }
}

/* Clearly distinguish the applied filters from the product list, on all screens. */
.sm-catalog .sm-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 16px;
    margin: 0 0 24px;
    border: 1px solid #d5d8db;
    border-radius: 10px;
    background: #f5f6f7;
}
.sm-catalog .sm-active-filters[hidden] { display: none; }
.sm-catalog .sm-active-filters::before {
    content: attr(aria-label);
    flex: 0 0 100%;
    color: #17191b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}
.sm-catalog .sm-active-filters a,
.sm-catalog .wc-block-product-filter-removable-chips__item {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid #17191b;
    border-radius: 7px;
    background: #17191b;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.sm-catalog .sm-active-filters a:hover {
    background: #34383c;
    border-color: #34383c;
    color: #fff;
}
.sm-catalog .sm-active-filters a:focus-visible,
.sm-catalog .wc-block-product-filter-removable-chips__remove:focus-visible {
    outline: 3px solid #99703b;
    outline-offset: 3px;
}
.sm-catalog .sm-active-filters a.sm-clear-filters {
    background: #fff;
    border-color: #6d747a;
    color: #17191b;
    text-decoration: none;
}
.sm-catalog .sm-active-filters a.sm-clear-filters:hover {
    background: #e5e8eb;
    border-color: #17191b;
}
.sm-catalog .wc-block-product-filter-removable-chips__items {
    gap: 10px;
}
.sm-catalog .wc-block-product-filter-removable-chips__item {
    padding: 0 0 0 12px;
}
.sm-catalog .wc-block-product-filter-removable-chips__label {
    color: inherit;
    font-weight: inherit;
}
.sm-catalog .wc-block-product-filter-removable-chips__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 0 6px 6px 0;
}
.sm-catalog .wc-block-product-filter-removable-chips__remove:hover {
    background: #34383c;
    color: #fff;
}
.sm-catalog .wc-block-product-filter-removable-chips__remove-icon {
    fill: currentColor;
    width: 28px;
    height: 28px;
}
@media (max-width: 600px) {
    .sm-catalog .sm-active-filters { padding: 12px; gap: 8px; }
}
