.switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin: 8px 0;
    position: relative;
}

.switch input {
    display: none;
}

/* сам трек */
.slider {
    position: relative;
    width: 54px;               /* корректная ширина */
    height: 28px;              /* высота */
    border-radius: 999px;
    background: #ccc;          /* серый фон дорожки */
    transition: background 0.4s ease;
    flex-shrink: 0;            /* не сжимать */
}

/* Кружок */
.slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #777;
    transition: transform 0.35s ease, background-color 0.35s ease;
}

/* Активное состояние */
input:checked + .slider {
    background: rgba(50,205,50,0.3); /* подсветка */
    box-shadow: 0 0 0 2px limegreen, 0 0 3px limegreen;
}

input:checked + .slider::before {
    transform: translateX(26px);   /* ровно до конца */
    background: limegreen;
}

/* Текст справа */
.switch-text {
    font-size: 15px;
    line-height: 1.4;
    color: #6d6d6d;
    user-select: none;
    font-weight: normal !important;
}

.switch-text a {
    color: #00bfa5;
    text-decoration: underline;
}
.switch-text a:hover {
    text-decoration: none;
}

/* Flat style, если нужен */
.switch.flat .slider {
    background: #eee;
    box-shadow: none;
}
.switch.flat input:checked + .slider {
    background: limegreen;
}
.switch.flat input:checked + .slider::before {
    background: #fff;
}