/* ==========================================================================
   Buy Tickets — steppers, confirmation, parking, passes
   --------------------------------------------------------------------------
   Loaded only on the Buy Tickets template. Existing tokens throughout.

   The price-grid and order-bar sections that used to live here have gone: the
   table became one card grid, and the fixed bottom bar became a laid-out rail.
   Both now live in tickets-cards.css. Nothing here styles an element that no
   longer renders.
   ========================================================================== */


/* --------------------------------------------------------------------------
   2. Steppers
   -------------------------------------------------------------------------- */

.idc-stepper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	margin-top: 8px;
}

.idc-stepper[hidden] {
	display: none;
}

.idc-stepper button {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	transition: border-color .14s ease, color .14s ease;
}

.idc-stepper button:hover {
	border-color: var(--border-hover);
	color: var(--gold);
}

.idc-stepper input {
	width: 42px;
	height: 30px;
	padding: 0 4px;
	text-align: center;
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-family: var(--font-body);
	font-size: .9rem;
	font-variant-numeric: lining-nums tabular-nums;
	/* The native spinners sit on top of a 42px box and cannot be hit reliably;
	   the -/+ buttons are the control. */
	appearance: textfield;
	-moz-appearance: textfield;
}

.idc-stepper input::-webkit-outer-spin-button,
.idc-stepper input::-webkit-inner-spin-button {
	appearance: none;
	margin: 0;
}

/* A picked cell should be findable after scrolling away and back. */
.idc-stepper.has-qty input {
	border-color: var(--gold);
	color: var(--gold-light);
	font-weight: 700;
}


/* --------------------------------------------------------------------------
   4. Confirmation
   -------------------------------------------------------------------------- */

.idc-order-flash {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 61;
	transform: translate(-50%, 12px);
	opacity: 0;
	pointer-events: none;
	background: var(--bg-card);
	border: 1px solid var(--success);
	border-radius: var(--radius-pill);
	padding: 12px 24px;
	color: var(--text);
	font-size: .92rem;
	font-weight: 600;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
	transition: opacity .2s ease, transform .2s ease;
}

.idc-order-flash.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

.idc-order-flash.is-error {
	border-color: var(--error);
}

/* --------------------------------------------------------------------------
   4b. Parking — a row of days, not six cards
   -------------------------------------------------------------------------- */

.idc-park-lead {
	text-align: center;
	color: var(--text-muted);
	margin: 0 0 20px;
}

.idc-park-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 10px;
	margin-bottom: 22px;
}

.idc-park-day {
	--chip-accent: var(--saffron);

	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas:
		"dot label price"
		"dot date  left"
		"add add   add";
	gap: 2px 10px;
	align-items: center;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-left: 3px solid var(--chip-accent);
	border-radius: var(--radius-md);
	padding: 14px 16px;
}

.idc-park-dot {
	grid-area: dot;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--chip-accent);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .3);
}

.idc-park-label { grid-area: label; font-weight: 600; color: var(--text); }
.idc-park-date  { grid-area: date;  font-size: .78rem; color: var(--text-dim); }
.idc-park-price { grid-area: price; font-weight: 700; color: var(--gold); text-align: right; }

/* Only rendered when stock is genuinely low, so it always means something. */
.idc-park-left {
	grid-area: left;
	font-size: .74rem;
	font-weight: 700;
	color: var(--error);
	text-align: right;
}

.idc-park-add {
	grid-area: add;
	margin-top: 10px;
	padding: 8px 14px;
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(var(--gold-rgb), .3);
	border-radius: var(--radius-pill);
	color: var(--gold);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .16s ease, color .16s ease;
}

.idc-park-add:hover,
.idc-park-add:focus-visible { background: var(--gold); color: var(--bg); }
.idc-park-add:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.idc-park-day .idc-stepper { grid-area: add; margin-top: 10px; }
.idc-park-day.is-out { opacity: .55; }
.idc-park-out { grid-area: add; margin-top: 10px; text-align: center; color: var(--text-dim); font-size: .8rem; }

.idc-park-all {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	background: var(--bg-card);
	border: 1px solid var(--border-hover);
	border-radius: var(--radius-lg);
	padding: 20px 24px;
}

.idc-park-all-name  { font-family: var(--font-heading); font-size: 1.2rem; margin: 0 0 4px; color: var(--text); }
.idc-park-all-note  { margin: 0; color: var(--text-muted); font-size: .9rem; }
.idc-park-all-note strong { color: var(--gold-light); }
.idc-park-all-buy   { display: flex; align-items: center; gap: 16px; }
.idc-park-all-price { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--gold); }

/* --------------------------------------------------------------------------
   4c. Passes ladder and combo party sizes
   -------------------------------------------------------------------------- */

.idc-ladder .combo-card.is-featured {
	border-color: var(--gold);
	position: relative;
}

.idc-ladder-flag {
	position: absolute;
	top: -11px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--gold);
	color: var(--bg);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 3px 12px;
	border-radius: var(--radius-pill);
	white-space: nowrap;
}

/* The comparison a family is actually making. */
.idc-ladder-each {
	margin: 2px 0 10px;
	font-size: .82rem;
	color: var(--text-muted);
	text-align: center;
}

.idc-party-badge {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 14px;
	border: 1px solid rgba(var(--gold-rgb), .35);
	border-radius: var(--radius-pill);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--gold);
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
	.idc-park-day,
	.idc-park-all {
		padding: 14px;
	}

	.idc-park-all {
		flex-direction: column;
		align-items: stretch;
	}
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.idc-order-flash,
	.idc-stepper button,
	.idc-park-add {
		transition: none;
	}
}
