﻿:root {
    --blue: #3846DC;
    --grey: #E9E9E9;
    --grey-background: #808080;
}

.switch {
    display: inline-block !important;
    width: 35px;
    height: 22px;
    vertical-align: middle;
    position: relative;
    margin-left: 5px;
    margin-bottom: 3px;
}

.switch-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600 !important;
    line-height: 26px;
}

.switch-container {
    display: block;
}

.switch.pos-abs-r {
    position: absolute;
    right: 0;
    top: 3px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

    .switch input:checked + .slider {
        background-color: var(--blue);
    }

    .switch input:focus + .slider {
        box-shadow: 0 0 1px var(--grey);
    }

    .switch input:checked + .slider:before {
        left: 24px;
        border: solid #3846DC;
        border-width: 0 2px 2px 0;
        content: '';
        top: 6px;
    }

    .switch input:checked + .slider:after {
        transform: translateX(16px);
    }

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--grey);
    -webkit-transition: .4s;
    transition: .4s;
}

    .switch .slider:after {
        position: absolute;
        display: block;
        content: "";
        left: 0px;
        top: 0;
        width: 20px;
        height: 22px;
        background-color: #FFF;
        border-radius: 50px;
        z-index: 2;
        box-shadow: 0 0 10px -1px rgba(0,0,0,0.19);
    }

    .switch .slider:before {
        position: absolute;
        display: block;
        left: 10px;
        font-weight: bold;
        border: none;
        border-width: 0;
        content: '+';
        font-size: 17px;
        top: 2px;
        color: #AEB8C6;
        width: 3px;
        height: 6px;
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
        z-index: 3;
    }

.switch.active .slider:before {
    left: 24px;
    border: solid #3846DC;
    border-width: 0 2px 2px 0;
    content: '';
    top: 6px;
}

.switch .slider.round {
    border-radius: 34px;
}

.switch.active .slider.round {
    border-radius: 34px;
    background-color: var(--blue);
}

.switch.active .slider:after {
    transform: translateX(16px);
}
