/* ==========================================================
   FLUSSO PRENOTAZIONE — stile pubblico
   ========================================================== */

/* Recap fisso in alto (titolo + costo + persone sempre visibili) */
.booking-recap {
    background: linear-gradient(135deg, #0c2541 0%, #1a3a5e 100%);
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    max-width: 760px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(12, 37, 65, 0.15);
}
.recap-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.recap-title small {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 2px;
}
.recap-title strong {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}
.recap-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.recap-info > div {
    text-align: right;
}
.recap-info small {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 2px;
}
.recap-info strong {
    font-size: 15px;
    font-weight: 600;
}
.recap-total strong {
    font-size: 22px !important;
    color: #ffd166;
}

/* Stepper */
.booking-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 760px;
    margin: 0 auto 24px;
    padding: 0 8px;
    font-size: 13px;
    color: #94a3b8;
    flex-wrap: wrap;
}
.booking-stepper .step {
    display: flex;
    align-items: center;
    gap: 8px;
}
.booking-stepper .step + .step::before {
    content: "→";
    color: #cbd5e1;
    margin-right: 8px;
}
.booking-stepper .step span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}
.booking-stepper .step.active {
    color: #0c2541;
    font-weight: 600;
}
.booking-stepper .step.active span {
    background: #2e7dd1;
    color: #fff;
}

/* Wrapper */
.booking-wrap {
    max-width: 760px;
    margin: 0 auto;
}

/* Box generico */
.booking-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
}
.booking-box h2 {
    font-size: 17px;
    font-weight: 600;
    color: #0c2541;
    margin: 0 0 16px;
}

/* Form fields */
.booking-box .field {
    margin-bottom: 16px;
}
.booking-box .field:last-child { margin-bottom: 0; }
.booking-box label {
    display: block;
    font-weight: 500;
    color: #1a2332;
    font-size: 14px;
    margin-bottom: 6px;
}
.booking-box input[type="text"],
.booking-box input[type="email"],
.booking-box input[type="tel"],
.booking-box input[type="number"],
.booking-box input[type="date"],
.booking-box select,
.booking-box textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}
.booking-box input:focus,
.booking-box select:focus,
.booking-box textarea:focus {
    outline: none;
    border-color: #2e7dd1;
    box-shadow: 0 0 0 3px rgba(46, 125, 209, 0.15);
}
.booking-box .field-hint {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}
.booking-box .form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.booking-box .form-row .field {
    flex: 1;
    min-width: 200px;
}

/* Persone (qty controls) */
.people-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.people-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.people-row strong {
    display: block;
    color: #0c2541;
    font-size: 14px;
}
.people-row small {
    color: #64748b;
    font-size: 12px;
}
.qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}
.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0c2541;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover { background: #f0f6fc; }
.qty-controls input[type="number"] {
    width: 50px !important;
    text-align: center;
    padding: 6px 4px !important;
    -moz-appearance: textfield;
}
.qty-controls input[type="number"]::-webkit-inner-spin-button,
.qty-controls input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Extra */
.extras-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.extra-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fafbfc;
    overflow: hidden;
}
.extra-item label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    margin: 0 !important;
    font-weight: normal !important;
}
.extra-item input[type="checkbox"] {
    width: 18px; height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}
.extra-text {
    flex: 1;
}
.extra-text strong {
    display: block;
    color: #0c2541;
    font-size: 14px;
}
.extra-text small {
    color: #64748b;
    font-size: 12px;
}
.extra-cost {
    font-weight: 600;
    color: #2e7dd1;
    white-space: nowrap;
    font-size: 14px;
}
.extra-cost span {
    font-weight: 400;
    color: #64748b;
    font-size: 12px;
}
.extra-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
}

/* Riepilogo live */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.summary-table td {
    padding: 8px 4px;
    border-bottom: 1px solid #f1f5f9;
}
.summary-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.summary-table tfoot td {
    border-top: 2px solid #0c2541;
    border-bottom: none;
    padding-top: 14px;
    font-size: 18px;
    color: #0c2541;
    font-weight: 700;
}

/* Pagamenti */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.payment-option {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    margin: 0 !important;
    font-weight: normal !important;
}
.payment-option:hover {
    background: #f0f6fc;
    border-color: #c8d8eb;
}
.payment-option input[type="radio"] {
    width: 18px; height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}
.payment-option:has(input:checked) {
    background: #f0f6fc;
    border-color: #2e7dd1;
    border-width: 2px;
    padding: 13px 15px;
}
.payment-option div {
    flex: 1;
}
.payment-option strong {
    display: block;
    color: #0c2541;
    font-size: 14px;
}
.payment-option small {
    color: #64748b;
    font-size: 12px;
}
.payment-amount {
    font-weight: 700;
    font-size: 16px;
    color: #0c2541;
}

/* Checkbox termini */
.check-line {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-weight: normal !important;
    margin-bottom: 0 !important;
}
.check-line input[type="checkbox"] {
    width: 18px; height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}
.check-line span {
    font-size: 14px;
    line-height: 1.5;
    color: #1a2332;
}
.check-line a {
    color: #2e7dd1;
    text-decoration: underline;
}

/* Azioni */
.booking-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 8px;
}
.booking-actions .btn-block {
    flex: 1;
    justify-content: center;
}

/* Conferma */
.conferma-wrap {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
}
.conferma-icon { margin-bottom: 16px; }
.big-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}
.big-tick-info {
    background: #fef3c7;
    color: #d97706;
}
.conferma-wrap h1 {
    font-size: 24px;
    color: #0c2541;
    margin: 0 0 12px;
}
.conferma-codice {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 4px;
}
.conferma-codice strong {
    color: #0c2541;
    font-size: 18px;
    font-family: ui-monospace, monospace;
    letter-spacing: 1px;
}
.conferma-msg {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 16px 0 24px;
}
.conferma-recap {
    background: #fafbfc;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}
.conferma-recap h3 {
    font-size: 16px;
    color: #0c2541;
    margin: 0 0 12px;
    text-align: center;
}
.recap-rows {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.recap-rows > div small {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 2px;
}
.recap-rows > div strong {
    color: #0c2541;
    font-size: 14px;
}

/* Bonifico */
.conferma-bonifico {
    background: #f0f6fc;
    border-left: 4px solid #2e7dd1;
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
    text-align: left;
}
.conferma-bonifico h3 {
    color: #0c2541;
    font-size: 15px;
    margin: 0 0 8px;
}
.conferma-bonifico p {
    color: #64748b;
    font-size: 13px;
    margin: 0 0 12px;
}
.bonifico-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-family: ui-monospace, monospace;
}
.bonifico-table td {
    padding: 6px 0;
}
.bonifico-table td:first-child {
    color: #64748b;
    width: 130px;
    padding-right: 12px;
}
.bonifico-table strong { color: #0c2541; }

.conferma-actions {
    margin-top: 24px;
}

/* ==========================================================
   MODULO 6 — Avvisi posti disponibili
   ========================================================== */

.posti-warning {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}
.posti-warning-error {
    background: #fee2e2;
    border-left: 4px solid #dc2626;
    color: #7f1d1d;
}
.posti-warning-error strong { color: #7f1d1d; }
.posti-warning-info {
    background: #fef3c7;
    border-left: 4px solid #d97706;
    color: #78350f;
}
.posti-warning-info strong { color: #78350f; }

/* ==========================================================
   PATCH v1.6.2 — Extra nel riepilogo conferma
   ========================================================== */

.recap-persone-dettaglio {
    margin: 12px 0 0;
    color: var(--text-muted, #64748b);
    font-size: 14px;
    text-align: center;
}

.recap-section-title {
    margin: 20px 0 10px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy, #1e293b);
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.recap-extra-table {
    width: 100%;
    border-collapse: collapse;
}
.recap-extra-table td {
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14px;
}
.recap-extra-table tr:last-child td {
    border-bottom: none;
}
.recap-extra-table td:first-child {
    text-align: left;
    color: #334155;
}
.recap-extra-prezzo {
    text-align: right;
    font-weight: 600;
    color: var(--navy, #1e293b);
    white-space: nowrap;
}
.recap-extra-qty {
    color: #94a3b8;
    font-weight: normal;
    margin-left: 6px;
    font-size: 13px;
}
.recap-extra-gratis {
    color: #16a34a;
    font-style: italic;
    font-weight: 500;
}

/* ==========================================================
   PATCH v1.7.0 — CARRELLO MULTI-PRENOTAZIONE
   ========================================================== */

/* Bottone "aggiungi al carrello" sotto al "Continua" in step 1 */
.cart-status-bar {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #1e3a8a;
}
.cart-status-bar a {
    margin-left: 8px;
    font-weight: 600;
    color: #1e3a8a;
    text-decoration: underline;
}

.btn-add-cart {
    margin-top: 8px;
    background: white;
    color: var(--navy, #0c2541);
    border: 2px solid var(--navy, #0c2541);
}
.btn-add-cart:hover:not(:disabled) {
    background: #f0f4f8;
}
.btn-add-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-action-hint {
    text-align: center;
    color: var(--text-muted, #64748b);
    font-size: 13px;
    margin: 8px 0 0;
}

/* ===== Pagina /prenota.php?step=carrello ===== */

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.cart-empty h1 {
    margin: 0 0 8px;
    color: var(--navy, #0c2541);
}
.cart-empty p {
    color: var(--text-muted, #64748b);
    margin: 0 0 16px;
}

.cart-items {
    margin-bottom: 16px;
}

.cart-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 10px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.cart-item-main {
    flex: 1;
    min-width: 0;
}
.cart-item-title {
    margin: 0 0 6px;
    font-size: 17px;
    color: var(--navy, #0c2541);
}
.cart-item-title a {
    color: inherit;
    text-decoration: none;
}
.cart-item-title a:hover {
    text-decoration: underline;
}
.cart-item-meta {
    margin: 0;
    font-size: 14px;
    color: #334155;
}
.cart-item-extras {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--text-muted, #64748b);
}

.cart-item-actions {
    text-align: right;
    flex-shrink: 0;
    min-width: 120px;
}
.cart-item-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent, #f5a623);
    margin-bottom: 4px;
}
.btn-remove-cart {
    background: transparent;
    border: none;
    color: #dc2626;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
}
.btn-remove-cart:hover {
    color: #991b1b;
}

.cart-summary {
    background: #f8fafc;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #cbd5e1;
}
.cart-summary-row:last-of-type { border-bottom: none; }
.cart-summary-total {
    font-size: 18px;
    padding-top: 12px;
}
.cart-summary-total strong {
    color: var(--accent, #f5a623);
    font-size: 22px;
}
.cart-summary-hint {
    margin: 12px 0 0;
    color: var(--text-muted, #64748b);
    font-size: 13px;
}
.cart-summary-hint small {
    display: block;
    margin-top: 6px;
}

.cart-bottom-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.btn-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* ===== Pagina /prenota.php?step=checkout ===== */

.checkout-cart-table {
    width: 100%;
    border-collapse: collapse;
}
.checkout-cart-table td {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}
.checkout-cart-table tr:last-child td {
    border-bottom: none;
}
.checkout-cart-table .num {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}
.checkout-cart-table small {
    color: var(--text-muted, #64748b);
}
.checkout-edit-cart {
    margin: 12px 0 0;
    font-size: 14px;
    text-align: right;
}
.checkout-edit-cart a {
    color: var(--navy, #0c2541);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.payment-radio {
    display: flex !important;
    gap: 10px;
    padding: 14px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    align-items: flex-start;
    margin: 0 !important;
}
.payment-radio:hover {
    background: #f8fafc;
}
.payment-radio:has(input:checked) {
    border-color: var(--accent, #f5a623);
    background: #fffbeb;
}
.payment-radio input[type="radio"] {
    margin-top: 4px;
    flex-shrink: 0;
}
.payment-radio-body {
    flex: 1;
    min-width: 0;
}
.payment-radio-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}
.payment-radio-label strong {
    color: var(--navy, #0c2541);
}
.payment-radio-prezzo {
    color: var(--accent, #f5a623);
    font-weight: 700;
    font-size: 16px;
}
.payment-radio-body small {
    display: block;
    color: var(--text-muted, #64748b);
    font-size: 13px;
}

.checkout-final-total {
    background: #fffbeb !important;
    border: 2px solid var(--accent, #f5a623);
}
.checkout-final-total .summary-totale td {
    font-size: 20px;
    padding-top: 14px;
    border-top: 2px solid var(--accent, #f5a623);
}
.checkout-final-total .summary-totale strong {
    color: var(--accent, #f5a623);
    font-size: 24px;
}

.btn-large {
    padding: 14px 24px;
    font-size: 18px;
}

/* Step indicator visual */
.booking-steps .step.current {
    font-weight: 700;
}

/* ===== Pagina conferma: blocco carrello ===== */
.conferma-carrello {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 16px 18px;
    border-radius: 6px;
    margin: 20px 0;
}
.conferma-carrello h3 {
    margin: 0 0 8px;
    color: #1e3a8a;
    font-size: 16px;
}
.carrello-altre {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}
.carrello-altre li {
    padding: 8px 0;
    border-bottom: 1px dashed #cbd5e1;
    font-size: 14px;
}
.carrello-altre li:last-child {
    border-bottom: none;
}
.carrello-altre a {
    margin-left: 8px;
    color: #1e3a8a;
    font-size: 13px;
}
.carrello-totale-globale {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 2px solid #93c5fd;
    color: #1e3a8a;
}
.carrello-totale-globale small {
    color: #64748b;
    margin-left: 8px;
}

/* ==========================================================
   PATCH v1.7.1 — Carrello layout uniforme
   ========================================================== */

/* Container largo coerente col resto del sito */
.container-narrow {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 16px 32px;
}

/* === Lista articoli (usata in carrello + checkout + conferma) === */
.cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cart-list-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}
.cart-list-item:last-child {
    border-bottom: none;
}
.cart-list-main {
    flex: 1;
    min-width: 0;
}
.cart-list-title {
    margin: 0 0 6px;
    font-size: 17px;
    color: var(--navy, #0c2541);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cart-list-title a {
    color: inherit;
    text-decoration: none;
}
.cart-list-title a:hover {
    text-decoration: underline;
}
.cart-list-meta {
    margin: 0;
    font-size: 14px;
    color: #334155;
}
.cart-list-codice {
    margin: 6px 0 0;
    font-size: 13px;
    color: #64748b;
}
.cart-list-codice strong {
    font-family: 'Courier New', monospace;
    color: var(--navy, #0c2541);
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}
.cart-list-extras {
    margin: 6px 0 0;
    font-size: 13px;
    color: #64748b;
}
.cart-list-side {
    flex-shrink: 0;
    text-align: right;
    min-width: 120px;
}
.cart-list-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent, #f5a623);
}
.btn-remove-cart {
    background: transparent;
    border: none;
    color: #dc2626;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    margin-top: 6px;
}
.btn-remove-cart:hover {
    color: #991b1b;
}

/* Variante compatta (checkout) */
.cart-list-compact .cart-list-item {
    padding: 12px 0;
}
.cart-list-compact .cart-list-title {
    font-size: 15px;
}
.cart-list-compact .cart-list-meta {
    font-size: 13px;
}

/* Variante conferma con highlight della prenotazione corrente */
.cart-list-confirm .cart-list-current {
    background: #fffbeb;
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 6px;
    border-bottom-color: transparent;
}
.badge-current {
    background: var(--accent, #f5a623);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-list-totale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0;
    margin-top: 8px;
    border-top: 2px solid #e2e8f0;
    font-size: 18px;
}
.cart-list-totale strong {
    color: var(--accent, #f5a623);
    font-size: 22px;
}
.cart-list-hint {
    margin: 12px 0 0;
    color: var(--text-muted, #64748b);
    font-size: 13px;
}
.cart-list-hint small {
    display: block;
    margin-top: 6px;
}

/* Action buttons (bottom carrello/checkout) */
.cart-bottom-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 16px;
}
.cart-bottom-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* Header carrello in conferma */
.recap-carrello-header {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    color: #1e3a8a;
    font-size: 15px;
}
.recap-carrello-header small {
    color: #475569;
    margin-left: 6px;
}

/* Disabled btn */
.btn-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* ==========================================================
   PATCH v1.9.0 — Formulario richiesta su data alternativa
   ========================================================== */

.booking-richiesta .richiesta-intro {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}
.booking-richiesta .richiesta-intro strong {
    color: var(--navy, #0c2541);
}

/* ==========================================================
   PATCH v1.10.0 — Codici sconto carrello
   ========================================================== */

/* Box "Hai un codice sconto?" */
.cart-codice-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 16px 18px;
    margin: 16px 0 8px;
}
.cart-codice-box h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #1e293b;
}
.cart-codice-hint {
    margin: 0 0 10px;
    font-size: 13px;
    color: #64748b;
}
.cart-codice-input {
    display: flex;
    gap: 8px;
}
.cart-codice-input input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    text-transform: uppercase;
}
.cart-codice-input input:focus {
    outline: none;
    border-color: var(--accent, #f5a623);
}
.cart-codice-input button {
    white-space: nowrap;
}

/* Feedback dell'applicazione codice */
.codice-feedback {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}
.codice-feedback-success {
    background: #dcfce7;
    color: #15803d;
    border-left: 3px solid #15803d;
}
.codice-feedback-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 3px solid #991b1b;
}

/* Codice già applicato */
.cart-sconto-applicato {
    background: #f3e8ff;
    border-left: 4px solid #7c3aed;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.cart-sconto-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.cart-sconto-icon {
    font-size: 22px;
    flex-shrink: 0;
}
.cart-sconto-info strong {
    display: block;
    color: #5b21b6;
    font-size: 14px;
}
.cart-sconto-info code {
    background: #ede9fe;
    color: #5b21b6;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
}
.cart-sconto-info small {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}
.cart-sconto-azioni {
    text-align: right;
    flex-shrink: 0;
}
.cart-sconto-importo {
    display: block;
    font-weight: 700;
    color: #7c3aed;
    font-size: 18px;
}
.btn-link-danger {
    background: transparent;
    border: none;
    color: #dc2626;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    margin-top: 2px;
}
.btn-link-danger:hover {
    color: #991b1b;
}

.cart-totale-finale strong {
    color: #047857 !important;
    font-size: 24px !important;
}

/* Riga sconto nel checkout */
.summary-table .summary-sconto td {
    color: #7c3aed;
    padding: 4px 0;
}
.summary-table .summary-sconto small {
    color: #64748b;
}
.checkout-codice-info {
    margin: 8px 0 0;
    text-align: right;
}
.checkout-codice-info a {
    color: #64748b;
    text-decoration: underline;
    font-size: 12px;
}

/* ==========================================================
   PATCH v1.10.2 — Codice sconto su singola + dettaglio per riga
   ========================================================== */

/* Prezzo originale barrato + tag sconto per articolo */
.cart-list-price-original {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}
.cart-list-sconto-tag {
    display: inline-block;
    background: #f3e8ff;
    color: #7c3aed;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    margin-top: 4px;
}

/* Info codice sconto nella pagina conferma */
.recap-sconto-info {
    background: #faf5ff;
    border-left: 3px solid #7c3aed;
    color: #5b21b6;
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
}
.recap-sconto-info code {
    background: #ede9fe;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: monospace;
}
