/**
 * Stili Frontend Plugin Venice Palace Prenotazioni
 */

/* Container Form Prenotazione */
.vpp-booking-form-container {
	margin: 0 auto;
	padding-bottom: 100px; /* Spazio per il totale sticky nello step 4 */
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Steps */
.vpp-booking-step {
	background: #ffffff;
	border-radius: 8px;
	padding: 30px;
	margin-bottom: 30px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vpp-step-summary {
	margin-bottom: 20px;
}

.vpp-summary-box {
	background: var(--vpp-accent-light, #f0f6fc);
	border: 2px solid var(--vpp-accent, #2271b1);
	border-radius: 6px;
	padding: 15px 20px;
	margin-bottom: 20px;
}

.vpp-summary-item {
	margin-bottom: 8px;
	font-size: 14px;
	color: #2c3e50;
}

.vpp-summary-item:last-child {
	margin-bottom: 0;
}

.vpp-summary-item strong {
	color: var(--vpp-accent, #2271b1);
	margin-right: 8px;
}

.vpp-step-title {
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 25px 0;
	color: #2c3e50;
	border-bottom: 2px solid #e1e8ed;
	padding-bottom: 15px;
}

/* Calendario */
.vpp-calendar-container {
	min-height: 400px;
	width: 100%;
	overflow: hidden; /* Rimuove scroll orizzontale */
}

.vpp-loading {
	text-align: center;
	padding: 40px;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
}

/* Calendario Grid (generato via JavaScript) */
.vpp-calendar {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
	margin-top: 20px;
}

.vpp-calendar-header {
	text-align: center;
	font-weight: 600;
	color: #666;
	padding: 10px;
	font-size: 14px;
}

.vpp-calendar-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #e1e8ed;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-weight: 500;
	background: #ffffff;
}

.vpp-calendar-day:hover:not(.disabled):not(.selected) {
	border-color: var(--vpp-accent, #2271b1);
	background: var(--vpp-accent-light, #f0f6fc);
}

.vpp-calendar-day.disabled {
	opacity: 0.3;
	cursor: not-allowed;
	background: #f5f5f5;
}

.vpp-calendar-day.selected {
	background: var(--vpp-accent, #2271b1);
	color: #ffffff;
	border-color: var(--vpp-accent, #2271b1);
}

.vpp-calendar-day.available {
	cursor: pointer;
}

.vpp-calendar-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 6px;
}

.vpp-calendar-nav button {
	background: var(--vpp-accent, #2271b1);
	color: #ffffff;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s ease;
}

.vpp-calendar-nav button:hover {
	background: var(--vpp-accent-dark, #135e96);
}

.vpp-calendar-nav button:disabled,
.vpp-calendar-nav button.disabled {
	background: #ccc;
	cursor: not-allowed;
	opacity: 0.5;
}

.vpp-calendar-month-year {
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
}

/* Selected Date */
.vpp-selected-date {
	background: var(--vpp-accent-light, #f0f6fc);
	border: 2px solid var(--vpp-accent, #2271b1);
	border-radius: 6px;
	padding: 15px;
	margin-top: 20px;
}

.vpp-selected-date p {
	margin: 0;
	color: #2c3e50;
	font-size: 16px;
}

/* Time Slots */
.vpp-time-slots-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 15px;
	margin-top: 20px;
	min-height: 100px;
	position: relative;
}

.vpp-time-slots-container .vpp-loading {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	width: 100%;
}

.vpp-time-slot {
	border: 2px solid #e1e8ed;
	border-radius: 6px;
	padding: 20px;
	cursor: pointer;
	transition: all 0.2s ease;
	background: #ffffff;
	text-align: center;
}

.vpp-time-slot:hover:not(.unavailable) {
	border-color: var(--vpp-accent, #2271b1);
	background: var(--vpp-accent-light, #f0f6fc);
}

.vpp-time-slot.selected {
	border-color: var(--vpp-accent, #2271b1);
	background: var(--vpp-accent-light, #f0f6fc);
}

.vpp-time-slot.unavailable {
	opacity: 0.5;
	cursor: not-allowed;
	background: #f5f5f5;
}

.vpp-time-slot-title {
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 6px;
}

.vpp-time-slot-time {
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 8px;
}

.vpp-time-slots-container.vpp-hide-availability .vpp-time-slot-time {
	margin-bottom: 0;
}

.vpp-time-slot-available {
	font-size: 14px;
	color: #666;
	margin-top: 8px;
}

/* Tickets */
.vpp-tickets-container {
	margin-top: 20px;
}

.vpp-ticket-item {
	display: grid;
	grid-template-columns: 1fr;
	row-gap: 12px;
	padding: 16px;
	border: 2px solid #e1e8ed;
	border-radius: 6px;
	margin-bottom: 15px;
	background: #ffffff;
}

.vpp-ticket-info {
	flex: 1;
}

.vpp-ticket-name {
	font-weight: 600;
	font-size: 15px;
	color: #2c3e50;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.vpp-ticket-name-text,
.vpp-ticket-price-inline {
	font-size: 15px;
}

.vpp-ticket-name-text {
	flex: 0 0 auto;
}

.vpp-ticket-price-inline {
	font-weight: 400;
	color: #666;
}

.vpp-ticket-description {
	color: #666;
	font-size: 13px;
	line-height: 1.5;
	margin-top: 4px;
	margin-bottom: 8px;
	font-style: italic;
}

.vpp-ticket-price {
	color: #666;
	font-size: 14px;
	display: none; /* Nascosto su desktop, mostrato solo se necessario */
}

.vpp-ticket-controls {
	display: flex;
	align-items: center;
	gap: 12px;
}

.vpp-ticket-quantity {
	display: flex;
	align-items: center;
	gap: 10px;
}

.vpp-ticket-quantity button {
	width: 36px;
	height: 36px;
	border: 2px solid #e1e8ed;
	background: #ffffff;
	border-radius: 4px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
	transition: all 0.2s ease;
}

.vpp-ticket-quantity button:hover:not(:disabled) {
	border-color: var(--vpp-accent, #2271b1);
	color: var(--vpp-accent, #2271b1);
}

.vpp-ticket-quantity button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.vpp-ticket-quantity input {
	width: 60px;
	text-align: center;
	border: 2px solid #e1e8ed;
	border-radius: 4px;
	padding: 8px 0;
	font-size: 16px;
	font-weight: 600;
	/* Centraggio perfetto del numero - padding simmetrico */
	box-sizing: border-box;
	-moz-appearance: textfield;
	appearance: textfield;
}

.vpp-ticket-quantity input::-webkit-outer-spin-button,
.vpp-ticket-quantity input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.vpp-ticket-subtotal {
	font-weight: 600;
	font-size: 18px;
	color: #2c3e50;
	min-width: 100px;
	text-align: right;
}

@media (min-width: 768px) {
	.vpp-ticket-item {
		grid-template-columns: 1fr auto;
		column-gap: 16px;
		align-items: center;
	}
	.vpp-ticket-info {
		padding-right: 6px;
	}
	/* Su desktop: nascondi prezzo inline, mostra prezzo normale */
	.vpp-ticket-price-inline {
		display: none;
	}
	.vpp-ticket-price {
		display: block;
	}
}

@media (max-width: 767px) {
	.vpp-ticket-item {
		grid-template-rows: auto auto;
		row-gap: 12px;
	}
	.vpp-ticket-info {
		grid-row: 1;
	}
	/* Su mobile: mostra prezzo inline, nascondi prezzo normale */
	.vpp-ticket-price-inline {
		display: inline;
	}
	.vpp-ticket-price {
		display: none;
	}
	.vpp-ticket-controls {
		grid-row: 2;
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
	}
	.vpp-ticket-quantity {
		flex: 0 0 auto;
	}
	.vpp-ticket-subtotal {
		text-align: right;
		flex: 0 0 auto;
		min-width: 80px;
		/* Allinea a destra considerando cifre diverse */
		font-variant-numeric: tabular-nums;
	}
}

.vpp-ticket-item.disabled {
	opacity: 0.5;
	pointer-events: none;
}

/* Total */
.vpp-total-container {
	background: var(--vpp-accent-light, #f0f6fc);
	border: 2px solid var(--vpp-accent, #2271b1);
	border-radius: 6px;
	padding: 20px;
	margin-top: 30px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.vpp-total-container > strong {
	font-size: 20px;
	color: #2c3e50;
}

.vpp-total-container .vpp-total-amount-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0;
	min-width: 200px;
}

/* Total sticky nello step 4 */
.vpp-booking-step[data-step="4"] {
	position: relative;
	padding-bottom: 100px; /* Spazio per il totale sticky */
}

.vpp-booking-step[data-step="4"] .vpp-total-container {
	position: fixed;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 40px);
	max-width: 900px;
	background: var(--vpp-accent-light, #f0f6fc);
	border: 2px solid var(--vpp-accent, #2271b1);
	border-radius: 6px;
	padding: 20px;
	margin: 0;
	z-index: 1000;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Input focus uniformi (incluso textarea) */
.vpp-booking-form-container input[type="text"]:focus,
.vpp-booking-form-container input[type="email"]:focus,
.vpp-booking-form-container input[type="tel"]:focus,
.vpp-booking-form-container input[type="number"]:focus,
.vpp-booking-form-container input[type="date"]:focus,
.vpp-booking-form-container textarea:focus,
.vpp-booking-form-container select:focus {
	outline: 1px solid var(--vpp-accent, #2271b1);
	outline-offset: 0;
	box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.15);
}

/* Radio uniforme (lingua turno, opzioni extra, servizi inclusi) */
.vpp-radio-row input[type="radio"],
.vpp-extra-option input[type="radio"],
.vpp-servizio-incluso-option input[type="radio"] {
	accent-color: var(--vpp-accent, #2271b1);
}

/* Fallback globale per radio generati via JS */
.vpp-booking-form-container input[type="radio"] {
	accent-color: var(--vpp-accent, #2271b1);
}

/* Checkbox uniformi */
.vpp-booking-form-container input[type="checkbox"] {
	accent-color: var(--vpp-accent, #2271b1);
}

/* Box riepilogo compatto nello step 4 (totale + recap) */
.vpp-total-container-compact {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(248, 249, 250, 0.96);
	border-top: 1px solid #e5e7eb;
	box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
	z-index: 1000;
	padding: 6px 10px;
	overflow: visible;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.vpp-total-compact-inner {
	max-width: 920px;
	width: 100%;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 8px 12px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	align-items: center;
	box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.vpp-total-compact-left {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.vpp-total-compact-left .vpp-summary-line {
	font-size: 12.2px;
	color: #1f2937;
}
.vpp-total-compact-left .vpp-summary-line strong {
	color: #111827;
}
.vpp-total-compact-right {
	text-align: right;
}
.vpp-total-compact-right .vpp-total-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 13px;
	color: #111827;
}
.vpp-total-compact-right .vpp-total-amount {
	font-weight: 700;
	font-size: 16px;
	color: var(--vpp-accent, #2271b1);
}

/* Breakdown recap - compatto */
.vpp-recap-total-breakdown {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid #e5e7eb;
	font-size: 11px;
	color: #6b7280;
	line-height: 1.4;
}

.vpp-recap-total-breakdown .vpp-recap-subtotal {
	color: #4b5563;
}

.vpp-recap-total-breakdown .vpp-recap-separator {
	color: #9ca3af;
	margin: 0 2px;
}

.vpp-recap-total-breakdown .vpp-recap-discount {
	color: #6b7280;
}

.vpp-recap-total-breakdown .vpp-discount-amount {
	color: #059669;
	font-weight: 600;
}

/* Summary inline chips */
.vpp-summary-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	font-size: 12.2px;
}
.vpp-summary-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	padding: 4px 8px;
	white-space: nowrap;
}
.vpp-summary-chip strong {
	color: #0f172a;
	font-weight: 700;
}
.vpp-summary-icon {
	font-size: 13px;
	color: #1f2937;
	line-height: 1;
	display: inline-flex;
	align-items: center;
}
.vpp-summary-sep {
	color: #94a3b8;
	font-size: 12px;
}

@media (max-width: 640px) {
	.vpp-total-compact-inner {
		grid-template-columns: 1fr;
		gap: 6px;
		align-items: flex-start;
	}
	.vpp-total-compact-right {
		text-align: left;
	}
}

/* Toggle recap */
.vpp-recap-toggle {
	position: static;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-bottom: 0;
	border-radius: 20px 20px 0 0;
	padding: 4px 12px;
	cursor: pointer;
	z-index: 1001; /* Sopra la barra recap (z-index: 1000) */
	box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
	transition: all 0.2s ease;
	/* Assicura che sia sempre visibile e cliccabile */
	pointer-events: auto;
}
.vpp-recap-toggle:hover {
	background: #f9fafb;
	border-color: #d1d5db;
}
.vpp-recap-toggle-icon {
	display: inline-block;
	font-size: 10px;
	color: #6b7280;
	transition: transform 0.2s ease;
}
.vpp-total-container-compact.vpp-recap-collapsed {
	/* Padding minimo quando collassata per mantenere il toggle visibile */
	padding-top: 6px;
	padding-bottom: 6px;
	/* Altezza minima per assicurare che il toggle sia sempre visibile */
	min-height: 36px;
}
.vpp-total-container-compact.vpp-recap-collapsed .vpp-recap-toggle-icon {
	transform: none;
}

/* Spazio extra quando c'è la barra hold - calcolato dinamicamente via JS */
/* Il padding viene impostato dinamicamente in base all'altezza effettiva della barra recap e del banner hold */

.vpp-total-container strong {
	font-size: 20px;
	color: #2c3e50;
	margin-bottom: 8px;
}

.vpp-total-amount {
	font-size: 28px;
	font-weight: 700;
	color: var(--vpp-accent, #2271b1);
}

/* Breakdown totale step 3 - layout ordinato e chiaro */
.vpp-total-breakdown {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(34, 113, 177, 0.2);
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.vpp-total-breakdown .vpp-total-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	line-height: 1.5;
}

.vpp-total-breakdown .vpp-total-label {
	color: #6b7280;
	font-weight: 500;
}

.vpp-total-breakdown .vpp-total-value {
	color: #1f2937;
	font-weight: 600;
}

.vpp-total-breakdown .vpp-total-subtotal .vpp-total-value {
	color: #4b5563;
}

.vpp-total-breakdown .vpp-total-discount .vpp-total-value {
	color: #059669;
}

/* Desktop: layout più spaziato */
@media (min-width: 641px) {
	.vpp-total-breakdown {
		gap: 8px;
	}
	
	.vpp-total-breakdown .vpp-total-line {
		font-size: 15px;
	}
}

/* Mobile: layout compatto */
@media (max-width: 640px) {
	.vpp-total-container {
		padding: 16px;
	}
	
	.vpp-total-container > strong {
		font-size: 18px;
	}
	
	.vpp-total-container .vpp-total-amount-wrapper {
		min-width: 160px;
	}
	
	.vpp-total-amount {
		font-size: 24px;
	}
	
	.vpp-total-breakdown {
		margin-top: 10px;
		padding-top: 10px;
		gap: 5px;
	}
	
	.vpp-total-breakdown .vpp-total-line {
		font-size: 13px;
	}
}

.vpp-famiglia-message {
	margin-top: 15px;
	padding: 15px 20px;
	background: #d1ecf1;
	border: 1px solid #bee5eb;
	border-radius: 6px;
	color: var(--vpp-accent-dark, #0c5460);
	font-size: 14px;
	line-height: 1.5;
}

.vpp-famiglia-message strong {
	font-weight: 600;
}

/* Extras */
/* Servizi Inclusi */
.vpp-servizi-inclusi-container {
	margin-top: 20px;
	padding: 20px;
	background: var(--vpp-accent-light, #f0f6fc);
	border: 2px solid var(--vpp-accent, #2271b1);
	border-radius: 6px;
}

.vpp-servizio-incluso-item {
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #d0e4f5;
}

.vpp-servizio-incluso-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

/* Extra Opzionali */
.vpp-extra-opzionali-container {
	margin-top: 20px;
}

.vpp-extra-opzionale-item {
	margin-bottom: 30px;
	padding: 20px;
	background: #ffffff;
	border: 2px solid #e1e8ed;
	border-radius: 6px;
}

.vpp-extra-opzionale-header h4 {
	margin: 0 0 10px 0;
	color: #2c3e50;
	font-size: 18px;
}

.vpp-extra-opzionale-options {
	margin-top: 15px;
}

.vpp-extra-opzionale-option label:hover {
	border-color: var(--vpp-accent, #2271b1);
	background: var(--vpp-accent-light, #f0f6fc);
}

.vpp-extra-opzionale-option input[type="checkbox"]:checked + span {
	font-weight: 600;
}

.vpp-extra-opzionale-option input[type="checkbox"]:checked ~ span:last-child {
	color: var(--vpp-accent, #2271b1);
}

.vpp-extras-container {
	margin-top: 20px;
}

.vpp-extra-item {
	border: 2px solid #e1e8ed;
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 20px;
	background: #ffffff;
}

.vpp-extra-name {
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 10px;
}

.vpp-extra-description {
	color: #666;
	font-size: 14px;
	margin-bottom: 15px;
}

.vpp-extra-options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}

.vpp-extra-option {
	border: 2px solid #e1e8ed;
	border-radius: 4px;
	padding: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
	background: #ffffff;
}

.vpp-extra-option:hover {
	border-color: var(--vpp-accent, #2271b1);
}

.vpp-extra-option.selected {
	border-color: var(--vpp-accent, #2271b1);
	background: var(--vpp-accent-light, #f0f6fc);
}

/* Form Cliente e Partecipanti */
.vpp-customer-form {
	margin-bottom: 30px;
}

.vpp-form-row {
	margin-bottom: 20px;
}

.vpp-form-row label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #2c3e50;
	font-size: 14px;
}

/* Override per label checkbox: usa grid, non display block */
.vpp-form-row label.vpp-checkbox-label {
	display: grid;
	margin-bottom: 0;
	font-weight: 400;
	font-size: 14px;
}

.vpp-form-row .description {
	margin-top: 6px;
	margin-bottom: 0;
	font-size: 13px;
	color: #666;
	font-style: italic;
}

.vpp-form-row input[type="text"],
.vpp-form-row input[type="email"],
.vpp-form-row input[type="tel"],
.vpp-form-row input[type="date"],
.vpp-form-row select,
.vpp-form-row textarea,
.vpp-participant-item input[type="text"],
.vpp-participant-item input[type="email"],
.vpp-participant-item input[type="tel"],
.vpp-participant-item input[type="date"],
.vpp-participant-item select,
.vpp-participant-item textarea {
	width: 100%;
	padding: 12px;
	border: 2px solid #e1e8ed;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s ease;
	background-color: #ffffff;
	box-sizing: border-box;
}

.vpp-form-row select,
.vpp-participant-item select {
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 40px;
}

.vpp-form-row select:focus,
.vpp-participant-item select:focus {
	outline: 1px solid var(--vpp-accent, #2271b1);
	outline-offset: 0;
	border-color: var(--vpp-accent, #2271b1);
	box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.15);
}

.vpp-form-row input:focus,
.vpp-form-row textarea:focus,
.vpp-participant-item input:focus,
.vpp-participant-item textarea:focus {
	outline: 1px solid var(--vpp-accent, #2271b1);
	outline-offset: 0;
	border-color: var(--vpp-accent, #2271b1);
	box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.15);
}

.vpp-form-row .vpp-form-col {
	display: inline-block;
	width: calc(50% - 10px);
	vertical-align: top;
	margin-right: 20px;
}

.vpp-form-row .vpp-form-col:last-child {
	margin-right: 0;
}

/* Billing Details - Layout a due colonne */
.vpp-billing-details .vpp-form-row {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
}

.vpp-billing-details .vpp-form-col {
	flex: 1;
	width: auto;
	margin-right: 0;
}

/* Checkbox allineati */
.vpp-participant-checkboxes .vpp-form-row {
	margin-bottom: 15px;
}

.vpp-participant-checkboxes .vpp-select-all-row {
	margin-bottom: 15px;
	padding: 10px;
	background: var(--vpp-accent-light, #f0f6fc);
	border-radius: 6px;
}

.vpp-checkbox-label {
	display: grid;
	grid-template-columns: 18px 1fr;
	column-gap: 10px;
	align-items: flex-start;
	cursor: pointer;
	margin-bottom: 0;
}

.vpp-checkbox-label input[type="checkbox"] {
	margin: 0;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.vpp-checkbox-label span {
	flex: 1;
	line-height: 1.4;
	display: block;
}

.vpp-checkbox-label a {
	color: var(--vpp-accent, #2271b1);
	text-decoration: underline;
}

.vpp-checkbox-label a:hover {
	color: var(--vpp-accent-dark, #135e96);
}

/* Allineamento checkbox "Seleziona tutto" con gli altri */
.vpp-select-all-row .vpp-checkbox-label {
	font-weight: 600;
	align-items: center;
}

.vpp-select-all-row .vpp-checkbox-label input[type="checkbox"] {
	margin-top: 0;
}

.vpp-select-all-row .vpp-checkbox-label,
.vpp-participant-checkboxes .vpp-form-row .vpp-checkbox-label {
	margin-bottom: 0;
}

/* Allinea le checkbox sotto alla prima (padding della riga "Seleziona tutto") */
.vpp-participant-checkboxes .vpp-form-row:not(.vpp-select-all-row) {
	padding-left: 10px;
	padding-right: 10px;
}

/* Partecipanti */
.vpp-participants-container {
	margin-top: 30px;
}

.vpp-participant-item {
	border: 2px solid #e1e8ed;
	border-radius: 6px;
	padding: 25px;
	margin-bottom: 20px;
	background: #ffffff;
}

.vpp-participant-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #e1e8ed;
}

.vpp-participant-title {
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
}

.vpp-participant-ticket-type {
	font-size: 14px;
	color: #666;
	padding: 4px 12px;
	background: var(--vpp-accent-light, #f0f6fc);
	border-radius: 4px;
}

/* Navigation */
.vpp-booking-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 18px;
	padding-top: 0;
}

.vpp-booking-navigation.vpp-nav-first-step {
	justify-content: flex-end !important;
}

.vpp-btn {
	padding: 12px 30px;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.vpp-btn-primary {
	background: var(--vpp-accent, #2271b1);
	color: #ffffff;
}

.vpp-btn-primary:hover:not(:disabled) {
	background: var(--vpp-accent-dark, #135e96);
}

.vpp-btn-secondary {
	background: #f0f0f0;
	color: #2c3e50;
}

.vpp-btn-secondary:hover:not(:disabled) {
	background: #e0e0e0;
}

.vpp-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Progress */
.vpp-booking-progress {
	margin-top: 20px;
	padding-top: 0;
}

.vpp-progress-bar {
	height: 4px;
	background: #e1e8ed;
	border-radius: 2px;
	margin-bottom: 20px;
	overflow: hidden;
}

.vpp-progress-fill {
	height: 100%;
	background: var(--vpp-accent, #2271b1);
	transition: width 0.3s ease;
}

.vpp-progress-steps {
	display: flex;
	justify-content: space-between;
}

.vpp-progress-step {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e1e8ed;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.2s ease;
	cursor: default;
	position: relative;
}

.vpp-progress-step.clickable {
	cursor: pointer !important;
}

.vpp-progress-step.clickable:hover {
	background: var(--vpp-accent-dark, #135e96);
}

.vpp-progress-step.completed.clickable {
	cursor: pointer !important;
}

.vpp-progress-step.completed {
	cursor: pointer;
}

/* Tooltip custom per step numerati */
.vpp-progress-step[data-tooltip]:hover::after,
.vpp-progress-step[data-tooltip]:focus::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: #111827;
	color: #fff;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	z-index: 10;
}

.vpp-progress-step[data-tooltip]:hover::before,
.vpp-progress-step[data-tooltip]:focus::before {
	content: '';
	position: absolute;
	bottom: calc(100% + 2px);
	left: 50%;
	transform: translateX(-50%);
	border-width: 6px 6px 0 6px;
	border-style: solid;
	border-color: #111827 transparent transparent transparent;
	z-index: 10;
}

.vpp-progress-step.completed:hover {
	background: var(--vpp-accent-dark, #135e96);
}

.vpp-progress-step.active {
	background: var(--vpp-accent, #2271b1);
	color: #ffffff;
}

.vpp-progress-step.completed {
	background: var(--vpp-accent, #2271b1);
	color: #ffffff;
}

/* Messages */
.vpp-booking-messages {
	margin-top: 20px;
}

.vpp-message {
	padding: 15px 20px;
	border-radius: 6px;
	margin-bottom: 15px;
}

.vpp-message-success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.vpp-message-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

.vpp-message-info {
	background: #d1ecf1;
	border: 1px solid #bee5eb;
	color: var(--vpp-accent-dark, #0c5460);
}

.vpp-time-slot {
	position: relative;
}
.vpp-time-slot-badge {
	margin-top: 6px;
}
.vpp-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}
.vpp-badge-low {
	background: #fff4e5;
	color: #b35b00;
	border: 1px solid #ffd8a8;
}
.vpp-badge-soldout {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}
.vpp-badge-closed {
	background: #e2e3e5;
	color: #383d41;
	border: 1px solid #d6d8db;
}

.vpp-hold-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
	background: var(--vpp-accent-dark, #0c5460);
	color: #fff;
	padding: 10px 12px;
	text-align: center;
	font-weight: 600;
	box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}
.vpp-hold-banner .vpp-hold-text {
	display: block;
}
/* Su desktop: nascondi break e nota piccola */
.vpp-hold-banner .vpp-hold-text br {
	display: none;
}
.vpp-hold-banner .vpp-hold-note {
	display: none;
}
@media (max-width: 640px) {
	.vpp-hold-banner {
		font-size: 13px;
		line-height: 1.4;
	}
	/* Su mobile: mostra break e nota piccola */
	.vpp-hold-banner .vpp-hold-text br {
		display: block;
	}
	.vpp-hold-banner .vpp-hold-note {
		display: inline;
		font-size: 11px;
		opacity: 0.9;
	}
}

.vpp-booking-restart {
	transition: all 0.2s ease;
}
.vpp-booking-restart:hover {
	border-color: #000 !important;
	background: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
	.vpp-booking-form-container {
		padding: 0;
	}

	.vpp-booking-step {
		padding: 20px;
	}

	.vpp-form-row .vpp-form-col {
		width: 100%;
		margin-right: 0;
		margin-bottom: 20px;
	}

	.vpp-time-slots-container {
		grid-template-columns: 1fr;
	}

	.vpp-calendar-container {
		overflow: hidden; /* Rimuove scroll orizzontale */
	}

	.vpp-calendar {
		gap: 3px;
		width: 100%;
	}

	.vpp-calendar-header {
		font-size: 11px;
		padding: 8px 4px;
	}

	.vpp-calendar-day {
		font-size: 12px;
		padding: 8px 4px;
		min-width: 0;
		min-height: 35px;
		aspect-ratio: 1;
	}

	.vpp-booking-navigation {
		flex-direction: row;
		justify-content: space-between;
		gap: 15px;
	}
	
	.vpp-booking-navigation.vpp-nav-first-step {
		justify-content: flex-end;
	}

	.vpp-btn {
		flex: 0 1 auto;
		min-width: 100px;
	}
	
	/* Accorcia "Conferma Prenotazione" su mobile */
	.vpp-btn-submit {
		padding: 12px 20px;
		font-size: 15px;
	}
	
	/* Billing Details - Stack su mobile */
	.vpp-billing-details .vpp-form-row {
		flex-direction: column;
		gap: 0;
		margin-bottom: 12px;
	}
	
	.vpp-billing-details .vpp-form-col {
		width: 100%;
		margin-bottom: 12px;
	}
	
	.vpp-billing-details .vpp-form-col:last-child {
		margin-bottom: 0;
	}

	/* Coerenza spaziature mobile per tutte le righe form */
	.vpp-form-row {
		margin-bottom: 12px;
	}

	.vpp-form-row .vpp-form-col {
		width: 100%;
		margin-right: 0;
		margin-bottom: 12px;
	}

	.vpp-form-row .vpp-form-col:last-child {
		margin-bottom: 0;
	}
	
	/* Total sticky su mobile */
	.vpp-booking-step[data-step="4"] {
		padding-bottom: 20px;
	}
	
	.vpp-booking-step[data-step="4"] .vpp-total-container {
		position: relative;
		left: auto;
		transform: none;
		width: 100%;
		max-width: 100%;
		border-radius: 6px;
		margin-top: 30px;
		padding: 16px;
	}
	
	.vpp-booking-step[data-step="4"] .vpp-total-container .vpp-total-amount-wrapper {
		min-width: 160px;
	}
	
	.vpp-booking-form-container {
		padding-bottom: 30px;
	}
}


