﻿/*
    Snippets can be found here: https://bootsnipp.com/snippets/xp0QM
*/

.material-switch > input[type="checkbox"] {
    display: none;
}

.material-switch > label {
    cursor: pointer;
    height: 0px;
    position: relative;
    width: 40px;
}

    .material-switch > label::before {
        background: transparent;
        /*box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);*/
        border: 1px solid #202945;
        border-radius: 30px;
        content: '';
        height: 18px;
        margin-top: -8px;
        position: absolute;
        transition: all 0.4s ease-in-out;
        width: 40px;
    }

    .material-switch > label::after {
        background: transparent;
        border-radius: 50%;
        /*box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);*/
        border: 1px solid #202945;
        content: '';
        height: 14px;
        left: 2px;
        margin-top: -8px;
        position: absolute;
        top: 2px;
        transition: all 0.3s ease-in-out;
        width: 14px;
    }

.material-switch > input[type="checkbox"]:checked + label::before {
    background: #4f55eb;
    border-color: #4f55eb;
}

.material-switch > input[type="checkbox"]:checked + label::after {
    background: white;
    left: 24px;
}
/*material-switch2 for togle in bill perefrences in manage notification*/
.material-switch2 > input[type="checkbox"] {
    display: none;
}

.material-switch2 > label {
    cursor: pointer;
    height: 0px;
    position: relative;
    width: 40px;
}

    .material-switch2 > label::before {
        background: #202945;
        /*box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);*/
       /* border: 1px solid #CCCCCC;*/
        border-radius: 8px;
        content: '';
        height: 16px;
        margin-top: -8px;
        position: absolute;
        transition: all 0.4s ease-in-out;
        width: 40px;
    }

    .material-switch2 > label::after {
        background: white;
        border-radius: 16px;
        /*box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);*/
        border: 1px solid #CCCCCC;
        content: '';
        height: 18px;
        left: 0px;
        margin-top: -8px;
        position: absolute;
        top: -1px;
        transition: all 0.3s ease-in-out;
        width: 18px;
    }

.material-switch2 > input[type="checkbox"]:checked + label::before {
    background: #202945;
   /* border-color: #52ae93;*/
}

.material-switch2 > input[type="checkbox"]:checked + label::after {
    background: #4f55eb;
    left: 24px;
}