/* --------------------------------

iOS Slider

-------------------------------- */

input[type="checkbox"].ios-slider {
    display: none;
}

input[type="checkbox"].ios-slider+label {
    cursor: pointer;
    display: inline-block;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    border-radius: 26px;
    vertical-align: top;
    background-color: #fafafa;
    border: 1px solid #d3d3d3;
    transition: border .25s .15s, box-shadow .25s .3s, padding .25s;
    margin-bottom: 0;
}

input[type="checkbox"].ios-slider+label:after {
    top: -1px;
    left: -1px;
    content: '';
    display: block;
    position: absolute;
    border-radius: 24px;
    background-color: #fff;
    border: 1px solid #d3d3d3;
    transition: border .25s .15s, left .25s .1s, right .15s .175s;
}

input[type="checkbox"].ios-slider:checked+label {
    border-color: #53d76a;
    box-shadow: inset 0 0 0 20px #53d76a;
    transition: border .25s, box-shadow .25s, padding .25s .15s;
}

input[type="checkbox"].ios-slider:checked+label:after {
    border-color: #53d76a;
    transition: border .25s, left .15s .25s, right .25s .175s;
}

input[type="checkbox"].ios-slider:focus {
    outline: none;
}

/* Disabled Styles */

input[type="checkbox"][disabled].ios-slider+label,
input[type="checkbox"][disabled].ios-slider:checked+label {
    cursor: not-allowed;
}

input[type="checkbox"][disabled].ios-slider+label {
    background-color: rgba(250, 250, 250, .4);
    border: 1px solid rgba(211, 211, 211, .4);
}

input[type="checkbox"][disabled].ios-slider+label:after {
    background-color: rgba(255, 255, 255, .4);
    border: 1px solid rgba(211, 211, 211, .4);
}

input[type="checkbox"][disabled].ios-slider:checked+label {
    border-color: rgba(83, 215, 106, .4);
    box-shadow: inset 0 0 0 20px rgba(83, 215, 106, .4);
}

input[type="checkbox"][disabled].ios-slider:checked+label:after {
    border-color: rgba(83, 215, 106, .4);
    background-color: rgba(250, 250, 250, 1);
}

/* --------------------------------

iOS Slider Sizes

-------------------------------- */

/* --------------------------------
Normal Slider
-------------------------------- */

/* Width of entire switch */

input[type="checkbox"].ios-slider+label {
    width: 65px !important;
}

/* Width of entire switch and circular toggle */

input[type="checkbox"].ios-slider+label,
input[type="checkbox"].ios-slider+label:after {
    height: 35px !important;
}

/* Width of circlular toggle */

input[type="checkbox"].ios-slider+label:after,
input[type="checkbox"].ios-slider:checked+label:after {
    width: 35px;
}

/* Toggled off position */

input[type="checkbox"].ios-slider+label:after {
    right: 28px;
}

/* Toggled on position */

input[type="checkbox"].ios-slider:checked+label:after {
    left: 28px;
}