/* Opacity alone leaves closed lists contributing to document scroll width. */
.c-shop-result-filter-1 .nice-select:not(.open) .list {
    display: none;
}

@media (max-width: 991px) {
    .c-shop-result-filter-1 {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 0;
    }

    .c-shop-result-filter-1 .c-filter,
    .c-shop-result-filter-1 .c-filter + .c-filter {
        float: none;
        flex: 1 1 130px;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    .c-shop-result-filter-1 .nice-select {
        width: 100%;
        min-width: 0;
    }

    .c-shop-result-filter-1 .nice-select .current {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .c-shop-result-filter-1 .nice-select .list {
        left: 0;
        right: 0;
        width: 100%;
        min-width: 0;
        max-height: 50vh;
        overflow-y: auto;
    }

    .c-shop-result-filter-1 .nice-select .option {
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.4;
        padding: 10px 12px;
    }
}
