.ui-switch {
    --switch-color-handler: #F6F6F6;
    --switch-color-bg: #E6E5E3;
    --switch-color-bg-active: #1E1D1D;
    position: relative;
    display: inline-block;
    width: 56px;
    min-width: 56px;
    height: 32px;
    min-height: 32px;
    cursor: pointer;
    margin: 0;
}

.ui-switch input[type="checkbox"] {
    display: none;
}

.ui-switch input[type="checkbox"]:checked ~ .ui-switch__background {
    background-color: var(--switch-color-bg-active);
}

.ui-switch input[type="checkbox"]:checked ~ .ui-switch__handle {
    transform: translateX(24px);
}

.ui-switch__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--switch-color-bg);
    border-radius: 500px;
    transition: background-color 0.1s ease-in;
}

.ui-switch__handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 28px;
    height: 28px;
    background: var(--switch-color-handler);
    border-radius: 50%;
    transition: transform 0.1s ease-in;
}

@media screen and (hover: hover) {
    .ui-switch:hover {
        --switch-color-bg: #1E1D1D;
    }
}

@media screen and (hover: none) {
    .ui-switch:active {
        --switch-color-bg: #1E1D1D;
    }
}