.filter-section__title-size.hidden {
display: none;
}
span.filter-section__title.filter-section__title-size {
    justify-content: center;
}
.filter-section__title-size:hover {
    background: #000;
    color: #fff;
}
.smart-filter-horizontal .smart-filter-popup-result a:hover{
    border-bottom: 1px solid transparent;
}
.smart-filter-horizontal .smart-filter-popup-result a{
    color: #000;
    border-bottom: 1px solid;
    line-height: 15px;
}
span.smart-filter-container-modef {
    position: absolute;
    margin-top: -10px;
}
.filter-sections--catalog {
    padding-top: 10px;
}
.smart-filter-horizontal .smart-filter-popup-result {
    height: auto;
    background: rgb(255, 190, 16);
    border: 1px solid #000;
    border-radius: 30px;
    margin-top: -6px;
    justify-content: center;
    align-items: center;
    gap: 3px;
    font-weight: 600;
}
.filter-section__title-size {

    border: 1px solid #000;
    border-radius: 30px;
    height: 48px;
    display: flex
;
    justify-content: center;
    background: none;
    align-items: center;
}
.filter-button {
    cursor: pointer;
}

.filter-button:hover {
    opacity: 0.8;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}
.selected-filters__container.container .selected-filters__btn-reset{
    margin-top: 14px;
}
.filter-panel {
    position: fixed;
    top: 0;
    right: -1000px;
    width: 635px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: right 0.3s ease-out;
    display: flex;
    flex-direction: column;
}
.smart-filter-horizontal .smart-filter-popup-result {
    display: none;
}
.smart-filter  {
    height: 100%;
}
.filter-panel.active {
    right: 0;
}
form.smart-filter-form.filter-form.filter-content {
    display: flex
;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.filter-header {
    padding: 58px 39px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header h2 {
    margin: 0;
    font-size: 20px;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.close-button:hover {
    color: #333;
}

.filter-content .checkbox-item {

    gap: 20px;
}

.filter-content {
    padding: 14px 39px;
    flex-grow: 1;
    overflow-y: auto;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.filter-panel .filter-select, .filter-panel .filter-range {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-range {
    padding: 0;
}

.filter-footer {
    padding: 15px 80px 15px 40px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.reset-button.submit-link.btn.btn-white ,
button.reset-button.submit-link.btn.btn-white {
    width: 209px;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    height: 39px;
}

.filter-sections.first-child .filter-section {
    border-bottom: 0;
}

button.apply-button.submit-link.btn.btn-black {
    height: 39px;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    width: 285px;
}

.show-all {
    color: #6D6D6D;
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    cursor: pointer;
}

.show-all:hover {
    text-decoration: underline;
}

.filter-section {
    margin-bottom: 14px;
    border-bottom: 1px solid #eee;
    padding-bottom: 29px;
}

.filter-section {
    /*display: flex;*/
    gap: 47px;
    column-count: 2;
}

/*
 * В остатках колонки разложены по отдельным .filter-options (см. include/personal/page/remains/filter.php).
 * Запрещаем их разрывать, иначе column-count режет флекс-контейнер и подпись пункта делится пополам.
 */
.page-remains .filter-section > .filter-options {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

/*
 * Блок размеров в остатках — как в каталоге. Те же правила лежат в style.css компонента
 * умного фильтра, но он подключается только на страницах каталога, поэтому здесь свои,
 * ограниченные .page-remains, чтобы каталога не касаться.
 */
.page-remains .filter-section--sizes--dop.active {
    display: block;
}

.page-remains .filter-section--sizes--dop {
    display: none;
}

.page-remains .filter-options.filter-section--sizes .checkbox-items--block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.page-remains .filter-options.filter-section--sizes {
    width: 100%;
    flex-direction: row;
    flex-wrap: initial;
    gap: 70px;
}

.page-remains .filter-sections.filter-section--sizes a.btn-link.show-all {
    bottom: 7px;
}

.page-remains .filter-section.filter-section--sizes {
    gap: 47px;
    column-count: 1;
}

.filter-section__title.active img {
    transform: scaleY(-1);
}

.filter-section__title {
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    width: 70%;
    align-items: center;
    cursor: pointer;
}

.filter-options {
    display: flex;
    width: 28%;
    flex-wrap: wrap;
    gap: 12px;
    flex-direction: column;
    padding-left: 5px;
}

.filter-section--read {
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    margin-bottom: 55px;
    text-decoration: underline;
}

.filter-option {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.filter-option input[type="radio"] {
    margin-right: 20px;
}

.filter-header--title {
    font-family: Inter;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
}


/* Стилизация чекбокса */
.filter-panel .checkbox-input {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 0;
    border-radius: 30px;
    background: url("/verstka/images/cart/radio.svg") no-repeat;
    cursor: pointer;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin: 0;
}

/* Оформление состояния checked */
.filter-panel .checkbox-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    background: url("/verstka/images/cart/radio-select.svg") no-repeat;
}

/* Эффект нажатия */
.filter-panel .checkbox-input:active {
    filter: brightness(90%);
}

/* Смена цвета границы при наведении */
.filter-panel .checkbox-input:hover:not(:disabled) {
    border-color: #6D6D6D;

   /* background: url("/verstka/images/cart/radio-hover.svg") no-repeat;*/
}

/* Стили для чекбокса при фокусе */
.filter-panel .checkbox-input:focus {
   /* background: url("/verstka/images/cart/radio-select.svg") no-repeat;
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);*/
}

/* Отключенный чекбокс */
.filter-panel .checkbox-input:disabled {
    filter: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.filter-section--read span:nth-child(1) {
    display: flex;
}

.filter-section--read span:nth-child(2) {
    display: none;
}

.filter-section--read.active span:nth-child(2) {
    display: flex;
}

.filter-section--read.active span:nth-child(1) {
    display: none;
}

.filter-sections--all.active {
    display: flex;
    flex-direction: column;
}

.filter-sections--all {
    display: none;
}

.filter-section--read {
    display: flex;
    cursor: pointer;
    gap: 24px;
}

.filter-section--read.active img {
    transform: scaleY(-1);
}

.filter-sections.hidden .filter-section {
    display: none;
}

.filter-sections {
    position: relative;
}

a.btn-link.show-all.hidden {
    display: none;
}

a.btn-link.show-all:hover {
    text-decoration: none
}

a.btn-link.show-all {
    position: absolute;
    /*background: #fff;*/
    width: 100%;
    bottom: 16px;
    height: 35px;
    display: flex;
    align-items: end;
    text-decoration: underline;
    border-bottom: 0;
}

.show-all-hidden.active:hover {
    text-decoration: none
}

.show-all-hidden.active {
    position: absolute;
    /*background: #fff;*/
    bottom: 0;
    display: flex;
    align-items: end;
    text-decoration: underline;
    border-bottom: 0;
    cursor: pointer;
}

.show-all-hidden {
    display: none;
}

.filter-sections.active .filter-section {
    border-bottom: 0;
}

.checkbox-item.hidden {
    display: none;
}

.show-all-hidden {
    color: #6D6D6D;
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    cursor: pointer;
}

.filter-section.no-border {
    border-bottom: 0;
}

.filter-content .block-search .form-group input[type="text"] {

    border: 1px solid #6D6D6D;
}

.filter-content .block-search {
    margin-top: 0px;
    margin-bottom: 40px;
}

button.option-button.submit-link.btn.btn-white {
    width: 325px;
    height: 42px;
    margin-bottom: 30px;
}

.filter-options--btn {
    display: flex;
    justify-content: center;
    width: 80%;
}

.heckbox-input--number {
    border-radius: 5px;
    border: 1px solid #393939;
    height: 24px;
    width: 120px;
}

.filter-sections.hidden .filter-options--btn,
.filter-sections.hidden .btn-link {
    display: none;
}

@media (max-width: 768px) {
    .filter-section {
        column-count: 1;
    }
    .filter-section {
        flex-direction: column;
        gap: 15px;
    }

    .filter-section__title {
        width: 100%;
    }

    .reset-button.submit-link.btn.btn-white ,
    button.reset-button.submit-link.btn.btn-white {
        width: 100%;
        font-weight: 600;
        font-size: 16px;
        line-height: 100%;
        height: 48px;
    }

    .filter-footer {
        flex-direction: column;
        gap: 20px;
        padding: 20px 40px 20px 40px;
    }

    button.apply-button.submit-link.btn.btn-black {
        height: 48px;
        font-weight: 600;
        font-size: 16px;
        line-height: 100%;
        width: 100%;
    }

    .filter-panel {
        width: 100%;
    }
    div#filterPanelCatalog.active .col.smart-filter-button-box {
        position: fixed;
        bottom: 3px;
        width: 95%;
        left: 13px;
    }
    .smart-filter-parameters-box-container {
        display: flex;
        gap: 10px;
    }
    a.reset-button.submit-link.btn.btn-white {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    body div .filter-sections--catalog {
        height: 55vh;
    }
#modef{
    position: relative !important;
    margin-top: 0!important;
    margin-left: 4px;
    }
}


.collection_data {
    display: none;
}

.collection_data.show {
    display: block;
}