/* Единый стиль переключателей (ползунков) */

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--lumina-toggle-bg);
    border-radius: 26px;
    transition: background 0.22s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.22s cubic-bezier(0.33, 1, 0.68, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--lumina-accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-switch input:focus-visible + .toggle-slider {
    outline: 2px solid var(--lumina-accent-border);
    outline-offset: 2px;
}
