/* From: file://./../../../../../../../modules/system/assets/ui/less/checkbox.less */

.switch-field .disabled {
    opacity: .5;
    cursor: not-allowed;
    display: inline-block;
}
.switch-field .disabled * {
    cursor: inherit;
}
.switch-field .field-switch {
    padding-left: 85px;
    float: left;
}
.switch-field .field-switch > label {
    margin-top: 3px;
}
.custom-switch {
    display: block;
    width: 65px;
    height: 26px;
    position: relative;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}
.custom-switch .slide-button {
    z-index: - 1;
    display: block;
    position: absolute;
    right: 42px;
    top: 3px;
    width: 20px;
    height: 20px;
    background-color: #f6f6f6;
}
.custom-switch label, .custom-switch > span {
    line-height: 23px;
    vertical-align: middle;
}
.custom-switch label {
    z-index: - 2;
    width: 100%;
    display: block;
    position: relative;
}
.custom-switch input {
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0;
}
.custom-switch input:checked ~ .slide-button {
    right: 4px;
}
.custom-switch input:checked ~ span {
    background-color: #76A544;
}
.custom-switch input:checked ~ span span:first-of-type {
    color: #FFFFFF;
    display: block;
}
.custom-switch input:checked ~ span span:last-of-type {
    color: #666666;
    display: none;
}
.custom-switch input[disabled] ~ span {
    background-color: #666666 !important;
}
.custom-switch > span {
    display: block;
    height: 100%;
    position: absolute;
    left: 0;
    width: 100%;
    background-color: #BB2424;
    font-size: 12px;
    font-weight: 600;
}
.custom-switch > span span {
    z-index: 10;
    display: block;
    position: absolute;
    top: 2px;
    left: -1px;
}
.custom-switch > span span:last-child {
    left: 28px;
    color: #FFFFFF;
    display: block;
}
.custom-switch > span span:first-of-type {
    padding-left: 13px;
    display: none;
    color: #666666;
}
