/**
 * Default booking-engine styles — intentionally plain/neutral so the
 * plugin looks reasonable on any theme out of the box. A theme overrides
 * these by loading its own stylesheet AFTER `ithraa-tb-booking` (set it
 * as a dependency via wp_enqueue_style(..., array('ithraa-tb-booking'))),
 * not by editing this file.
 */

.ithraa-tb-container {
	max-width: 1100px;
	margin-inline: auto;
	padding-inline: 1.25rem;
}

/* Trip grid / card */

.trip-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
	margin-block: 1.5rem;
}

.trip-card {
	background: #F8F4EC;
	border: 1px solid #E4DCC9;
	border-radius: 8px;
	overflow: hidden;
}

.trip-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
}

.trip-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.trip-card__media--placeholder {
	background: #2C4A63;
	display: flex;
	align-items: center;
	justify-content: center;
}

.trip-card__media-icon {
	color: rgba(255, 255, 255, 0.85);
}

.trip-card__media-icon svg {
	width: 40px;
	height: 40px;
}

.trip-card__status-badge {
	position: absolute;
	inset-block-start: 0.5rem;
	inset-inline-end: 0.5rem;
	background: #fff;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
}

.trip-card--waitlist .trip-card__status-badge {
	color: #92400e;
	background: #fef3c7;
}

.trip-card--sold_out .trip-card__status-badge {
	background: #fee2e2;
	color: #b91c1c;
}

/* "Fully Booked" reads as a deliberate sticker/ribbon across the card's
   image corner, distinct from the plain waitlist/sold-out pills — the
   whole point of the admin toggle is to make a trip look unmistakably
   closed at a glance. .trip-card__media already clips overflow, so the
   rotated ribbon's overhanging ends get cut off cleanly at the image edge. */
.trip-card--fully_booked .trip-card__status-badge {
	inset-block-start: 0.85rem;
	inset-inline-end: -2.25rem;
	inset-inline-start: auto;
	transform: rotate(45deg);
	transform-origin: center;
	border-radius: 0;
	width: 10rem;
	text-align: center;
	background: #b91c1c;
	color: #fff;
	padding: 0.3rem 0;
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.trip-card__body {
	padding: 1.1rem;
}

.trip-card__title {
	margin-block: 0 0.4rem;
	font-size: 1.1rem;
}

.trip-card__title a {
	text-decoration: none;
	color: inherit;
}

.trip-card__date {
	font-size: 0.85rem;
	color: #6B6459;
	margin: 0;
}

.trip-card__price {
	font-weight: 700;
	margin-block: 0.3rem;
}

.trip-card__seats {
	font-size: 0.85rem;
	color: #6B6459;
	margin-block: 0.2rem 0.7rem;
}

/* Seat-availability bar — starts at width:0 (set inline) and animates up
   to its real value (assets/js/booking.js), then keeps transitioning
   smoothly whenever assets/js/seat-tracker.js applies a live update. */

.trip-card__seat-bar-track {
	background: #E4DCC9;
	border-radius: 999px;
	height: 6px;
	overflow: hidden;
	margin-block: 0.5rem 0.3rem;
}

.trip-card__seat-bar-fill {
	height: 100%;
	border-radius: 999px;
	transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
	.trip-card__seat-bar-fill {
		transition: none;
	}
}

/* Buttons / notices / forms — generic ithraa-tb-* / ithraa- prefix kept
   distinct from any theme's own .button/.notice/.form-row classes. */

/* Selectors are doubled up as `button.ithraa-tb-button` (not just
   `.ithraa-tb-button`) throughout this button block. Themes commonly ship
   a reset stylesheet targeting `[type=button],[type=submit],button` with
   an attribute selector, which has the same specificity as a single
   class — so on a plain <button>, whichever stylesheet loads later wins
   the tie. Pairing the class with the `button`/`a` element type raises
   our specificity a notch so it wins regardless of enqueue order,
   instead of depending on this plugin's CSS loading after the theme's. */

/* a.ithraa-tb-button is doubled up (.ithraa-tb-button.ithraa-tb-button)
   to push specificity to (0,2,1) — themes commonly ship a
   `.page-content a { text-decoration: underline }` rule that ties at
   (0,1,1) with a plain `a.ithraa-tb-button`, and source order isn't in
   our favour for a plugin stylesheet loaded before the theme's. */
.ithraa-tb-button,
button.ithraa-tb-button,
a.ithraa-tb-button.ithraa-tb-button {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	border-radius: 8px;
	text-decoration: none;
	border: 1px solid #1B3A57;
	color: #1B3A57;
	background: transparent;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ithraa-tb-button--primary,
button.ithraa-tb-button--primary,
a.ithraa-tb-button--primary {
	background: #1B3A57;
	color: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(27, 58, 87, 0.18);
}

.ithraa-tb-button--primary:hover,
button.ithraa-tb-button--primary:hover,
a.ithraa-tb-button--primary:hover {
	background: #14293D;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(27, 58, 87, 0.24);
}

.ithraa-tb-button--block,
button.ithraa-tb-button--block {
	display: block;
	width: 100%;
	text-align: center;
	padding-block: 0.9rem;
	font-size: 1.05rem;
}

.ithraa-tb-button:disabled,
button.ithraa-tb-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.ithraa-notice {
	padding: 0.75rem 1rem;
	border-radius: 4px;
	margin-block-end: 1rem;
	background: #F3EEE3;
}

.ithraa-notice--success {
	background: #e6f4ea;
	color: #1a7f37;
}

.ithraa-notice--error {
	background: #fde7e9;
	color: #b3492f;
}

/* Pickup points — informational only (no selection control), so it reads
   as a highlighted callout rather than a plain form row. */
.ithraa-pickup-notice {
	margin-block-end: 1.1rem;
	padding: 1rem 1.1rem;
	background: #E1EFEF;
	border: 1px solid #BFDCDC;
	border-inline-start: 4px solid #2E8B8B;
	border-radius: 8px;
}

.ithraa-pickup-notice__title {
	margin: 0 0 0.6rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #14293D;
}

.ithraa-pickup-notice__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.ithraa-pickup-notice__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
}

.ithraa-pickup-notice__point {
	display: flex;
	flex-direction: column;
}

.ithraa-pickup-notice__label {
	font-weight: 600;
	color: #14293D;
	font-size: 0.92rem;
}

.ithraa-pickup-notice__address {
	font-size: 0.8rem;
	color: #4A6363;
}

.ithraa-pickup-notice__time {
	flex-shrink: 0;
	font-weight: 700;
	color: #1B3A57;
	font-size: 0.92rem;
	white-space: nowrap;
}

.ithraa-form-row {
	margin-block-end: 1.1rem;
}

.ithraa-form-row label {
	display: block;
	margin-block-end: 0.4rem;
	font-weight: 600;
	color: #1B3A57;
	font-size: 0.92rem;
}

.ithraa-form-row small {
	display: block;
	margin-block-start: 0.35rem;
	color: #6B6459;
	font-size: 0.8rem;
}

.ithraa-form-row input[type="text"],
.ithraa-form-row input[type="tel"],
.ithraa-form-row input[type="email"],
.ithraa-form-row input[type="number"],
.ithraa-form-row input[type="date"],
.ithraa-form-row select,
.ithraa-form-row textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid #D9D2C3;
	border-radius: 8px;
	font-size: 0.95rem;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ithraa-form-row input:focus,
.ithraa-form-row select:focus,
.ithraa-form-row textarea:focus {
	outline: none;
	border-color: #1B3A57;
	box-shadow: 0 0 0 3px rgba(27, 58, 87, 0.12);
}

.ithraa-radio-group {
	display: flex;
	gap: 1.25rem;
}

.ithraa-radio-group label {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 500;
}

/* Booking form card shell + sectioned layout — replaces one long flat
   list of fields with grouped, scannable steps ("How many are coming?" /
   "Your details" / "Trip details" / confirm+submit). */

.ithraa-booking-form {
	background: #F8F4EC;
	border: 1px solid #E4DCC9;
	border-radius: 16px;
	padding: 1.75rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(17, 24, 39, 0.06);
}

@media (max-width: 480px) {
	.ithraa-booking-form {
		padding: 1.25rem;
	}
}

.ithraa-form-section {
	padding-block-end: 1.5rem;
	margin-block-end: 1.5rem;
	border-block-end: 1px solid #F3EEE3;
}

.ithraa-form-section--confirm {
	border-block-end: none;
	padding-block-end: 0;
	margin-block-end: 0;
}

.ithraa-form-section__title {
	font-size: 1rem;
	font-weight: 700;
	color: #14293D;
	margin: 0 0 1.1rem;
}

/* Party-size rows (adults / children / passengers) — label + rate on the
   left, +/- stepper on the right. */

.ithraa-party-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.65rem;
}

.ithraa-party-row + .ithraa-party-row {
	border-block-start: 1px solid #F3EEE3;
}

.ithraa-party-row__label {
	display: flex;
	flex-direction: column;
}

.ithraa-party-row__name {
	font-weight: 600;
	color: #14293D;
}

.ithraa-party-row__rate {
	font-size: 0.8rem;
	color: #6B6459;
}

.ithraa-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid #D9D2C3;
	border-radius: 999px;
	overflow: hidden;
	flex-shrink: 0;
}

.ithraa-stepper__btn,
button.ithraa-stepper__btn {
	width: 2.25rem;
	height: 2.25rem;
	border: none;
	background: #F8F4EC;
	color: #1B3A57;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ithraa-stepper__btn:hover,
button.ithraa-stepper__btn:hover {
	background: #E1EFEF;
}

.ithraa-stepper__input {
	width: 2.75rem;
	height: 2.25rem;
	border: none;
	border-inline: 1px solid #E4DCC9;
	text-align: center;
	font-weight: 700;
	font-size: 0.95rem;
	-moz-appearance: textfield;
}

.ithraa-stepper__input::-webkit-outer-spin-button,
.ithraa-stepper__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ithraa-stepper__input:focus {
	outline: none;
}

/* Live price summary — updated by assets/js/booking.js as steppers change. */

.ithraa-price-summary {
	margin-block-start: 1rem;
	padding: 1rem 1.1rem;
	/* Pale gold tint (not the card's own cream) so the running total stands
	   out as a highlight, matching the brand's gold-for-highlights role. */
	background: #FBF3E3;
	border: 1px solid #EAD9B4;
	border-radius: 10px;
}

.ithraa-price-summary__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	font-weight: 700;
	color: #14293D;
}

.ithraa-price-summary__total {
	font-size: 1.3rem;
	color: #C9962E;
}

/* Visually-hidden (not display:none/off-canvas) — browser autofill has
   been observed to still fill fields positioned off-screen via a large
   negative offset, especially ones named like an email field, which was
   causing real visitors to trip the honeypot. This combination (near-zero
   size + clipped + hidden overflow) is the standard technique autofill
   engines reliably skip. */
.ithraa-honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.js-ithraa-headcount-warning {
	color: #b3492f;
}

/* Trip detail */

/* Smooth-scrolls the sticky CTA's #book jump link — scoped to pages that
   actually contain a trip-detail view rather than setting this sitewide.
   Browsers without :has() support just get the default instant jump,
   not broken behaviour. */
html:has(.trip-detail) {
	scroll-behavior: smooth;
}

.trip-detail__hero {
	position: relative;
	max-height: 420px;
	overflow: hidden;
	border-radius: 14px;
}

.trip-detail__hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Gradient scrim so the status badge (and any future overlaid text)
   stays legible over bright/busy photos. Sits between the image and the
   badge via z-index, not DOM order, since ::after paints after real
   children by default and would otherwise cover the badge too. */
.trip-detail__hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 35%, rgba(0, 0, 0, 0) 65%);
}

.trip-detail__hero--placeholder {
	background: #2C4A63;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
}

.trip-detail__hero-icon {
	color: rgba(255, 255, 255, 0.85);
}

.trip-detail__hero-icon svg {
	width: 64px;
	height: 64px;
}

.trip-detail__hero-badge {
	position: absolute;
	inset-block-start: 1rem;
	inset-inline-end: 1rem;
	z-index: 2;
	background: #fff;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.85rem;
}

/* Same ribbon/sticker treatment as .trip-card--fully_booked, scaled up
   for the larger trip-detail hero image. .trip-detail__hero already
   clips overflow (border-radius + overflow:hidden), so the rotated
   ribbon's ends cut off cleanly at the image edge. */
.trip-detail__hero-badge--fully_booked {
	inset-block-start: 1.25rem;
	inset-inline-end: -3rem;
	transform: rotate(45deg);
	border-radius: 0;
	width: 14rem;
	text-align: center;
	background: #b91c1c;
	color: #fff;
	padding: 0.45rem 0;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.trip-detail__layout {
	max-width: 1100px;
	margin-inline: auto;
	padding: 1.5rem 1.25rem;
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2rem;
	align-items: start;
}

@media (max-width: 860px) {
	.trip-detail__layout {
		grid-template-columns: 1fr;
	}

	/* Mobile reading order: hero image, then the quick-facts sidebar,
	   then the full description/tabs, then the booking form (a separate
	   element after .trip-detail__layout, so it's already last). Desktop
	   is untouched — `order` only has any visual effect while items
	   share a row/column together, so this is inert outside this
	   max-width:860px block. */
	.trip-detail__sidebar {
		order: -1;
	}

	.trip-detail__main {
		order: 0;
	}
}

.trip-quick-facts {
	background: #F8F4EC;
	border: 1px solid #E4DCC9;
	border-radius: 8px;
	padding: 1.5rem;
	margin-block-end: 1.5rem;
}

/* Booking form section — full width, below the description/quick-facts
   layout rather than tucked into the sidebar, so it reads as the page's
   main call to action. */
.trip-detail__booking {
	max-width: 700px;
	margin-inline: auto;
	padding: 3rem 1.25rem 4rem;
}

.trip-detail__booking h2 {
	text-align: center;
	font-size: 1.6rem;
	margin-block-end: 1.75rem;
	color: #14293D;
}

.trip-quick-facts__row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-block: 0.5rem;
	border-block-start: 1px solid #E4DCC9;
	font-weight: 600;
}

.trip-quick-facts__row:first-of-type {
	border-block-start: none;
}

.trip-quick-facts__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 50%;
	/* Pale teal tint — the brand's secondary colour is specifically for
	   icon/emblem accents. */
	background: #E1EFEF;
	color: #1B3A57;
}

.trip-quick-facts__icon svg {
	width: 16px;
	height: 16px;
}

/* Tabs (residential trip-detail + the trip_category_tabs shortcode) */

.trip-tabs__nav,
.trip-tabs-filter__nav {
	display: flex;
	gap: 0.5rem;
	border-block-end: 1px solid #E4DCC9;
	margin-block-end: 1rem;
	flex-wrap: wrap;
}

.trip-tabs__tab,
.trip-tabs-filter__tab,
button.trip-tabs__tab,
button.trip-tabs-filter__tab {
	padding: 0.5rem 1rem;
	background: none;
	border: none;
	border-block-end: 2px solid transparent;
	cursor: pointer;
	font-size: 0.95rem;
	color: #1B3A57;
}

.trip-tabs__tab.is-active,
.trip-tabs-filter__tab.is-active,
button.trip-tabs__tab.is-active,
button.trip-tabs-filter__tab.is-active {
	border-block-end-color: #1B3A57;
	font-weight: 600;
}

/* "Fully Booked" tab reads as a status filter, not just another category —
   tinted red year-round (not only while active) so it stands apart from
   the plain category tabs beside it. */
.trip-tabs-filter__tab--fully-booked,
button.trip-tabs-filter__tab--fully-booked {
	color: #b91c1c;
}

.trip-tabs-filter__tab--fully-booked.is-active,
button.trip-tabs-filter__tab--fully-booked.is-active {
	border-block-end-color: #b91c1c;
}

.trip-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 0.5rem;
	margin-block: 1.25rem;
}

.trip-gallery__image {
	border-radius: 6px;
}

/* Floating "Book Now" bar — fixed to the bottom of the viewport on both
   mobile and desktop, showing the trip name + a jump link to the real
   booking form (#book). assets/js/booking.js hides it (translateY) once
   the actual form scrolls into view, so the CTA doesn't sit duplicated
   on top of the form itself. */

.trip-detail__sticky-cta {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 1.25rem;
	padding-block-end: calc(0.75rem + env(safe-area-inset-bottom, 0px));
	background: #1B3A57;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
	transform: translateY(0);
	transition: transform 0.25s ease;
}

.trip-detail__sticky-cta.is-hidden {
	transform: translateY(100%);
}

.trip-detail__sticky-cta-name {
	color: #fff;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.trip-detail__sticky-cta-button,
a.trip-detail__sticky-cta-button {
	flex-shrink: 0;
	background: #fff;
	color: #1B3A57;
	border-color: #fff;
	padding: 0.55rem 1.25rem;
}

.trip-detail__sticky-cta-button:hover,
a.trip-detail__sticky-cta-button:hover {
	background: #F3EEE3;
}

@media (prefers-reduced-motion: reduce) {
	.trip-detail__sticky-cta {
		transition: none;
	}
}

/* Booking confirmation ("thank you") page — icon + heading + message,
   then the ticket card (if applicable), then a CTA back to the trips
   archive. Centred, generously spaced, and icon-led so the outcome
   (confirmed / waitlisted / problem) reads instantly on any screen size. */

.ithraa-confirmation {
	max-width: 640px;
	margin-inline: auto;
	padding: 3rem 1.25rem 4rem;
	text-align: center;
}

@media (max-width: 480px) {
	.ithraa-confirmation {
		padding: 2rem 1rem 3rem;
	}
}

.ithraa-confirmation__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	margin-block-end: 1.25rem;
}

.ithraa-confirmation__icon svg {
	width: 40px;
	height: 40px;
}

.ithraa-confirmation__icon--check {
	background: #e6f4ea;
	color: #1a7f37;
}

.ithraa-confirmation__icon--clock {
	background: #fef3c7;
	color: #9a6700;
}

.ithraa-confirmation__icon--warning {
	background: #fde7e9;
	color: #b3492f;
}

.ithraa-confirmation__heading {
	font-size: 1.75rem;
	font-weight: 700;
	color: #1B3A57;
	margin: 0 0 0.6rem;
}

@media (max-width: 480px) {
	.ithraa-confirmation__heading {
		font-size: 1.4rem;
	}
}

.ithraa-confirmation__message {
	color: #6B6459;
	font-size: 1.05rem;
	line-height: 1.6;
	max-width: 480px;
	margin-inline: auto;
}

.ithraa-confirmation__cta {
	margin-block-start: 2rem;
}

/* Booking confirmation "ticket" — modern boarding-pass style card: a main
   stub (trip facts) plus a torn-off counterfoil (status + reference +
   PDF download), matching the layout of the PDF (inc/pdf-ticket.php) and
   the confirmation email (inc/emails.php). */

.ithraa-ticket {
	display: grid;
	grid-template-columns: 2fr 1fr;
	max-width: 720px;
	margin: 1.5rem auto;
	background: #F8F4EC;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

@media (max-width: 560px) {
	.ithraa-ticket {
		grid-template-columns: 1fr;
	}
}

.ithraa-ticket__main {
	padding: 1.75rem 1.75rem 1.5rem;
}

.ithraa-ticket__header {
	padding-block-end: 1rem;
	margin-block-end: 1rem;
	border-block-end: 1px solid #F3EEE3;
}

.ithraa-ticket__eyebrow {
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #A8A093;
	font-weight: 700;
}

.ithraa-ticket__title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #14293D;
	margin-block-start: 0.15rem;
}

.ithraa-ticket__date {
	color: #6B6459;
	font-size: 0.9rem;
	margin-block-start: 0.2rem;
}

.ithraa-ticket__facts {
	display: grid;
	gap: 0.65rem;
}

.ithraa-ticket__fact {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.9rem;
}

.ithraa-ticket__fact-label {
	color: #6B6459;
}

.ithraa-ticket__fact-value {
	color: #14293D;
	font-weight: 600;
	text-align: right;
}

.ithraa-ticket__stub {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
	padding: 1.75rem 1.25rem;
	/* Slightly deeper cream than .ithraa-ticket's own background so the
	   counterfoil still reads as visually distinct from the main stub. */
	background: #F3EEE3;
	border-inline-start: 2px dashed #D9D2C3;
}

@media (max-width: 560px) {
	.ithraa-ticket__stub {
		border-inline-start: none;
		border-block-start: 2px dashed #D9D2C3;
	}
}

/* Torn-ticket notches, echoing the PDF's cut-out perforation ends. */
.ithraa-ticket__stub::before,
.ithraa-ticket__stub::after {
	content: "";
	position: absolute;
	inset-inline-start: -9px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	/* Matches the page background (not the card's) so these read as
	   punched-through cut-outs revealing what's behind the ticket. */
	background: #F1EDE4;
}

.ithraa-ticket__stub::before {
	inset-block-start: -9px;
}

.ithraa-ticket__stub::after {
	inset-block-end: -9px;
}

@media (max-width: 560px) {
	.ithraa-ticket__stub::before,
	.ithraa-ticket__stub::after {
		inset-inline-start: 50%;
		margin-inline-start: -9px;
		inset-block-start: -9px;
		inset-block-end: auto;
	}

	.ithraa-ticket__stub::after {
		inset-block-start: auto;
		inset-block-end: -9px;
	}
}

.ithraa-ticket__status-badge {
	display: inline-block;
	padding: 0.3rem 0.9rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ithraa-ticket--confirmed .ithraa-ticket__status-badge {
	background: #e6f4ea;
	color: #1a7f37;
}

.ithraa-ticket--waitlisted .ithraa-ticket__status-badge {
	background: #fef3c7;
	color: #9a6700;
}

.ithraa-ticket__reference-label {
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #A8A093;
	margin-block-start: 0.5rem;
}

.ithraa-ticket__reference {
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.ithraa-ticket--confirmed .ithraa-ticket__reference {
	color: #1a7f37;
}

.ithraa-ticket--waitlisted .ithraa-ticket__reference {
	color: #9a6700;
}

.ithraa-ticket__download {
	margin-block-start: 0.5rem;
	font-size: 0.85rem;
	padding: 0.55rem 1rem;
}
