/* Booking flow, after the payment: confirmation page (thankyou.php), booking details (order-details.php,
 * view-order.php) and small My bookings additions. Theme tokens only (app.css :root). */

/* The confirmation page prints its own headline; the page title above it would repeat it. */
body.ggt-theme.woocommerce-order-received .ggt-page__head { display: none; }
body.ggt-theme.woocommerce-order-received .ggt-page--shop { background: var(--ggt-sand); }

/* ---------- Confirmation page ---------- */
body.ggt-theme .ggt-after { max-width: 1080px; margin: 0 auto; }
body.ggt-theme .ggt-after__head { display: grid; justify-items: start; gap: 8px; margin: 0 0 28px; }
body.ggt-theme .ggt-after__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: var(--ggt-pill);
	background: var(--ggt-success-soft); color: var(--ggt-success-ink);
}
body.ggt-theme .ggt-after__icon svg { width: 26px; height: 26px; }
body.ggt-theme .ggt-after__icon--pending { background: var(--ggt-warning-soft); color: var(--ggt-warning-ink); }
body.ggt-theme .ggt-after__icon--failed { background: var(--ggt-danger-soft); color: var(--ggt-danger-ink); }
body.ggt-theme .ggt-after__title { margin: 4px 0 0; font-size: clamp(1.75rem, 4.4vw, 2.5rem); line-height: 1.12; }
body.ggt-theme .ggt-after__lead { margin: 0; max-width: 56ch; font-size: 17px; color: var(--ggt-ink-2); }
body.ggt-theme .ggt-after__ref {
	display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
	margin: 4px 0 0; padding: 8px 14px; border: 1px solid var(--ggt-sand-line); border-radius: var(--ggt-pill);
	background: var(--ggt-paper); font-size: 14px; color: var(--ggt-muted);
}
body.ggt-theme .ggt-after__ref strong { font-size: 16px; color: var(--ggt-ink); letter-spacing: .02em; font-variant-numeric: tabular-nums; }

body.ggt-theme .ggt-after__grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) {
	body.ggt-theme .ggt-after__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
	body.ggt-theme .ggt-after__aside { position: sticky; top: calc(var(--ggt-header-h) + 24px); }
}
body.ggt-theme .ggt-after__main { display: grid; gap: 20px; min-width: 0; }
body.ggt-theme .ggt-after__aside { min-width: 0; }

body.ggt-theme .ggt-after__box {
	padding: 20px; border: 1px solid var(--ggt-line); border-radius: var(--ggt-radius);
	background: var(--ggt-paper);
}
@media (min-width: 768px) {
	body.ggt-theme .ggt-after__box { padding: 24px 28px; }
}
body.ggt-theme .ggt-after__h2 { margin: 0 0 16px; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }

body.ggt-theme .ggt-after__steps { margin: 0; padding: 0; list-style: none; counter-reset: ggt-step; display: grid; gap: 16px; }
body.ggt-theme .ggt-after__step {
	position: relative; margin: 0; padding: 2px 0 0 44px; min-height: 30px;
	font-size: 16px; line-height: 1.5; color: var(--ggt-ink-2); counter-increment: ggt-step;
}
body.ggt-theme .ggt-after__step::before {
	content: counter(ggt-step);
	position: absolute; left: 0; top: 0;
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: var(--ggt-pill);
	background: var(--ggt-accent-soft); color: var(--ggt-accent);
	font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
body.ggt-theme .ggt-after__step strong { color: var(--ggt-ink); font-weight: 600; overflow-wrap: anywhere; }
body.ggt-theme .ggt-after__step a { font-weight: 600; }
body.ggt-theme .ggt-after__map { white-space: nowrap; }

body.ggt-theme .ggt-after__note { margin: 16px 0 0; font-size: 15px; color: var(--ggt-ink-2); }
body.ggt-theme .ggt-after__note--warning {
	padding: 12px 14px; border-radius: var(--ggt-radius-sm);
	background: var(--ggt-warning-soft); color: var(--ggt-warning-ink);
}

body.ggt-theme .ggt-after__total {
	display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
	margin: 0 0 12px; font-size: 15px; color: var(--ggt-ink-2);
}
body.ggt-theme .ggt-after__total strong { font-size: 20px; color: var(--ggt-ink); font-variant-numeric: tabular-nums; }
body.ggt-theme .ggt-after__gateway { font-size: 15px; color: var(--ggt-ink-2); }
body.ggt-theme .ggt-after__gateway > :last-child { margin-bottom: 0; }
body.ggt-theme .ggt-after__gateway h2 { margin: 16px 0 8px; font-size: 16px; }
body.ggt-theme .ggt-after__gateway ul { margin: 0; padding: 0; list-style: none; }
body.ggt-theme .ggt-after__gateway li { margin: 0 0 4px; }
body.ggt-theme .ggt-after__pay .ggt-after__note { margin-top: 12px; }

body.ggt-theme .ggt-after__actions { display: flex; flex-wrap: wrap; gap: 10px; }
body.ggt-theme .ggt-after a.ggt-after__btn, body.ggt-theme .ggt-after a.ggt-after__btn:hover { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
body.ggt-theme .ggt-after__btn svg { flex: none; width: 18px; height: 18px; }
@media (max-width: 599px) {
	body.ggt-theme .ggt-after__actions { display: grid; grid-template-columns: 1fr; }
	body.ggt-theme .ggt-after__actions .ggt-btn { width: 100%; }
}

body.ggt-theme .ggt-after__receipts .ggt-legal-box { margin: 0; }

/* Plain summary (only while the shared booking summary card is missing). */
body.ggt-theme .ggt-after__facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0 0 16px; font-size: 15px; }
body.ggt-theme .ggt-after__facts dt { color: var(--ggt-muted); }
body.ggt-theme .ggt-after__facts dd { margin: 0; color: var(--ggt-ink); overflow-wrap: anywhere; }

/* ---------- Booking details (My bookings > Details) ---------- */
body.ggt-theme .ggt-receipt__back { margin: 0 0 12px; font-size: 15px; }
body.ggt-theme .ggt-receipt__status mark { background: none; color: var(--ggt-ink); font-weight: 600; }
body.ggt-theme .ggt-receipt__tour { font-weight: 600; color: var(--ggt-ink); }
body.ggt-theme .ggt-receipt__ref {
	display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--ggt-pill);
	background: var(--ggt-canvas); border: 1px solid var(--ggt-line);
	font-size: 12px; font-weight: 600; color: var(--ggt-ink-2); vertical-align: 2px;
}
body.ggt-theme .ggt-receipt__persons { display: block; margin-top: 4px; font-size: 14px; color: var(--ggt-ink-2); }
body.ggt-theme .ggt-receipt__line .wc-item-meta { margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ggt-ink-2); }
body.ggt-theme .ggt-receipt__line .wc-item-meta li { margin: 0; }
body.ggt-theme .ggt-receipt__line .wc-item-meta p { display: inline; margin: 0; }
body.ggt-theme .ggt-receipt__meet { margin: 6px 0 0; font-size: 14px; color: var(--ggt-ink-2); }
body.ggt-theme .ggt-receipt__meet span { color: var(--ggt-muted); }
body.ggt-theme .ggt-receipt__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; font-size: 14px; font-weight: 600; }
body.ggt-theme .ggt-receipt__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
body.ggt-theme .ggt-receipt__lead { margin-top: 28px; }
body.ggt-theme .ggt-receipt__facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 20px; margin: 0; font-size: 15px; }
body.ggt-theme .ggt-receipt__facts dt { color: var(--ggt-muted); }
body.ggt-theme .ggt-receipt__facts dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- My bookings list ---------- */
body.ggt-theme .ggt-account-bookings__actions .ggt-booking-ics { white-space: nowrap; }

/* ---------- My bookings: reserved dates waiting for payment (above the bookings table) ---------- */
body.ggt-theme .ggt-account-unpaid { margin: 0 0 24px; padding: 20px; background: var(--ggt-paper); border: 1px solid var(--ggt-line); border-radius: var(--ggt-radius); }
body.ggt-theme .ggt-account-unpaid__title { margin: 0 0 12px; font-size: 18px; }
body.ggt-theme .ggt-account-unpaid__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
body.ggt-theme .ggt-account-unpaid__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 12px; border-top: 1px solid var(--ggt-line); }
body.ggt-theme .ggt-account-unpaid__item:first-child { padding-top: 0; border-top: 0; }
body.ggt-theme .ggt-account-unpaid__text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; font-size: 14px; color: var(--ggt-ink-2); }
body.ggt-theme .ggt-account-unpaid__text strong { font-size: 15px; color: var(--ggt-ink); }
body.ggt-theme .ggt-account-unpaid__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
body.ggt-theme .ggt-account-unpaid__actions a.ggt-btn { text-decoration: none; }

/* Error notices are <ul> lists: list padding inside page content must not pull the text under the dot. */
body.ggt-theme ul.woocommerce-error, body.ggt-theme .ggt-prose ul.woocommerce-error { margin-left: 0; padding-left: 44px; }

/* My bookings on phones: tour and date cells hold several lines (meeting point, time, zone, language), so the
 * label sits above them instead of squeezing them into one flex row. */
@media (max-width: 767px) {
	body.ggt-theme .ggt-account-bookings .ggt-table td:nth-child(1), body.ggt-theme .ggt-account-bookings .ggt-table td:nth-child(2) { display: block; text-align: left; }
	body.ggt-theme .ggt-account-bookings .ggt-table td:nth-child(1)::before, body.ggt-theme .ggt-account-bookings .ggt-table td:nth-child(2)::before { display: block; margin: 0 0 2px; }
}

/* The "Not paid yet" block sits inside page prose: no list indent, no underlined tour link, a card-size heading. */
body.ggt-theme .ggt-prose .ggt-account-unpaid__list, body.ggt-theme .ggt-account-unpaid__list { margin: 0; padding: 0; }
body.ggt-theme .ggt-prose .ggt-account-unpaid__title, body.ggt-theme .ggt-account-unpaid__title { margin: 0 0 12px; font-size: 1.125rem; line-height: 1.3; }
body.ggt-theme .ggt-account-unpaid__text a { color: var(--ggt-ink); text-decoration: none; }
body.ggt-theme .ggt-account-unpaid__text a:hover { color: var(--ggt-accent); text-decoration: underline; }
body.ggt-theme .ggt-account-unpaid__actions a.ggt-link { font-weight: 600; text-decoration: none; }

/* Buttons that sit inside page prose (receipts, notices, account pages) are buttons, not underlined links. */
body.ggt-theme .ggt-prose a.ggt-btn, body.ggt-theme .ggt-prose a.ggt-btn:hover { text-decoration: none; }

/* Booking details status line: reference, date and status in bold, no highlighter chips (they read as extra spaces). */
body.ggt-theme .ggt-receipt__status mark, body.ggt-theme .ggt-prose .ggt-receipt__status mark { padding: 0; background: none; color: var(--ggt-ink); font-weight: 700; }
