.toggle-switch {
    position: relative;
    margin-right: 10px;
    width: 86px;
    display: inline-block;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    transform: scale(0.825);
    -ms-user-select: none;
    text-align: left;
}
.toggle-switch-checkbox {
    display: none;
}
.toggle-switch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #3283C5;
    border-radius: 20px;
    margin: 0;
}
.toggle-switch-label-checked {
    border: 1px solid #bbb;
}

.toggle-switch-label:focus {
    outline: none;
}
.toggle-switch-label:focus > span {
    box-shadow: 0 0 2px 5px red;
}
.toggle-switch-label > span:focus {
    outline: none;
}
.toggle-switch-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}
.toggle-switch-inner:before, .toggle-switch-inner:after {
    display: block;
    float: left;
    width: 50%;
    height: 36px;
    padding: 2px;
    line-height: 34px;
    font-size: 1.2rem;
    font-weight: 400;
    color: white;
    box-sizing: border-box;
}
.toggle-switch-inner:before {
    content: attr(data-yes);
    padding-left: 12px;
    background-color: white;
    color: #212529;

    font-weight: 400;
    font-size: 1.2rem;
}
.toggle-switch-disabled {
    background-color: #ddd;
    cursor: not-allowed;
}
.toggle-switch-disabled:before {
    background-color: #ddd;
    cursor: not-allowed;
}
.toggle-switch-inner:after {
    content: attr(data-no);
    padding-right: 12px;
    background-color: #3283C5;
    color: #fff;
    text-align: right;
}
.toggle-switch-switch {
    display: block;
    width: 24px;
    margin: 7px;
    background: #fff;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 41px;
    border: 0 solid #bbb;
    border-radius: 57px;
    transition: all 0.3s ease-in 0s;
}
.toggle-switch-checkbox:checked + .toggle-switch-label .toggle-switch-inner {
    margin-left: 0;
}
.toggle-switch-checkbox:checked + .toggle-switch-label .toggle-switch-switch {
    right: 3px;
}
.toggle-switch.small-switch {
    width: 40px;
}
.toggle-switch.small-switch .toggle-switch-inner:after, .toggle-switch.small-switch .toggle-switch-inner:before {
    content: "";
    height: 20px;
    line-height: 20px;
}
.toggle-switch.small-switch .toggle-switch-switch {
    width: 16px;
    right: 20px;
    margin: 2px;
}
@media screen and (max-width: 991px) {
    .toggle-switch {
        transform: scale(0.9);
   }
}
@media screen and (max-width: 767px) {
    .toggle-switch {
        transform: scale(0.825);
   }
}
@media screen and (max-width: 575px) {
    .toggle-switch {
        transform: scale(0.75);
   }
}
.toggle-checked{
    background: #1882c5;
}
