.modal-header>span>small {
    opacity: .6;
}

#js-active-search-filters>ul {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

li.custom-fact-color>label,
li.custom-fact-image>label,
li.custom-fact-color>a>label,
li.custom-fact-image>a>label {
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}

.serch_filters.top li.custom-fact-color>label,
.serch_filters.top li.custom-fact-image>label,
.serch_filters.top li.custom-fact-color>a>label,
.serch_filters.top li.custom-fact-image>a>label {
    width: auto;
    min-width: 4rem;
    height: auto;
    min-height: 4rem;
}

.serch_filters.top li.custom-fact-color>label img,
.serch_filters.top li.custom-fact-image>label img,
.serch_filters.top li.custom-fact-color>a>label img,
.serch_filters.top li.custom-fact-image>a>label img {
    margin-inline: 1rem;
}

@media (max-width: 992px) {
    .serch_filters.top li.custom-fact-color>label img,
    .serch_filters.top li.custom-fact-image>label img,
    .serch_filters.top li.custom-fact-color>a>label img,
    .serch_filters.top li.custom-fact-image>a>label img {
        margin-inline: .75rem;
    }
}

.serch_filters.top ul.custom-group-image,
.serch_filters.top ul.custom-group-color {
    grid-gap: .5rem;
    justify-content: space-between;
}

.serch_filters.top ul.custom-group-image:after {
    content: "";
    flex: auto;
}

.serch_filters.top .futniture-types ul {
    display: grid !important;
    grid-column-gap: 0.5rem !important;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    grid-row-gap: 0.5rem !important;
    justify-content: center !important;
}

.serch_filters.top .delivery-time-block ul {
    grid-gap: 1rem !important;
}

.serch_filters.top .delivery-time-block li.custom-fact-image>label {
    width: unset;
    height: unset;
}

li.custom-fact-color>input:checked~label,
li.custom-fact-image>input:checked~label {
    box-shadow: 0px 0px 0px 2px var(--gray-yiq, #999);
}

/*li.custom-fact-image>input:checked~label {
    border-radius: unset !important;
}*/

li.custom-fact-checkbox>.custom-links>input:checked~label,
li.custom-fact-checkbox>.custom-links:hover>label {
    font-weight: bold;
}

li.custom-fact>.custom-links>input~label:before {
    position: absolute;
    top: .24rem;
    left: -1.25rem;
    top: 0;
    bottom: 0;
    align-self: center;
    display: block;
    width: .75rem;
    height: .75rem;
    content: "";
    background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'><path fill='currentColor' d='M64 448c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L178.8 256L41.38 118.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l160 160c12.5 12.5 12.5 32.75 0 45.25l-160 160C80.38 444.9 72.19 448 64 448z'/></svg>");
    border: none;
    box-shadow: none !important;
}

li.custom-fact-color>input:disabled~label,
li.custom-fact-image>input:disabled~label,
li.custom-fact>input:disabled~label {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

li.custom-fact-color.blank,
li.custom-fact-image.blank {
    display: flex;
}

li.custom-fact-color.blank>label,
li.custom-fact-image.blank>label {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cline x1='0' y1='0' x2='100' y2='100' stroke='%23aaa' stroke-width='1'/%3E%3Cline x1='100' y1='0' x2='0' y2='100' stroke='%23aaa' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

li.custom-fact[data-fact-magnitude="0"]:not(.blank):not(.active),
section.facet:has(ul.filter-list):not(:has(li.custom-fact)):not(:has(.custom-clear>button:not(.d-none))),
section.facet:has(li.custom-fact):not(:has(li.custom-fact:not([data-fact-magnitude="0"]))):not(:has(.custom-clear>button:not(.d-none))),
section.facet:has(div.custom-range.noui-slider):not(:has(div.custom-range.noui-slider:not([data-min="0"][data-max="0"]))):not(:has(button.btn-clear:not(.d-none))),
section.facet:has(div.custom-range.noui-slider):not(:has(div.custom-range.noui-slider:not(.d-none))):not(:has(.custom-clear>button:not(.d-none))) {
    display: none !important;
}

section.group:not(:has(div.custom-range.noui-slider:not([data-min][data-max]))):not(:has(div.custom-range.noui-slider:not(.d-none))):not(:has(section.facet li.custom-fact):has(.custom-clear>button:not(.d-none))):not(:has(section.facet li.custom-fact):has(section.facet li.custom-fact:not([data-fact-magnitude="0"]))):not(:has(.custom-clear>button:not(.d-none))):has(ul.filter-list) {
    display: none !important;
}

@media only screen and (min-width: 992px) {
    #search_filters_modal.search_filters__wrapper:not(.show) {
        display: block !important;
    }
}

li.custom-fact>input:disabled~label {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.custom-range-span {
    margin-top: 5px;
    font-size: .75rem;
    text-align: center;
}

li.custom-fact>span>input~label {
    position: relative;
    margin-left: 1.5rem;
}

li.custom-fact>span>input, li.custom-fact>div>input {
    display: none;
}

/* Mody */

.search_filters .comments-note__stars--facts, .active_filters .comments-note__stars--facts {
    font-style: normal;
    position: relative;
    display: inline;
    letter-spacing: normal;
    font-size: 1.1rem;
    vertical-align: text-top;
    line-height: 1;
}

.active-filter-title {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 74px;
    align-items: center;
}

.active-filter-reset {
    font-size: .75rem;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    outline: none;
    border: none;
    white-space: nowrap;
}

.active-filter-reset::after {
    content: "×";
    margin-left: .25rem;
    font-size: 1.5rem;
}

button.btn-clear {
    font-size: x-small;
    padding-inline: 0;
    font-weight: 300;
    padding: 0;
    text-transform: none;
}

@media (max-width: 991.98px) {
    .search_filters__wrapper.modal .search_filters__dialog .modal-footer {
        position: sticky;
        bottom: 0;
        background: #fff;
        z-index: 1;
    }
}

.active_filters .active_filters__item {
    width: 100%;
}

.facet .magnitude {
    opacity: .6;
    font-size: .8rem;
}

.btn-shortcut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 1rem;
}