﻿.clsOnOff:not(:checked),
.clsOnOff:checked {
    position: absolute;
    left: -9999px;
}

    .clsOnOff:not(:checked) + label,
    .clsOnOff:checked + label {
        position: relative;
        padding-left: 30px;
        cursor: pointer;
    }

        .clsOnOff:not(:checked) + label:before,
        .clsOnOff:checked + label:before,
        .clsOnOff:not(:checked) + label:after,
        .clsOnOff:checked + label:after {
            content: '';
            position: absolute;
        }

        .clsOnOff:not(:checked) + label:before,
        .clsOnOff:checked + label:before {
            left: -1px;
            top: -4px;
            width: 25px;
            height: 25px;
            background: rgba(255, 255, 255, 0.2);
            /* border-radius: 15px; */
            transition: background-color .2s;
            border: 1px solid #fff;
        }

        .clsOnOff:not(:checked) + label:after,
        .clsOnOff:checked + label:after {
            width: 15px;
            height: 15px;
            transition: all .2s;
            /*border-radius: 50%;*/
            /*background: #7F8C9A;*/
            top: 2px;
            left: 5px;
        }

        /* on checked */
        .clsOnOff:checked + label:before {
            /*background: #34495E;*/
        }

        .clsOnOff:checked + label:after {
            background: #61c8f3;
            top: 2px;
            /*left: 40px;*/
        }

        .clsOnOff:checked + label .ui,
        .clsOnOff:not(:checked) + label .ui:before,
        .clsOnOff:checked + label .ui:after {
            position: absolute;
            left: 6px;
            width: 65px;
            border-radius: 15px;
            font-size: 14px;
            font-weight: bold;
            line-height: 22px;
            transition: all .2s;
        }

        .clsOnOff:not(:checked) + label .ui:before {
            content: "no";
            left: 32px
        }

        .clsOnOff:checked + label .ui:after {
            content: "yes";
            color: #39D2B4;
        }

.clsOnOff:focus + label:before {
    /*border: 1px dashed #777;*/
    /*box-sizing: border-box;*/
    /*margin-top: -1px;*/
}

.clsOnOff:disabled:checked + label:before, .clsOnOff:disabled:not(:checked) + label:before {
    border: 1px solid #353535;
    background: none;
}
.clsOnOff:disabled:checked + label:after {
    background: #166687;
}

/******************************************************/
 .clsOnOff-2[disabled] {
    background-color: transparent !important;
}
.clsOnOff-2 input {
    position: absolute;
    left: -9999px;
}

.clsOnOff-2 label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
}

.clsOnOff-2 label:before,
.clsOnOff-2 label:after {
    content: '';
    position: absolute;
}

.clsOnOff-2 label:before {
    left: -1px;
    top: -4px;
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    /* border-radius: 15px; */
    transition: background-color .2s;
    border: 1px solid #fff;
}

.clsOnOff-2 label:after {
    width: 15px;
    height: 15px;
    transition: all .2s;
    /*border-radius: 50%;*/
    /*background: #7F8C9A;*/
    top: 2px;
    left: 5px;
}

        /* on checked */
.clsOnOff-2 input:checked + label:before {
    /*background: #34495E;*/
}

.clsOnOff-2 input:checked + label:after {
    background: #61c8f3;
    top: 2px;
    /*left: 40px;*/
}

       
    .clsOnOff-2 input:focus + label:before {
        /*border: 1px dashed #777;*/
        /*box-sizing: border-box;*/
        /*margin-top: -1px;*/
    }
     
    .clsOnOff-2 input:disabled:checked + label:before {
        border: 1px solid #353535;
        background: none;
    }
      
    .clsOnOff-2 input:disabled:checked + label:after {
        background: #166687;
    }

/********************Radio Button**********************/

.radio {
    margin: 0.5rem;
}

    .radio input[type="radio"] {
        position: absolute;
        opacity: 0;
    }

        .radio input[type="radio"] + .radio-label:before {
            content: "";
            background: rgba(255, 255, 255, 0.2);
            border-radius: 100%;
            border: 1px solid #b4b4b4;
            display: inline-block;
            width: 1.4em;
            height: 1.4em;
            position: relative;
            top: 0;
            margin-right: 5px;
            vertical-align: top;
            cursor: pointer;
            text-align: center;
            transition: all 250ms ease;
        }

        .radio input[type="radio"]:checked + .radio-label:before {
            background-color: #61c8f3;
            box-shadow: inset 0 0 0 4px #f4f4f4;
        }

        .radio input[type="radio"]:focus + .radio-label:before {
            outline: none;
            border-color: #3197ee;
        }

        .radio input[type="radio"]:disabled + .radio-label:before {
            box-shadow: inset 0 0 0 4px #f4f4f4;
            border-color: #b4b4b4;
            background: #b4b4b4;
        }

        .radio input[type="radio"] + .radio-label:empty:before {
            margin-right: 0;
        }


/******************************************************/