.form-switch {
    position: relative;
    display: flex;
    align-items: center;
}

    .form-switch label {
        margin-left: 8px;
        margin-bottom: 0px;
    }

.switch {
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    display: block;
    line-height: 1;
    width: 2.2rem;
    height: 1.1rem;
    position: relative;
    box-sizing: content-box;
    border-radius: 40px;
}

.form-switch-sm .switch {
    width: 1.4rem;
    height: 0.7rem;
}

    .form-switch-sm .switch small {
        width: 0.7rem;
        height: 0.7rem;
    }

    .form-switch-sm .switch.checked small {
        left: 11px;
    }

.form-switch-sm label {
    font-size: 0.6rem;
    padding-top: 2px;
}

.form-switch-md .switch {
    width: 2rem;
    height: 1rem;
    display: block;
}

    .form-switch-md .switch small {
        width: 1rem;
        height: 1rem;
    }

    .form-switch-md .switch.checked small {
        left: 15px;
    }

.form-switch-md label {
    font-size: 0.8rem;
    padding-top: 2px;
}

.switch.wide {
    width: 80px;
}

.switch small {
    background-color: #fff;
    width: 1.1rem;
    height: 1.1rem;
    position: absolute;
    top: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    border-radius: 100px;
}

.switch.checked {
    background: rgb(0, 188, 212);
    border-color: rgb(0, 188, 212);
}

    .switch.checked small {
        left: 18px;
    }

.switch.wide.checked small {
    left: 52px;
}
/*styles for switch-text*/
.switch .switch-text {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

.switch .off {
    display: block;
    position: absolute;
    right: 10%;
    top: 25%;
    z-index: 0;
    color: #A9A9A9;
}

.switch .on {
    display: none;
    z-index: 0;
    color: #fff;
    position: absolute;
    top: 25%;
    left: 9%;
}

.switch.checked .off {
    display: none;
}

.switch.checked .on {
    display: block;
}

.switch.disabled {
    opacity: .50;
    cursor: not-allowed;
}
