/*
 * Manage booking, Your tickets and the confirmation page (D124), mobile
 * first. Navy cards with a 1px cream border that turns red on hover, focus
 * or when chosen (D66); the registration as a cream plate; the QR code on
 * white. Inputs are at least 52px tall with 16px text, so phones don't zoom.
 * Theme colours only.
 */
.tdic-tp {
	--mb-gap: 16px;
	--mb-radius: var(--wp--custom--radius-card, 16px);
	--mb-line: 1px solid var(--wp--preset--color--cream);

	inline-size: min(100%, 640px);
	margin-inline: auto;
	color: var(--wp--preset--color--cream);
}

.tdic-tp > * + * {
	margin-block-start: var(--mb-gap);
}

/* Words */
.tdic-tp .mb-kicker {
	margin: 0 0 4px;
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tdic-tp .mb-booking__film,
.tdic-tp .mb-ticket__film,
.tdic-tp .mb-step__title {
	margin: 0;
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 9vw, 2.75rem);
	line-height: 1;
	text-transform: uppercase;
}

.tdic-tp .mb-step__title {
	margin-block-end: 8px;
	color: var(--wp--preset--color--red);
	font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem);
}

.tdic-tp .mb-h2 {
	margin: 32px 0 12px;
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tdic-tp .mb-lead,
.tdic-tp .mb-booking__count {
	margin: 8px 0 0;
	font-size: 1.0625rem;
	line-height: 1.5;
}

.tdic-tp .mb-hint {
	display: block;
	margin: 8px 0 0;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.tdic-tp .mb-after {
	margin-block-start: 20px;
}

.tdic-tp a {
	color: inherit;
	text-underline-offset: 3px;
}

.tdic-tp .mb-back {
	margin: 0 0 20px;
}

.tdic-tp .mb-back a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-block-size: 44px;
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 0.9375rem;
	font-weight: 600;
}

.tdic-tp .mb-back a::before {
	content: "";
	inline-size: 9px;
	block-size: 9px;
	border-block-end: 2px solid currentColor;
	border-inline-start: 2px solid currentColor;
	transform: rotate(45deg);
}

/* The registration, as a plate */
.tdic-tp .mb-plate {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid var(--wp--preset--color--black);
	border-radius: 6px;
	background: var(--wp--custom--color--plate-yellow);
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25rem;
	line-height: 1.1;
	letter-spacing: 0.06em;
	white-space: nowrap;
}

.tdic-tp .mb-plate--big {
	padding: 8px 16px;
	font-size: clamp(1.75rem, 9vw, 2.25rem);
}

/* Bookings and ticket cards */
.tdic-tp .mb-booking + .mb-booking {
	margin-block-start: 48px;
}

/* "Your other bookings" (7d): under the booking asked for, after a line */
.tdic-tp .mb-others {
	margin-block-start: 48px;
	padding-block-start: 32px;
	border-block-start: var(--mb-line);
}

.tdic-tp .mb-others > .mb-step__title {
	margin-block-end: 20px;
}

.tdic-tp .mb-booking__head {
	margin: 0 0 18px;
}

.tdic-tp .mb-cards,
.tdic-tp .mb-actions,
.tdic-tp .mb-options {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tdic-tp .mb-card {
	position: relative;
	display: grid;
	gap: 6px;
	padding: 18px 52px 18px 18px;
	border: var(--mb-line);
	border-radius: var(--mb-radius);
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--cream);
	text-decoration: none;
	transition: border-color 0.15s ease;
}

.tdic-tp .mb-card:hover,
.tdic-tp .mb-card:focus-visible,
.tdic-tp .mb-action:hover,
.tdic-tp .mb-action:focus-visible,
.tdic-tp .mb-option:hover,
.tdic-tp .mb-option:focus-visible,
.tdic-tp .mb-option--pick:has(input:checked) {
	border-color: var(--wp--preset--color--red);
}

.tdic-tp .mb-card:focus-visible,
.tdic-tp .mb-action:focus-visible,
.tdic-tp .mb-option:focus-visible,
.tdic-tp .mb-option--pick:has(input:focus-visible) {
	outline: 2px solid var(--wp--preset--color--cream);
	outline-offset: 3px;
}

.tdic-tp .mb-card__top {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
}

.tdic-tp .mb-card__num {
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tdic-tp .mb-card__film {
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.625rem;
	line-height: 1.05;
	text-transform: uppercase;
}

.tdic-tp .mb-card__when {
	font-size: 1.0625rem;
	font-weight: 700;
}

.tdic-tp .mb-card__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	align-items: center;
	justify-content: space-between;
	margin-block-start: 6px;
}

.tdic-tp .mb-card__section {
	font-size: 0.9375rem;
}

.tdic-tp .mb-card__go {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 20px;
	inline-size: 12px;
	block-size: 12px;
	border-block-start: 2px solid currentColor;
	border-inline-end: 2px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
}

.tdic-tp .mb-card--off .mb-card__film,
.tdic-tp .mb-card--off .mb-card__when,
.tdic-tp .mb-card--off .mb-plate {
	text-decoration: line-through;
}

.tdic-tp .mb-pill {
	padding: 3px 10px;
	border: var(--mb-line);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 700;
}

.tdic-tp .mb-pill--cancelled,
.tdic-tp .mb-pill--refunded,
.tdic-tp .mb-pill--void,
.tdic-tp .mb-pill--unpaid,
.tdic-tp .mb-pill--transferred {
	border-color: var(--wp--preset--color--red);
}

/* One ticket */
.tdic-tp .mb-times,
.tdic-tp .mb-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
	margin: 18px 0 0;
}

.tdic-tp .mb-times dt,
.tdic-tp .mb-details dt {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tdic-tp .mb-times dd,
.tdic-tp .mb-details dd {
	margin: 2px 0 0;
	color: var(--wp--preset--color--white);
	font-size: 1.125rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.tdic-tp .mb-details {
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 16px 18px;
	border: var(--mb-line);
	border-radius: var(--mb-radius);
}

.tdic-tp .mb-for {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	margin: 22px 0 0;
}

.tdic-tp .mb-for__label {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tdic-tp .mb-qr {
	display: grid;
	justify-items: center;
	gap: 8px;
	margin: 20px 0 0;
	padding: 20px 16px 16px;
	border-radius: var(--mb-radius);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--black);
	text-align: center;
}

/* The QR code, and the invisible slot that keeps its size in a panel
 * where the QR code was (.mb-noqr): every rule that sizes one sizes both. */
.tdic-tp .mb-qr img,
.tdic-tp .mb-qr .mb-qr__slot {
	display: block;
	inline-size: min(100%, 320px);
	block-size: auto;
	image-rendering: pixelated;
}

.tdic-tp .mb-qr .mb-qr__slot {
	aspect-ratio: 1;
}

.tdic-tp .mb-qr p {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
}

/* Actions, full width */
.tdic-tp .mb-action {
	position: relative;
	display: grid;
	gap: 2px;
	min-block-size: 64px;
	align-content: center;
	padding: 12px 52px 12px 18px;
	border: var(--mb-line);
	border-radius: var(--mb-radius);
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--cream);
	text-decoration: none;
	transition: border-color 0.15s ease;
}

.tdic-tp a.mb-action::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 22px;
	inline-size: 10px;
	block-size: 10px;
	border-block-start: 2px solid currentColor;
	border-inline-end: 2px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
}

.tdic-tp .mb-action__label {
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 1.0625rem;
	font-weight: 700;
}

.tdic-tp .mb-action__hint {
	font-size: 0.9375rem;
}

.tdic-tp .mb-action--cancel .mb-action__label {
	color: var(--wp--preset--color--cream);
}

.tdic-tp .mb-action--off {
	border-style: dashed;
}

.tdic-tp .mb-action--off .mb-action__label {
	color: var(--wp--preset--color--cream);
}

/* Steps */
.tdic-tp .mb-form {
	display: grid;
	gap: 18px;
	margin: 20px 0 0;
}

.tdic-tp .mb-field {
	display: grid;
	gap: 8px;
	margin: 0;
}

.tdic-tp .mb-label {
	padding: 0;
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 1rem;
	font-weight: 700;
}

.tdic-tp .mb-input {
	box-sizing: border-box;
	inline-size: 100%;
	min-block-size: 56px;
	padding: 12px 16px;
	border: 2px solid var(--wp--preset--color--cream);
	border-radius: var(--wp--custom--radius, 10px);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--black);
	font: inherit;
	font-size: 1.125rem;
}

.tdic-tp .mb-input:focus {
	border-color: var(--wp--preset--color--red);
	outline: 2px solid var(--wp--preset--color--cream);
	outline-offset: 2px;
}

.tdic-tp .mb-input--reg {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tdic-tp .mb-input--reg::placeholder {
	letter-spacing: 0.08em;
}

.tdic-tp .mb-input--code {
	font-size: 1.5rem;
	letter-spacing: 0.3em;
}

.tdic-tp .mb-button {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 100%;
	min-block-size: 60px;
	padding: 12px 20px;
	border: 2px solid var(--wp--preset--color--red);
	border-radius: var(--wp--custom--radius, 10px);
	background: var(--wp--preset--color--red);
	color: var(--wp--preset--color--cream);
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.tdic-tp .mb-button:hover,
.tdic-tp .mb-button:focus-visible {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--black);
}

.tdic-tp .mb-button:focus-visible {
	outline: 2px solid var(--wp--preset--color--cream);
	outline-offset: 3px;
}

.tdic-tp .mb-fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.tdic-tp .mb-fieldset .mb-label {
	display: block;
	margin-block-end: 10px;
}

.tdic-tp .mb-check {
	display: flex;
	gap: 14px;
	align-items: center;
	min-block-size: 56px;
	padding: 10px 16px;
	border: var(--mb-line);
	border-radius: var(--mb-radius);
	font-size: 1.0625rem;
	cursor: pointer;
}

.tdic-tp .mb-check input,
.tdic-tp .mb-option--pick input {
	flex: none;
	inline-size: 24px;
	block-size: 24px;
	margin: 0;
	accent-color: var(--wp--preset--color--red);
}

/* Options: dates and sections */
/* White with a thin navy outline and navy words, not a link on white; the
 * outline turns red on hover or when chosen (D563). */
.tdic-tp .mb-option {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 4px 12px;
	align-items: center;
	padding: var(--wp--preset--spacing--30);
	border: var(--mb-line);
	border-radius: var(--mb-radius);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.tdic-tp a.mb-option:not(#tdic-light) {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

/* These rows have no notches, so the focus ring draws none. */
:root body .tdic-tp a.mb-option:focus-visible:not(#tdic-light):not(#tdic-light) {
	background-image: none !important;
}

@media (min-width: 600px) {
	.tdic-tp .mb-option {
		padding: var(--wp--preset--spacing--40);
	}
}

.tdic-tp .mb-option--pick {
	grid-template-columns: auto minmax(0, 1fr) auto;
}

.tdic-tp .mb-option--pick input {
	grid-row: 1 / span 3;
}

.tdic-tp .mb-option__film {
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 1.0625rem;
	font-weight: 700;
}

.tdic-tp .mb-option__when,
.tdic-tp .mb-option__meta {
	grid-column: 1;
	font-size: 0.9375rem;
}

.tdic-tp .mb-option--pick .mb-option__film,
.tdic-tp .mb-option--pick .mb-option__when,
.tdic-tp .mb-option--pick .mb-option__meta {
	grid-column: 2;
}

.tdic-tp .mb-option__price {
	grid-column: -2;
	grid-row: 1 / span 3;
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.375rem;
	white-space: nowrap;
}

.tdic-tp .mb-option--off {
	border-style: dashed;
	cursor: not-allowed;
}

.tdic-tp .mb-option--off .mb-option__film {
	color: var(--wp--preset--color--navy);
}

.tdic-tp .mb-summary {
	display: grid;
	gap: 10px;
	justify-items: start;
	margin: 16px 0 0;
	padding: 16px 18px;
	border: var(--mb-line);
	border-radius: var(--mb-radius);
}

/* Messages */
.tdic-tp .mb-notice,
.tdic-tp .mb-status {
	margin: 16px 0 0;
	padding: 14px 16px;
	border: var(--mb-line);
	border-radius: var(--mb-radius);
	font-size: 1rem;
	line-height: 1.45;
}

.tdic-tp .mb-notice--problem {
	border: 2px solid var(--wp--preset--color--red);
}

/* The confirmation page */
.tdic-confirm {
	margin: 0 0 32px;
}

.tdic-confirm .tdic-confirm__ticket {
	margin: 0 0 24px;
}

/* The ticket code and booking number, under the pass. */
.tdic-tp .mb-code {
	margin: 16px 0 0;
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
}

.tdic-tp .mb-code b {
	font-family: ui-monospace, Menlo, monospace;
	letter-spacing: 0.06em;
}

/* "Send to my phone": on a computer only, where the wallet is on the phone. */
.tdic-confirm__phone {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	margin: 0 0 24px;
	padding: 20px;
	border: 1px solid var(--wp--preset--color--cream);
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--navy);
}

.tdic-confirm__phone img {
	display: block;
	padding: 8px;
	border-radius: 6px;
	background: var(--wp--preset--color--white);
}

.tdic-confirm__phone .mb-h2 {
	margin: 0 0 6px;
}

.tdic-confirm__phone p {
	margin: 0;
}

.tdic-is-ios .tdic-confirm__phone,
.tdic-is-android .tdic-confirm__phone {
	display: none;
}

@media (max-width: 719px) and (pointer: coarse) {
	.tdic-confirm__phone {
		display: none;
	}
}

.tdic-confirm__manage {
	margin: 0 0 32px;
}

.tdic-confirm__order {
	margin: 32px 0 0;
}

@media (min-width: 720px) {
	.tdic-tp .mb-times {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.tdic-tp .mb-card,
	.tdic-tp .mb-action,
	.tdic-tp .mb-option {
		transition: none;
	}
}

/* A ticket or a step on its own: the page's intro and rules step aside. */
.tdic-mb-focus .wp-block-post-content > :not(.tdic-tp) {
	display: none;
}

.tdic-mb-focus .wp-block-post-content > .tdic-tp {
	margin-block-start: 0;
}

/* Add to Apple Wallet and Google Wallet (D127): the official badges, unaltered. */
.tdic-tp .mb-wallet {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin: 16px 0 0;
}

.tdic-tp .mb-wallet__button {
	display: block;
	line-height: 0;
}

.tdic-tp .mb-wallet__button img {
	block-size: 48px;
	inline-size: auto;
}

.tdic-tp .mb-notice--done {
	display: grid;
	gap: 4px;
	border: 2px solid var(--wp--preset--color--cream);
}

.tdic-tp .mb-notice--done strong {
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 1.125rem;
}

.tdic-tp .mb-for__size {
	font-size: 1rem;
	font-weight: 700;
}

.tdic-tp select.mb-input {
	appearance: auto;
}

.tdic-tp .mb-link {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Moving: until a section is chosen the button keeps its place and size,
 * solid navy with a cream outline and cream words (D563). manage.js also
 * disables it; without the script the section's "required" stops the form. */
.tdic-tp .mb-form:not(:has(input[name="section"]:checked)) .mb-button--move:not(#tdic-light),
.tdic-tp .mb-button--move:disabled:not(#tdic-light) {
	--t-line: var(--wp--preset--color--cream);
	--t-w: 1px;
	border: 1px solid var(--wp--preset--color--cream);
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--cream);
	opacity: 1;
	cursor: not-allowed;
}

/* ---------- Posters, the gate pass and icons (2.4) ---------- */
.tdic-tp .mb-booking__head,
.tdic-tp .mb-ticket__head {
	display: grid;
	gap: 18px;
	align-items: center;
}

.tdic-tp .mb-booking__head.has-poster,
.tdic-tp .mb-ticket__head.has-poster {
	grid-template-columns: clamp(88px, 22vw, 140px) minmax(0, 1fr);
}

.tdic-tp .mb-booking__text,
.tdic-tp .mb-ticket__text {
	display: grid;
	gap: 6px;
	min-inline-size: 0;
}

.tdic-tp .mb-booking__poster img,
.tdic-tp .mb-ticket__poster img,
.tdic-tp .mb-card__poster img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 2 / 3;
	/* The whole poster, never cropped or squashed (overnight round, 7b). */
	object-fit: contain;
	border: 1px solid var(--wp--preset--color--cream);
	border-radius: 10px;
}

.tdic-tp .mb-booking__when {
	font-family: var(--wp--preset--font-family--subheading);
	font-weight: 700;
}

.tdic-tp .mb-card.has-poster {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
}

.tdic-tp .mb-card__body {
	display: grid;
	gap: 4px;
	min-inline-size: 0;
}

.tdic-tp .mb-ticket__cert {
	display: inline-flex;
}

.tdic-tp .mb-ticket .mb-times {
	margin-block-start: 6px;
}

/* The gate pass: the QR code on white, then the plate centred. */
.tdic-tp .mb-pass {
	display: grid;
	gap: 16px;
	justify-items: center;
	margin-block-start: 22px;
	padding: 20px;
	border: var(--mb-line);
	border-radius: var(--mb-radius);
	background: var(--wp--preset--color--navy);
	text-align: center;
}

.tdic-tp .mb-pass .mb-qr {
	inline-size: 100%;
	margin: 0;
}

.tdic-tp .mb-pass .mb-for {
	flex-direction: column;
	justify-content: center;
	margin: 0;
}

.tdic-tp .mb-pass .mb-wallet {
	justify-content: center;
}

.tdic-tp .mb-pdf {
	margin: 0;
}

.tdic-tp .mb-pdf__link {
	background: none;
	font-size: inherit;
	cursor: pointer;
	display: inline-flex;
	gap: 10px;
	align-items: center;
	min-block-size: 48px;
	padding: 0 18px;
	border: 1px solid var(--wp--preset--color--cream);
	border-radius: 999px;
	color: var(--wp--preset--color--cream);
	font-family: var(--wp--preset--font-family--subheading);
	font-weight: 700;
	text-decoration: none;
}

.tdic-tp .mb-pdf__link:hover,
.tdic-tp .mb-pdf__link:focus-visible {
	border-color: var(--wp--preset--color--red);
}

.tdic-tp .mb-pdf__link .tdic-icon {
	inline-size: 20px;
	block-size: 20px;
}

/* Actions with an icon each. */
.tdic-tp .mb-action {
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
}

.tdic-tp .mb-action__icon {
	display: grid;
	place-items: center;
	inline-size: 40px;
	block-size: 40px;
	border: 1px solid var(--wp--preset--color--cream);
	border-radius: 50%;
	color: var(--wp--preset--color--red);
}

.tdic-tp .mb-action__icon .tdic-icon {
	inline-size: 22px;
	block-size: 22px;
}

.tdic-tp .mb-action__text {
	display: grid;
	gap: 2px;
	min-inline-size: 0;
}

.tdic-tp a.mb-action:hover .mb-action__icon,
.tdic-tp a.mb-action:focus-visible .mb-action__icon {
	border-color: var(--wp--preset--color--red);
}

.tdic-tp .mb-action--cancel .mb-action__icon {
	color: var(--wp--preset--color--cream);
}

/* Wallet buttons by device (2.4): Apple on iPhone and iPad, Google on
 * Android, both on a computer. */
.tdic-is-ios .mb-wallet__button[data-wallet="google"],
.tdic-is-android .mb-wallet__button[data-wallet="apple"] {
	display: none;
}


/* ---------- The cinema ticket (3.7) ----------
 * Portrait: the logo on navy at the top, the film and its facts, the plate
 * and the QR code, then a perforated stub. The same ticket on the
 * confirmation page, Manage Booking and the driver's page after paying at
 * the gate. The buttons sit under it, left-aligned. */
.tdic-tp .tdic-cine {
	--cine-bg: var(--wp--preset--color--navy);
	position: relative;
	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: 440px;
	margin: 0;
	border: 1px solid var(--wp--preset--color--cream);
	border-radius: 18px;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--cream);
}

.tdic-tp .tdic-cine__top {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 22px 22px 16px;
	border-block-end: 1px solid var(--wp--preset--color--cream);
	text-align: center;
}

.tdic-tp .tdic-cine__logo {
	display: block;
	inline-size: 150px;
	block-size: auto;
}

.tdic-tp .tdic-cine__admit {
	margin: 0;
	color: var(--wp--preset--color--red);
}

.tdic-tp .tdic-cine__film {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px 0;
}

.tdic-tp .tdic-cine__film .mb-ticket__film {
	margin: 0;
	font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
	line-height: 1;
}

.tdic-tp .tdic-cine .tdic-cine__facts {
	margin: 0;
	padding: 16px 22px 0;
}

/* A car booked with the Unlimited Pass (D485): photo ID in the holder's
 * name, across the ticket under its facts, in the facts' words. */
.tdic-tp .tdic-cine .tdic-cine__id {
	margin: 0;
	padding: 16px 22px 0;
	color: var(--wp--preset--color--cream);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.5;
}

.tdic-tp .tdic-cine .mb-pass {
	margin: 0;
	padding: 18px 22px 22px;
	border: 0;
	border-radius: 0;
	background: none;
}

.tdic-tp .tdic-cine .mb-qr {
	padding: 16px;
}

.tdic-tp .tdic-cine .mb-qr img,
.tdic-tp .tdic-cine .mb-qr .mb-qr__slot {
	inline-size: min(100%, 260px);
}

/* The perforation, with a notch either side. */
.tdic-tp .tdic-cine__stub {
	position: relative;
	display: grid;
	gap: 6px;
	padding: 16px 22px 20px;
	border-block-start: 2px dashed var(--wp--preset--color--cream);
	text-align: center;
}

.tdic-tp .tdic-cine__stub::before,
.tdic-tp .tdic-cine__stub::after {
	content: "";
	position: absolute;
	inset-block-start: -12px;
	inline-size: 22px;
	block-size: 22px;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--cream);
	border-radius: 50%;
	background: var(--cine-bg);
}

.tdic-tp .tdic-cine__stub::before {
	inset-inline-start: -12px;
	clip-path: inset(0 0 0 50%);
}

.tdic-tp .tdic-cine__stub::after {
	inset-inline-end: -12px;
	clip-path: inset(0 50% 0 0);
}

.tdic-tp .tdic-cine__stub p {
	margin: 0;
}

.tdic-tp .tdic-cine__stub .mb-code {
	margin: 0;
}

.tdic-tp .tdic-cine__fm {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--subheading);
	font-weight: 700;
}

.tdic-tp .tdic-cine__fm .tdic-icon {
	inline-size: 20px;
	block-size: 20px;
	color: var(--wp--preset--color--red);
}

.tdic-tp .tdic-cine__web {
	font-size: 0.875rem;
	letter-spacing: 0.04em;
}

/* Under the ticket: wallets, PDF and email, left-aligned. */
.tdic-tp .tdic-cine__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: flex-start;
	max-inline-size: 440px;
	margin: 16px 0 0;
}

.tdic-tp .tdic-cine__actions .mb-wallet {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-start;
	inline-size: 100%;
	margin: 0;
}

/* The confirmation page fills its column, lined up with "Thank you", the
 * tickets two across on a computer (3.6). */
.tdic-tp.tdic-confirm {
	inline-size: 100%;
}

.tdic-confirm__tickets {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 440px));
	gap: 32px 24px;
	align-items: start;
}

.tdic-confirm .tdic-confirm__tickets .tdic-confirm__ticket {
	margin: 0;
}

.tdic-tp .tdic-cine .tdic-cine__facts {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tdic-tp .mb-qr {
	box-sizing: border-box;
}

/* Manage Booking, one ticket (3.8): compact, the change options close by.
 * Computers: the ticket on the left, the changes beside it. */
.tdic-tp .mb-ticket--page .mb-qr img,
.tdic-tp .mb-ticket--page .mb-qr .mb-qr__slot {
	inline-size: min(100%, 220px);
}

.tdic-tp .mb-ticket__main > :first-child {
	margin-block-start: 0;
}

@media (min-width: 960px) {
	.tdic-tp:has(.mb-ticket--page) {
		inline-size: min(100%, 1040px);
	}

	.tdic-tp .mb-ticket--page {
		display: grid;
		grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
		gap: 48px;
		align-items: start;
	}

	/* "Change this ticket" and "Booking details" stick beside the ticket
	 * (round 20 October PM, I1): the theme's sticky panel rule. */

	.tdic-tp .mb-ticket--page .mb-ticket__main > .mb-h2:first-child,
	.tdic-tp .mb-ticket--page .mb-ticket__main > :first-child {
		margin-block-start: 0;
	}
}

/* Phones and tablets: the changes and details sit above the ticket and do
 * not stick (round 20 October PM, I1; docs/DESIGN-SYSTEM.md). */
@media (max-width: 959px) {
	.tdic-tp .mb-ticket--page {
		display: flex;
		flex-direction: column;
	}

	.tdic-tp .mb-ticket--page .mb-ticket__main {
		order: -1;
		margin-block: 0 24px;
	}
}

/* "Passing this ticket on?" under the ticket (3.9). */
.tdic-tp .tdic-cine__warn {
	inline-size: 100%;
	margin: 6px 0 0;
	font-size: 0.875rem;
	line-height: 1.5;
}

/* Tickets sent on (3.9). */
.tdic-tp .mb-sent {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tdic-tp .mb-sent__item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 14px;
	border: var(--mb-line);
	border-radius: var(--mb-radius);
}

.tdic-tp .mb-sent__item .tdic-icon {
	flex: none;
	inline-size: 20px;
	block-size: 20px;
	color: var(--wp--preset--color--red);
}

/* "No reg yet" is plain to see (3.9): a dashed red plate. */
.tdic-tp .mb-plate.mb-plate--none {
	border: 2px dashed var(--wp--preset--color--red);
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--cream);
	font-style: normal;
}

.tdic-tp .tdic-confirm__card {
	margin: 0 0 20px;
}

/* ---------- Ticket actions as a 2 x 2 grid (round 20 October, H1, I3, I4) ----------
 * The width of the ticket: Apple Wallet and Google Wallet on the top row,
 * the email and the download underneath. The download and email buttons
 * are tickets like every other button: square corners, notches left and
 * right, one tone. */
.tdic-tp .tdic-cine__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	align-items: stretch;
	inline-size: 100%;
	max-inline-size: var(--tdic-ticket-w, 380px);
}

.tdic-tp .tdic-cine__actions :is(.tdic-cine__wallets, .tdic-cine__files, .mb-wallet) {
	display: contents;
}

/* Download and email always start the second row, even while only one
 * wallet button is offered (Apple Wallet waits for its certificate). */
.tdic-tp .tdic-cine__actions .tdic-cine__files > :first-child {
	grid-column: 1;
}

.tdic-tp .tdic-cine__actions .mb-wallet__button {
	display: grid;
	place-items: center;
	min-block-size: 48px;
}

.tdic-tp .tdic-cine__actions .mb-wallet__button img {
	inline-size: 100%;
	max-inline-size: 180px;
	block-size: auto;
}

.tdic-tp .tdic-cine__actions .mb-pdf,
.tdic-tp .tdic-cine__actions form.mb-pdf {
	display: grid;
	margin: 0;
}

.tdic-tp .tdic-cine__warn {
	grid-column: 1 / -1;
	margin: 4px 0 0;
}

.tdic-tp .mb-pdf__link {
	--t-n: 7px;
	--t-w: 1.5px;
	--t-line: var(--wp--preset--color--cream);
	box-sizing: border-box;
	justify-content: center;
	inline-size: 100%;
	padding: 0 14px;
	border: 1.5px solid var(--t-line);
	border-radius: 6px;
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background-image:
		radial-gradient(circle at 0 50%, transparent var(--t-n), var(--t-line) var(--t-n), var(--t-line) calc(var(--t-n) + var(--t-w) + 0.5px), transparent calc(var(--t-n) + var(--t-w) + 0.5px)),
		radial-gradient(circle at 100% 50%, transparent var(--t-n), var(--t-line) var(--t-n), var(--t-line) calc(var(--t-n) + var(--t-w) + 0.5px), transparent calc(var(--t-n) + var(--t-w) + 0.5px));
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-origin: border-box;
	-webkit-mask:
		radial-gradient(circle at 0 50%, transparent var(--t-n), var(--wp--preset--color--black) calc(var(--t-n) + 0.5px)),
		radial-gradient(circle at 100% 50%, transparent var(--t-n), var(--wp--preset--color--black) calc(var(--t-n) + 0.5px));
	-webkit-mask-composite: source-in;
	mask:
		radial-gradient(circle at 0 50%, transparent var(--t-n), var(--wp--preset--color--black) calc(var(--t-n) + 0.5px)),
		radial-gradient(circle at 100% 50%, transparent var(--t-n), var(--wp--preset--color--black) calc(var(--t-n) + 0.5px));
	mask-composite: intersect;
}

.tdic-tp .mb-pdf__link:hover,
.tdic-tp .mb-pdf__link:focus-visible {
	--t-line: var(--wp--preset--color--red);
}

/* ---------- The confirmation page (round 20 October, H) ----------
 * Computers: the ticket on the left, a little narrower; on the right the
 * booking, the actions and "Scan to open on your phone". Phones: one
 * column, the ticket first. */
.tdic-confirm__layout {
	--tdic-ticket-w: 380px;
	display: grid;
	gap: 28px;
	align-items: start;
}

.tdic-confirm__layout .tdic-confirm__tickets {
	grid-template-columns: minmax(0, var(--tdic-ticket-w));
}

.tdic-confirm__side {
	display: grid;
	gap: 20px;
	align-content: start;
	min-inline-size: 0;
}

.tdic-confirm__side .tdic-cine__actions {
	max-inline-size: none;
	margin: 0;
}

@media (min-width: 760px) {
	.tdic-confirm__layout {
		grid-template-columns: minmax(0, var(--tdic-ticket-w)) minmax(0, 1fr);
		gap: 40px;
	}
}

.tdic-confirm__summary {
	padding: 20px 22px;
	border: 1px solid var(--wp--preset--color--cream);
	border-radius: var(--wp--custom--radius);
}

.tdic-confirm__summary-title,
.tdic-confirm__phone-title {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tdic-confirm__summary dl {
	display: grid;
	gap: 8px;
	margin: 0;
}

.tdic-confirm__summary dl > div {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	gap: 12px;
	padding-block-end: 8px;
	border-block-end: 1px solid var(--wp--preset--color--cream);
}

.tdic-confirm__summary dl > div:last-child {
	padding-block-end: 0;
	border-block-end: 0;
}

.tdic-confirm__summary dt {
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tdic-confirm__summary dd {
	margin: 0;
	overflow-wrap: anywhere;
}

/* Small and plainly labelled, so it is never taken for the gate ticket. */
.tdic-confirm__side .tdic-confirm__phone {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 14px;
	font-size: 0.875rem;
}

.tdic-confirm__side .tdic-confirm__phone > div {
	flex: 1 1 auto;
	min-inline-size: 0;
}

.tdic-confirm__side .tdic-confirm__phone img {
	flex: none;
	inline-size: 104px;
	block-size: 104px;
	padding: 4px;
	box-sizing: border-box;
}

.tdic-confirm__side .tdic-confirm__phone-title {
	margin-block-end: 4px;
}

@media (max-width: 859px) {
	.tdic-confirm__side .tdic-confirm__phone {
		display: none;
	}
}

.tdic-confirm__side .tdic-confirm__manage {
	margin: 0;
}

/* The plate's letters sit dead centre (round 20 October, I2): the line box
 * is trimmed to the capitals, so the space the font keeps above and below
 * no longer pushes them off centre, and the letter spacing after the last
 * character is matched on the left. */
.tdic-tp .mb-plate {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 10px 7px calc(10px + 0.06em);
	line-height: 1;
	text-box: trim-both cap alphabetic;
}

.tdic-tp .mb-plate--big {
	padding: 12px 16px 12px calc(16px + 0.06em);
}

.tdic-tp .tdic-cine__actions .mb-pdf__link {
	gap: 8px;
	padding-inline: 10px;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

/* ---------- Round 30 October (C1b): words on the white are navy ----------
 * Manage Booking's steps sit straight on the white working area, but their
 * words were left cream from the night design: the intro under "Add your
 * car registration", "too close to the film" lines, problems and the
 * "Your booking has been updated" box. Every word outside a card or the
 * navy QR ticket is navy (black on the plate); links on white are red
 * and underlined. The QR ticket (.tdic-cine) keeps its cream words. */
:root body .tdic-tp :is(.mb-lead, .mb-status, .mb-notice, .mb-notice strong, .mb-notice span, .mb-hint, .mb-h2, .mb-label, .mb-check, .mb-summary, .mb-booking__count, .mb-booking__when, .mb-sent__item, .mb-after):not(.tdic-cine *) {
	color: var(--tdic-c-navy, var(--wp--preset--color--navy));
}

:root body .tdic-tp :is(.mb-status, .mb-notice:not(.mb-notice--problem), .mb-summary):not(.tdic-cine *) {
	border-color: var(--tdic-c-navy, var(--wp--preset--color--navy));
	background: var(--tdic-c-white, var(--wp--preset--color--white));
}

:root body .tdic-tp .mb-notice--done:not(.tdic-cine *) {
	border: 2px solid var(--tdic-c-navy, var(--wp--preset--color--navy));
}

:root body .tdic-tp .mb-notice--problem:not(.tdic-cine *) {
	border-color: var(--wp--preset--color--red);
	background: var(--tdic-c-white, var(--wp--preset--color--white));
}

:root body .tdic-tp :is(.mb-back a, .mb-lead a, .mb-after a, .mb-hint a):not(.tdic-cine *) {
	color: var(--wp--preset--color--red);
	text-decoration: underline;
}

/* ---------- Round 30 October (C1c): a pressed Save ----------
 * manage-save.js stops the button at once and lays this solid white panel
 * over the form, with a small red car driving on the spot and the words
 * ("Saving…"), until the next page arrives. Transform and opacity only;
 * each loop has an end (about a minute), and reduced motion shows the car
 * standing still. The fixed palette (--tdic-c-*) is used because the
 * form's own palette is swapped for the light design (light.css). */
.tdic-tp form.mb-form[data-mb-save] {
	position: relative;
}

.tdic-tp button:disabled {
	cursor: progress;
}

.tdic-tp .mb-busy {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 12px;
	padding: 16px;
	border-radius: inherit;
	background: var(--tdic-c-white, var(--wp--preset--color--white));
	color: var(--tdic-c-navy, var(--wp--preset--color--navy));
	text-align: center;
	animation: tdic-mb-busy-in 200ms var(--wp--custom--ease, cubic-bezier(0.23, 1, 0.32, 1)) both;
}

.tdic-tp .mb-busy__car {
	position: relative;
	display: block;
	inline-size: 120px;
	block-size: 66px;
	overflow: hidden;
}

.tdic-tp .mb-busy__svg {
	display: block;
	inline-size: 120px;
	block-size: 60px;
}

.tdic-tp .mb-busy__paint {
	fill: var(--wp--preset--color--red);
}

.tdic-tp .mb-busy__glass {
	fill: var(--tdic-c-white, var(--wp--preset--color--white));
}

.tdic-tp .mb-busy__lamp,
.tdic-tp .mb-busy__hub {
	fill: var(--tdic-c-cream, var(--wp--preset--color--cream));
}

.tdic-tp .mb-busy__tyre {
	fill: var(--tdic-c-navy, var(--wp--preset--color--navy));
}

.tdic-tp .mb-busy__body {
	transform-box: fill-box;
	animation: tdic-mb-bob 300ms ease-in-out 200 alternate;
}

.tdic-tp .mb-busy__spin {
	transform-box: fill-box;
	transform-origin: center;
	animation: tdic-mb-spin 600ms linear 100;
}

/* The road's dashes slide back under the car, so it drives on the spot. */
.tdic-tp .mb-busy__road {
	position: absolute;
	inset-block-end: 1px;
	inset-inline: 0 -24px;
	block-size: 3px;
	background: repeating-linear-gradient(90deg, var(--tdic-c-navy, var(--wp--preset--color--navy)) 0 12px, var(--tdic-c-white, var(--wp--preset--color--white)) 12px 24px);
	animation: tdic-mb-road 400ms linear 150;
}

.tdic-tp .mb-busy__words {
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@keyframes tdic-mb-busy-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes tdic-mb-bob {
	to {
		transform: translateY(-2px);
	}
}

@keyframes tdic-mb-spin {
	to {
		transform: rotate(1turn);
	}
}

@keyframes tdic-mb-road {
	to {
		transform: translateX(-24px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tdic-tp :is(.mb-busy, .mb-busy__body, .mb-busy__spin, .mb-busy__road) {
		animation: none;
	}
}

/* ---------- Round 31 October (3f): Manage Booking's food panel ----------
 * Display::manage_panel() draws .mb-food between the ticket and "Change
 * this ticket". Computers: beside the ticket, above "Change this ticket"
 * (the ticket spans both rows; the changes stay sticky in their own row).
 * Phones and tablets: at the top, above the changes and the ticket. Light,
 * like every panel on a white working area: white, a thin navy outline,
 * navy words with the last word red, the red script line above, and a red
 * ticket-shaped button with cream words. The fixed palette (--tdic-c-*)
 * is used, so no light swap can turn the colours round. */
.tdic-tp .mb-food {
	--mbf-navy: var(--tdic-c-navy, var(--wp--preset--color--navy));
	--mbf-red: var(--tdic-c-red, var(--wp--preset--color--red));
	--mbf-cream: var(--tdic-c-cream, var(--wp--preset--color--cream));
	--mbf-white: var(--tdic-c-white, var(--wp--preset--color--white));
	box-sizing: border-box;
	display: grid;
	gap: 12px;
	align-content: start;
	min-inline-size: 0;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--mbf-navy);
	border-radius: 20px;
	background: var(--mbf-white);
	color: var(--mbf-navy);
}

.tdic-tp .mb-food > * {
	margin: 0;
}

:root body .tdic-tp .mb-food .mb-food__script {
	color: var(--mbf-red);
	font-family: var(--wp--preset--font-family--accent);
	font-size: var(--wp--preset--font-size--accent);
	line-height: 1;
}

:root body .tdic-tp .mb-food .mb-food__title {
	margin-block-start: -4px;
	color: var(--mbf-navy);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: 0;
	text-transform: uppercase;
}

:root body .tdic-tp .mb-food .mb-food__red {
	color: var(--mbf-red);
}

:root body .tdic-tp .mb-food :is(.mb-food__lead, .mb-food__vendors, li) {
	color: var(--mbf-navy);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
}

.tdic-tp .mb-food .mb-food__vendors {
	font-weight: 700;
}

.tdic-tp .mb-food__links {
	display: grid;
	gap: 4px;
	padding: 0;
	list-style: none;
}

:root body .tdic-tp .mb-food__links a {
	color: var(--mbf-red);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.tdic-tp .mb-food__add {
	margin-block-start: 4px;
}

.tdic-tp .mb-food__add .tdic-btn {
	box-sizing: border-box;
	inline-size: 100%;
}

:root body .tdic-tp .mb-food__add .tdic-btn--red,
:root body .tdic-tp .mb-food__add .tdic-btn--red:hover {
	background-color: var(--mbf-red);
	color: var(--mbf-cream);
}

@media (min-width: 960px) {
	.tdic-tp .mb-ticket--page.has-panel {
		grid-template-rows: auto 1fr;
		row-gap: 24px;
	}

	.tdic-tp .mb-ticket--page.has-panel > .mb-ticket__side {
		grid-row: 1 / span 2;
		grid-column: 1;
	}

	.tdic-tp .mb-ticket--page.has-panel > .mb-food {
		grid-row: 1;
		grid-column: 2;
	}

	.tdic-tp .mb-ticket--page.has-panel > .mb-ticket__main {
		grid-row: 2;
		grid-column: 2;
	}
}

@media (max-width: 959px) {
	.tdic-tp .mb-ticket--page.has-panel > .mb-food {
		order: -2;
		margin-block: 0 24px;
	}
}

@media (max-width: 599px) {
	.tdic-tp .mb-food {
		padding: 16px;
	}
}

/* My Account, "Your bundles" (D610): how to use them, between the list
 * and "Choose on What's On", with the list's own space below it. */
.tdic-my-bundles .tdic-my-bundles__how {
	margin: 0 0 1rem;
}

/* Moving a bundle car into a section above its bundle's (D630, D633): the
 * tile says "Upgrade your pass: +£5" in the price's place, smaller and
 * wrapped clear of the notches. */
.tdic-tp .tdic-field__price--upgrade {
	box-sizing: border-box;
	max-inline-size: 100%;
	padding-inline: 6px;
	font-size: 0.8125rem;
	line-height: 1.05;
	text-align: center;
	text-wrap: balance;
	white-space: normal;
}

@container (min-width: 520px) {
	.tdic-tp .tdic-field__price--upgrade {
		font-size: 1rem;
	}
}

/* ---------- A ticket the gate turns away (Jonny, 12 November; round 196) ----------
 * Cancelled, refunded, sent to [name], sent on or on hold: where the QR
 * code was, in the QR code's own box (.mb-qr, so the same padding, radius
 * and white). The box keeps an invisible copy of the QR code's slot and
 * its caption in their places, so it is the QR panel's size by
 * construction at every width and nothing on the ticket moves. The words
 * lie over the slot and the caption in the same grid cells and never size
 * the box (size containment): a large "Cancelled", "Sent to [name]",
 * "Sent on" or "On hold" in the display face, in capitals, a short red
 * rule and why, navy on white as the QR code's own panel and the emails'
 * picture. A long name steps down a size (set in PHP) and wraps inside. */
.tdic-tp .mb-noqr {
	color: var(--wp--preset--color--navy);
}

/* The QR code's slot and its caption, in their own places, kept unseen. */
.tdic-tp .mb-noqr > .mb-qr__slot {
	grid-area: 1 / 1;
}

.tdic-tp .mb-noqr > p.mb-noqr__ghost {
	grid-area: 2 / 1;
}

.tdic-tp .mb-noqr .mb-noqr__ghost {
	visibility: hidden;
}

/* The words, over the slot, the gap and the caption together. */
.tdic-tp .mb-noqr .mb-noqr__face {
	box-sizing: border-box;
	container-type: size;
	display: flex;
	flex-direction: column;
	gap: 8px;
	grid-area: 1 / 1 / 3 / 2;
	place-self: stretch;
	min-inline-size: 0;
	min-block-size: 0;
	overflow: hidden;
}

/* Centred in the space above the note, or in all of it. */
.tdic-tp .mb-noqr .mb-noqr__main {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	min-inline-size: 0;
	margin-block: auto;
}

.tdic-tp .mb-noqr .mb-noqr__word {
	max-inline-size: 100%;
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	/* Never wider than the panel: "Cancelled" stays one word on one line. */
	font-size: min(var(--wp--preset--font-size--huge), 18cqi);
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.tdic-tp .mb-noqr .mb-noqr__word--m {
	font-size: var(--wp--preset--font-size--xx-large);
}

.tdic-tp .mb-noqr .mb-noqr__word--s {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 0.95;
}

.tdic-tp .mb-noqr .mb-noqr__word--xs {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1;
}

.tdic-tp .mb-noqr .mb-noqr__rule {
	display: block;
	flex: none;
	inline-size: 48px;
	block-size: 3px;
	background: var(--wp--preset--color--red);
}

.tdic-tp .mb-noqr .mb-noqr__gate {
	max-inline-size: 32ch;
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	line-height: 1.35;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

/* The note, at the foot where the QR code's caption is, in its style. */
.tdic-tp .mb-noqr .mb-noqr__note {
	flex: none;
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* Navy words on the white panel: the theme makes words on the QR ticket
 * cream (html body .tdic-workarea .tdic-cine p), so this is stronger. */
:root body .tdic-tp .tdic-cine .mb-noqr :is(p, span) {
	color: var(--wp--preset--color--navy);
}

/* Someone else's ticket, sent on (round 196): its plate and vehicle are
 * theirs alone, so their slots are empty and left out. This ticket only
 * ever shows on its own page, so nothing beside it moves, and the panel
 * keeps the QR panel's size (the lead: an empty band read as broken). */
.tdic-tp .mb-unseen {
	display: none;
}
