/* Prodotti "Su prenotazione": immagine statica + form in finestra */

/* Immagine al posto dell'animazione a frame: la zona di scroll resta quella standard
   (120vh), così wd-prenotazione.js fa crescere il cerchio come negli altri prodotti */
.wd-prenotazione-product #bottle-frame.wd-static-bottle {
    display: block;
    margin: 0 auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

/* Prezzo / pulsante */
.cpl-right-price .wd-trattativa {
    font-style: italic;
    letter-spacing: .02em;
}
/* Stesso stile del pulsante "Aggiungi al carrello" del negozio */
body .cpl-right-actions button.button.alt.wd-prenota-open,
body .wd-prenota-form button.button.alt.wd-prenota-submit {
    background: #4b2f21 !important;
    color: #fff !important;
    margin-bottom: 30px;
    border: 0 !important;
    border-radius: 200px !important;
    padding: 15px 24px !important;
    font-family: "Work Sans", sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    height: auto !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer;
    transition: opacity .2s ease;
}
body .cpl-right-actions button.button.alt.wd-prenota-open:hover,
body .wd-prenota-form button.button.alt.wd-prenota-submit:hover {
    opacity: .85;
}

/* Finestra */
.wd-prenota-modal[hidden] { display: none !important; }
.wd-prenota-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.wd-prenota-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}
.wd-prenota-dialog {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    color: #000;
    padding: 40px 36px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
body.wd-prenota-lock { overflow: hidden !important; }

.wd-prenota-x {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #000;
    padding: 4px 8px;
}
.wd-prenota-title {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 400;
    margin: 0 0 6px;
}
.wd-prenota-product {
    font-weight: 600;
    margin: 0 0 6px;
}
.wd-prenota-intro {
    font-size: 15px;
    margin: 0 0 22px;
}

.wd-prenota-form .wd-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.wd-prenota-form .wd-field { margin: 0 0 14px; padding: 0; }
.wd-prenota-form label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}
.wd-prenota-form input[type="text"],
.wd-prenota-form input[type="email"],
.wd-prenota-form input[type="tel"],
.wd-prenota-form input[type="number"],
.wd-prenota-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    background: #fff !important;
    padding: 10px 12px !important;
    font-size: 16px;
    color: #000;
}
.wd-prenota-form .wd-field-qty input { max-width: 120px; }
.wd-prenota-form .wd-invalid { border-color: #b00020 !important; }
.wd-prenota-form .wd-check label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.wd-prenota-form .wd-check input { margin-top: 4px; }
.wd-prenota-form .wd-check a { text-decoration: underline; }
.wd-prenota-form .wd-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
body .wd-prenota-form button.wd-prenota-submit[disabled] { opacity: .6; cursor: wait; }
.wd-prenota-feedback:empty { display: none; }
.wd-prenota-feedback {
    margin: 0 0 14px;
    padding: 10px 12px;
    font-size: 15px;
    border-left: 3px solid #b00020;
    background: #fbeef0;
}
.wd-prenota-feedback.is-ok {
    border-left-color: #1b7f3b;
    background: #edf7f0;
}
.wd-prenota-form .wd-note {
    font-size: 13px;
    margin: 6px 0 0;
    color: #555;
}
.wd-prenota-form.is-sent .wd-field,
.wd-prenota-form.is-sent .wd-row,
.wd-prenota-form.is-sent .wd-actions { display: none; }

@media (max-width: 600px) {
    .wd-prenota-dialog { padding: 36px 18px 20px; }
    .wd-prenota-form .wd-row { grid-template-columns: 1fr; }
    .wd-prenota-title { font-size: 22px; }
}
