.ba-checkbox {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    white-space: nowrap;
}

    /* Hide the browser's default checkbox */
    .ba-checkbox input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

/* Create a custom checkbox */
.ba-checkbox-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    border-radius: 5px;
}
.light [data-ba-input-disabled].ba-checkbox input:checked ~ .ba-checkbox-checkmark,
.dark [data-ba-input-disabled].ba-checkbox input:checked ~ .ba-checkbox-checkmark,
.dark [data-ba-input-disabled] .ba-checkbox-checkmark,
.light [data-ba-input-disabled] .ba-checkbox-checkmark {
    background-color: #aeaeae !important;
}

[data-ba-input-disabled].ba-checkbox {
    cursor: default;
}


[dir=rtl] .ba-checkbox-checkmark {
    right: 0;
}

[dir=rtl] .ba-checkbox {
    padding-left: unset;
    padding-right: 35px;
}


.dark .ba-checkbox-checkmark {
    background-color: #333333;
    border: 1px solid #5b5b5b;
}


.light .ba-checkbox-checkmark {
    background-color: #ffffff;
    border: 1px solid #c7c7c7;
}

/* On mouse-over, add a grey background color */
.dark .ba-checkbox:hover input ~ .ba-checkbox-checkmark {
    background-color: #3C3C3C;
}

/* On mouse-over, add a grey background color */
.light .ba-checkbox:hover input ~ .ba-checkbox-checkmark {
    background-color: #F8F9F9;
}

/* When the checkbox is checked, add a blue background */
.dark .ba-checkbox input:checked ~ .ba-checkbox-checkmark {
    background-color: #039BE5;
}

.light .ba-checkbox input:checked ~ .ba-checkbox-checkmark {
    background-color: #039BE5;
}


/* Create the checkmark/indicator (hidden when not checked) */
.ba-checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the ba-checkbox-checkmark when checked */
.ba-checkbox input:checked ~ .ba-checkbox-checkmark:after {
    display: block;
}

/* Style the ba-checkbox-checkmark/indicator */
.ba-checkbox .ba-checkbox-checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
