﻿
/* Base for label styling */
.custom-checkbox2 [type="checkbox"]:not(:checked),
.custom-checkbox2 [type="checkbox"]:checked {
    position: absolute;
    left: -9999px;
}

    .custom-checkbox2 [type="checkbox"]:not(:checked) + label,
    .custom-checkbox2 [type="checkbox"]:checked + label {
        position: relative;
        padding: 3px 5px;
        cursor: pointer;
        font-weight: normal;
        background-color: #f5f9fc;
        border-radius: 4px;
        color: #042825;
    }

    .custom-checkbox2 [type="checkbox"]:checked + label {
        background-color: #901616;
        color: #ffffff;
    }

/* Base for label styling */
.custom-checkbox [type="checkbox"]:not(:checked),
.custom-checkbox [type="checkbox"]:checked {
    position: absolute;
    left: -9999px;
}

    .custom-checkbox [type="checkbox"]:not(:checked) + label,
    .custom-checkbox [type="checkbox"]:checked + label {
        position: relative;
        padding: 3px;
        cursor: pointer;
        border-radius: 4px;
        margin: 0 10px 35px 10px;
        font-size: 0.9rem;
        color: transparent;
        background-color: var(--bg-color);
        height: 28px;
        width: 28px;
    }

    .custom-checkbox [type="checkbox"]:checked + label {
        border: 2px solid #901616;
        box-shadow: 0 0 3px 1px var(--bg-color);
    }

        .custom-checkbox [type="checkbox"]:checked + label:before {
            color: #fff;
            content: '✔';
            position: relative;
            left: 3px;
            top: -1px;
            text-shadow: 0 0 3px #808080;
        }

.custom-checkbox td span {
    border-radius: 4px;
    position: relative;
}

    .custom-checkbox td span:before {
        content: var(--cb-label);
        position: absolute;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.7rem;
    }



/* Base for label styling */
.custom-radio [type="radio"]:not(:checked),
.custom-radio [type="radio"]:checked {
    position: absolute;
    left: -9999px;
}

    .custom-radio [type="radio"]:not(:checked) + label,
    .custom-radio [type="radio"]:checked + label {
        position: relative;
        padding: 3px;
        cursor: pointer;
        border-radius: 4px;
        margin-left: 2px;
        font-size: 0.9rem;
    }

    .custom-radio [type="radio"]:not(:checked) + label,
    .custom-radio [type="radio"]:checked + label {
        color: #67148a;
    }

    .custom-radio [type="radio"]:checked + label {
        font-weight: bold;
        color: #901616;
    }

        .custom-radio [type="radio"]:checked + label:before {
            color: #4cff00;
            content: '✔ ';
            position: relative;
            left: 0;
            top: 0;
        }
