/* Начальное состояние до инициализации JS */
#eFiltr .js-filter-block:not([data-zto-ready])
.js-filter-block-content .form-check:nth-child(n+8):not(:has(input:checked)) {
    display: none !important;
}

/* Заголовок группы */
#eFiltr .zto-filter__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
}

/* Стрелка раскрытия */
#eFiltr .zto-filter__heading::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: auto;
    flex-shrink: 0;
}

#eFiltr .zto-filter__heading[aria-expanded="true"]::after {
    transform: rotate(225deg);
}

/* Количество выбранных значений */
#eFiltr .zto-filter__count:not(:empty) {
    font-size: 12px;
    color: var(--02);
}

/* Поиск */
/* Поиск по значениям фильтра */
#eFiltr .zto-filter__search {
    display: none;
    margin-bottom: 12px;
    min-height: 34px;
}

/* Показываем поиск при наличии более 10 значений */
#eFiltr .js-filter-block-content:has(.form-check:nth-child(11))
> .zto-filter__search {
    display: block;
}

/* Раскрытие списка */
#eFiltr .zto-filter__more {
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--02);
    font-size: 14px;
    text-align: left;
}

#eFiltr .zto-filter__more:hover {
    color: var(--03);
}

/* Скрытые элементы */
#eFiltr [data-zto-ready] [hidden] {
    display: none !important;
}