:root {
    --filters-align: stretch;
    --filters-direction: column;
    --filter-maw: 100%;
    --filter-search-flex: 40px;
}

@media (min-width: 992px) {
    :root {
        --filters-direction: row;
        --filters-align: center;
        --filter-maw: 250px;
        --filter-search-flex: min(420px, 30vw);
    }
}

.filters-inner {
    display: flex;
    flex-direction: var(--filters-direction);
    gap: var(--space-s-m);
    justify-content: space-between;
}

.filters-container {
    align-items: var(--filters-align);
    display: flex;
    flex-direction: var(--filters-direction);
    gap: var(--space-s-m);
    flex: 1 1 auto;
}

.filters-label {
    font-weight: bold;
}

.filter-group {
    position: relative;
    flex: var(--filter-group-f, 1 1 auto);
    display: flex;
    max-width: var(--filter-maw);
}

#filters .filter-label {
    background-color: #fff;
    border-radius: var(--filter-label-bdrs, 6px);
    color: var(--c-blue-4);
    height: auto;
    font-size: var(--filter-label-fz, var(--step--1));
    padding: var(--space-xs) var(--space-xs);
    border: 1px solid var(--c-blue-bc);
    font-weight: 320;
    justify-content: space-between;
    flex: 1;
}

.filter-label {
    align-items: center;    
    display: flex;
    gap: var(--space-s);    
}

[data-js="filter-label"][aria-expanded] {
    --filter-label-bdrs: 6px 6px 0 0;
}

.filter-label:after {
    content: '';
    display: var(--filter-label-icon-d, block);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cdefs%3E%3Cstyle%3E.chevron-down%7Bfill:none;stroke:%23068444;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;%7D%3C/style%3E%3C/defs%3E%3Cpath class='chevron-down' d='M7.25.75,4,4.25.75.75'/%3E%3C/svg%3E") center center no-repeat;
    width: 14px;
    height: 14px;    
    transition: transform .25s ease;
}

[data-js="filter-label"][aria-expanded]:after {
    transform: rotate(180deg);
}

.filter-dropdown[aria-hidden] {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.filter-dropdown {
    background-color: #fff;
    border: 1px solid var(--c-blue-bc);
    border-radius: 0 0 8px 8px;
    display: flex;
    flex-direction: column;
    left: 0;
    overflow: scroll;
    margin-top: -1px;
    padding: 1em 1em 0;
    position: absolute;
    top: 100%;
    min-width: 100%;
    z-index: 1;
}

.filter-dropdown-inner {
    max-height: min(35vh, 500px);
    overflow: scroll;
}

.filter {
    white-space: nowrap;
}

.filter label {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: var(--step--1);
    gap: var(--space-3xs);
    padding: var(--space-2xs);
    justify-content: space-between;
}

.filter input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 19px;
    width: 19px;
    position: relative;
}

[data-js="filter"]:hover {
    background-color: var(--c-light-0);
}

[data-js="filter"][aria-checked] {
    background-color: var(--c-light-1);
}
.filter input:checked~.checkmark:after {
    border-color: var(--c-green-dark);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: '';
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.filter input:checked~.checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.filter .checkmark:after {
    left: 4px;
    top: calc(50% - 5px);
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

#filters .filter-clear {
    background: transparent;
    border: none;
    border-top: 1px solid var(--c-blue-bc);
    box-shadow: 0 -1px 10px rgba(0,0,0,.05);
    border-radius: 0;
    display: flex;
    gap: 8px;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: var(--step--2);
    font-weight: 520;
    color: var(--c-green-dark);
    text-align: right;
    padding: var(--space-s) 1em;
    height: auto;
    margin: 0 -1em;
    justify-content: end;
    align-items: center;
}

#filters .filter-clear:after {
    background-image: url("data:image/svg+xml,%3Csvg width='11' height='13' viewBox='0 0 11 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.807617 1.19238L10 10.3848' stroke='%23068444' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M0.807617 10.1924L10 0.999995' stroke='%23068444' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E%0A");
    content: '';
    display: block;
    width: 11px;
    height: 12px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

[data-js-filter-content][aria-hidden],
[data-js-filter-content][hidden] {
    display: none;
}

.filter-search-container {
    background-color: var(--c-light-1);
    border-radius: 4px;
    flex: 0 1 var(--filter-search-flex);
}

.filter-search-inner {
    align-items: stretch;
    display: flex;
    height: 100%;
}

#filters .filter-search-input {
    background: transparent;
    border: none;
}

#filters .filter-search-button {
    align-items: center;
    aspect-ratio: 1/1;
    background-color: var(--c-blue-2);
    border: none;
    border-radius: 0 4px 4px 0;
    display: flex;
    height: 100%;
    justify-content: center;
    padding: .75em;
}

.filter-search-icon {
    stroke: var(--c-bright-green-1);
}