/* Shared checkbox treatment; registration page is the visual reference. */
.cmit-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    flex-shrink: 0;
    border: 1.5px solid var(--cmit-border);
    border-radius: 4px;
    background-color: var(--cmit-white);
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transition: background-color 0.22s ease, border-color 0.22s ease;
}

.cmit-checkbox:checked {
    background-color: var(--cmit-light-blue);
    border-color: var(--cmit-light-blue);
}

.cmit-checkbox:checked::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2L6.4 11.1L12.5 4.5' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75% 75%;
}

.cmit-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cmit-checkbox:focus-visible {
    outline: 2px solid var(--cmit-light-blue);
    outline-offset: 2px;
}
