.has-switch {
    /*  main label */
    line-height: 26px;
    vertical-align: top;
}

/* BS4 only */
.has-switch.col-form-label {
    padding-top: 0 !important;
}

.has-switch ~ div label,
.has-switch ~ div div {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.has-switch ~ div .form-check:not(.form-check-inline) {
    margin-bottom: 0.75em;
}

.has-switch ~ div label:not(:last-child),
.lcs_wrap ~ label:not(:last-child) {
    margin-right: 2em;
}

.lcs_main_wrap {
    display: inline-block;
    position: relative;
    min-width: 100px;
    padding-right: 20px;
    margin-bottom: 1rem;
}
.form-horizontal .lcs_label_wrap {
    padding-top: 7px;
}

.lcs_main_wrap > .lcs_wrap {
    margin-top: 0;
    min-width: 100px;
}

.material-form .lcs_wrap [type='checkbox']:checked,
.material-form .lcs_wrap [type='checkbox']:not(:checked) {
    display: none;
}

/* switch WITHOUT column
-------------------------------------------------- */

/* main label */
.material-form .main-label.has-switch {
    transform: none;
    margin-bottom: 0;
}

.material-form .main-label.has-switch:not(.col) ~ .input-field {
    margin-top: 0.5rem;
    padding-top: 0;
}

.material-form .input-field:not(.col) > label.lcs_label_wrap {
    display: inline-block;
    position: static;
    /*padding-top: 2rem;*/
    padding-bottom: 1rem;
    padding-right: 1rem;
}

/* switch WITH column
-------------------------------------------------- */

/* main label */
.material-form .main-label.col.has-switch {
    transform: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.material-form .main-label.col ~ .input-field {
    padding-top: 0.5rem;
}

.material-form .input-field > .main-label.has-switch {
    padding-left: 0;
}

/* switch */
.material-form .main-label ~ .input-field label.lcs_label_wrap {
    position: static;
    transform: none;
    transition: none;
    padding-top: 0;
    padding-bottom: 0;
}

.material-form label.lcs_label_wrap {
    display: inline-block;
}

.material-form label.lcs_label_wrap .lcs_wrap {
    margin-top: 0;
    margin-bottom: 1rem;
}

.lcs_wrap {
    display: inline-block;
    direction: ltr;
    height: 28px;
    vertical-align: middle;
    margin-right: 0.5em;
}
.lcs_wrap ~ label {
    display: inline-block;
}
.lcs_wrap input {
    display: none;
}

.lcs_switch {
    display: inline-block;
    position: relative;
    width: 73px;
    height: 28px;
    border-radius: 30px;
    background: #ddd;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.lcs_cursor {
    display: inline-block;
    position: absolute;
    top: 3px;
    width: 22px;
    height: 22px;
    border-radius: 100%;
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s linear;
}
.lcs_label {
    font-family: 'Trebuchet MS', Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 18px;
    color: #fff;
    font-weight: bold;
    position: absolute;
    width: 33px;
    top: 5px;
    overflow: hidden;
    text-align: center;
    opacity: 0;
    transition: all 0.2s ease-in-out 0.1s;
}
.lcs_label.lcs_label_on {
    left: -70px;
    z-index: 6;
}
.lcs_label.lcs_label_off {
    right: -70px;
    z-index: 5;
}

/* on */
.lcs_switch.lcs_on {
    background: #75b936;
    box-shadow: 0 0 2px #579022 inset;
}
.lcs_switch.lcs_on .lcs_cursor {
    left: 48px;
}
.lcs_switch.lcs_on .lcs_label_on {
    left: 10px;
    opacity: 1;
}

/* off */
.lcs_switch.lcs_off {
    background: #b2b2b2;
    box-shadow: 0px 0px 2px #a4a4a4 inset;
}
.lcs_switch.lcs_off .lcs_cursor {
    left: 3px;
}
.lcs_switch.lcs_off .lcs_label_off {
    right: 10px;
    opacity: 1;
}

/* disabled */
.lcs_switch.lcs_disabled {
    opacity: 0.65;
    filter: alpha(opacity=65);
    cursor: default;
}
