/* SK-5609: фильтры акций на десктопной странице категории (редизайн 2026) */

/* ---------- кнопка в контролах категории ---------- */
.main26-category-scope .cf26-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 44px;
    height: 32px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid #040404;
    border-radius: 100px;
    background: transparent;
    color: #040404;
    font-family: inherit;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.main26-category-scope .cf26-button.is-active {
    border-color: #6747E5;
    color: #6747E5;
}
.main26-category-scope .cf26-button__icon {
    flex: 0 0 auto;
}
.main26-category-scope .cf26-button__count {
    font-weight: 500;
}

/* ---------- чипы применённых фильтров ---------- */
.cf26-applied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 12px 0 16px;
}
.cf26-applied[hidden] {
    display: none;
}
.cf26-applied__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    margin: 0;
    padding: 0 12px 0 14px;
    border: 0;
    border-radius: 100px;
    background: #EAE4FF;
    color: #6747E5;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease;
}
.cf26-applied__chip svg {
    width: 10px;
    height: 10px;
}
.cf26-applied__reset {
    margin: 0 0 0 4px;
    padding: 0;
    border: 0;
    background: none;
    color: #6747E5;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}
@media (hover: hover) {
    .cf26-applied__chip:hover {
        background: #DDD3FF;
    }
    .cf26-applied__reset:hover {
        text-decoration: underline;
    }
}

/* ---------- пустой результат ---------- */
.cf26-empty {
    grid-column: 1 / -1;
    width: 100%;
    padding: 48px 16px;
    color: #858585;
    font-size: 16px;
    text-align: center;
}

/* ---------- затемнение и панель ---------- */
.cf26-overlay {
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: rgba(4, 4, 4, .32);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .25s ease;
}
.cf26-panel {
    position: fixed;
    bottom: 16px;
    z-index: 10041;
    display: flex;
    flex-direction: column;
    width: 368px;
    max-width: calc(100vw - 32px);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 48px rgba(33, 17, 58, .16);
    font-family: "SF Pro Rounded", sans-serif;
    color: #040404;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .25s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.cf26-overlay[hidden],
.cf26-panel[hidden] {
    display: none;
}
html.cf26-is-open .cf26-overlay {
    opacity: 1;
}
html.cf26-is-open .cf26-panel {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .cf26-overlay,
    .cf26-panel {
        transition: none;
    }
}

.cf26-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 16px 24px;
    border-bottom: 1px solid #EEF0F4;
}
.cf26-panel__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}
.cf26-panel__subtitle {
    margin-top: 4px;
    color: #8C8C8C;
    font-size: 12px;
    line-height: 1.3;
}
.cf26-panel__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8C8C8C;
    cursor: pointer;
}
@media (hover: hover) {
    .cf26-panel__close:hover {
        background: #F6F7F9;
        color: #040404;
    }
}

.cf26-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 24px;
}

/* группа с чекбоксами */
.cf26-group {
    padding: 16px 0;
    border-bottom: 1px solid #EEF0F4;
}
.cf26-group__title {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}
.cf26-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 5px 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    cursor: pointer;
}
.cf26-check[hidden] {
    display: none;
}
.cf26-check__input,
.cf26-toggle__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.cf26-check__box {
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 1.5px solid #C9CDD6;
    border-radius: 5px;
    background: #ffffff;
    transition: background-color .15s ease, border-color .15s ease;
}
.cf26-check__box::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}
.cf26-check__input:checked + .cf26-check__box {
    border-color: #6747E5;
    background: #6747E5;
}
.cf26-check__input:checked + .cf26-check__box::after {
    opacity: 1;
}
.cf26-check__input:focus-visible + .cf26-check__box,
.cf26-toggle__input:focus-visible + .cf26-toggle__track {
    outline: 2px solid #B8A8F5;
    outline-offset: 2px;
}
.cf26-group__more {
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: #6747E5;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}
@media (hover: hover) {
    .cf26-group__more:hover {
        text-decoration: underline;
    }
}

/* тумблеры — фильтры с одним значением */
.cf26-toggles {
    padding: 12px 0;
}
.cf26-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    cursor: pointer;
}
.cf26-toggle__track {
    position: relative;
    flex: 0 0 auto;
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: #E9EAEE;
    transition: background-color .2s ease;
}
.cf26-toggle__track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
    transition: transform .2s ease;
}
.cf26-toggle__input:checked + .cf26-toggle__track {
    background: #6747E5;
}
.cf26-toggle__input:checked + .cf26-toggle__track::after {
    transform: translateX(16px);
}

.cf26-panel__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 24px 20px;
}
.cf26-panel__apply {
    width: 100%;
    height: 44px;
    margin: 0;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(0deg, #6747E5 0%, #7957FF 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s ease;
}
.cf26-panel__apply:disabled {
    opacity: .45;
    cursor: default;
}
.cf26-panel__reset {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #6747E5;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}
.cf26-panel__reset[hidden] {
    display: none;
}
