.eControls .eToggleSwitch {
    display: flex;
    align-items: var(--eToggleSwitchAlIt, start);
    flex-direction: var(--eToggleSwitchDirection, row);
    gap: var(--eToggleSwitchGap, 8px);
    border: var(--eToggleSwitchNoB, 1px solid var(--gray-300));
    border-radius: var(--radius-xl);
    padding: var(--eToggleSwitchPadding, var(--spacing-xl));

    & .e-switch.k-checkbox {
        -webkit-appearance: none;
        appearance: none;
        width: 38px;
        height: 20px;
        background: var(--gray-300);
        border-radius: var(--radius-xl);
        position: relative;
        vertical-align: middle;
        cursor: pointer;
        outline: none;
        border: none;
        margin-top: 4px;
        transition: background .2s ease;
    }

    & .k-switch-label-on {
        display: none !important;
    }

    & .e-switch.k-checkbox::after {
        content: "";
        position: absolute;
        top: 2px;
        left: 2px;
        width: 16px;
        height: 16px;
        background: #fff;
        border-radius: 50%;
        transition: left .2s ease;
        box-shadow: 0 0 2px rgba(0,0,0,.3);
    }

    & .e-switch.k-checkbox:checked {
        background: var(--brand-600);
    }

        & .e-switch.k-checkbox:checked::after {
            top: 1px;
            left: 19px;
        }

        & .e-switch.k-checkbox:checked::before {
            background-color: transparent !important;
        }

    label[for] {
        display: flex;
        flex-direction: column;
        gap: 2px;
        cursor: pointer;
        user-select: none;
    }

    & .k-checkbox.k-checked.k-focus,
    & .k-checkbox:checked:focus,
    & .k-checkbox.k-focus,
    & .k-checkbox:focus {
        border-color: transparent !important;
        box-shadow: none !important;
    }

    &:has( .k-checkbox:checked ) {
        border: var(--eToggleSwitchNoB, 1px solid var(--brand-600));
    }

    & .k-switch-on .k-switch-track {
        border-color: var(--brand-600) !important;
        background-color: var(--brand-600) !important;
    }

    & .k-switch-on:focus .k-switch-track, .k-switch-on.k-focus .k-switch-track {
        outline: 2px solid color-mix(in srgb, var(--brand-600) 25%, transparent) !important;
    }

    & .input-validation-error {
        border-color: var(--error-500);
    }
}


.eControls[data-accent="dark"] .eToggleSwitch {
    & .k-checkbox-label {
        color: var(--gray-600) !important;
    }
}