.ppro-y26-c-checkbox {
    margin: 0;
    padding: 0;
    border: none;
}

.ppro-y26-c-checkbox__group {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
}

.ppro-y26-c-checkbox__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ppro-y26-c-checkbox__box {
    flex-shrink: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    border: 1px solid var(--ppro-foreground);
    border-radius: 0.125rem;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.ppro-y26-c-checkbox__check {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--ppro-color-white);
    opacity: 0;
    transform: scale(0.6);
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
    pointer-events: none;
}

.ppro-y26-c-checkbox__input:checked + .ppro-y26-c-checkbox__box {
    background: var(--ppro-foreground);
}

.ppro-y26-c-checkbox__input:checked + .ppro-y26-c-checkbox__box .ppro-y26-c-checkbox__check {
    opacity: 1;
    transform: scale(1);
}

.ppro-y26-c-checkbox__input:focus-visible + .ppro-y26-c-checkbox__box {
    outline: 2px solid var(--ppro-foreground);
    outline-offset: 2px;
}

.ppro-y26-c-checkbox__label {
    color: var(--ppro-foreground);
    font-family: var(--ppro-font-body);
    font-size: 0.875rem;
    line-height: 1.375rem;
}

.ppro-y26-c-checkbox__label a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.ppro-y26-c-checkbox__error {
    display: none;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.5rem;
    color: var(--ppro-color-signal-red);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.1rem;
}

.ppro-y26-c-checkbox__error::before {
    content: "";
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border: 2px solid var(--ppro-color-signal-red);
    border-radius: 50%;
}

.has-errors .ppro-y26-c-checkbox__box {
    border-color: var(--ppro-color-signal-red);
}

.has-errors .ppro-y26-c-checkbox__error {
    display: flex;
}
