/* ============================
   25. CARRELLO E CHECKOUT
   ============================ */
   
/* Contenitore principale del carrello - migliorato per desktop */
.bg_cart_wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #222222;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Contenitori principali */
.bg_cart, .bg-after-cart, .bg-payment-form {
    margin: 0px auto;
    padding: 0 20px;
}

/* ============================
   TABELLA DEL CARRELLO
   ============================ */

/* Tabella principale */
.bg_cart table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}

/* Celle della tabella */
.bg_cart td {
    vertical-align: middle;
    padding: 15px;
    border-bottom: 1px solid #444;
}

/* Intestazioni colonne */
.bg_cart th {
    line-height: 1.5;
    font-weight: 700;
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid #444;
}

/* Intestazioni di riga */
.bg_cart th[scope="row"] {
    text-align: left;
}

/* Date e orari */
.bg_cart th .bg-datetime {
    font-weight: 400;
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #aaa;
}

/* Immagini nei biglietti */
.bg_cart .wp-post-image {
    float: left;
    margin-right: 15px;
    border-radius: 4px;
    max-width: 80px;
}

/* Righe rimosse (non visibili) */
.bg_cart tr.removed {
    display: none;
}

/* Miglioramento struttura info extra */
.info_extra {
    display: flex;
    column-gap: 20px;
    flex-wrap: nowrap;
    margin: 20px 0;
    width: 100%;
    align-items: stretch;
    justify-content: space-between;
}

/* ============================
   METODI DI PAGAMENTO
   ============================ */

/* Stili migliorati per i metodi di pagamento */
.bg-payment-methods {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.bg-payment-method {
    flex: 1;
    padding: 20px;
    border: 2px solid #444;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bg-payment-method:hover {
    border-color: #f19300;
    background: #2a2a2a;
    transform: translateY(-2px);
}

.bg-payment-method.active {
    border-color: #f19300;
    background: #373737;
    box-shadow: 0 0 10px rgba(241, 147, 0, 0.3);
}

.bg-payment-method.bottega {
    background-color: #666;
    color: white;
}

.bg-payment-method.paypal {
    background-color: #0070ba;
    color: white;
}

/* ============================
   MESSAGGI E NOTIFICHE
   ============================ */

/* Messaggio informativo migliorato */
.bg-ticket-info {
    margin: 25px 0;
    padding: 18px;
    background: #373737;
    color: #d80f00;
    font-size: 14px;
    border-radius: 6px;
    border-left: 4px solid #d80f00;
}

/* Stili per il messaggio promo code */
.bg-promo-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: 500;
}

.bg-promo-message.success {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.bg-promo-message.error {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.bg-message.error-duplicate-booking {
    display: none;
  }    

/* Messaggio di carrello vuoto */
.cart-empty {
    width: 80%;
    margin: auto;
    text-align: center;
    font-size: 25px;
}

/* Messaggio sul tipo di biglietto */
.ticket-type-message {
    display: none;
}

/* ============================
   FORM DEL CARRELLO
   ============================ */

/* Miglioramento stile form */
.bg-cart_form label,
.box_posti_vicino label,
.box_promo label,
.box_additional label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #ddd;
}

/* Campo per il codice promozionale */
#bg_promo {
    width: 200px;
}

/* Campi di testo nel form */
.bg_cart_form input[type="text"]
{
    padding: 12px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 16px;
    color: #000000;
    width: 100%;
    max-width: 500px;
    transition: border-color 0.3s ease;
}

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

/* Campo per informazioni aggiuntive */
#bg_additional {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 16px;
    color: #000000;
    transition: border-color 0.3s ease;
    resize: vertical;
    box-sizing: border-box;
}

#bg_additional:focus {
    border-color: #f19300;
    outline: none;
    box-shadow: 0 0 5px rgba(241, 147, 0, 0.5);
}

/* Pulsante di prenotazione */
.bg_cart_form input[type="submit"] {
    background: #f19300;
    color: white;
    padding: 20px 25px;
    border: none;
    border-radius: 6px;
    font-size: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 450px;
    margin-top: 15px;
}

.bg_cart_form input[type="submit"]:hover {
    background: #1a95c7;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Stile per il pulsante in stato di attesa */
.bg_cart_form input[type="submit"].waiting {
    background: #cccccc;
    color: #777777;
    cursor: wait;
    pointer-events: none;
    opacity: 0.9;
    box-shadow: none;
    transform: none;
    border: 1px solid #aaaaaa;
}

/* Bottone disabilitato */
input[name="bg_submit"]:disabled {
    opacity: .5;
    cursor: text;
}

/* Stili migliorati per i form e i messaggi */
.box_posti_vicino p,
.box_additional p {
    display: block;
    margin: 0 0 10px 0;
    color: #ddd;
}

/* Container flessibile per i box */
.bg_cart_form .box-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    width: 100%;
    margin: 30px 0;
}

/* Stile comune per i box */
.box_posti_vicino,
.box_additional {
    background: #373737;
    padding: 20px;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    box-sizing: border-box;
}

.box_posti_vicino {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

.box_additional {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

/* Miglioramento stile box promo code */
.box_promo {
    background-color: #373737;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    max-width: 500px;
}

.promo-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#bg_verify_promo {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#bg_verify_promo:hover {
    background-color: #f19300;
}

/* ============================
   BOTTONI DEL CARRELLO
   ============================ */

   .bg_submit {
    text-align: center;
    margin-top: 55px;
    margin: 1em 0;
}

/* ============================
   21. GATEWAY E PAGAMENTI
   ============================ */
   .gateway-selector ul {
    margin: 0 ;
    padding: 0 ;
}

.gateway-selector .active {
    font-weight: 700;
    background: rgba(0, 0, 0, .001);
}
.gateway-selector .active a {
    text-decoration: none;
    cursor: text;
}

.gateway-selector li a {
    font-size: 16px;
}

.gateway-selector ul {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.gateway-selector li a {
    display: block;
    padding: 0;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 40px;
    width: 250px;
}

.gateway-selector li a:hover {
    border-color: #2271b1;
    color: #2271b1;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gateway-selector li.active a {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff !important;
}

.gateway-selector a {
    color: #737373  !important;
    background: #515151 ;
    padding: 10px;
    border-radius: 4px;
}

.amm_pag {
	text-align: center;
	margin-top: 60px;
}

/* Container dei bottoni con layout flex */
.bg-cart-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* Stile base per tutti i bottoni */
.bg-cart-buttons a.button,
.bg-cart-buttons .bg-clear-cart-button,
.bg-cart-buttons .button.bg-goto-cart-button,
.bg-cart-buttons .bg-goto-cart-button {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bottoni al passaggio del mouse e quando premuti */
.bg-cart-buttons a.button:hover,
.bg-cart-buttons .bg-clear-cart-button:hover,
.bg-cart-buttons .button.bg-goto-cart-button:hover,
.bg-cart-buttons .bg-goto-cart-button:hover {
    transform: translateY(-1px);
}

.bg-cart-buttons a.button:active,
.bg-cart-buttons .bg-clear-cart-button:active,
.bg-cart-buttons .button.bg-goto-cart-button:active,
.bg-cart-buttons .bg-goto-cart-button:active {
    transform: translateY(1px);
}

/* Stili specifici per tipo di bottone */
.bg-cart-buttons a.button {
    background-color: #4a90e2;
    color: #fff;
}

.bg-cart-buttons a.button:hover {
    background-color: #357abd;
}

.bg-cart-buttons .bg-clear-cart-button {
    background-color: #800900;
    color: #fff;
}

.bg-cart-buttons .bg-clear-cart-button:hover {
    background-color: #800900;
}

.bg-cart-buttons .button.bg-goto-cart-button {
    background-color: #9e9c9b;
    color: #202020;
}

.bg-cart-buttons .button.bg-goto-cart-button:hover {
    background-color: #444444;
    color: #e0e0e0;
}

.bg-cart-buttons .bg-goto-cart-button {
    background-color: #4a90e2;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.bg-cart-buttons .bg-goto-cart-button:hover {
    background-color: #357abd;
}

/* Form per svuotare il carrello */
.bg-clear-cart-form {
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}

/* ============================
   CONTROLLI QUANTITÀ
   ============================ */

/* Miglioramento stile controlli quantità */
.bg-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.bg-controls button {
    width: 35px;
    height: 35px;
    font-size: 18px;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bg-controls button:hover {
    background-color: #f19300;
}

.bg-quantity {
    font-size: 18px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

/* ============================
   TOTALI E PREZZI DEL CARRELLO
   ============================ */

/* Elementi del carrello */
.bg-item-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.bg-item-date {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 10px;
}

.bg-original-price {
    text-decoration: line-through;
    color: #aaa;
    margin-right: 10px;
}

.bg-discounted-price {
    color: #f19300;
    font-weight: bold;
}

/* Migliorare stile sezione totale carrello */
.bg_cart_total {
	text-align: right;
	font-weight: 700;
	padding: .25em 5px;
	font-size: 1.2em;
	margin-bottom: 0px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: black;
}

.bg_cart_total table {
    margin: 0;
    width: 100%;
}

.bg_cart_total th,
.bg_cart_total td {
    padding: 12px;
    text-align: right;
}

.bg_cart_total tr:last-child {
    border-top: 2px solid #444;
    font-size: 20px;
}

.bg_cart_total tr:last-child .bg_total_number {
    font-size: 24px;
}

/* Miglioramento stile totale */
.bg_total_number {
    color: #22b2ee;
    font-weight: bold;
    font-size: 22px;
}

/* Etichetta dei prezzi */
.bg_cart_label {
    text-align: right;
    font-size: 1.1em;
}

/* Costi di gestione biglietti */
.bg_ticket_handling {
    text-align: right;
    font-size: 1.1em;
}

.bg_cart_handling {
    text-align: right;
    font-size: 1.1em;
  }

/* Importo risparmiato con sconto */
.bg_cart_savings {
    color: #f00;
    font-size: 18px;
    font-weight: bold;
}

/* Totale in visualizzazione */
.bg-cart-total {
    font-size: 1.3em;
    font-weight: bold;
    color: #800900;
    margin-bottom: 10px;
}

/* ============================
   MESSAGGI DI ERRORE DEL CARRELLO
   ============================ */

/* Box di errore con stile moderno */
.bg-cart-error {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 24px;
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}

/* Intestazione del messaggio di errore */
.bg-cart-error p {
    color: #fff;
    background-color: #800900;
    padding: 12px;
    margin: -25px -24px -8px -24px;
    border-radius: 8px 8px 0 0;
    font-size: 18px;
    line-height: 1.2;
}

/* ============================
   POPUP ERRORE PRENOTAZIONE DUPLICATA
   ============================ */

/* Struttura base del popup */
.bg-error-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10000;
    overflow: hidden;
    text-align: center;
}

/* Intestazione del popup con sfondo rosso */
.bg-error-popup-header {
    background-color: #c0392b;
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    position: relative;
    text-align: center;
}

/* Titolo del popup */
.bg-error-popup-title {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-size: 1.3em;
}

/* Contenuto del popup */
.bg-error-popup-content {
    padding: 25px;
    line-height: 1.6;
    color: #333;
    text-align: center;
}

/* Paragrafi nel popup */
.bg-error-popup-content p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Evidenziazione del nome evento */
.bg-error-popup-content strong {
    font-weight: bold;
    color: #c0392b;
}

/* Overlay scuro che copre la pagina */
.bg-error-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 9999;
    display: none; /* Inizialmente nascosto */
}

/* Pulsante di chiusura del popup */
.bg-error-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.bg-error-popup-close:hover {
    opacity: 1;
}

/* ============================
   VALIDAZIONE EMAIL
   ============================ */

.bg_email_check {
    display: block;
}

.bg_email_check span {
    font-weight: 700;
    padding: .33rem;
    display: none;
}

.bg_email_check .dashicons,
.bg_email_check .dashicons:before {
    line-height: inherit;
}

.bg_email_check .ok {
    color: #f2f2f2;
    background: #217e21;
}

.bg_email_check .notemail,
.bg_email_check .mismatch {
    color: #f2f2f2;
    background: #800900;
}

/* ============================
   BOTTONI DI AGGIORNAMENTO
   ============================ */

.bg-update-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 2px;
}

.bg-update-column button {
    padding: .25rem 0;
    font-size: 2rem;
    line-height: 1;
}

/* ============================
   PERCORSO DI ACQUISTO
   ============================ */

/* Indicatore delle fasi di acquisto */
.bg_purchase_path {
    margin-bottom: 1em;
}

.bg_purchase_path span {
    display: inline-block;
    width: 33.33333333%;
    padding: .5em 0;
    text-align: center;
    background: rgba(255,255,255,.1);
}

.bg_purchase_path .inactive {
    background: rgba(0,0,0,.3);
}

.bg_purchase_path .active {
    background: rgba(0,0,0,.1);
}

/* ============================
   LINK E NAVIGAZIONE
   ============================ */

/* Link per tornare al carrello */
.return-to-cart {
    width: 80%;
    margin: auto;
}

p.return-to-cart a {
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    color: #FFFFFF;
    text-decoration: none;
    line-height: 1.2;
    font-weight: normal;
    font-family: sans-serif;
    font-size: 18px;
    background-color: #890505;
    border-radius: 4px;
    padding: 10px 20px;
    border: 1px solid #ffffff;
    cursor: pointer;
}

/* Footer del carrello */
.bg-cart-footer {
	margin-top: 10px;
	border-top: 1px solid #eee;
	text-align: right;
	padding: 5px 15px;
	background: #d4d4d4;
	border-radius: 5px;
}

.bg-discount-field {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bg-discount-field label {
	font-weight: 900;
	color: #000;
	margin: 0;
	display: block;
}

/* Pannello di transazione */
.transaction-purchase.panel {
    width: 80%;
    margin: 50px auto;
}

/* ============================
   TIMER COUNTDOWN
   ============================ */

/* Contenitore del timer */
.bg-countdown-timer {
    text-align: center;
    margin: 20px auto;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    max-width: 250px;
}

/* Visualizzazione del tempo rimanente */
.bg-countdown-timer .time {
    font-size: 42px; /* Timer grande e ben visibile */
    font-weight: bold;
    color: #c0392b;
    display: block;
    padding: 10px 5px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    font-family: 'Courier New', monospace;
    line-height: 1;
}

/* Etichetta del timer */
.timer-label {
    font-size: 1em;
    margin-bottom: 5px;
    color: #555;
}

/* Effetto di pulsazione per il timer */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Classe per l'animazione di pulsazione */
.bg-countdown-timer .time.pulse {
    animation: pulse 0.2s ease-in-out;
}

/* Stile per quando il tempo sta per scadere (meno di 1 minuto) */
.bg-countdown-timer .time.time-ending {
    color: #ff0000;
    font-weight: bolder;
}

/* Animazione per il messaggio di tempo scaduto */
@keyframes fadeInOut {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Classe per l'animazione del messaggio di fine tempo */
.bg-countdown-timer .time:contains("Tempo scaduto") {
    animation: fadeInOut 1.5s infinite;
    color: #009900;
}

/* Fix per il titolo della pagina */
#progression-studios-page-title-container {
    padding-top:20px !important;
    padding-bottom:20px !important;
}

#page-title-pro {
	margin: 0 !important;
}

/* Stili per il nuovo layout della tabella carrello */
.bg-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

/* Nascondo l'intestazione della tabella */
.bg-cart-table thead {
    display: none;
}

/* Righe degli eventi */
.bg-event-row {
    background-color: #333333;
    border-bottom: 2px solid #444444;
    transition: background-color 0.3s ease;
}

.bg-event-row:hover {
    background-color: #3a3a3a;
}

/* Struttura principale dell'evento */
.bg-event-info {
    padding: 15px;
    position: relative;
}

.bg-event-main {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.bg-event-image {
    flex: 0 0 80px;
    margin-right: 15px;
}

.bg-event-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.bg-event-details {
    flex: 1;
}

.bg-event-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #f19300;
    margin-bottom: 5px;
}

.bg-event-date {
    color: #cccccc;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* Contenitore dei biglietti - layout mobile (default) */
.bg-tickets-container {
    margin-left: 95px; /* Allinea con l'immagine */
    border-top: 1px solid #444444;
    padding-top: 10px;
    width: calc(100% - 95px); /* Adatta la larghezza per allinearsi con l'immagine */
}

/* Righe dei tipi di biglietto */
.bg-ticket-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dotted #444444;
}

.bg-ticket-row:last-child {
    border-bottom: none;
}

.bg-ticket-type {
    flex: 0 0 25%;
    font-size: 0.95em;
}

.bg-ticket-details {
    flex: 1;
    color: #dddddd;
}

.bg-ticket-buttons {
    flex: 0 0 120px;
    text-align: right;
}

/* Bottoni */
.bg-update-buttons {
    display: flex;
    justify-content: flex-end;
}

.bg-update-buttons button {
    width: 45px;
    height: 45px;
    margin-left: 8px;
    border-radius: 4px;
    border: none;
    background-color: #444444;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
    font-size: 18px;
    font-weight: bold;
}

/* Stile specifico per il pulsante "x" */
.bg-update-buttons button.remove {
    width: 25px;
    height: 25px;
    margin-left: 15px;
    background-color: #c93030;
    font-size: 14px;
    align-self: center; /* Centra il pulsante verticalmente */
    position: relative; /* Aggiunto per posizionamento */
    top: 0; /* Assicura che sia allineato al centro */
}

.bg-update-buttons button.more {
    background-color: #22b2ee;
}

.bg-update-buttons button.less {
    background-color: #67696a;
}

.bg-update-buttons button:hover {
    filter: brightness(1.2);
}

/* Stili per i prezzi scontati */
.bg-ticket-details .price {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.original-price {
    color: #999999;
    font-size: 0.9em;
    margin-right: 0;
    text-decoration: line-through;
}

.discounted-price {
    color: #ff9900;
    font-weight: bold;
}

/* Layout desktop (a partire da 768px) */
@media screen and (min-width: 768px) {
    /* Struttura principale dell'evento per desktop */
    .bg-event-info {
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-start;
    }
    
    .bg-event-main {
        flex: 1;
        margin-bottom: 0;
        margin-right: 20px;
        max-width: 60%;
    }
    
    /* Contenitore dei biglietti - layout desktop */
    .bg-tickets-container {
        flex: 0 0 35%;
        margin-left: 0;
        border-top: none;
        border-left: 1px solid #444444;
        padding-left: 20px;
        padding-top: 0;
        width: auto;
        margin-top: 0;
    }
    
    /* Modifica le righe dei tipi di biglietto per adattarle al layout desktop */
    .bg-ticket-row {
        flex-direction: row; /* Cambiato da column a row */
        align-items: center; /* Centrato verticalmente */
        justify-content: space-between; /* Distribuisce gli elementi orizzontalmente */
        padding: 12px 0;
    }
    
    .bg-ticket-type {
        flex: 0 0 20%; /* Ridotto per dare spazio ai bottoni */
        margin-bottom: 0; /* Rimosso il margine inferiore */
        font-size: 1em;
    }
    
    .bg-ticket-details {
        flex: 1;
        margin-bottom: 0; /* Rimosso il margine inferiore */
        padding-right: 10px;
    }
    
    .bg-ticket-buttons {
        flex: 0 0 120px;
        text-align: right;
        width: auto; /* Rimosso il 100% di larghezza */
    }
    
    .bg-update-buttons {
        justify-content: flex-end; /* Cambiato da flex-start a flex-end */
    }
}

/* ============================
   PAGINA PAGAMENTO NON COMPLETATO (RETRY)
   ============================ */

.bg-payment-retry-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.bg-payment-retry-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #444;
    margin-bottom: 30px;
}

.bg-payment-retry-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.bg-payment-retry-header h1 {
    color: #ff9800;
    font-size: 28px;
    margin: 0 0 10px;
    font-weight: 600;
}

.bg-payment-retry-content {
    color: #ddd;
    line-height: 1.6;
}

/* Sottotitolo sotto ATTENZIONE! */
.bg-payment-retry-subtitle {
    text-align: center;
    color: #ffb74d;
    font-size: 18px;
    font-weight: 600;
    margin: 6px 0 10px;
}

/* Centra i paragrafi principali del messaggio */
.bg-payment-retry-content .bg-payment-retry-main,
.bg-payment-retry-content p {
    text-align: center;
}

/* Spaziatura uniforme tra i paragrafi del messaggio */
.bg-payment-retry-content p { margin: 8px 0; }

.bg-payment-retry-main {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.bg-payment-retry-options {
    background: #1f1f1f;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #ff9800;
}


.bg-payment-retry-options h3 {
    color: #ff9800;
    font-size: 18px;
    margin: 0 0 15px;
}

.bg-payment-retry-options ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bg-payment-retry-options li {
    padding: 12px 0;
    border-bottom: 1px solid #333;
}

.bg-payment-retry-options li:last-child {
    border-bottom: none;
}

.bg-payment-retry-options a {
    color: #4caf50;
    text-decoration: underline;
}

.bg-payment-retry-options a:hover {
    color: #66bb6a;
}

.bg-payment-retry-actions {
    text-align: center;
    margin-top: 30px;
}

.bg-payment-retry-actions .button,
.bg-payment-retry-actions .bg-button-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #4caf50;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.bg-payment-retry-actions .button:hover,
.bg-payment-retry-actions .bg-button-primary:hover {
    background: #66bb6a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .bg-payment-retry-page {
        margin: 16px;
        padding: 18px;
        max-width: 92vw;
        border-radius: 10px;
    }
    
    .bg-payment-retry-header h1 {
        font-size: 22px;
    }
    
    .bg-payment-retry-icon {
        font-size: 44px;
        margin-bottom: 10px;
    }

    /* Tipografia e spazi per testo su mobile */
    .bg-payment-retry-subtitle { font-size: 16px; margin: 4px 0 8px; }
    .bg-payment-retry-main { font-size: 16px; margin-bottom: 10px; }
    .bg-payment-retry-content p { font-size: 15px; line-height: 1.5; margin: 8px 0; }
    .bg-payment-retry-header { margin-bottom: 20px; padding-bottom: 14px; }
    .bg-payment-retry-options { padding: 16px; margin: 16px 0; }
    .bg-payment-retry-options li { padding: 10px 0; }

    /* Pulsante grande e facilmente cliccabile */
    .bg-payment-retry-actions .button,
    .bg-payment-retry-actions .bg-button-primary {
        width: 100%;
        max-width: 320px;
        min-height: 48px;
        padding: 14px 18px;
    }

    /* Link telefono ben visibile su mobile */
    .bg-payment-retry-content a[href^="tel:"] {
        color: #66bb6a;
        font-weight: 700;
        text-decoration: underline;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .bg-payment-retry-header h1 { font-size: 20px; }
    .bg-payment-retry-subtitle { font-size: 15px; }
    .bg-payment-retry-main { font-size: 15px; }
    .bg-payment-retry-content p { font-size: 14px; }
}