.catalog-filter {
    width: 250px;
    flex: none;
    margin-right: 20px;
    background: url(/local/img/banner-filter.jpg) no-repeat;
}

.catalog-filter[filter="false"] {
    background: none;
}

.catalog-filter[filter="true"] {
    width: 230px;
    background: white;
    border-radius: 4px;
    padding: 10px;
    height: fit-content;
    position: relative;
}

.catalog-filter-section {
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 900;
    position: relative;
}

.catalog-filter-button {
    margin-bottom: 20px;
}

.catalog-filter-button-clear,
.catalog-filter-button {
    background: var(--green-color);
    color: white;
    height: 30px;
    font-size: 16px;
}

.catalog-filter-button-clear {
    top: calc(100% + 20px);
    left: 0;
    width: 100%;
    background: var(--light-gray-color);
}

.catalog-filter-price {
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    display: none;
}

.catalog-filter-section[open] .catalog-filter-price {
    display: flex;
}

.catalog-filter-price input {
    background: var(--background-color);
    padding: 4px 0 4px 10px;
    border-radius: 2px;
    font: 14px/16px Rubik-Regular, monospace;
}

.catalog-filter-price input:not(:last-child) {
    margin-right: 10px;
}

.catalog-filter-price input::-webkit-outer-spin-button,
.catalog-filter-price input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.catalog-filter-price input {
    -moz-appearance: textfield;
}

.catalog-filter-section-name {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.catalog-filter[filter="false"] .catalog-filter-section,
.catalog-filter[filter="false"] .catalog-filter-button {
    display: none;
}

.catalog-filter[filter="false"] .catalog-filter-button-clear {
    position: unset;
}

.catalog-filter-section[open] .catalog-filter-section-name {
    margin-bottom: 20px;
}

.catalog-filter-section-name[code="mnn"]:before {
    content: "Действующее вещество";
}

.catalog-filter-section-name[code="manufacturer"]:before {
    content: 'Производитель';
}

.catalog-filter-section-name[code="price"]:before {
    content: 'Цена';
}

.catalog-filter-section-name[code="productInPharmacies"]:before {
    content: 'Наличие в аптеках';
}

.catalog-filter-section-name[code="brandLine"]:before {
    content: 'Линейка';
}

.catalog-filter-section-name[code="releaseForm"]:before {
    content: "Форма выпуска";
}

.catalog-filter-section-name[code="tradeTitle"]:before {
    content: "Торговое наименование";
}

.catalog-filter-section-name[code="tradeMark"]:before {
    content: "Торговая марка";
}

.catalog-filter-section-name[code="weight"]:before {
    content: "Вес";
}

.catalog-filter-section-name[code="volume"]:before {
    content: "Объем";
}

.catalog-filter-section-name[code="quantityOfDoses"]:before {
    content: "Количество доз";
}

.catalog-filter-section-name[code="amountInPackage"]:before {
    content: "Количество в упаковке";
}

.catalog-filter-section-name[code="taste"]:before {
    content: "Вкус";
}

.catalog-filter-section-name[code="primaryPackage"]:before {
    content: "Тип первичной упаковки";
}

.catalog-filter-section-name[code="skinAndHairType"]:before {
    content: "Тип кожи и волос";
}

.catalog-filter-section-name[code="size"]:before {
    content: "Размер";
}

.catalog-filter-section-name[code="forKids"]:before {
    content: "Для детей";
}

.catalog-filter-section-name[code="dosages"]:before {
    content: "Дозировка";
}

.catalog-filter-section-name[code="diopter"]:before {
    content: "Диоптрия";
}

.catalog-filter-section-name[code="diameter"]:before {
    content: "Диаметр";
}

.catalog-filter-section-name[code="radius"]:before {
    content: "Радиус кривизны";
}

.catalog-filter-section-name:after {
    content: "<";
    color: var(--light-gray-color);
    font-weight: 100;
    transition: transform .5s;
}

.catalog-filter-section-name[count]:after {
    content: attr(count);
    background: var(--green-color);
    color: white;
    border-radius: 2px;
    width: 20px;
    height: 16px;
    text-align: center;
    font-size: 12px;
    margin-right: -5px;
}

.catalog-filter-section[open] .catalog-filter-section-name:after {
    transform: rotate(-90deg);
}

.catalog-filter-section[open] .catalog-filter-section-name[count]:after {
    transform: none;
}

.catalog-filter-elements {
    max-height: 125px;
    overflow-x: hidden;
    padding: 0 10px;
    overflow-wrap: anywhere;
}

.catalog-filter-elements::-webkit-scrollbar {
    width: 4px;
}

.catalog-filter-elements::-webkit-scrollbar-thumb {
    background-color: var(--green-color);
    border-radius: 4px;
}

.catalog-filter-elements::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgb(0 0 0 / 30%);
    border-radius: 4px;
}

.catalog-filter-element {
    display: none;
    font-size: 14px;
    font-weight: 100;
    margin-bottom: 10px;
    cursor: pointer;
    align-items: center;
}

.catalog-filter-section[open] .catalog-filter-element {
    display: flex;
}

.catalog-filter-element:before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--background-color);
    margin-right: 10px;
    border-radius: 2px;
    flex: none;
}

.catalog-filter-element[select]:before {
    background: var(--green-color);
}

.apply-but {
    position: absolute;
    left: 250px;
    z-index: 2;
    top: 50%;
    box-sizing: border-box;
    height: 30px;
    width: 90px;
    border-radius: 0px 1px 1px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: var(--green-color);
    color: white;
    font-weight: 100;
}

.apply-but::before {
    content: '';
    position: absolute;
    top: 0px;
    border: 15px solid transparent;
    border-right: 16px solid var(--green-color);
    left: -31px;
}

.filter-fast-access {
    background-color: white;
    padding: 14px 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.filter-fast-access-title {
    font-size: 16px;
}

.filter-fast-access-choose {
    display: flex;
    flex-wrap: wrap;
}

.filter-fast-access .btn {
    width: fit-content;
    background-color: var(--green-color);
    padding: 5px 10px;
    color: white;
    border-radius: 2px;
    cursor: pointer;
    margin-top: 10px;
    margin-right: 10px;
}
