

/* Start:/local/templates/new_arabella/components/bitrix/catalog.smart.filter/catalog_new/style.css?178595307520994*/
/* Price filter specific styles - Final Version */
/* Content wrapper inside dropdown */
.catalog__items--filters .custom-multi-select[data-role="custom-slider"] .custom-multi-select__dropdown-content {
    padding: 20px;
}

/* Inputs container */
.catalog__items--filters .custom-multi-select[data-role="custom-slider"] .b-ccf-item-price-inputs {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
}

.catalog__items--filters .custom-multi-select[data-role="custom-slider"] .b-range-input-wrapper {
     width: 50%;
     position: relative;
}

.catalog__items--filters .custom-multi-select[data-role="custom-slider"] .b-range-input-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #A0A0A0;
    font-size: 14px;
    pointer-events: none;
}

.catalog__items--filters .custom-multi-select[data-role="custom-slider"] .b-range-input {
    width: 100%;
    padding: 0 10px 0 40px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    height: 40px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Slider styles */
.catalog__items--filters .custom-multi-select[data-role="custom-slider"] .b-ccf-price-slider-wrapper {
    position: relative !important; /* CRITICAL FIX: Overrides absolute positioning from global styles */
    padding: 0 8px; /* Padding to prevent handles from touching the edges */
    margin-bottom: 25px; /* Space between slider and button */
}

.catalog__items--filters .custom-multi-select[data-role="custom-slider"] .noUi-target {
    background: #E5E5E5;
    border-radius: 4px;
    border: none;
    box-shadow: none;
    height: 2px;
}

.catalog__items--filters .custom-multi-select[data-role="custom-slider"] .noUi-connect {
    background: #1A1A1A;
    height: 2px;
}

.catalog__items--filters .custom-multi-select[data-role="custom-slider"] .noUi-handle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1A1A1A;
    border: none;
    box-shadow: none;
    right: -8px;
    top: -7px;
    cursor: pointer;
}

.catalog__items--filters .custom-multi-select[data-role="custom-slider"] .noUi-handle::after,
.catalog__items--filters .custom-multi-select[data-role="custom-slider"] .noUi-handle::before {
    display: none;
}

/* Apply button */
.catalog__items--filters .custom-multi-select[data-role="custom-slider"] .custom-multi-select__dropdown-submit {
    background: #2E2E2E;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    margin: 0;
    display: block;
    text-decoration: none;
    border-bottom: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}
.catalog__items--filters .custom-multi-select[data-role="custom-slider"] .custom-multi-select__dropdown-submit:hover {
    background: #404040;
}

/* --- Keep general styles for other filters --- */
.custom-multi-select:not([data-role="custom-slider"]) .custom-multi-select__dropdown-submit {
    background: #2E2E2E;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    margin: 0 20px 20px 20px;
    display: block;
    text-decoration: none;
    border-bottom: none;
    cursor: pointer;
}
.custom-multi-select:not([data-role="custom-slider"]) .custom-multi-select__dropdown-submit:hover {
    background: #404040;
}

.price-filter-dropdown .custom-multi-select__dropdown-content {
    display: block;
    border: none;
    padding: 16px;
    box-shadow: none;
}

.price-filter-dropdown .b-ccf-price-slider-wrapper {
    padding: 20px 0;
    position: relative !important; /* Override conflicting styles */
}

.price-filter-dropdown .noUi-target {
    margin: 0 10px;
    width: calc(100% - 20px);
}

.price-filter-dropdown .custom-multi-select__dropdown-submit {
    display: block;
    width: 100%;
    margin-top: 10px;
}

/* НОВОЕ ПРАВИЛО ДЛЯ КНОПКИ */
.custom-multi-select:not(.price-filter-dropdown) .custom-multi-select__dropdown-submit {
    margin: 0; /* Убираем лишние отступы для всех кнопок, кроме цены */
}

.price-filter-dropdown .b-ccf-item-price-inputs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.price-filter-dropdown .b-ccf-item-price-inputs .b-price-label-low,
.price-filter-dropdown .b-ccf-item-price-inputs .b-price-label-high {
    font-size: 14px;
    color: #8e8e8e;
}

.price-filter-dropdown .b-ccf-item-price-inputs .b-range-input {
    width: 100%;
    border: 1px solid #e5e5e5;
    padding: 8px;
    text-align: center;
    font-size: 14px;
}


/* ==========================================================================
   Мобильная версия: фильтры в нижней шторке (bottom sheet)
   На ПК обёртка .mobile-sheet растворяется и на раскладку не влияет.
   ========================================================================== */

.mobile-sheet {
    display: contents;
}

.mobile-sheet__grabber {
    display: none;
}

@media (max-width: 1024px) {
    /* .catalog__items--header уже растянут на весь экран (position: fixed)
       и показывается классом d-flex - здесь он становится затемнением,
       а шторка прижимается к нижнему краю. Селектор с родителем нужен,
       чтобы перебить белый фон полноэкранной панели из общих стилей. */
    .catalog__items > .catalog__items--header {
        justify-content: flex-end;   /* контейнер колоночный: низ - это главная ось */
        align-items: stretch;
        background-color: rgba(0, 0, 0, .45);
    }

    .mobile-sheet {
        display: flex;
        flex-direction: column;
        position: relative;   /* к нему прижимаются кнопки "Сбросить"/"Применить" */
        width: 100%;
        max-height: 88vh;
        max-height: 88dvh;    /* учитывает адресную строку браузера */
        background-color: #fff;
        border-radius: 16px 16px 0 0;
        overflow: hidden;
        will-change: transform;
        animation: filters-sheet-up .28s cubic-bezier(.32, .72, 0, 1);
    }

    /* Закрытие и возврат после жеста: transform задаёт скрипт, поэтому здесь
       переход, а не покадровая анимация - уезжает с той точки, где отпустили. */
    .mobile-sheet.is-animating {
        animation: none;
        transition: transform .22s ease-out;
    }

    /* Пока тянут пальцем, шторка ведётся за ним - анимация тут только мешала бы */
    .mobile-sheet.is-dragging {
        animation: none;
        transition: none;
    }

    @keyframes filters-sheet-up {
        from { transform: translateY(100%); }
        to   { transform: none; }
    }

    /* Ручка: и подсказка "тянется вниз", и зона захвата */
    .mobile-sheet__grabber {
        display: block;
        flex: 0 0 auto;
        width: 36px;
        height: 4px;
        margin: 8px auto 4px;
        border-radius: 2px;
        background-color: #DDDDDD;
        cursor: grab;
    }

    /* Шапка внутри шторки видна всегда - класс-утилита для неё больше не нужен */
    .mobile-sheet .mobile-filter__head {
        display: flex;
        flex: 0 0 auto;
        padding: 8px 16px 12px;
        touch-action: none;   /* тянем шторку, а не прокручиваем страницу */
    }

    .mobile-sheet__grabber,
    .mobile-sheet .mobile-filter__head p {
        touch-action: none;
    }

    .mobile-sheet .mobile-filter__head span {
        width: 32px;
        height: 32px;
        padding: 8px;
        touch-action: auto;   /* крестику жесты не нужны */
    }

    /* Список фильтров занимает остаток шторки и прокручивается сам */
    .mobile-sheet .catalog__items--filters {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
        padding-bottom: 84px;   /* место под прижатые кнопки */
        overscroll-behavior: contain;
    }
}

/* ==========================================================================
   Кнопка "Все фильтры" и панель с редкими свойствами
   На странице остаётся не больше FILTER_VISIBLE_LIMIT групп (см. template.php),
   остальные лежат в панели: на ПК и планшете - выезжающей справа,
   на мобильных - раскрывающейся прямо в панели фильтров.
   ========================================================================== */

.catalog__items--filters .filters-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* тянемся по высоте соседних чипов: у них внутри иконка, и без этого
       кнопка получается на пиксель ниже */
    align-self: stretch;
    gap: 8px;
    width: 195px;
    box-sizing: border-box;
    padding: 16px;
    border: none;
    background-color: var(--gray, #F6F6F6);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%231A1A1A' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M2 4.5h12M2 8h12M2 11.5h12'/%3E%3Ccircle cx='5.5' cy='4.5' r='1.6' fill='%23fff'/%3E%3Ccircle cx='10.5' cy='11.5' r='1.6' fill='%23fff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 18.2px;
    color: var(--black, #1A1A1A);
    text-align: left;
    cursor: pointer;
    transition: background-color var(--transition, .2s);
}

.catalog__items--filters .filters-more:hover,
.catalog__items--filters .filters-more[aria-expanded="true"] {
    background-color: #EEEEEE;
}

/* Число значений, выбранных в скрытых свойствах */
.catalog__items--filters .filters-more__count {
    flex: 0 0 auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: var(--black, #1A1A1A);
    font-size: 12px;
    line-height: 20px;
    color: #fff;
    text-align: center;
}

.catalog__items--filters .filters-more__count.is-empty {
    display: none;
}

/* Стрелка нужна только там, где список раскрывается на месте (мобильные и планшеты).
   На ПК кнопка открывает боковую панель, там уместнее иконка с ползунками. */
.catalog__items--filters .filters-more__arrow,
.filters-extra__collapse {
    display: none;
}

/* --- Панель --- */
.filters-extra {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    width: 420px;
    max-width: 100%;
    background: #fff;
    box-shadow: -8px 0 32px rgba(0, 0, 0, .12);
    /* Закрытая панель убрана за край экрана, но остаётся в форме:
       отмеченные в ней значения обязаны уходить вместе с остальными. */
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .28s ease, visibility .28s ease;
}

.filters-extra.is-open {
    visibility: visible;
    transform: none;
}

.filters-extra__overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}

.filters-extra__overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.filters-extra__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    padding: 20px 24px;
    border-bottom: 1px solid #EEEEEE;
}

.filters-extra__title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    color: var(--black, #1A1A1A);
}

.filters-extra__close {
    position: relative;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.filters-extra__close::before,
.filters-extra__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1px;
    background: var(--black, #1A1A1A);
}

.filters-extra__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.filters-extra__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.filters-extra__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 8px 24px 24px;
    overflow-y: auto;
}

.filters-extra__foot {
    display: flex;
    gap: 12px;
    flex: 0 0 auto;
    padding: 16px 24px;
    border-top: 1px solid #EEEEEE;
}

.filters-extra__reset,
.filters-extra__apply {
    height: 48px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.filters-extra__reset {
    flex: 1 1 0;
    border: 1px solid #E5E5E5;
    background: #fff;
    color: var(--black, #1A1A1A);
}

.filters-extra__reset:hover {
    border-color: #1A1A1A;
}

.filters-extra__apply {
    flex: 2 1 0;
    border: none;
    background: var(--black, #1A1A1A);
    color: #fff;
}

.filters-extra__apply:hover {
    background: #404040;
}

/* Внутри панели свойства раскрываются аккордеоном, а не выпадающим списком */
@media (min-width: 1025px) {
    .filters-extra .custom-multi-select {
        width: 100%;
    }

    .filters-extra .custom-multi-select__selected {
        padding: 16px 0;
        background-color: transparent;
        border-bottom: 1px solid #EEEEEE;
    }

    .filters-extra .custom-multi-select.active .custom-multi-select__selected {
        background-color: transparent;
        border-bottom-color: transparent;
    }

    .filters-extra .custom-multi-select__dropdown {
        position: static;
        width: 100%;
        padding: 0 0 16px;
        border: none;
        box-shadow: none;
    }

    .filters-extra .custom-multi-select__dropdown-content {
        max-height: 300px;
    }
}

/* --- Мобильные и планшеты: панель раскрывается на месте --- */
/* Вложенная выезжающая панель поверх и так выехавшей панели фильтров
   читалась бы как ловушка, поэтому здесь обычное раскрытие списком. */
@media (max-width: 1024px) {
    .catalog__items--filters .filters-more {
        width: 100%;
        /* иконку с ползунками сменяет стрелка - так же, как у остальных свойств */
        background-image: none;
        padding-right: 16px;
    }

    .catalog__items--filters .filters-more__arrow {
        display: block;
        flex: 0 0 auto;
        transition: transform var(--transition, .2s);
    }

    /* Раскрытая кнопка ведёт себя как заголовок раскрытого свойства */
    .catalog__items--filters .filters-more[aria-expanded="true"] .filters-more__arrow {
        transform: rotate(180deg);
    }

    .catalog__items--filters .filters-more[aria-expanded="true"] {
        background-color: #EEEEEE;
    }

    /* Отделяем дополнительные свойства от основных, чтобы было видно,
       что именно раскрылось по кнопке */
    .filters-extra.is-open {
        padding-left: 12px;
        border-left: 2px solid #EEEEEE;
    }

    .filters-extra__collapse {
        display: block;
        width: 100%;
        margin-top: 16px;
        padding: 12px;
        border: 1px solid #E5E5E5;
        border-radius: 4px;
        background: #fff;
        font-family: inherit;
        font-size: 14px;
        line-height: 18.2px;
        color: var(--black, #1A1A1A);
        cursor: pointer;
    }

    .filters-extra {
        display: none;
        position: static;
        width: 100%;
        box-shadow: none;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .filters-extra.is-open {
        display: block;
    }

    .filters-extra__head,
    .filters-extra__foot,
    .filters-extra__overlay {
        display: none;
    }

    .filters-extra__body {
        gap: 16px;
        padding: 0;
        overflow: visible;
    }
}

/* Счётчик выбранных значений в заголовке свойства */
.catalog__items--filters .custom-multi-select__selected-count {
    display: none;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    box-sizing: border-box;
    border-radius: 9px;
    background-color: var(--black, #1A1A1A);
    font-size: 11px;
    line-height: 18px;
    color: #fff;
    text-align: center;
}

.catalog__items--filters .custom-multi-select.has-checked .custom-multi-select__selected-count {
    display: inline-block;
}

.catalog__items--filters .custom-multi-select.has-checked > .custom-multi-select__selected {
    background-color: #EEEEEE;
}

/* --- Поиск по значениям свойства --- */
/* Показывается только у длинных списков (см. FILTER_SEARCH_MIN_ITEMS в template.php). */
.catalog__items--filters .filter-search {
    position: relative;
    flex: 0 0 auto;
    margin-bottom: 12px;
}

.catalog__items--filters .filter-search__input {
    width: 100%;
    box-sizing: border-box;
    height: 36px;
    margin: 0;
    padding: 0 30px 0 32px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%23A0A0A0' stroke-width='1.5'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath d='M9.5 9.5 13 13' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 11px center;
    font-size: 14px;
    line-height: 18px;
    color: #1A1A1A;
    outline: none;
}

.catalog__items--filters .filter-search__input::placeholder {
    color: #A0A0A0;
}

.catalog__items--filters .filter-search__input:focus {
    border-color: #1A1A1A;
}

/* Крестик очистки: появляется, только когда в поле что-то введено */
.catalog__items--filters .filter-search__clear {
    display: none;
    position: absolute;
    top: 50%;
    right: 4px;
    width: 26px;
    height: 26px;
    transform: translateY(-50%);
    cursor: pointer;
}

.catalog__items--filters .filter-search.has-value .filter-search__clear {
    display: block;
}

.catalog__items--filters .filter-search__clear::before,
.catalog__items--filters .filter-search__clear::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 1px;
    background: #A0A0A0;
}

.catalog__items--filters .filter-search__clear::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.catalog__items--filters .filter-search__clear::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.catalog__items--filters .filter-search__clear:hover::before,
.catalog__items--filters .filter-search__clear:hover::after {
    background: #1A1A1A;
}

/* Значение, не подошедшее под запрос */
.catalog__items--filters .custom-multi-select__dropdown--row.is-search-hidden {
    display: none;
}

.catalog__items--filters .filter-search__empty {
    display: none;
    padding: 6px 0;
    font-size: 14px;
    line-height: 22px;
    color: #A0A0A0;
}

.catalog__items--filters .custom-multi-select__dropdown-content.is-search-empty .filter-search__empty {
    display: block;
}

/* Состояние "фильтр применяется": кнопка ждёт актуальный адрес от бэкенда.
   Раньше кнопка на это время получала disabled и клик по ней терялся. */
.catalog__items--filters .custom-multi-select__dropdown-submit.is-applying,
.catalog__items--filters .mobile-filter-controls__applay.is-applying {
    opacity: 0.6;
    cursor: progress;
    pointer-events: none;
}
/* End */
/* /local/templates/new_arabella/components/bitrix/catalog.smart.filter/catalog_new/style.css?178595307520994 */
