.onoffbutton.wrapper input {
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance:none;
    appearance: none;
    background-color: #fafafa;
    border: 1px solid lightgray;
    border-radius: 26px;
    box-shadow: inset 0 0 0 1px lightgray;
    cursor: pointer;
    height: 28px;
    position: relative;
    transition: border .25s .15s, box-shadow .25s .3s, padding .25s;
    width: 44px;
    vertical-align: top;
}

.onoffbutton.wrapper input.checked {
    border-color: #53d76a;
    box-shadow: inset 0 0 0 13px #53d76a;
    padding-left: 18px;
    transition: border .25s, box-shadow .25s, padding .25s .15s;
}

.onoffbutton.wrapper input.checked:after {
    border-color: #53d76a;
    left: 16px;
    right: 0;
    transition: border .25s, left .15s .25s, right .25s .175s;
}

/* not checked */



.onoffbutton.wrapper input {
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance:none;
    appearance: none;
    background-color: #fafafa;
    border: 1px solid lightgray;
    border-radius: 26px;
    box-shadow: inset 0 0 0 1px lightgray;
    cursor: pointer;
    height: 28px;
    position: relative;
    transition: border .25s .15s, box-shadow .25s .3s, padding .25s;
    width: 44px;
    vertical-align: top;
}

.onoffbutton.wrapper input:after {
    background-color: white;
    border: 1px solid lightgray;
    border-radius: 24px;
    box-shadow: inset 0 -3px 3px rgba(0, 0, 0, 0.025), 0 1px 4px rgba(0, 0, 0, 0.15), 0 4px 4px rgba(0, 0, 0, 0.1);
    content: '';
    display: block;
    height: 24px;
    left: 0;
    position: absolute;
    right: 16px;
    top: 0;
    transition: border .25s .15s, left .25s .1s, right .15s .175s;
}

.onoffbutton.wrapper .label {
    display:inline-block!important;
    margin-left:5px;
}

.onoffbutton.wrapper .label > span {
    text-transform: uppercase;
    font-weight: 600;
    height: 28px;
    line-height:28px;
    vertical-align: middle;
}

.field.required .label > span:first-child::after {
    content: '*';
    color: #da370a;

}


