.gjo-collection-filter {
    margin: 0 0 38px;
    padding: 28px 24px 30px;
    border-bottom: 1px solid #242424;
    color: #1a1a1a;
    font: inherit;
}

.gjo-collection-filter.has-selection {
    padding-bottom: 0;
}

.gjo-collection-filter__mobile-check,
.gjo-collection-filter__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.gjo-collection-filter__controls {
    display: grid;
    grid-template-columns: 96px repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
}

.gjo-collection-filter--new .gjo-collection-filter__controls {
    grid-template-columns: 96px repeat(5, minmax(0, 1fr));
}

.gjo-collection-filter__heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 600;
}

.gjo-collection-filter__tab::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    flex: none;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    pointer-events: none;
}

.gjo-collection-filter__tab {
    width: 100%;
    height: 78px;
    min-height: 78px;
    border: 1px solid #242424;
    border-radius: 0;
    background: transparent;
    color: #1a1a1a;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
}

.gjo-collection-filter__tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    min-width: 0;
    padding: 0 14px;
    text-align: left;
    cursor: pointer;
}

.gjo-collection-filter__tab[aria-expanded="true"] {
    background: #dcd8d8;
}

.gjo-collection-filter__tab[aria-expanded="true"]::after {
    transform: rotate(225deg) translate(-2px, -1px);
}

.gjo-collection-filter__panel-apply {
    border: 1px solid #1a1a1a;
    border-radius: 0;
    background: #1a1a1a;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.gjo-collection-filter__mobile-toggle {
    display: none;
}

.gjo-collection-filter__panels {
    min-width: 0;
}

.gjo-collection-filter__panel[hidden] {
    display: none !important;
}

.gjo-collection-filter__panel {
    padding: 28px 0 0;
}

.gjo-collection-filter__choices {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px 18px;
    padding: 8px 0 18px;
}

.gjo-collection-filter__choices label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 32px;
    color: #666;
    font-size: clamp(16px, 1.1vw, 22px);
    line-height: 1.25;
    cursor: pointer;
}

.gjo-collection-filter__choices input {
    flex: none;
    width: clamp(25px, 1.5vw, 34px);
    height: clamp(25px, 1.5vw, 34px);
    margin: 0;
    accent-color: #1a1a1a;
    cursor: pointer;
}

.gjo-collection-filter__choices--sizes label {
    color: #1a1a1a;
}

.gjo-collection-filter__choices--sort {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gjo-collection-filter__choices--sort label {
    color: #1a1a1a;
}

.gjo-collection-filter__panel-apply {
    display: block;
    width: min(230px, 100%);
    min-height: 50px;
    margin: 16px 0 0 auto;
}

.gjo-collection-filter__selected {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin: 28px -24px 0;
    padding: 24px;
    border-top: 1px solid #242424;
}

.gjo-collection-filter__chip {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid #dedede;
    color: #777;
    font-size: 16px;
    line-height: 1.3;
    text-decoration: none;
}

.gjo-collection-filter__chip:hover,
.gjo-collection-filter__chip:focus-visible {
    border-color: #777;
    color: #1a1a1a;
}

.gjo-collection-filter__chip--static:hover {
    border-color: #dedede;
    color: #777;
}

.gjo-collection-filter__chip-remove {
    color: #777;
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 300;
    line-height: 1;
}

.gjo-collection-filter__price-layout {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr) 142px;
    align-items: center;
    gap: 20px;
    padding: 22px 0 0;
}

.gjo-collection-filter__price-field input {
    width: 100%;
    height: 64px;
    padding: 7px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 0;
    background: transparent;
    color: #646c70;
    font: inherit;
    font-size: 20px;
    text-align: center;
}

.gjo-collection-filter__price-field input::placeholder {
    color: #646c70;
    opacity: 1;
}

.gjo-collection-filter__price-slider {
    position: relative;
    min-width: 0;
    height: 66px;
}

.gjo-collection-filter__price-ticks {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: #62757d;
    font-size: clamp(12px, .9vw, 16px);
    white-space: nowrap;
}

.gjo-collection-filter__price-track,
.gjo-collection-filter__price-selected {
    position: absolute;
    top: 31px;
    height: 5px;
}

.gjo-collection-filter__price-track {
    left: 0;
    right: 0;
    background: #c9c9c9;
}

.gjo-collection-filter__price-selected {
    top: 0;
    left: 0;
    right: 0;
    background: #758187;
}

.gjo-collection-filter__price-slider input[type="range"] {
    position: absolute;
    top: 21px;
    left: 0;
    width: 100%;
    height: 25px;
    margin: 0;
    padding: 0;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.gjo-collection-filter__price-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 5px;
    background: transparent;
}

.gjo-collection-filter__price-slider input[type="range"]::-moz-range-track {
    height: 5px;
    background: transparent;
}

.gjo-collection-filter__price-slider input[type="range"]::-webkit-slider-thumb {
    width: 17px;
    height: 17px;
    margin-top: -6px;
    border: 1px solid #53666d;
    border-radius: 50%;
    appearance: none;
    background: #fff;
    pointer-events: auto;
    cursor: grab;
}

.gjo-collection-filter__price-slider input[type="range"]::-moz-range-thumb {
    width: 17px;
    height: 17px;
    border: 1px solid #53666d;
    border-radius: 50%;
    background: #fff;
    pointer-events: auto;
    cursor: grab;
}

.gjo-collection-filter__range-from {
    z-index: 2;
}

.gjo-collection-filter__range-to {
    z-index: 3;
}

.gjo-collection-filter__price-caption {
    margin: 4px 0 0;
    color: #666;
    font-size: 12px;
}

.gjo-collection-filter__empty {
    margin: 24px 16px;
    font-size: 16px;
}

@media (min-width: 1200px) {
    .gjo-collection-filter__choices--sort {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1399px) {
    .gjo-collection-filter__choices {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .gjo-collection-filter__controls,
    .gjo-collection-filter--new .gjo-collection-filter__controls {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .gjo-collection-filter__tab {
        height: 62px;
        min-height: 62px;
    }
}

@media (max-width: 767px) {
    .gjo-collection-filter {
        margin: 0 0 24px;
        padding: 13px 19px 14px;
    }

    .gjo-collection-filter.has-selection {
        padding-bottom: 0;
    }

    .gjo-collection-filter__controls,
    .gjo-collection-filter--new .gjo-collection-filter__controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .gjo-collection-filter__heading {
        display: none;
    }

    .gjo-collection-filter__tab--sort {
        grid-column: 1;
        align-self: center;
        width: 150px;
        max-width: 100%;
        height: 30px;
        min-height: 30px;
        padding: 0 22px 0 8px;
        font-size: 12px;
    }

    .gjo-collection-filter__tab--sort::after {
        width: 6px;
        height: 6px;
    }

    .gjo-collection-filter__mobile-toggle {
        display: flex;
        grid-column: 2;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        min-height: 30px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

    .gjo-collection-filter__mobile-check:focus-visible + .gjo-collection-filter__controls .gjo-collection-filter__mobile-toggle {
        outline: 2px solid #1a1a1a;
        outline-offset: 3px;
    }

    .gjo-collection-filter__tab:not(.gjo-collection-filter__tab--sort) {
        display: none;
    }

    .gjo-collection-filter__mobile-check:checked + .gjo-collection-filter__controls .gjo-collection-filter__tab:not(.gjo-collection-filter__tab--sort) {
        display: flex;
    }

    .gjo-collection-filter__tab:not(.gjo-collection-filter__tab--sort) {
        height: 43px;
        min-height: 43px;
        padding: 0 11px;
        font-size: 14px;
    }

    .gjo-collection-filter__panel {
        padding-top: 18px;
    }

    .gjo-collection-filter__choices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gjo-collection-filter__choices label {
        font-size: 13px;
    }

    .gjo-collection-filter__choices input {
        width: 21px;
        height: 21px;
    }

    .gjo-collection-filter__price-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding-top: 0;
    }

    .gjo-collection-filter__price-field input {
        height: 43px;
        font-size: 15px;
    }

    .gjo-collection-filter__price-field:last-child {
        grid-column: 2;
        grid-row: 1;
    }

    .gjo-collection-filter__price-slider {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .gjo-collection-filter__price-ticks {
        font-size: 9px;
    }

    .gjo-collection-filter__panel-apply {
        width: 100%;
        min-height: 43px;
    }

    .gjo-collection-filter__selected {
        margin: 18px -19px 0;
        padding: 18px 19px;
        gap: 10px;
    }

    .gjo-collection-filter__chip {
        min-height: 40px;
        padding: 7px 9px;
        font-size: 12px;
    }
}
