.search-filters__toolbar-item.search-filters__toolbar-item-filter-sort {
    display: flex;
}

.search-filters__disclosure {
    display: flex;
}

.filter-sort-disclosure-has-popup {
    position: relative;
}

.search-filters__open {
    text-align: left;
    width: 100%;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.search-filters__open-wrapper {
    display: inline-block;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.search-filters__close.search-filters__close--no-js {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 4px;
    left: 4px;
    width: 4.4rem;
    height: 4.4rem;
    z-index: 101;
    opacity: 0;
    transition: opacity 0.1s ease;
    background: rgb(var(--fdt-color-background));
}

.search-filters__close .svg-wrapper {
    width: 26px;
    height: 26px;
}

.search-filters__open > * + * {
    margin-left: 1rem;
}

.search-filters__open:hover > .search-filters__filter-sort-label {
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}

.search-filters__filter-sort-label {
    transition: text-decoration 0.2s ease;
}

.filter-sort-disclosure-has-popup > summary:before {
    display: none;
}

.search-filters__toolbar-item-filter-sort > details[open] > summary:before {
    visibility: visible;
    opacity: 1;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.filter-sort-disclosure-has-popup[open] > summary:before {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: block;
    cursor: default;
    content: '';
    background: transparent;
}

.search-filters__toolbar-item-filter-sort .filter-sort-disclosure-has-popup[open] > summary:before {
    height: 100vh;
    z-index: 3;
}

.filter-sort-disclosure-has-popup[open] > summary + * {
    z-index: 100;
}

.search-filters__mobile-facets {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background-color: rgba(var(--fdt-color-secondary-background), 0.3);
    pointer-events: none;
}

.menu-opening .search-filters__inner {
    transform: translate(0);
}

.filter-sort-disclosure-has-popup:not(.menu-opening) .search-filters__inner {
    transform: translate(105vw);
}

.search-filters__inner {
    transform: translate(0);
    background-color: rgb(var(--fdt-color-background-filter));
    width: calc(100% - 5rem);
    margin-left: auto;
    height: 100%;
    overflow-y: auto;
    pointer-events: all;
    transition: transform 0.2s ease;
    max-width: 40.5rem;
    display: flex;
    flex-direction: column;
    border-color: rgba(var(--fdt-color-foreground), 0.1);
    border-style: solid;
    border-width: 0 0 0 0;
    filter: drop-shadow(
        var(--fdt-shadow-horizontal-offset) var(--fdt-shadow-vertical-offset) var(--fdt-shadow-blur-radius)
            rgba(var(--fdt-color-shadow), var(--fdt-shadow-opacity))
    );
}

.search-filters__mobile-facets-header {
    margin: 0;
    font-size: 16px;
}

.search-filters__mobile-facets-header-wrapper {
    padding: 20px 24px 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(var(--fdt-color-background));
    margin-bottom: 5px;
}

.search-filters__filter-count-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
}

.search-filters__filter-count-wrapper .svg-wrapper,
.search-filters__filter-count-wrapper .svg-wrapper > svg {
    width: 27px;
    height: 27px;
}

.search-filters__filter-active-tags-count {
    position: absolute;
    right: -7px;
    top: -7px;
    border: 1px solid rgb(var(--fdt-color-border));
    font-size: 11px;
    background: rgb(var(--fdt-color-foreground));
    color: rgb(var(--fdt-color-secondary-text));
    border-radius: 50%;
    padding: 0 1px;
    line-height: 16px;
    text-align: center;
    min-width: 18px;
}

.search-filters__mobile-facets-footer {
    padding: 2rem;
    bottom: 0;
    position: sticky;
    display: flex;
    z-index: 2;
    margin-top: auto;
    justify-content: center;
    border-top: 5px solid rgb(var(--fdt-color-background-filter));
    background: rgb(var(--fdt-color-background));
}

.search-filters__mobile-facets-vertical-option-list .search-filters__filter-option:last-of-type {
    border-bottom: 0;
}

.search-filters__mobile-facets-vertical-option-list .search-filters__filter-option-item-wrapper {
    padding-right: 10px;
}

details.menu-opening .search-filters__close--no-js {
    display: flex;
    opacity: 1;
}

.search-filters__mobile-facets-vertical-option-list .search-filters__filter-option-title {
    font-size: 16px;
}

.search-filters__mobile-facets-button-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    padding: 0 40px;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: rgb(var(--fdt-color-secondary-text));
    transition: box-shadow var(--fdt-duration-short) ease;
    -webkit-appearance: none;
    appearance: none;
    background-color: rgba(var(--fdt-color-secondary-background));
    min-height: 45px;
    border-radius: 5px;
    min-width: 200px;
    text-transform: uppercase;
}

@media screen and (min-width: 768px) {
    .search-filters__toolbar-item.search-filters__toolbar-item-filter-sort {
        display: none;
    }
}
