/**
 * ============================================================================
 * MODIFICA PRENOTAZIONE - Stili pagina
 * ============================================================================
 * Questo file gestisce gli stili per la pagina "Modifica Prenotazione"
 * nel My Account di WooCommerce.
 */

/* ===== WRAPPER PRINCIPALE ===== */
.bg-modify-booking-wrapper {
  margin: 0 auto;
  }

.bg-modify-booking-wrapper h2 {
  color: #ff6b35;
  margin-bottom: 10px;
}

.bg-modify-intro {
  color: #aaa;
  font-size: 0.95em;
  margin-bottom: 20px;
}

/* ===== BOX BIGLIETTI - USA bg-cart.css ===== */
/* La pagina modifica ora usa il template condiviso del carrello (block-cart-tickets.php)
   con classi .bg-cart-* definite in bg-cart.css. Gli stili responsive sono in bg-smartphone.css */

/* Prezzo con sconto (barrato + scontato) - condiviso */
.bg-price-display {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.bg-price-original-strike {
  color: #888;
  font-size: 0.9em;
  opacity: 0.7;
  text-decoration: line-through;
  cursor: help;
  border-bottom: 1px dotted #666;
}

.bg-price-discounted {
  color: #ff6b35;
  font-weight: bold;
  cursor: help;
}

.bg-info-icon {
  font-size: 0.75em;
  margin-left: 3px;
  opacity: 0.7;
  vertical-align: super;
}

/* ===== SEZIONE SCONTI (separata dal box biglietti) ===== */
.bg-modify-discounts-wrapper {
  margin-top: 25px;
}

/* Promo code section - Stili in bg-discounts.css (.bg-promo-code-section) */

/* Pillola sconto gettoni nella pagina Modifica (più piccola e centrata) */
.bg-modify-discounts-wrapper .bg-tokens-discount-preview {
  align-items: center;
  background: #2d7a2d;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  gap: 4px;
  margin-top: 14px;
  padding: 4px 14px;
  font-size: 13px;
}

.bg-modify-discounts-wrapper .bg-tokens-section {
  text-align: center;
}

.bg-modify-discounts-wrapper .bg-tokens-discount-preview .bg-tokens-discount-label {
  opacity: 0.85;
}

.bg-modify-discounts-wrapper .bg-tokens-discount-preview .bg-tokens-discount-value {
  font-weight: 600;
}

/* Campi extra - USA TEMPLATE CONDIVISO block-extra-fields.php */
/* Stili per .bg-extra-fields-wrapper (identici al carrello) */
.bg-extra-fields-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.bg-extra-fields-wrapper .bg-extra-field {
  background: #373737;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  box-sizing: border-box;
  flex: 1;
  min-width: 250px;
  padding: 20px;
}

.bg-extra-fields-wrapper .bg-extra-field label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #ddd;
}

.bg-extra-fields-wrapper .bg-extra-field input[type="text"],
.bg-extra-fields-wrapper .bg-extra-field textarea {
  background-color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  box-sizing: border-box;
  color: #000;
  font-size: 16px;
  padding: 12px;
  width: 100%;
  max-width: 95%;
}

.bg-extra-fields-wrapper .bg-extra-field input[type="text"]:focus,
.bg-extra-fields-wrapper .bg-extra-field textarea:focus {
  border-color: #f19300;
  box-shadow: 0 0 5px rgba(241, 147, 0, 0.5);
  outline: none;
}

/* ===== BOX TOTALI - USA block-cart-total.php ===== */
/* La pagina modifica usa il template condiviso block-cart-total.php
   con classi .bg-cart-total-wrapper, .bg-totals-table, ecc. */

/* Stili specifici per tabella totali modifica */
.bg-totals-table-wrapper {
  margin-top: 20px;
  overflow-x: auto;
}

.bg-totals-table {
  width: 100%;
  border-collapse: collapse;
  background: #333;
  border-radius: 8px;
  overflow: hidden;
}

.bg-totals-table th,
.bg-totals-table td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-totals-table thead th {
  background: rgba(0, 0, 0, 0.3);
  color: #c4c4c5;
  font-size: 0.85em;
  text-transform: uppercase;
}

.bg-totals-table th:first-child {
  text-align: left;
}

.bg-totals-table tbody th {
  text-align: left;
  color: #fff;
  font-weight: 600;
}

.bg-totals-col-attuale-header {
  color: #888 !important;
}

.bg-totals-col-nuovo-header {
  color: #22b2ee !important;
}

.bg-totale-attuale {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  color: #888;
  font-size: 1.1em;
  font-weight: bold;
  padding: 6px 14px;
  display: inline-block;
}

.bg-totale-nuovo {
  background: rgba(34, 178, 238, 0.2);
  border-radius: 6px;
  color: #22b2ee;
  font-size: 1.2em;
  font-weight: bold;
  padding: 8px 16px;
  display: inline-block;
}

/* Pulsante conferma */
.bg-modify-actions {
  margin-top: 25px;
  text-align: center;
}

#bg_modify_submit {
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  padding: 15px 50px;
  text-transform: uppercase;
  transition: all 0.3s;
}

#bg_modify_submit:hover {
  background: linear-gradient(135deg, #e55a2b, #d14a1b);
  transform: translateY(-2px);
}

/* ===== MESSAGGIO PRENOTAZIONE ESISTENTE ===== */
.bg-existing-booking-notice {
  background: linear-gradient(135deg, #2d6a4f, #1b4332);
  border: 2px solid #40916c;
  border-radius: 8px;
  color: #d8f3dc;
  font-size: 1.1em;
  margin-bottom: 20px;
  padding: 20px 30px;
  text-align: center;
}

.bg-existing-booking-notice strong {
  color: #95d5b2;
  display: block;
  font-size: 1.4em;
  margin-bottom: 8px;
}

/* ===== BOX SCONTI - Gli stili sono in bg-loyalty.css e bg-cart.css (condivisi) ===== */
/* Non duplicare qui - usare le classi standard senza prefisso wrapper */

/* ===== RESPONSIVE ===== */
/* Media query spostata in bg-smartphone.css */
