.onoffswitch1 {
    position: relative;
    width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: inline-block;
}

.onoffswitch1-checkbox {
    display: none;
}

.onoffswitch1-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border: 0px solid #999999;
    border-radius: 0px;
}

.onoffswitch1-inner {
    width: 200%;
    margin-left: -100%;
    -moz-transition: margin 0.3s ease-in 0s;
    -webkit-transition: margin 0.3s ease-in 0s;
    -o-transition: margin 0.3s ease-in 0s;
    transition: margin 0.3s ease-in 0s;
}

.onoffswitch1-inner>div {
    float: left;
    position: relative;
    width: 50%;
    height: 30px;
    padding: 0;
    line-height: 30px;
    font-size: 14px;
    color: white;
    font-family: Trebuchet, Arial, sans-serif;
    font-weight: bold;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.onoffswitch1-inner .onoffswitch-active {
    padding-left: 60px;
    background-color: #C2C2C2;
    color: #FFFFFF;
}

.onoffswitch1-inner .onoffswitch1-inactive {
    padding-right: 60px;
    background-color: #C2C2C2;
    color: #FFFFFF;
    text-align: right;
}

.onoffswitch1-switch {
    width: 50%;
    margin: 0px;
    text-align: center;
    border: 0px solid #999999;
    border-radius: 0px;
    position: absolute;
    top: 0;
    bottom: 0;
}

.onoffswitch1-active .onoffswitch1-switch {
    background: #5cb85c;
    left: 0;
}

.onoffswitch1-inactive .onoffswitch1-switch {
    background: #A1A1A1;
    right: 0;
}

.onoffswitch1-active .onoffswitch1-switch:before {
    content: " ";
    position: absolute;
    top: 0;
    left: 100%;
    border-style: solid;
    border-color: #5cb85c transparent transparent #5cb85c;
    border-width: 15px 10px;
}

.onoffswitch1-inactive .onoffswitch1-switch:before {
    content: " ";
    position: absolute;
    top: 0;
    right: 100%;
    border-style: solid;
    border-color: transparent #A1A1A1 #A1A1A1 transparent;
    border-width: 15px 10px;
}

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