﻿/* Customize the label (the ob__checkbox-container) */
.ob__checkbox-container {
    font-family: 'Ubuntu';
    font-weight: 400;
    display: flex;
    padding-left: 0px;
    margin-bottom: 12px;
    position: relative;
    cursor: pointer;
    gap: 6px;
    font-size: 16px;
    flex-direction: row-reverse;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    justify-content: left;
}

    /* Hide the browser's default checkbox */
    .ob__checkbox-container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    /* Create a custom checkbox */
    .ob__checkbox-container .checkmark {
        /* position: absolute; */
        height: 25px;
        width: 25px;
        background-color: transparent;
        border: 2px solid #D1D4D7;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* On mouse-over, add a grey background color */
    .ob__checkbox-container:hover input ~ .checkmark {
        background-color: transparent;
        border-color: #ADB0B2;
    }

    /* When the checkbox is checked, add a blue background */
    .ob__checkbox-container input:checked ~ .checkmark {
        background-color: #008F91;
        border: 2px solid #008F91;
    }

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.ob__checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.ob__checkbox-container .checkmark:after {
    width: 7px;
    height: 13px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    margin-bottom: 4px;
}


label.ob__checkbox-container input[type="checkbox"]:disabled ~ .checkmark {
    border: 2px solid #D1D4D7;
    opacity: 0.4;
    cursor: auto;
}

label.ob__checkbox-container.invalid span.checkmark {
    border-color: red;
}

label.ob__checkbox-container.invalid input:checked ~ span.checkmark {
    border-color: #008F91;
}

label.ob__checkbox-container.invalid:hover input:checked ~ span.checkmark {
    border-color: #004645;
}

label.ob__checkbox-container:hover input:checked ~ .checkmark {
    background: #004645;
    border: 2px solid #004645;
}
