/* =============================================================================
   Stoli Bomboniera — riquadro dei campi della targhetta — v4.12.0-stoli
   Stesso linguaggio dei campi account (stoli-account.css): campi da 48px ad angoli
   morbidi, etichette in Lora, focus oro. Selettori con html body e !important perché
   light.css colora input, legend e fieldset con !important.
   ============================================================================= */

html body .stoli-bmb {
    margin: 22px 0 0;
    padding: 20px 20px 6px;
    min-width: 0;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(138, 108, 78, .28);
    border-radius: 16px;
}
html body .stoli-bmb[hidden] {
    display: none;
}

html body .stoli-bmb legend.stoli-bmb__title {
    float: left;                       /* la legend dentro il bordo, non a cavallo */
    width: 100%;
    margin: 0 0 4px;
    padding: 0;
    border: 0;
    font-family: "Cinzel", serif !important;
    font-size: 13px !important;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #221b16 !important;
}
html body .stoli-bmb .stoli-bmb__intro {
    clear: both;
    margin: 0 0 14px;
    font-family: "Lora", serif;
    font-size: 15px;
    line-height: 1.55;
    color: #5a5047;
}

.stoli-bmb__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}
.stoli-bmb__row--wide {
    grid-column: 1 / -1;
}
html body .stoli-bmb .stoli-bmb__row {
    margin: 0 0 14px;
    padding: 0;
}

html body .stoli-bmb label {
    display: block;
    margin: 0 0 6px;
    font-family: "Lora", serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #2b2825 !important;
}

html body .stoli-bmb input.stoli-bmb__input {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    font-family: "Lora", serif !important;
    font-size: 16px !important;        /* niente zoom automatico su iPhone */
    letter-spacing: normal !important;
    text-transform: none !important;
    color: #221b16 !important;
    background: #fff !important;
    border: 1px solid #d9d3c9 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
html body .stoli-bmb input.stoli-bmb__input::placeholder {
    color: #8a8178;
    opacity: 1;
}
html body .stoli-bmb input.stoli-bmb__input:focus {
    border-color: #7a6247 !important;
    box-shadow: 0 0 0 3px rgba(122, 98, 71, .18) !important;
    outline: none !important;
}
html body .stoli-bmb input.stoli-bmb__input:user-invalid {
    border-color: #b3261e !important;
}

/* Scheda prodotto: il riquadro sta sopra quantità e bottone. */
.variations_form .stoli-bmb {
    width: 100%;
    margin-bottom: 18px;
}

/* Bomboniera scelta nella scheda prodotto: niente pagamento rapido (salterebbe i campi). */
body.stoli-bmb-on #wc-stripe-express-checkout-element,
body.stoli-bmb-on .wc-stripe-express-checkout-element,
body.stoli-bmb-on #wc-stripe-express-checkout-button-separator {
    display: none !important;
}

@media (max-width: 480px) {
    .stoli-bmb__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    html body .stoli-bmb {
        padding: 18px 16px 4px;
    }
}
