.onoffswitch {
    float: left;
    top: 4px;
    position: relative; width: 40px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}

#priceModal .onoffswitch {
    top: 2px;
    margin-left: 15px;
    width: 50px;
}

.onoffswitch-checkbox {
    display: none;
}
.onoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 1px solid #cccccc; border-radius: 3px;
}
.onoffswitch-inner {
    display: block; width: 200%; margin-left: -100%; -webkit-transition: margin 0.3s ease-in 0s; transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before, .onoffswitch-inner:after {
    display: block; float: left; width: 50%; height: 22px; padding: 0; line-height: 20px;
    font-size: 9px; color: white; font-weight: bold; box-sizing: border-box;
}

.onoffswitch-inner:before {
    content: "ON";
    padding: 1px 0 0 6px;
    background-color: #0091FF; color: #FFFFFF;
}

#priceModal .onoffswitch-inner:before {
    padding: 1px 0 0 9px;
}

.onoffswitch-inner:after {
    content: "OFF";
    padding: 1px 6px 0 0;
    background-color: #EEEEEE; color: #909090;
    text-align: right;
}

#priceModal .onoffswitch-inner:after {
    padding: 1px 12px 0 0;
}

.onoffswitch-switch {
    display: block; width: 12px; margin: 0px;
    background: #FFFFFF;
    height: 24px;
    border: 1px solid #cccccc; border-radius: 3px;
    position: absolute; top: 0; bottom: 0; right: 28px; -webkit-transition: all 0.3s ease-in 0s; transition: all 0.3s ease-in 0s;
    background-image: -webkit-linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
    background-image: linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
}

#priceModal .onoffswitch-switch {
    right: 38px;
}

#priceModal .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0px;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0px; 
}