/* A visible check is part of the state, not just a change of fill color.
   Leave switches, hidden controls and native high-contrast mode intact. */
html body input[type="checkbox"]:not([role="switch"]):not(.form-switch input) {
    appearance: none;
    -webkit-appearance: none;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    min-height: 24px;
    flex-shrink: 0;
    vertical-align: middle;
    border: 2px solid #65758b !important;
    border-radius: 5px !important;
    background: #fff !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 20px 20px !important;
    box-shadow: none;
    cursor: pointer;
}
html body input[type="checkbox"]:not([role="switch"]):not(.form-switch input):checked {
    background-color: #0861c5 !important;
    border-color: #0861c5 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4.5 4.5L19 7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
html body input[type="checkbox"]:not([role="switch"]):not(.form-switch input):indeterminate {
    background-color: #0861c5 !important;
    border-color: #0861c5 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}
html body input[type="checkbox"]:not([role="switch"]):not(.form-switch input)::after {
    content: none !important;
}
html body input[type="checkbox"]:focus-visible {
    outline: 3px solid #79b4ff !important;
    outline-offset: 3px;
}
html body input[type="checkbox"]:disabled { opacity: .55; cursor: not-allowed; }
html body input[type="checkbox"][aria-invalid="true"] {
    border-color: #b42318 !important;
}
html body .form-check-label,
html body .custom-checkbox-label {
    color: var(--afs-text, #1c3553) !important;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
}
html body .afs-checkbox-error {
    display: block;
    flex-basis: 100%;
    width: 100%;
    margin: .4rem 0 .2rem;
    color: #b42318 !important;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
html body .afs-consent-required {color:#b42318!important;font-size:.9rem;line-height:1.5}
html body .afs-consent-required[hidden] {display:none!important}
html body .custom-checkbox-container {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: .2rem .65rem;
    padding: .75rem;
}
html body .custom-checkbox-container input[type="checkbox"] {
    margin: 0 !important;
    float: none;
    grid-column: 1;
    grid-row: 1;
}
html body .custom-checkbox-container .custom-checkbox-label {
    display: block;
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
}
html body .custom-checkbox-container .afs-checkbox-error { grid-column: 2; }
@media (forced-colors: active) {
    html body input[type="checkbox"]:not([role="switch"]):not(.form-switch input) {
        appearance: auto;
        -webkit-appearance: auto;
        background-image: none !important;
        forced-color-adjust: auto;
    }
}
