/* The switch - the box around the slider */

.switch-wrapper .switch {
    font-size: 12px;
    font-weight: bold;
    position: relative;
    display: block;
    /*width: 60px;*/
    height: 42px;
}

/* Hide default HTML checkbox */
.switch-wrapper .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.switch-wrapper .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    margin: 0;
    text-align: center;
}

.switch-wrapper .slider > .slider-label {
    position: relative;
    top: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.switch-wrapper .slider > .slider-button {
    display: block;
    position: absolute;
    height: 36px;
    width: 36px;
    left: 4px;
    top: 3px;
    background-color: white;
    -webkit-transition: right 500ms ease-out 1s;
    -moz-transition: right 500ms ease-out 1s;
    -o-transition: right 500ms ease-out 1s;
    transition: right 500ms ease-out 1s;
}

.switch-wrapper input:checked + .slider {
    background-color: #dc002e;
    color: white;
}

.switch-wrapper input:not(:checked):focus + .slider {
    background-color: #e6e6e6;
}

.switch-wrapper input:checked + .slider > .slider-button {
    left: auto;
    right: 4px;
}

/* Switch in a checkbox-group */
.checkbox-group .switch-wrapper {
    padding: 0 5px;
    margin-bottom: 10px;
}

@media (max-width: 480px) {
    .checkbox-group .switch-wrapper {
        padding: 0;
    }
}
