/**
 * Selettore quantita' + / - del modulo di prenotazione (tema Ticket v1.6).
 *
 * Sostituisce le frecce su/giu' del campo numerico nelle pagine prodotto del sito.
 * PWA biglietteria e totem non usano i template del tema, quindi non cambiano.
 * Markup: woocommerce-bookings/booking-form/number.php, comportamento: js/tkt-qty-stepper.js.
 */

.wc-bookings-booking-form .form-field.tkt-qty-field {
	display: flex;
	align-items: center;
	gap: 16px;
	height: auto;
	min-height: 60px;
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

/* Etichetta a sinistra, prezzo (span.prezzo-evidenziato aggiunto via JS) a destra. */
.wc-bookings-booking-form .form-field.tkt-qty-field > label {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	float: none;
	width: auto;
	height: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	line-height: 1.3;
}

.wc-bookings-booking-form .form-field.tkt-qty-field > label .prezzo-evidenziato {
	float: none;
	flex: 0 0 auto;
	word-break: normal;
	white-space: nowrap;
}

/* Contenitore a pillola */
.wc-bookings-booking-form .tkt-qty {
	--tkt-qty-accent: #b35a29;
	--tkt-qty-soft: #fbede4;
	--tkt-qty-ring: rgba(221, 147, 106, 0.22);
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 4px;
	background: #fff;
	border: 1px solid #e3dad3;
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wc-bookings-booking-form .tkt-qty.is-active {
	border-color: #dd936a;
	box-shadow: 0 0 0 3px var(--tkt-qty-ring);
}

/* Pulsanti - e + */
.wc-bookings-booking-form .tkt-qty .tkt-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tkt-qty-soft);
	color: var(--tkt-qty-accent);
	box-shadow: none;
	cursor: pointer;
	line-height: 1;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.wc-bookings-booking-form .tkt-qty .tkt-qty__btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	pointer-events: none;
}

.wc-bookings-booking-form .tkt-qty .tkt-qty__btn:hover:not(:disabled) {
	background: var(--tkt-qty-accent);
	color: #fff;
}

.wc-bookings-booking-form .tkt-qty .tkt-qty__btn:active:not(:disabled) {
	transform: scale(0.9);
}

.wc-bookings-booking-form .tkt-qty .tkt-qty__btn:disabled {
	background: #f1f1f1;
	color: #b5b5b5;
	cursor: default;
}

/* Numero al centro: niente frecce del browser */
.wc-bookings-booking-form .form-field .tkt-qty input.tkt-qty__input {
	float: none;
	width: 2.4em;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #1c1c1c;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 36px;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.wc-bookings-booking-form .tkt-qty input.tkt-qty__input::-webkit-outer-spin-button,
.wc-bookings-booking-form .tkt-qty input.tkt-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.wc-bookings-booking-form .tkt-qty.is-bump input.tkt-qty__input {
	animation: tkt-qty-bump 0.22s ease;
}

@keyframes tkt-qty-bump {
	0% { transform: scale(1); }
	40% { transform: scale(1.22); }
	100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.wc-bookings-booking-form .tkt-qty,
	.wc-bookings-booking-form .tkt-qty .tkt-qty__btn {
		transition: none;
	}
	.wc-bookings-booking-form .tkt-qty.is-bump input.tkt-qty__input {
		animation: none;
	}
}

/* Smartphone: pulsanti piu' grandi (area di tocco 44px) */
@media (max-width: 575.98px) {
	.wc-bookings-booking-form .form-field.tkt-qty-field {
		gap: 10px;
	}
	/* prezzo sotto il nome, uguale per tutte le righe */
	.wc-bookings-booking-form .form-field.tkt-qty-field > label {
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 4px;
	}
	.wc-bookings-booking-form .tkt-qty .tkt-qty__btn {
		width: 40px;
		height: 40px;
	}
	.wc-bookings-booking-form .form-field .tkt-qty input.tkt-qty__input {
		width: 2.1em;
	}
}
