/* Мобильная модалка фильтров каталога (только ≤989px, открывается из нижней навигации). */

.filter-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    flex-direction: column;
    background: var(--Surface-Muted, #F5F5F5);
}

.filter-modal.active {
    display: flex;
}

.filter-modal-scroll {
    flex: 1 0 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px 20px;
}

.filter-modal.loading .filter-modal-scroll {
    opacity: 0.6;
    pointer-events: none;
}

.filter-modal .modal-header {
    position: relative;
    padding-top: 36px;
    display: flex;
    justify-content: center;
}

.filter-modal .modal-title {
    color: #000;
    text-align: center;
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px; /* 90.909% */
}

.filter-modal .modal-close {
    position: absolute;
    top: 12px;
    right: -8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.filter-modal .modal-close img {
    width: 28px;
    height: 28px;
}

.filter-modal .modal-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    row-gap: 6px;
    margin-top: 4px;
}

.filter-modal .modal-tags .filter-btn {
    flex: 0 0 auto;
    align-self: auto;
    padding: 12px;
}

.filter-modal .filter-btn[data-option-id] {
    cursor: pointer;
}

.filter-modal .modal-footer {
    background: var(--Surface-White, #FFF);
    box-shadow: 0 -1px 0 0 var(--Gray-175, #D9D9D9), 0 -2px 0 0 var(--Base-White, #FFF);
    padding: 17px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.filter-modal .modal-footer .btn {
    width: 100%;
    border-radius: 6px;
}

.filter-modal .modal-footer .btn--secondary {
    padding: 16px 40px;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px; /* 90.909% */
}

.filter-modal .modal-footer .btn--secondary:disabled {
    opacity: 0.6;
}

.filter-modal .modal-footer .btn--outline {
    padding: 16px 20px;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px; /* 100% */
}

.filter-modal .modal-footer .btn--outline:disabled {
    opacity: 0.5;
}

@media (min-width: 990px) {
    .filter-modal {
        display: none !important;
    }
}
