/*********************
 * Choice (Checkbox & Radio buttons)
**********************/
/* hide default input */
.bb-form-field.-checkbox-radio {position:absolute; opacity:0; width:0; pointer-events:none;}

/* label */
.bb-form-field.-checkbox-radio + label {
    padding-left:calc(var(--form-choice-size) + 6px); position:relative; cursor:pointer;
    display:inline-block; color:#666; font-size:14px;
}
.bb-form-field.-checkbox-radio + label a {color:#666 !important; text-decoration:none; font-weight:300;}

/* box */
.bb-form-field.-checkbox-radio + label:before {
    position:absolute; top:4px; left:0;
    content:""; display:inline-block;
    width:var(--form-choice-size); aspect-ratio:1;
    transition:all .3s ease;
    background:#eee;
    border-radius:var(--form-radius);
}

/* :hover:focus */
.bb-form-field.-checkbox-radio:focus + label:before,
.bb-form-field.-checkbox-radio:hover + label:before {background:#fff;}

/* :checked */
.bb-form-field.-checkbox-radio:checked + label:before {
    background:var(--form-choice-bg-active);
}

/* :checked:hover:focus */
.bb-form-field.-checkbox-radio:checked:hover + label:before,
.bb-form-field.-checkbox-radio:checked:focus + label:before {
    background:var(--form-choice-bg-active); border-color:var(--form-choice-bg-active);
}


/* checked icon */
.bb-form-field.-checkbox-radio + label:after {
    position:absolute; top:-1px; left:-3px; display:inline-block;
    content:"N"; font-family:ETmodules;
    font-size:13px; font-weight:600; color:#2ea3f2;
    transition:all .1s ease; transform:translateX(.4em);
}

/* :checked */
.bb-form-field.-checkbox-radio:not(:checked) + label:after {
    opacity:0;
}


/* error:not(:checked) */
.bb-form-field.-checkbox-radio.-error:not(:checked) + label,
.bb-form-field.-checkbox-radio.-error:not(:checked) + label a:not(:hover) {
    color:var(--form-color-error) !important;
}

/* a11y */
.bb-form-field.-checkbox-radio:focus-visible + label:before {
    box-shadow:0 0 0 1px #000;
}


/*********************************************
 * Checkbox
**********************************************/
.bb-form-field[type="checkbox"] + label {}


/*********************************************
 * Radio
**********************************************/
.bb-form-field[type="radio"] + label {--form-radius:50%;}
.bb-form-field[type="radio"] + label:after {
    content:""; width:6px; aspect-ratio:1;
    background:#000; border-radius:50%;
    top:10px; left:1px;
}