.active-filters-row {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.active-filters-row--desktop {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.active-filters-row--desktop.is-visible {
    display: flex;
}

.active-filters-row--mobile {
    display: none;
    flex-wrap: wrap;
    padding: 8px 0;
    margin-bottom: 0;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid #0e216d;
    border-radius: 12px;
    background:
        linear-gradient(160deg, rgba(15, 25, 55, 0.98) 0%, rgba(25, 40, 80, 0.95) 52%, rgba(18, 32, 65, 0.98) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.55),
        0 0 10px rgba(92, 141, 255, 0.3),
        0 10px 22px rgba(6, 13, 35, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(123, 222, 255, 0.1);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow:
        0 0 5px rgba(150, 220, 255, 0.45),
        0 0 10px rgba(92, 141, 255, 0.22);
    backdrop-filter: blur(12px);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, text-shadow 0.2s ease;
}

.active-filter-chip:hover {
    border-color: rgba(103, 236, 255, 0.55);
    background:
        linear-gradient(160deg, rgba(20, 35, 65, 0.98) 0%, rgba(28, 48, 90, 0.96) 52%, rgba(22, 38, 72, 0.98) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8),
        0 0 14px rgba(66, 214, 255, 0.32),
        0 11px 20px rgba(7, 15, 38, 0.18),
        0 0 22px rgba(66, 214, 255, 0.12);
    text-shadow:
        0 0 6px rgba(98, 226, 255, 0.65),
        0 0 12px rgba(98, 226, 255, 0.4),
        0 0 18px rgba(92, 141, 255, 0.25);
}

.active-filter-chip__label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.active-filter-chip__remove {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #c2f0ff;
    filter: drop-shadow(0 0 3px rgba(98, 226, 255, 0.45));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 10px;
    transition: color 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.active-filter-chip__remove:hover {
    color: rgba(103, 236, 255, 0.95);
    filter: drop-shadow(0 0 5px rgba(98, 226, 255, 0.65));
    background: rgba(255, 255, 255, 0.18);
}

.active-filters-reset-all {
    border: 1px solid rgba(148, 156, 168, 0.55);
    border-radius: 12px;
    background:
        linear-gradient(165deg,
            rgba(38, 40, 44, 0.98) 0%,
            rgba(58, 62, 70, 0.96) 22%,
            rgba(44, 48, 54, 0.97) 45%,
            rgba(52, 56, 62, 0.96) 68%,
            rgba(34, 36, 42, 0.98) 100%);
    box-shadow:
        0 0 0 1px rgba(220, 228, 236, 0.12),
        0 0 12px rgba(160, 170, 186, 0.14),
        0 10px 22px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    color: #ffffff;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, text-shadow 0.2s ease;
}

.active-filters-reset-all:hover {
    border-color: rgba(190, 198, 210, 0.65);
    background:
        linear-gradient(165deg,
            rgba(48, 52, 58, 0.98) 0%,
            rgba(72, 76, 84, 0.97) 24%,
            rgba(56, 60, 68, 0.97) 48%,
            rgba(64, 68, 76, 0.96) 72%,
            rgba(42, 46, 52, 0.98) 100%);
    box-shadow:
        0 0 0 1px rgba(240, 244, 248, 0.18),
        0 0 16px rgba(180, 190, 206, 0.22),
        0 12px 26px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    color: #ffffff;
    text-shadow:
        0 0 14px rgba(255, 255, 255, 0.28),
        0 1px 2px rgba(0, 0, 0, 0.35);
}

@media (max-width: 992px) {
    .active-filters-row--desktop {
        display: none !important;
    }

    .active-filters-row--mobile {
        display: none;
        flex-wrap: wrap;
        padding: 4px 0 8px;
        margin: 0;
    }

    .active-filters-row--mobile.is-visible {
        display: flex;
    }

    /* Полноценные тени для мобильных фильтров — теперь без обрезки */
    .active-filters-row--mobile .active-filter-chip {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.55),
            0 0 10px rgba(92, 141, 255, 0.3),
            0 10px 22px rgba(6, 13, 35, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            inset 0 0 0 1px rgba(123, 222, 255, 0.1);
    }

    .active-filters-row--mobile .active-filter-chip:hover {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.8),
            0 0 14px rgba(66, 214, 255, 0.32),
            0 11px 20px rgba(7, 15, 38, 0.18),
            0 0 22px rgba(66, 214, 255, 0.12);
    }

    .active-filters-row--mobile .active-filters-reset-all {
        box-shadow:
            0 0 0 1px rgba(220, 228, 236, 0.12),
            0 0 12px rgba(160, 170, 186, 0.14),
            0 10px 22px rgba(0, 0, 0, 0.32),
            inset 0 1px 0 rgba(255, 255, 255, 0.14),
            inset 0 -1px 0 rgba(0, 0, 0, 0.22),
            inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    }

    .active-filters-row--mobile .active-filters-reset-all:hover {
        box-shadow:
            0 0 0 1px rgba(240, 244, 248, 0.18),
            0 0 16px rgba(180, 190, 206, 0.22),
            0 12px 26px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 -1px 0 rgba(0, 0, 0, 0.18),
            inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    }
}
