﻿.chkSwitch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

    .chkSwitch input {
        display: none;
    }

.chkSlider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    margin: 0;
}

    .chkSlider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

.chkSliderSettings {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    margin: 0;
}

    .chkSliderSettings:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .chkSlider {
    background-color: var(--theme-color);
}

input:focus + .chkSlider {
    box-shadow: 0 0 1px var(--theme-color);
}

input:checked + input + .chkSliderSettings {
    background-color: var(--theme-color);
}

input:focus + input + .chkSliderSettings {
    box-shadow: 0 0 1px var(--theme-color);
}

input:checked + .chkSlider:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(18px);
}

input:checked + input + .chkSliderSettings:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(18px);
}

/* Rounded sliders */
.chkSliderSettings.round {
    border-radius: 34px;
}

    .chkSliderSettings.round:before {
        border-radius: 50%;
    }

.chkSlider.round {
    border-radius: 34px;
}

    .chkSlider.round:before {
        border-radius: 50%;
    }
