/* From Uiverse.io by adamgiebl — adapted to the store's green palette. */
.cyberpunk-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    flex: none;
    margin: 0;
    border: 2px solid var(--color-primary-700, #1ab069);
    border-radius: 5px;
    background-color: transparent;
    /* Suppress the check glyph @tailwindcss/forms would paint on <input>. */
    background-image: none;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s ease-in-out;
}

.cyberpunk-checkbox::before {
    content: "";
    background-color: var(--color-primary-700, #1ab069);
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 3px;
    transition: transform 0.3s ease-in-out;
}

/* Keep the box transparent when checked; neutralize any legacy fill/inset so
   only the inner square animates in (the model this replaces filled solid). */
.cyberpunk-checkbox:checked {
    background-color: transparent;
    box-shadow: none;
}

.cyberpunk-checkbox:checked::before {
    transform: translate(-50%, -50%) scale(1);
}

.cyberpunk-checkbox:focus-visible {
    outline: 2px solid var(--color-primary-700, #1ab069);
    outline-offset: 2px;
}

.cyberpunk-checkbox-label {
    /* Spacing is owned by the label's flex gap so it stays RTL-correct
       (the original hard-coded margin-right on the box does not). */
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
