.wcaf-group{margin-bottom:15px;position:relative}
.wcaf-shop-gate-hint{
    margin:8px 0 0;
    padding:0;
    font-size:13px;
    line-height:1.4;
    color:#555;
}
.wcaf-group-legend{
    display:block;
    width:100%;
    float:none;
    padding:0;
    margin:0 0 4px;
}
.wcaf-group-title{
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.02em;
}
.wcaf-group-clear{
    display:inline-block;
    margin:0 0 8px;
    padding:0;
    border:0;
    background:none;
    color:#2162a1;
    font-size:13px;
    font-weight:500;
    line-height:1.3;
    cursor:pointer;
    text-align:left;
}
.wcaf-group-clear[hidden]{
    display:none !important;
}
.wcaf-group-clear:hover{
    color:#0c3d6e;
    text-decoration:underline;
}
.wcaf-chips{display:flex;gap:8px;flex-wrap:wrap}
.wcaf-chip{
    width:26px;
    height:26px;
    border-radius:50%;
    padding:0;
    border:2px solid #ccc;
    background:#fff;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.wcaf-chip:hover{border-color:#666}
.wcaf-chip.is-active{border-color:#000}
.wcaf-chip-dot{
    width:18px;
    height:18px;
    border-radius:50%;
    border:1px solid rgba(0,0,0,.2);
}

/* SIZE: 4 items per row */
.wcaf-group.pa_size .wcaf-terms,
.wcaf-group.pa_bottoms_size_value .wcaf-terms,
.wcaf-group.pa_jeans_length .wcaf-terms,
.wcaf-group.pa_number_pockets .wcaf-terms,
.wcaf-group.pa_size_map .wcaf-terms {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0;
    margin: 0;
}
.wcaf-group.pa_size .wcaf-terms li,
.wcaf-group.pa_bottoms_size_value .wcaf-terms li,
.wcaf-group.pa_jeans_length .wcaf-terms li,
.wcaf-group.pa_number_pockets .wcaf-terms li,
.wcaf-group.pa_size_map .wcaf-terms li {
    list-style: none;
}
.wcaf-group.pa_size label,
.wcaf-group.pa_bottoms_size_value label,
.wcaf-group.pa_jeans_length label,
.wcaf-group.pa_number_pockets label,
.wcaf-group.pa_size_map label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
}
.wcaf-group.pa_size input[type="checkbox"],
.wcaf-group.pa_bottoms_size_value input[type="checkbox"],
.wcaf-group.pa_jeans_length input[type="checkbox"],
.wcaf-group.pa_number_pockets input[type="checkbox"],
.wcaf-group.pa_size_map input[type="checkbox"] {
    margin-right: 6px;
}

/* SIZE: 3 items per row */
.wcaf-group.pa_jeans_width .wcaf-terms,
.wcaf-group.pa_rise_height .wcaf-terms {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0;
    margin: 0;
}
.wcaf-group.pa_jeans_width .wcaf-terms li,
.wcaf-group.pa_rise_height .wcaf-terms li {
    list-style: none;
}
.wcaf-group.pa_jeans_width label,
.wcaf-group.pa_rise_height label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
}
.wcaf-group.pa_jeans_width input[type="checkbox"],
.wcaf-group.pa_rise_height input[type="checkbox"] {
    margin-right: 6px;
}

/* Applied Filters Bar */
#wcaf-applied-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

/* Filter chip */
.wcaf-chip-applied {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    background: #f2f2f2;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #ccc;
    cursor: default;
}

/* Remove icon */
.wcaf-chip-applied .remove-filter {
    margin-left: 8px;
    font-weight: bold;
    cursor: pointer;
    color: #555;
}

/* Clear all */
#wcaf-applied-filters .clear-all {
    background: #444;
    color: #fff;
    padding: 4px 15px;
    border-radius: 20px;
    cursor: pointer;
}

/* Price Range — Amazon-style dual slider */
.wcaf-price-range .wcaf-price-inputs {
    display: block;
    padding: 4px 2px 2px;
}
.wcaf-price-readout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 14px;
}
.wcaf-price-readout-text {
    flex: 1;
    min-width: 0;
}
.wcaf-price-slider {
    position: relative;
    height: 28px;
    margin: 0 6px 8px;
    user-select: none;
}
.wcaf-price-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    background: #ddd;
    border-radius: 2px;
    pointer-events: none;
}
.wcaf-price-track-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f0a500;
    border-radius: 2px;
}
.wcaf-price-slider input[type="range"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.wcaf-price-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border: none;
}
.wcaf-price-slider input[type="range"]::-moz-range-track {
    height: 4px;
    background: transparent;
    border: none;
}
.wcaf-price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    margin-top: -7px;
    border-radius: 50%;
    border: 1px solid #888;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    cursor: pointer;
}
.wcaf-price-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #888;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    cursor: pointer;
}
.wcaf-price-slider input[type="range"]:focus-visible::-webkit-slider-thumb {
    outline: 2px solid #111;
    outline-offset: 2px;
}
.wcaf-price-slider input[type="range"]:focus-visible::-moz-range-thumb {
    outline: 2px solid #111;
    outline-offset: 2px;
}
.wcaf-price-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}
.wcaf-price-bound-label {
    font-size: 12px;
    color: #666;
}
.wcaf-price-bound-label--max {
    margin-left: auto;
    text-align: right;
}
.wcaf-price-apply {
    flex-shrink: 0;
    border: 1px solid #111;
    background: #111;
    color: #fff !important;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: none;
}
.wcaf-price-apply:hover {
    background: #333;
    border-color: #333;
    color: #fff !important;
}

