.checkbox-slider, .checkbox-lg {
    font-size: 0;
}
.checkbox-slider input[type="checkbox"], .checkbox-lg input[type="checkbox"] {
    opacity: 0;
    margin: 0;
    width: 0px;
    vertical-align: top;
}

.checkbox-slider input[type="checkbox"] {
    height: 24px;
}

.checkbox-lg input[type="checkbox"] {
    height: 40px;
}

/*Real Label*/
.checkbox-slider > .real-label, .checkbox-lg > .real-label {
    font-size: 14px;
    margin: 0 10px;

}
.checkbox-slider > .real-label {
    line-height: 24px;
}

.checkbox-lg > .real-label {
    line-height: 40px;
}

/*False Label*/
.checkbox-slider label:not(.real-label),
.checkbox-lg label:not(.real-label) {
    position: relative;
    display: inline-block;
    margin: 0;
    vertical-align: top;
}

.checkbox-slider label:not(.real-label) {
    width: 42px;
    height: 24px;
}

.checkbox-slider label:not(.real-label)::before,
.checkbox-slider label:not(.real-label)::after,
.checkbox-lg label:not(.real-label)::before,
.checkbox-lg label:not(.real-label)::after {
    position: absolute;
    content: "";
    display: inline-block;
}

.checkbox-lg label:not(.real-label) {
    width: 40px;
    height: 40px;
}

/*Outer box of the fake checkbox*/
.checkbox-slider label:not(.real-label)::before{
    width: 42px;
    height: 24px;
    left: 0;
    background-color: #E9E9E9;
    box-shadow: inset -3px 3px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #c6c6c6;
    border-radius: 12px;
    transition: background-color .25s;
}

.checkbox-lg label:not(.real-label)::before{
    width: 40px;
    height: 40px;
    left: 0;
    background-color: #E9E9E9;
    box-shadow: inset -3px 3px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #c6c6c6;
    border-radius: 2px;
    transition: background-color .25s;
}

/*Checkmark of the fake checkbox*/
.checkbox-slider label:not(.real-label)::after {
    height: 24px;
    width: 24px;
    left: 0px;
    top: 0px;
    background-color: #F8F8F8;
    box-shadow: inset -3px 3px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #c6c6c6;
    border-radius: 12px;
    transition: left .15s;
}

.checkbox-lg label:not(.real-label)::after {
    height: 40px;
    width: 40px;
    font-family: 'Glyphicons Halflings';
    content: "\e013";
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    opacity: 0;
    transition: opacity .15s;
}

/*Checked state*/
.checkbox-slider input[type="checkbox"]:checked + label:not(.real-label)::before {
    background-color: #019cdb;
}

.checkbox-slider input[type="checkbox"]:checked + label:not(.real-label)::after {
    left: 18px;
}

.checkbox-lg input[type="checkbox"]:checked + label:not(.real-label)::before {
    background-color: #019cdb;
    border: 1px solid #0079ab;
}

.checkbox-lg input[type="checkbox"]:checked + label:not(.real-label)::after {
    opacity: 1;
}

/*Adding focus styles on the outer-box of the fake checkbox*/
.checkbox-slider input[type="checkbox"]:focus + label:not(.real-label)::before {
    /*outline: rgb(59, 153, 252) auto 5px;*/
}