/**
 * WP Tour Manager - booking experience.
 *
 * Loaded only where a booking form or a confirmation is rendered. Everything
 * is scoped under .wptm-bk, .wptm-modal or .wptm-done, and no element selector
 * is used, so the theme is untouched.
 */

.wptm-tour .wptm-bk {
	--bk-field: 52px;
	--bk-radius: 10px;
	--bk-radius-sm: 8px;
	display: grid;
	gap: 0;
	text-align: start;
}

/* ================================================================= HERO === */

.wptm-tour .wptm-bk__hero {
	position: relative;
	padding: clamp(24px, 3.4vw, 38px) clamp(20px, 3vw, 34px);
	border-radius: var(--bk-radius) var(--bk-radius) 0 0;
	overflow: hidden;
	isolation: isolate;
	background: var(--wptm-tint);
}

.wptm-tour .wptm-bk__heroimg {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.wptm-tour .wptm-bk__heroimg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* The photograph is atmosphere, not information: it must never compete
	   with the wording on top of it. */
	opacity: .28;
	filter: saturate(.9);
}

.wptm-tour .wptm-bk__heroimg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--wptm-page, Canvas) 12%, transparent 78%);
}

.wptm-tour .wptm-bk__herotext {
	position: relative;
}

.wptm-tour .wptm-bk__title {
	margin: 0 0 6px;
	font-size: clamp(23px, 2.8vw, 31px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.02em;
}

.wptm-tour .wptm-bk__sub {
	margin: 0 0 16px;
	font-size: 15px;
	color: var(--wptm-muted);
}

.wptm-tour .wptm-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wptm-tour .wptm-chips__item {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	list-style: none;
	font-size: 13px;
	font-weight: 600;
}

.wptm-tour .wptm-chips__item::marker {
	content: "";
}

.wptm-tour .wptm-chips__icon {
	color: var(--wptm-accent);
	line-height: 0;
}

/* =============================================================== LAYOUT === */

.wptm-tour .wptm-bk__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	padding-block-start: 18px;
}

@media (min-width: 940px) {

	.wptm-tour .wptm-bk__body {
		grid-template-columns: minmax(0, 1fr) clamp(260px, 32%, 330px);
		gap: 20px;
		align-items: start;
	}

	.wptm-tour .wptm-bk__aside {
		position: sticky;
		top: 16px;
	}
}

.wptm-tour .wptm-bk__main {
	display: grid;
	gap: 18px;
	min-width: 0;
}

.wptm-tour .wptm-bk__form {
	display: grid;
	gap: 18px;
}

/* ================================================================ CARDS === */

.wptm-tour .wptm-bk .wptm-card {
	padding: clamp(18px, 2.2vw, 26px);
	border: 1px solid var(--wptm-hairline);
	border-radius: var(--bk-radius);
	background: var(--wptm-page, Canvas);
	box-shadow: 0 1px 2px rgba(15, 20, 28, .04);
}

.wptm-tour .wptm-step {
	margin: 0;
	min-width: 0;
}

.wptm-tour .wptm-step__head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
	margin: 0 0 20px;
	padding: 0;
	float: none;
}

.wptm-tour .wptm-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--wptm-accent);
	color: var(--wptm-on-accent);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.wptm-tour .wptm-step__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.wptm-tour .wptm-step__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.wptm-tour .wptm-step__sub {
	font-size: 13px;
	color: var(--wptm-muted);
}

/* =============================================================== FIELDS === */

.wptm-tour .wptm-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.wptm-tour .wptm-field {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 0;
	position: relative;
}

.wptm-tour .wptm-field--half {
	grid-column: span 1;
}

/*
 * The steppers carry a second label line, Adults and Children, so their
 * controls start lower than a plain field's. Pushing the date control to the
 * bottom of its cell puts the two on the same line instead of leaving the
 * date input hanging above them.
 */
@media (min-width: 621px) {

	.wptm-tour .wptm-grid {
		align-items: stretch;
	}

	.wptm-tour .wptm-field--date .wptm-input {
		margin-block-start: auto;
	}
}

@media (max-width: 620px) {

	.wptm-tour .wptm-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.wptm-tour .wptm-field--half {
		grid-column: 1 / -1;
	}
}

.wptm-tour .wptm-label {
	font-size: 13px;
	font-weight: 700;
}

.wptm-tour .wptm-label abbr {
	color: var(--wptm-accent);
	text-decoration: none;
	border: 0;
}

.wptm-tour .wptm-opt {
	font-weight: 400;
	color: var(--wptm-faint);
}

.wptm-tour .wptm-help {
	font-size: 12px;
	line-height: 1.5;
	color: var(--wptm-faint);
}

/* The icon sits inside the control, so the field reads as one object. */
.wptm-tour .wptm-input {
	position: relative;
	display: block;
}

.wptm-tour .wptm-input__icon {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 14px;
	transform: translateY(-50%);
	color: var(--wptm-faint);
	line-height: 0;
	pointer-events: none;
	transition: color .16s ease;
}

.wptm-tour .wptm-input input {
	width: 100%;
	min-height: var(--bk-field);
	padding: 12px 14px 12px 44px;
	background: var(--wptm-page, Canvas);
	border: 1px solid var(--wptm-border);
	border-radius: var(--bk-radius-sm);
	color: inherit;
	font: inherit;
	font-size: 16px; /* 16px stops iOS zooming on focus. */
	line-height: 1.4;
	box-shadow: none;
	transition: border-color .16s ease, box-shadow .16s ease;
}

[dir="rtl"] .wptm-tour .wptm-input input {
	padding: 12px 44px 12px 14px;
}

.wptm-tour .wptm-input input:hover {
	border-color: color-mix(in srgb, currentColor 30%, transparent);
}

.wptm-tour .wptm-input input:focus {
	border-color: var(--wptm-accent);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wptm-accent) 18%, transparent);
}

.wptm-tour .wptm-input:focus-within .wptm-input__icon {
	color: var(--wptm-accent);
}

.wptm-tour .wptm-field textarea {
	width: 100%;
	min-height: 110px;
	padding: 14px 16px;
	background: var(--wptm-page, Canvas);
	border: 1px solid var(--wptm-border);
	border-radius: var(--bk-radius-sm);
	color: inherit;
	font: inherit;
	font-size: 16px;
	line-height: 1.6;
	resize: vertical;
	transition: border-color .16s ease, box-shadow .16s ease;
}

.wptm-tour .wptm-field textarea:focus {
	border-color: var(--wptm-accent);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wptm-accent) 18%, transparent);
}

.wptm-tour .wptm-counter {
	align-self: flex-end;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: var(--wptm-faint);
}

.wptm-tour .wptm-counter.is-near {
	color: var(--wptm-accent);
}

.wptm-tour .wptm-input input[aria-invalid="true"],
.wptm-tour .wptm-field textarea[aria-invalid="true"] {
	border-color: var(--wptm-danger);
}

.wptm-tour .wptm-error {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--wptm-danger);
}

.wptm-tour .wptm-error::before {
	content: "\26A0";
	flex: 0 0 auto;
}

.wptm-tour .wptm-bk__alert {
	margin: 0;
	padding: 14px 18px;
	border-inline-start: 3px solid var(--wptm-danger);
	border-radius: 0 var(--bk-radius-sm) var(--bk-radius-sm) 0;
	background: color-mix(in srgb, var(--wptm-danger) 8%, transparent);
}

.wptm-tour .wptm-bk__alert p {
	margin: 0;
	font-size: 14px;
}

/*
 * The honeypot, hidden from people and visible to a robot.
 *
 * It used to be pushed 9999px to the inline start. In a left to right page
 * that is harmlessly off to the left, where browsers do not scroll. In a right
 * to left page, inline start is the right hand side, so the same rule pushed
 * the document 9999 pixels wider than the screen. On an Arabic site that alone
 * would produce exactly the symptom this section had.
 *
 * The clip technique hides it in place instead, so it occupies no space in
 * either direction.
 */
.wptm-tour .wptm-bk__trap {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ============================================================= STEPPERS === */

.wptm-tour .wptm-steppers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.wptm-tour .wptm-stepper {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wptm-tour .wptm-stepper__label {
	font-size: 12px;
	color: var(--wptm-muted);
}

.wptm-tour .wptm-stepper__control {
	display: flex;
	align-items: stretch;
	min-height: var(--bk-field);
	border: 1px solid var(--wptm-border);
	border-radius: var(--bk-radius-sm);
	overflow: hidden;
	background: var(--wptm-page, Canvas);
}

.wptm-tour .wptm-stepper__control:focus-within {
	border-color: var(--wptm-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wptm-accent) 18%, transparent);
}

.wptm-tour button.wptm-stepper__btn {
	flex: 0 0 44px;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wptm-accent);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .14s ease;
}

.wptm-tour button.wptm-stepper__btn:hover {
	background: color-mix(in srgb, var(--wptm-accent) 9%, transparent);
}

.wptm-tour button.wptm-stepper__btn[disabled] {
	color: var(--wptm-faint);
	cursor: not-allowed;
	background: transparent;
}

.wptm-tour .wptm-stepper__input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: center;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	color: inherit;
	-moz-appearance: textfield;
}

.wptm-tour .wptm-stepper__input:focus {
	outline: none;
}

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

/* ======================================================= CONTACT CHOICE === */

.wptm-tour .wptm-choice {
	margin: 20px 0 0;
	padding: 0;
	border: 0;
}

.wptm-tour .wptm-choice__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-block-start: 10px;
}

@media (max-width: 700px) {
	.wptm-tour .wptm-choice__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.wptm-tour .wptm-pick {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 13px 14px;
	border: 1px solid var(--wptm-border);
	border-radius: var(--bk-radius-sm);
	background: var(--wptm-page, Canvas);
	cursor: pointer;
	transition: border-color .16s ease, background-color .16s ease;
}

.wptm-tour .wptm-pick:hover {
	border-color: color-mix(in srgb, var(--wptm-accent) 55%, transparent);
}

.wptm-tour .wptm-pick input {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--wptm-accent);
}

.wptm-tour .wptm-pick__icon {
	color: var(--wptm-accent);
	line-height: 0;
}

.wptm-tour .wptm-pick__body {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.wptm-tour .wptm-pick__name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.wptm-tour .wptm-pick__note {
	font-size: 12px;
	line-height: 1.4;
	color: var(--wptm-faint);
}

.wptm-tour .wptm-pick:has(input:checked) {
	border-color: var(--wptm-accent);
	background: var(--wptm-tint);
}

.wptm-tour .wptm-pick:has(input:focus-visible) {
	outline: 2px solid var(--wptm-accent);
	outline-offset: 2px;
}

/* ================================================================= GIFT === */

.wptm-tour .wptm-gift {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 16px 0 0;
	padding: 14px 16px;
	border-radius: var(--bk-radius-sm);
	background: var(--wptm-tint);
	font-size: 13px;
	line-height: 1.55;
	color: var(--wptm-muted);
}

.wptm-tour .wptm-gift__icon {
	color: var(--wptm-accent);
	line-height: 0;
	margin-block-start: 1px;
}

.wptm-tour .wptm-gift__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.wptm-tour .wptm-gift__text strong {
	font-size: 13px;
	color: inherit;
}

/* ================================================================= SEND === */

.wptm-tour .wptm-consent {
	margin: 0 0 16px;
}

.wptm-tour .wptm-consent__box {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--wptm-muted);
	cursor: pointer;
}

.wptm-tour .wptm-consent__box input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-block-start: 2px;
	accent-color: var(--wptm-accent);
}

.wptm-tour .wptm-send__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 12px 0 0;
	font-size: 13px;
	text-align: center;
	color: var(--wptm-muted);
}

.wptm-tour .wptm-send__note--quiet {
	margin-block-start: 6px;
	font-size: 12px;
	color: var(--wptm-faint);
}

.wptm-tour .wptm-send__note span {
	line-height: 0;
	color: var(--wptm-accent);
}

/* =============================================================== TICKET === */

/*
 * The summary is drawn as a boarding pass: a header, the photograph, the trip
 * as it is being described, the price, and the reassurance. The perforations
 * are two pseudo elements painted in the page colour, so the notch reads as a
 * hole punched through the card rather than a grey dot stuck on top of it.
 */
.wptm-tour .wptm-ticket {
	position: relative;
	display: grid;
	gap: 14px;
	/* One value for the inset, so the parts that reach the edge cancel exactly
	   the padding rather than a number somebody typed twice. */
	--tk-pad: 20px;
	padding: 24px var(--tk-pad);
	border: 0;
	border-radius: 0;
	background: var(--wptm-page, Canvas);
	overflow: visible;

	/* Cut, not painted: see the note on the price ticket. */
	--tooth: 22px;
	--tooth-depth: 11px;
	--tooth-top: radial-gradient(circle 9px at 50% 0, transparent 9px, #000 9.5px);
	--tooth-foot: radial-gradient(circle 9px at 50% 100%, transparent 9px, #000 9.5px);
	--tooth-body: linear-gradient(#000 0 0);

	-webkit-mask-image: var(--tooth-top), var(--tooth-foot), var(--tooth-body);
	-webkit-mask-position: top center, bottom center, center;
	-webkit-mask-size:
		var(--tooth) var(--tooth-depth),
		var(--tooth) var(--tooth-depth),
		100% calc(100% - var(--tooth-depth) * 2);
	-webkit-mask-repeat: repeat-x, repeat-x, no-repeat;
	mask-image: var(--tooth-top), var(--tooth-foot), var(--tooth-body);
	mask-position: top center, bottom center, center;
	mask-size:
		var(--tooth) var(--tooth-depth),
		var(--tooth) var(--tooth-depth),
		100% calc(100% - var(--tooth-depth) * 2);
	mask-repeat: repeat-x, repeat-x, no-repeat;

	filter:
		drop-shadow(0 1px 1px rgba(15, 20, 28, .06))
		drop-shadow(0 14px 22px rgba(15, 20, 28, .10));
}

@supports not ((mask-image: linear-gradient(#000, #000)) or (-webkit-mask-image: linear-gradient(#000, #000))) {

	.wptm-tour .wptm-ticket {
		border-radius: 16px;
		filter: none;
		box-shadow: 0 1px 2px rgba(15, 20, 28, .05);
	}
}

.wptm-tour .wptm-ticket__head {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.wptm-tour .wptm-ticket__headicon {
	color: var(--wptm-accent);
	line-height: 0;
}

.wptm-tour .wptm-ticket__media {
	display: block;
	border-radius: 10px;
	overflow: hidden;
}

.wptm-tour .wptm-ticket__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.wptm-tour .wptm-ticket__tour {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
}

/* --- The perforation ----------------------------------------------------- */

.wptm-tour .wptm-ticket__perf {
	position: relative;
	display: block;
	height: 1px;
	margin-inline: calc(var(--tk-pad) * -1);
	border-block-start: 2px dotted var(--wptm-border);
}

.wptm-tour .wptm-ticket__perf::before,
.wptm-tour .wptm-ticket__perf::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--wptm-page, Canvas);
	transform: translateY(-50%);
}

.wptm-tour .wptm-ticket__perf::before {
	inset-inline-start: 0;
	transform: translate(-50%, -50%);
}

.wptm-tour .wptm-ticket__perf::after {
	inset-inline-end: 0;
	transform: translate(50%, -50%);
}

/* --- Rows ---------------------------------------------------------------- */

.wptm-tour .wptm-ticket__rows {
	display: grid;
	gap: 0;
	margin: 0;
}

.wptm-tour .wptm-ticket__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 11px 0;
	border-block-end: 1px dotted var(--wptm-hairline);
}

.wptm-tour .wptm-ticket__row:last-child {
	border-block-end: 0;
}

.wptm-tour .wptm-ticket__rows dt {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 700;
}

.wptm-tour .wptm-ticket__icon {
	color: var(--wptm-accent);
	line-height: 0;
}

.wptm-tour .wptm-ticket__rows dd {
	margin: 0;
	font-size: 14px;
	text-align: end;
	color: var(--wptm-muted);
	overflow-wrap: anywhere;
}

/* --- Price --------------------------------------------------------------- */

.wptm-tour .wptm-ticket__price {
	margin-inline: calc(var(--tk-pad) * -1);
	padding: 16px var(--tk-pad);
	background: var(--wptm-tint);
	border-block: 1px solid color-mix(in srgb, var(--wptm-accent) 22%, transparent);
}

.wptm-tour .wptm-ticket__pricerow {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	margin: 0;
}

.wptm-tour .wptm-ticket__pricelabel {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wptm-faint);
}

.wptm-tour .wptm-ticket__pricevalue {
	font-size: 28px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.02em;
	color: var(--wptm-accent);
	font-variant-numeric: tabular-nums;
}

.wptm-tour .wptm-ticket__pricenote {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--wptm-faint);
}

/* --- Reassurance --------------------------------------------------------- */

.wptm-tour .wptm-ticket__trust {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.wptm-tour .wptm-ticket__trust li {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding-inline: 4px;
	list-style: none;
	font-size: 12px;
	line-height: 1.4;
	color: var(--wptm-faint);
}

.wptm-tour .wptm-ticket__trust li + li::before {
	content: "";
	position: absolute;
	inset-block: 6px;
	inset-inline-start: 0;
	transform: translateX(-50%);
	border-inline-start: 1px dotted var(--wptm-border);
}

.wptm-tour .wptm-ticket__trust li::marker {
	content: "";
}

.wptm-tour .wptm-ticket__trust strong {
	font-size: 12px;
	font-weight: 700;
	color: var(--wptm-text);
}

.wptm-tour .wptm-ticket__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--wptm-tint);
	color: var(--wptm-accent);
	line-height: 0;
}

.wptm-tour .wptm-ticket__reply {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin: 0;
	font-size: 12px;
	color: var(--wptm-muted);
}

.wptm-tour .wptm-ticket__reply span {
	line-height: 0;
	color: var(--wptm-accent);
}

.wptm-tour .wptm-ticket__reply span + span {
	line-height: 1.4;
	color: inherit;
}

/* --- Foot ---------------------------------------------------------------- */

.wptm-tour .wptm-ticket__foot {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px 16px;
}

.wptm-tour .wptm-ticket__adventure {
	grid-row: 1 / 3;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wptm-accent);
}

/* The strip is a printed decoration of the code, which is why the code is
   always spelled out underneath it. */
.wptm-tour .wptm-ticket__code {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding-inline-start: 16px;
	border-inline-start: 1px dotted var(--wptm-border);
}

/* Centred the same way as the price ticket, and for the same reason. */
.wptm-tour .wptm-ticket__bars {
	display: block;
	width: min(100%, 150px);
	margin-inline: auto;
	color: var(--wptm-text);
	line-height: 0;
}

/*
 * The svg fills its box now, so this only decides how big the box is. Capped
 * because this one sits in a stub beside the price rather than across the foot
 * of a card, and a barcode as wide as the ticket would read as the subject.
 */
.wptm-tour .wptm-bars {
	display: block;
	width: 100%;
	max-width: none;
	height: 34px;
	margin-inline: auto;
}

.wptm-tour .wptm-ticket__codetext {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	font-variant-numeric: tabular-nums;
	color: var(--wptm-muted);
}

.wptm-tour .wptm-ticket__thanks {
	grid-column: 1 / -1;
	margin: 4px 0 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wptm-faint);
	text-align: center;
}

/* --- Quote --------------------------------------------------------------- */

.wptm-tour .wptm-quote {
	margin: 0;
	padding: 14px 16px;
	border-radius: 10px;
	background: color-mix(in srgb, currentColor 3%, transparent);
}

.wptm-tour .wptm-quote blockquote {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	font-size: 13px;
	line-height: 1.6;
	font-style: normal;
}

.wptm-tour .wptm-quote figcaption {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--wptm-faint);
}

.wptm-tour .wptm-quote__stars {
	color: var(--wptm-accent);
	letter-spacing: .08em;
}

/* ======================================================== CONFIRMATION === */

/* The request went through. A quiet, factual panel: the reference, what was
   asked for, and what happens next. Nothing here says "confirmed". */
.wptm-tour .wptm-done {
	margin-block-start: var(--wptm-gap);
	padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 64px);
	border: 0;
	border-radius: 0;
	background: linear-gradient(180deg, color-mix(in srgb, var(--wptm-success) 8%, transparent) 0%, transparent 100%);
	text-align: start;
}

.wptm-tour .wptm-done__head {
	margin-block-end: 28px;
}

.wptm-tour .wptm-done__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-block-end: 14px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wptm-success) 14%, transparent);
	color: var(--wptm-success);
	font-size: 20px;
}

.wptm-tour .wptm-done__title {
	margin: 0 0 8px;
	font-size: clamp(23px, 2.8vw, 30px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.02em;
}

.wptm-tour .wptm-done__lead {
	margin: 0;
	max-width: 56ch;
	font-size: 16px;
	line-height: 1.6;
	color: var(--wptm-muted);
}

.wptm-tour .wptm-done__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

@media (min-width: 880px) {

	.wptm-tour .wptm-done__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 40px;
	}
}

.wptm-tour .wptm-done__card {
	padding: 24px 26px;
	border: 0;
	border-radius: var(--wptm-radius);
	background: var(--wptm-page, Canvas);
	box-shadow: 0 1px 2px rgba(15, 20, 28, .06);
}

.wptm-tour .wptm-done__label {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wptm-faint);
}

.wptm-tour .wptm-done__ref {
	margin: 0 0 18px;
	font-size: clamp(24px, 3vw, 30px);
	font-weight: 800;
	letter-spacing: .08em;
	color: var(--wptm-accent);
	font-variant-numeric: tabular-nums;
}

.wptm-tour .wptm-done__list {
	display: grid;
	gap: 9px;
	margin: 0;
	padding-block-start: 16px;
	border-block-start: 1px solid var(--wptm-hairline);
	font-size: 14px;
}

.wptm-tour .wptm-done__list > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.wptm-tour .wptm-done__list dt {
	color: var(--wptm-muted);
}

.wptm-tour .wptm-done__list dd {
	margin: 0;
	font-weight: 700;
	text-align: end;
}

.wptm-tour .wptm-done__status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--wptm-tint);
	color: var(--wptm-accent);
	font-size: 12px;
}

.wptm-tour .wptm-done__subtitle {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 700;
}

.wptm-tour .wptm-done__steps {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wptm-tour .wptm-done__steps li {
	display: flex;
	gap: 14px;
	margin: 0;
	list-style: none;
}

.wptm-tour .wptm-done__steps li::marker {
	content: "";
}

.wptm-tour .wptm-done__num {
	flex: 0 0 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--wptm-accent);
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	color: var(--wptm-accent);
}

.wptm-tour .wptm-done__stepbody {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 14px;
	line-height: 1.55;
}

.wptm-tour .wptm-done__stepbody span {
	color: var(--wptm-muted);
}

.wptm-tour .wptm-done__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 30px 0 0;
}

.wptm-tour .wptm-done__note {
	margin: 14px 0 0;
	font-size: 12px;
	color: var(--wptm-faint);
}

@media print {

	.wptm-tour .wptm-done__actions {
		display: none !important;
	}

	.wptm-tour .wptm-done {
		padding: 0;
		background: none;
	}
}

/* ============================================================== MODAL ==== */

/* Rendered open, closed by the script: with JavaScript off the whole form is
   simply a section of the page. */
.wptm-tour .wptm-modal[hidden] {
	display: none;
}

.wptm-tour .wptm-modal.is-open {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
}

@media (min-width: 760px) {
	.wptm-tour .wptm-modal.is-open {
		align-items: center;
		padding: 28px;
	}
}

.wptm-tour .wptm-modal__scrim {
	display: none;
}

/*
 * The blur behind the dialog is a desktop nicety. On a phone it forces the
 * whole page underneath to be rasterised again, which is felt as a stutter
 * when the sheet slides up, so it is only asked for where there is room to
 * pay for it.
 */
@media (min-width: 900px) {

	.wptm-tour .wptm-modal.is-open .wptm-modal__scrim {
		backdrop-filter: blur(2px);
		-webkit-backdrop-filter: blur(2px);
	}
}

.wptm-tour .wptm-modal.is-open .wptm-modal__scrim {
	position: absolute;
	inset: 0;
	display: block;
	background: rgba(20, 16, 12, .55);
}

.wptm-tour .wptm-modal__panel {
	position: relative;
	width: 100%;
	background: transparent;
}

.wptm-tour .wptm-modal.is-open .wptm-modal__panel {
	max-width: 880px;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	border-radius: 14px 14px 0 0;
	background: var(--wptm-page, Canvas);
	box-shadow: 0 -10px 40px rgba(20, 16, 12, .25);
	overflow: hidden;
	animation: wptm-modal-in .22s ease-out;
}

@media (min-width: 760px) {
	.wptm-tour .wptm-modal.is-open .wptm-modal__panel {
		border-radius: 14px;
		max-height: 88vh;
	}
}

@keyframes wptm-modal-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wptm-tour .wptm-modal.is-open .wptm-modal__panel {
		animation: none;
	}
}

.wptm-tour .wptm-modal__head {
	display: none;
}

.wptm-tour .wptm-modal.is-open .wptm-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex: 0 0 auto;
	padding: 16px 20px;
	border-bottom: 1px solid var(--wptm-hairline);
	background: var(--wptm-page, Canvas);
}

.wptm-tour .wptm-modal__title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.wptm-tour button.wptm-modal__close {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(43, 36, 29, .06);
	color: var(--wptm-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .16s ease;
}

.wptm-tour button.wptm-modal__close:hover {
	background: rgba(43, 36, 29, .12);
}

.wptm-tour .wptm-modal.is-open .wptm-modal__body {
	flex: 1 1 auto;
	padding: 22px 20px 26px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* Inside the dialog the summary column would be redundant: the visitor came
   from the booking card that already showed the price. */
/* Inside the dialog the panel already has a title bar of its own, and the
   summary is what the visitor came from, so both are dropped. */
.wptm-tour .wptm-modal.is-open .wptm-bk__hero {
	display: none;
}

.wptm-tour .wptm-modal.is-open .wptm-bk__body {
	grid-template-columns: minmax(0, 1fr);
	padding-block-start: 0;
}

.wptm-tour .wptm-modal.is-open .wptm-bk__aside {
	position: static;
}


/* ======================================================== MOBILE REVIEW === */

@media (max-width: 782px) {

	/* One column, comfortable spacing, nothing clipped. */
	.wptm-tour .wptm-bk {
		gap: 22px;
	}

	/*
	 * The summary ticket keeps its shape and gets its boundary back as a ring
	 * revealed by a shadow that follows the cut, not by a ring drawn inside
	 * it. A mask clips everything the element paints, insets included, so an
	 * inset ring is trimmed to the tooth silhouette and leaves nothing where
	 * each tooth is. Same correction as the price ticket on the tour page.
	 */
	.wptm-tour .wptm-ticket {
		box-shadow: none;
		filter: drop-shadow(0 2px 10px rgba(15, 20, 28, .14));
		/* Everything that reaches the edge follows this automatically. */
		--tk-pad: 18px;
	}

	.wptm-tour .wptm-steppers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.wptm-tour .wptm-bk__hero {
		padding: 20px 18px;
	}

	.wptm-tour .wptm-chips {
		gap: 6px 14px;
	}

	.wptm-tour .wptm-chips__item {
		font-size: 12px;
	}

	/* The dialog becomes a sheet that never exceeds the viewport, with its own
	   scroll, so the page behind it cannot scroll away underneath. */
	.wptm-tour .wptm-modal.is-open {
		padding: 0;
	}

	.wptm-tour .wptm-modal.is-open .wptm-modal__panel {
		max-height: 92dvh;
		border-radius: 16px 16px 0 0;
	}

	.wptm-tour .wptm-modal.is-open .wptm-modal__body {
		padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
	}

	.wptm-tour .wptm-done__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.wptm-tour .wptm-done {
		padding: 28px 18px;
	}

	.wptm-tour .wptm-done__actions .wptm-btn {
		width: 100%;
	}
}

@media (max-width: 420px) {

	.wptm-tour .wptm-steppers {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* --- The date hint -------------------------------------------------------- */

/*
 * A line under the date field. Quiet by default and coloured only where the
 * answer matters: an amber note when seats are running out, a red one when the
 * date cannot be booked. Colour is never the only signal, because the sentence
 * says the same thing.
 */
.wptm-tour .wptm-hint {
	display: block;
	margin-block-start: 6px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--wptm-muted);
	min-height: 1.45em;
}

.wptm-tour .wptm-hint.is-checking {
	opacity: .65;
}

.wptm-tour .wptm-hint.is-available {
	color: #2f7d4f;
}

.wptm-tour .wptm-hint.is-low {
	color: #a4601a;
	font-weight: 600;
}

.wptm-tour .wptm-hint.is-full,
.wptm-tour .wptm-hint.is-closed,
.wptm-tour .wptm-hint.is-past,
.wptm-tour .wptm-hint.is-notice {
	color: #b32d2e;
	font-weight: 600;
}
