.switch {
    width: 40px;
    height: 20px;
    position: relative;
    border: 1px solid #dfdfdf;
    background-color: #fdfdfd;
    box-shadow: #dfdfdf 0 0 0 0 inset;
    border-radius: 20px;
    background-clip: content-box;
    display: inline-block;
    -webkit-appearance: none;
    user-select: none;
    outline: none;
    margin-left: 15px;
    display: none;
}
.switch:before {
    content: '';
    width: 19px;
    height: 19px;
    position: absolute;
    top: -1px;
    left: 0;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.switch:checked {
    border-color: #FF7007;
    box-shadow: #FF7007 0 0 0 16px inset;
    background-color: #FF7007;
}
.switch:checked:before {
    left: 20px;
}
.switch.switch-anim {
    transition: border cubic-bezier(0, 0, 0, 1) 0.4s, box-shadow cubic-bezier(0, 0, 0, 1) 0.4s;
}
.switch.switch-anim:before {
    transition: left 0.3s;
}
.switch.switch-anim:checked {
    box-shadow: #FF7007 0 0 0 16px inset;
    background-color: #FF7007;
    transition: border ease 0.4s, box-shadow ease 0.4s, background-color ease 1.2s;
}
.switch.switch-anim:checked:before {
    transition: left 0.3s;
}

.button-label{
    position: relative;
    display: inline-block;
    width: 45px;
    height: 20px;
    background-color: #ccc;
    border-radius: 30px;
    overflow: hidden;
    font-size: 13px;
    left: 10px;
    top: 3px;
    user-select: none;
}
.button-lab{
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 30px;
    overflow: hidden;
    font-size: 13px;
    left: 10px;
    top: 0;
    user-select: none;
}
.circle{
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
}
.button-label .text {
    line-height: 30px;
    font-size: 13px;
    user-select: none;
}
.button-lab .text {
    line-height: 30px;
    font-size: 13px;
    user-select: none;
}
.on {
    color: #333;
    display: none; 
    text-indent: 10px;
    font-size: 14px;
    margin-left: -30px;
    margin-top: -5px;
    color: #fff;
    color: #f9f9f9;
}
.off { 
    font-size: 14px;
    color: #333;
    display: inline-block;
    margin-left: 20px;
    margin-top: -5px;
    color: #e9e9e9;
}
.button-label .circle{
    left: 0;
    transition: all 0.3s;
}
.button-lab .circle{
    left: 0;
    transition: all 0.3s;
}
#toggle-button:checked + label.button-label .circle{
    left: 26px;
    user-select: none;
}
#toggle-button:checked + label.button-lab .circle{
    left: 26px;
    user-select: none;
}
#toggle-button:checked + label.button-label .on{ display: inline-block; }
#toggle-button:checked + label.button-lab .on{ display: inline-block; }
#toggle-button:checked + label.button-label .off{ display: none; }
#toggle-button:checked + label.button-lab .off{ display: none; }
#toggle-button:checked + label.button-label{
    background-color: #FF7007;
    user-select: none;
}
#toggle-button:checked + label.button-lab{
    background-color: #FF7007;
    user-select: none;
}


#toggle-button1:checked + label.button-label .circle{
    left: 26px;
}
#toggle-button1:checked + label.button-lab .circle{
    left: 26px;
}
#toggle-button1:checked + label.button-label .on{ display: inline-block; }
#toggle-button1:checked + label.button-lab .on{ display: inline-block; }
#toggle-button1:checked + label.button-label .off{ display: none; }
#toggle-button1:checked + label.button-lab .off{ display: none; }
#toggle-button1:checked + label.button-label{
    background-color: #FF7007;
}
#toggle-button1:checked + label.button-lab{
    background-color: #FF7007;
}

#toggle-button2:checked + label.button-label .circle{
    left: 26px;
}
#toggle-button2:checked + label.button-lab .circle{
    left: 20px;
    z-index: 1000;
}
#toggle-button2:checked + label.button-label .on{ display: inline-block; }
#toggle-button2:checked + label.button-lab .on{ display: inline-block; }
#toggle-button2:checked + label.button-label .off{ display: none; }
#toggle-button2:checked + label.button-lab .off{ display: none; }
#toggle-button2:checked + label.button-label{
    background-color: #FF7007;
}
#toggle-button2:checked + label.button-lab{
    background-color: #FF7007;
}


.on-part{
    margin-left: -10px;
}
.button-lab .off-part{
    margin-left: 24px;
}
.button-lab .on-part{
    margin-left: -5px;
}
.off-part{
    margin-left: 25px;
}