input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}
.switch,
.switch * {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.switch label {
    cursor: pointer;
}
.switch label input[type="checkbox"] {
    opacity: 0;
    height: 0;
    width: 0;
    min-width: 0;
}
.switch label input[type="checkbox"]:checked + .lever {
    background-color: rgba(0, 3, 51, 0.6);
}
.switch label input[type="checkbox"]:checked + .lever:before,
.switch label input[type="checkbox"]:checked + .lever:after {
    left: 18px;
}
.switch label input[type="checkbox"]:checked + .lever:after {
    background-color: rgb(0, 2, 34);
}
.switch label .lever {
    content: "";
    display: inline-block;
    position: relative;
    width: 36px;
    height: 14px;
    background-color: rgba(0, 0, 0, 0.38);
    border-radius: 15px;
    transition: background 0.3s ease;
    vertical-align: middle;
    margin: 5px 10px 10px 0;
}
.switch label .lever:before,
.switch label .lever:after {
    content: "";
    position: absolute;
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    left: 0;
    top: -3px;
    transition: left 0.3s ease, background 0.3s ease, box-shadow 0.1s ease, transform 0.1s ease;
}
.switch label .lever:before {
    background-color: rgba(0, 2, 34, 0.85);
}
.switch label .lever:after {
    background-color: #f1f1f1;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}
.switch input[type="checkbox"][disabled] + .lever {
    cursor: default;
    background-color: rgba(0, 0, 0, 0.12);
}
.switch label input[type="checkbox"][disabled] + .lever:after,
.switch label input[type="checkbox"][disabled]:checked + .lever:after {
    background-color: #949494;
}
