/* =============================================================================
   wwh/event-ticket-cta — ticket panel internals.

   The outer .wwh-event-ticket-cta wrapper is positioned by the per-template
   stylesheet (themes/.../assets/css/event-single.css) — sticky on desktop,
   stacked on mobile. This file handles only the obsidian panel itself
   (Stripe + Free) and the sold-out / sales-closed variants.

   All tokens via theme.json — no raw hex / px / rem outside the THEME_STANDARDS
   snap-table.
   ========================================================================= */

.wwh-event-ticket-cta { display: block; }

.wwh-event-ticket-panel {
	background: var(--wp--preset--color--warm-obsidian);
	color: #fff;
	padding: var(--wp--preset--spacing--8);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--4);
	font-family: var(--wp--preset--font-family--body);
}

/* Variant shells: external and sales-closed use cream-2; sold-out uses warm-red. */
.wwh-event-ticket-panel--external {
	background: var(--wp--preset--color--warm-cream-2);
	color: var(--wp--preset--color--ink-primary);
}
.wwh-event-ticket-panel--closed {
	background: var(--wp--preset--color--warm-cream-2);
	color: var(--wp--preset--color--ink-primary);
}
.wwh-event-ticket-panel--soldout {
	background: var(--wp--preset--color--event-soldout);
	color: #fff;
}
.wwh-event-ticket-panel--admin-notice {
	background: var(--wp--preset--color--warm-cream-2);
	color: var(--wp--preset--color--ink-primary);
	border-left: 3px solid var(--wp--preset--color--event-soldout);
}

/* Label (eyebrow caps) */
.wwh-event-ticket-panel__lab {
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin: 0;
}
.wwh-event-ticket-panel--external .wwh-event-ticket-panel__lab,
.wwh-event-ticket-panel--closed .wwh-event-ticket-panel__lab,
.wwh-event-ticket-panel--admin-notice .wwh-event-ticket-panel__lab {
	color: var(--wp--preset--color--ink-caption);
}

/* Headline price */
.wwh-event-ticket-panel__price {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 400;
	font-size: var(--wp--preset--font-size--display-section);
	line-height: 1;
	color: inherit;
	margin: 0;
}
.wwh-event-ticket-panel__price small {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	font-style: italic;
	color: rgba(255, 255, 255, 0.6);
	margin-top: var(--wp--preset--spacing--1);
}
.wwh-event-ticket-panel--external .wwh-event-ticket-panel__price small,
.wwh-event-ticket-panel--closed .wwh-event-ticket-panel__price small {
	color: var(--wp--preset--color--ink-caption);
}

/* Pricing lines — sub-line tiered pricing copy below the headline */
.wwh-event-ticket-panel__pricing-lines {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	font-style: italic;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	padding: var(--wp--preset--spacing--3) 0;
}

/* Quantity stepper */
.wwh-event-ticket-panel__qty {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--2);
}
.wwh-event-ticket-panel__qty label {
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}
.wwh-event-ticket-panel__qty-ctl {
	display: grid;
	grid-template-columns: 44px 1fr 44px;
	align-items: stretch;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.05);
}
.wwh-event-ticket-panel__qty-ctl button {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: var(--wp--preset--font-size--card-title);
	cursor: pointer;
	padding: var(--wp--preset--spacing--3) 0;
}
.wwh-event-ticket-panel__qty-ctl button:hover {
	background: rgba(255, 255, 255, 0.08);
}
.wwh-event-ticket-panel__qty-ctl input[type="number"] {
	background: transparent;
	border: 0;
	color: #fff;
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-size: var(--wp--preset--font-size--card-title);
	text-align: center;
	-moz-appearance: textfield;
	min-width: 0;
}
.wwh-event-ticket-panel__qty-ctl input[type="number"]::-webkit-outer-spin-button,
.wwh-event-ticket-panel__qty-ctl input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none; margin: 0;
}

/* Text input fields */
.wwh-event-ticket-panel__field {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--2);
}
.wwh-event-ticket-panel__field > span {
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}
.wwh-event-ticket-panel__field input {
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body);
	font-style: italic;
	padding: var(--wp--preset--spacing--3) 0;
}
.wwh-event-ticket-panel__field input::placeholder {
	color: rgba(255, 255, 255, 0.4);
}
.wwh-event-ticket-panel__field input:focus {
	outline: 0;
	border-bottom-color: #fff;
}

/* Submit button (and ghost variant) */
.wwh-event-ticket-panel__submit {
	display: inline-block;
	background: #fff;
	color: var(--wp--preset--color--ink-primary);
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	padding: var(--wp--preset--spacing--6) var(--wp--preset--spacing--8);
	border: 0;
	border-radius: 9999px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	margin-top: var(--wp--preset--spacing--3);
}
.wwh-event-ticket-panel__submit:hover {
	background: rgba(255, 255, 255, 0.88);
}
.wwh-event-ticket-panel__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.wwh-event-ticket-panel__submit--ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.55);
	color: #fff;
}
.wwh-event-ticket-panel--external .wwh-event-ticket-panel__submit--ghost,
.wwh-event-ticket-panel--closed .wwh-event-ticket-panel__submit--ghost {
	border-color: var(--wp--preset--color--ink-primary);
	color: var(--wp--preset--color--ink-primary);
}
.wwh-event-ticket-panel__submit--ghost:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* Seats remaining strip (only renders past the 50% gate) */
.wwh-event-ticket-panel__seats {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--2);
	padding-top: var(--wp--preset--spacing--4);
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	margin-top: var(--wp--preset--spacing--2);
}
.wwh-event-ticket-panel__seats-row {
	display: flex;
	justify-content: space-between;
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}
.wwh-event-ticket-panel__seats-bar {
	height: 3px;
	background: rgba(255, 255, 255, 0.15);
	overflow: hidden;
}
.wwh-event-ticket-panel__seats-bar i {
	display: block;
	height: 100%;
	background: var(--wp--preset--color--event-status-dot);
}
.wwh-event-ticket-panel__seats-note {
	font-family: var(--wp--preset--font-family--body);
	font-style: italic;
	font-size: var(--wp--preset--font-size--caption);
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

/* Closes-at line */
.wwh-event-ticket-panel__closes {
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
	padding-top: var(--wp--preset--spacing--3);
}

/* Inline note (sold-out / closed copy) */
.wwh-event-ticket-panel__note {
	font-family: var(--wp--preset--font-family--body);
	font-style: italic;
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
}
.wwh-event-ticket-panel--external .wwh-event-ticket-panel__note,
.wwh-event-ticket-panel--closed .wwh-event-ticket-panel__note,
.wwh-event-ticket-panel--admin-notice .wwh-event-ticket-panel__note {
	color: var(--wp--preset--color--ink-caption);
}

/* Error / success states */
.wwh-event-ticket-panel__error {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	color: #ffd6c2;
	margin: 0;
}
.wwh-event-ticket-panel__success {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--event-status-dot);
	margin: 0;
	font-weight: 500;
}

/*
 * The "One last check" puzzle on the free RSVP panel (core 2.124.0). Its own
 * styles (contact-form/style.css) assume a light page, so its caption-grey
 * label and hint would be unreadable on this dark panel. The track and word
 * field keep their light fill, which reads as a field here.
 */
.wwh-event-ticket-panel .wwh-contact-form__label,
.wwh-event-ticket-panel .wwh-contact-form__puzzle-hint {
	color: rgba(255, 255, 255, 0.75);
}
.wwh-event-ticket-panel .wwh-contact-form__puzzle-hint strong {
	color: #fff;
}
.wwh-event-ticket-panel .wwh-contact-form__puzzle-alt .wwh-contact-form__input {
	color: var(--wp--preset--color--ink-primary);
}
