.promotions-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.promotions-sort {
    position: relative;
}

.promotions-sort__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: -0.02em;
    color: var(--bg-bg-dark);
    border: 2px solid var(--br-br-primary);
    border-radius: 4px;
    padding: 10px 11px 8px;
    flex: none;
    background: none;
    outline: none;
    cursor: pointer;
}

.promotions-sort__toggle-icon {
    --icon-color: #000000;

    width: 16px;
    height: 18px;
    flex: none;
}

.promotions-sort__list {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    width: 220px;
    border: 2px solid var(--br-br-primary);
    border-radius: 4px;
    box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.05);
    background: var(--bg-bg-primary);
    left: 0;
    top: 100%;
    margin-top: 6px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 5;
    transition: .2s ease all;
}

.toggle .promotions-sort__list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.promotions-sort__item {
    font-size: 14px;
    line-height: 120%;
    letter-spacing: -0.02em;
    color: var(--bg-bg-dark);
    padding: 11.5px 10px;
}

.promotions-sort__item.is-selected {
    background: var(--bg-bg-secondary);
}

.promotions-search {
    position: relative;
    width: 380px;
    max-width: 100%;
}

.promotions-search__button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
}

.promotions-search__button-icon {
    --icon-color: #999999;

    width: 100%;
    height: 100%;
}

.input.promotions-search__input {
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: -0.02em;
    padding-left: 38px;
    height: 40px;
}

.promotions-filters {
    margin-bottom: 63px;
}

.promotions-form__filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-dropdown {
    position: relative;
}

.filter-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: -0.02em;
    color: var(--bg-bg-dark);
    padding: 0 12.5px 0 15px;
    height: 42px;
    border: 2px solid var(--br-br-primary);
    border-radius: 4px;
    background: none;
    outline: none;
    cursor: pointer;
    white-space: nowrap;
}

.filter-dropdown.is-active .filter-dropdown__toggle {
    border-color: var(--bg-bg-accent);
}

.filter-dropdown.toggle:not(.is-active) .filter-dropdown__toggle {
    border-color: var(--icon-icon-primary);
}

.filter-dropdown__arrow {
    display: inline-block;
    width: 13px;
    height: 7px;
    flex: none;
    margin-left: auto;
    background-image: url("data:image/svg+xml,%3Csvg width='13' height='7' viewBox='0 0 13 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.8962 1.34988L6.59061 6.91963L6.5 7L6.40939 6.91963L0.103803 1.34988L0 1.25741L0.0976448 1.15889L1.14975 0.0916044L1.24036 -5.1403e-07L6.5 4.64593L11.7596 -5.42177e-08L11.8503 0.0916049L12.9024 1.15889L13 1.25741L12.8962 1.34988Z' fill='%23999999' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all .2s ease;
}

.filter-dropdown__clear {
    --size: 11px;

    display: none;
    width: var(--size);
    height: var(--size);
    flex: none;
    margin-left: auto;
    margin-right: 1px;
    background-image: url("data:image/svg+xml,%3Csvg width='11' height='11' viewBox='0 0 11 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.45218 0L10.8804 9.42807L9.42821 10.8806L0 1.45257L1.45218 0Z' fill='%23999999' /%3E%3Cpath d='M9.43425 0.0100651L0.00604165 9.43813L1.46969 10.9018L10.8979 1.47369L9.43425 0.0100651Z' fill='%23999999' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.filter-dropdown.is-active .filter-dropdown__arrow {
    display: none;
}

.filter-dropdown.is-active .filter-dropdown__clear {
    display: inline-block;
}

.filter-dropdown__menu {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    width: 260px;
    padding: 9px 15px 9px 5px;
    border: 2px solid var(--br-br-primary);
    border-radius: 4px;
    box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.05);
    background: var(--bg-bg-primary);
    z-index: 9;
}

.filter-dropdown.toggle .filter-dropdown__menu {
    display: block;
}

.filter-dropdown.toggle .filter-dropdown__arrow {
    transform: rotate(180deg);
}

.filter-options {
    max-height: 252px;
    overflow: auto;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 10px;
}

.filter-option__checkbox {
    display: none;
}

.filter-option__icon {
    border: 2px solid #b3b3b3;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    margin-right: 10px;
    flex: none;
    position: relative;
}

.filter-option__icon:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: url(../../img/fa-check-icon.svg) center no-repeat;
    opacity: 0;
}

.filter-option__checkbox:checked ~ .filter-option__icon {
    border-color: var(--bg-bg-accent);
}

.filter-option__checkbox:checked ~ .filter-option__icon:after {
    opacity: 1;
}

.filter-option__text {
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: -0.02em;
    color: var(--bg-bg-dark);
    white-space: nowrap;
    max-width: calc(100% - 30px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-dropdown__menu-footer {
    padding: 9.5px 10px 9.5px 8px;
}

.filter-options__select-all {
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: -0.02em;
    color: var(--bg-bg-accent);

    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
}

.filter-dropdown__menu-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    /*flex-wrap: wrap;*/
    gap: 8px;
    padding: 16px 8px 8px 16px;
}

.filter-dropdown__menu-title {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 20px;
    line-height: 140%;
    text-transform: uppercase;
    color: var(--bg-bg-dark);
}

.filter-dropdown__menu-close {
    --size: 36px;

    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--size);
    height: var(--size);
    flex: none;

    background: none;
    border: none;
    outline: none;
    padding: 0;
}

.filter-dropdown__menu-close-icon {
    --size: 20px;

    display: inline-block;
    width: var(--size);
    height: var(--size);
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 15.6007L15.6 17.0007L3.00001 4.40075L4.4 3.00075L17 15.6007Z' fill='black' /%3E%3Cpath d='M4.4 17L3 15.6L15.6 3L17 4.4L4.4 17Z' fill='black' /%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.selected-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-filters.has-filters {
    margin-top: 12px;
}

.selected-filters__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 6px 10px 8px;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: -0.02em;
    color: var(--bg-bg-dark);
    background: var(--bg-bg-secondary);
}

.selected-filters__item-remove {
    width: 8px;
    height: 8px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.06565 0L7.98432 6.91857L6.91867 7.98451L0 1.06594L1.06565 0Z' fill='%23999999' /%3E%3Cpath d='M6.92311 0.00738607L0.00443353 6.92596L1.0785 8L7.99717 1.08143L6.92311 0.00738607Z' fill='%23999999' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    border: none;
    outline: none;
    padding: 0;
}

.selected-filters__reset-btn {
    display: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: -0.02em;
    color: var(--bg-bg-accent);
    padding: 6px 10px 8px;
    white-space: nowrap;
    background: var(--bg-bg-secondary);
    border: none;
    outline: none;
    cursor: pointer;
}

.selected-filters.has-filters .selected-filters__reset-btn:not(:first-child):not(:nth-child(2)) {
    display: block;
}

.toggle-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: var(--bg-bg-dark);
    opacity: 0.3;
    z-index: 3000;
}

.toggle-overlay.is-open {
    display: block;
}

.filter-single {
    display: block;
}

.filter-single__checkbox {
    display: none;
}

.filter-single__button {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: -0.02em;
    color: var(--bg-bg-dark);
    padding: 0 15px;
    height: 42px;
    border: 2px solid var(--br-br-primary);
    border-radius: 4px;
    white-space: nowrap;
    cursor: pointer;
}

.filter-single__checkbox:checked + .filter-single__button {
    border-color: var(--bg-bg-accent);
}

@media (max-width: 767px) {
    .promotions-top {
        gap: 6px;
    }

    .promotions-search {
        width: auto;
        flex: 1 1 auto;
    }

    .promotions-filters {
        margin-bottom: 19px;
    }

    .promotions-form__filters {
        flex-wrap: nowrap;
        max-width: calc(100% + 32px);
        margin: 0 -16px;
        padding: 0 16px;
        overflow: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .promotions-form__filters::-webkit-scrollbar {
        display: none;
        width: 0;
    }

    .filter-dropdown__toggle {
        height: 38px;
        gap: 7.5px;
        padding: 0 12.5px 0 11px;
    }

    .filter-single__button {
        height: 38px;
        padding: 0 11px;
    }

    .filter-dropdown__arrow {
        width: 13px;
        height: 7px;
    }

    .filter-option__icon {
        margin-right: 8px;
    }

    .filter-option__text {
        max-width: calc(100% - 28px);
    }

    .filter-dropdown__menu {
        position: fixed;
        top: auto;
        bottom: var(--bottom-offset, env(safe-area-inset-bottom, 0px));
        left: 0;
        width: 100%;
        padding: 0 0 16px;
        border-radius: 12px 12px 0 0;
        background: #fff;
        border: none;
        z-index: 10002;
        will-change: bottom;
    }

    .filter-dropdown__menu::before {
        content: "";
        position: absolute;
        left: 50%;
        margin-right: -50%;
        transform: translateX(-50%);
        bottom: calc(100% + 8px);
        border-radius: 4px;
        width: 42px;
        height: 4px;
        background: #d1d1d6;
    }

    .filter-options {
        padding: 0 16px;
    }

    .filter-option {
        padding-left: 0;
        padding-right: 0;
    }

    .filter-dropdown__menu-footer {
        padding: 8px 16px;
    }

    .promotions-sort__toggle {
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .promotions-sort__toggle-icon {
        width: 16px;
        height: 18px;
    }
}