/**
 * Train Thru booking flow — Figma/style-guide implementation.
 *
 * This file intentionally replaces the original scaffold rather than layering
 * another override pass on top of it.
 */

@font-face {
	font-family: "Circular Std";
	src: url("../fonts/CircularStd-Book.woff2") format("woff2");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Circular Std";
	src: url("../fonts/CircularStd-Medium.woff2") format("woff2");
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: "Circular Std";
	src: url("../fonts/CircularStd-Bold.woff2") format("woff2");
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: "SF Pro Local";
	src: url("../fonts/SFPRODISPLAYREGULAR.OTF") format("opentype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "SF Pro Local";
	src: url("../fonts/SFPRODISPLAYMEDIUM.OTF") format("opentype");
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: "SF Pro Local";
	src: url("../fonts/SFPRODISPLAYBOLD.OTF") format("opentype");
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}

:root {
	--tlb-brand: #00a88f;
	--tlb-brand-dark: #006b5f;
	--tlb-white: #ffffff;
	--tlb-black: #000000;
	--tlb-selected: #ffefdf;
	--tlb-dominos-blue: #006491;
	--tlb-placeholder: rgba(255, 255, 255, 0.7);
	--tlb-rule: rgba(255, 255, 255, 0.72);
	--tlb-font-display: "Circular Std", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--tlb-font-ui: "SF Pro Text", "SF Pro Local", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--tlb-title-size: clamp(1.5rem, calc(1.1429rem + 1.7857vw), 2rem);
	--tlb-title-leading: clamp(1.75rem, calc(1.2143rem + 2.6786vw), 2.5rem);
	--tlb-body-size: 1rem;
	--tlb-body-leading: 1.5rem;
	--tlb-compact-size: 0.9375rem;
	--tlb-compact-leading: 1.25rem;
	--tlb-space-1: 4px;
	--tlb-space-2: 8px;
	--tlb-space-3: 12px;
	--tlb-space-4: 16px;
	--tlb-space-5: 20px;
	--tlb-space-6: 24px;
	--tlb-space-8: 32px;
	--tlb-space-10: 40px;
	--tlb-radius-sm: 3px;
	--tlb-radius-control: 10px;
	--tlb-radius-choice: 20px;
	--tlb-flow-gutter: clamp(19px, 4vw, 32px);
	--tlb-flow-max: 480px;
	--tlb-nav-height: clamp(52px, 5vw, 64px);
	--tlb-control-height: 53px;
	--tlb-choice-height: 80px;
}

@media (min-width: 768px) {
	:root {
		--tlb-compact-size: 0.875rem;
	}
}

html {
	margin-top: 0 !important;
	overflow-y: scroll;
	background: var(--tlb-brand);
	scrollbar-gutter: stable;
}

.tlb-booking-page,
.tlb-booking-page *,
.tlb-booking-page *::before,
.tlb-booking-page *::after {
	box-sizing: border-box;
}

.tlb-booking-page {
	display: flex;
	flex-direction: column;
	min-width: 280px;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	background: var(--tlb-brand);
	color: var(--tlb-white);
	font-family: var(--tlb-font-ui);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.tlb-booking-page #wpadminbar {
	display: none !important;
}

.tlb-booking-page button,
.tlb-booking-page input,
.tlb-booking-page textarea {
	font: inherit;
}

.tlb-booking-page button,
.tlb-booking-page label,
.tlb-booking-page a {
	-webkit-tap-highlight-color: transparent;
}

.tlb-booking-page img {
	display: block;
	max-width: 100%;
}

.tlb-booking-page [hidden] {
	display: none !important;
}

.tlb-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.tlb-skip-link {
	position: fixed;
	z-index: 10000;
	top: 8px;
	left: 8px;
	padding: 10px 14px;
	transform: translateY(-150%);
	border-radius: 6px;
	background: var(--tlb-black);
	color: var(--tlb-white);
}

.tlb-skip-link:focus {
	transform: translateY(0);
}

/* Application navigation ------------------------------------------------ */

.tlb-app-nav {
	position: relative;
	z-index: 100;
	width: 100%;
	background: var(--tlb-white);
}

.tlb-app-nav__inner {
	display: grid;
	width: min(100%, 760px);
	min-height: var(--tlb-nav-height);
	margin-inline: auto;
	padding-inline: 4px;
	grid-template-columns: 44px 1fr 44px;
	align-items: center;
}

.tlb-app-nav__logo {
	width: clamp(115px, 10vw, 138px);
	height: auto;
	margin-inline: auto;
}

.tlb-icon-button {
	display: grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 0;
	background: transparent;
	color: var(--tlb-black);
	cursor: pointer;
}

.tlb-nav-back {
	visibility: hidden;
}

.tlb-nav-back.is-visible {
	visibility: visible;
}

.tlb-nav-back img {
	width: 16px;
	max-height: 18px;
}

.tlb-nav-close img {
	width: 30px;
	height: 30px;
}

.tlb-icon-button:hover {
	background: rgba(0, 168, 143, 0.055);
}

.tlb-icon-button:focus-visible,
.tlb-primary-action:focus-visible,
.tlb-choice-control input:focus-visible+.tlb-date-card,
.tlb-choice-control input:focus-visible+.tlb-pizza-card {
	outline: 3px solid var(--tlb-selected);
	outline-offset: 3px;
}

/* Flow shell ------------------------------------------------------------ */

.tlb-main {
	position: relative;
	z-index: 2;
	flex: 1 0 auto;
	width: min(100%, calc(var(--tlb-flow-max) + (2 * var(--tlb-flow-gutter))));
	margin-inline: auto;
	padding: 0 var(--tlb-flow-gutter) 16px;
}

.tlb-wizard-container,
.tlb-flow-panel {
	width: 100%;
}

#tlb-step-1,
#tlb-step-2,
#tlb-step-3 {
	padding-bottom: 20px !important;
}

.tlb-step {
	display: none;
	width: 100%;
	position: relative;
}

.tlb-step.active {
	display: block;
	animation: tlb-step-in 180ms ease both;
}

@keyframes tlb-step-in {
	from {
		opacity: 0;
		transform: translateY(5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tlb-fade-overlay {
	position: fixed;
	z-index: 99;
	inset: var(--tlb-nav-height) 0 0;
	background: var(--tlb-brand);
	opacity: 0;
	pointer-events: none;
	transition: opacity 150ms ease;
}

.tlb-fade-overlay.is-active {
	opacity: 1;
}

.tlb-step-progress {
	margin: 10px 0 0;
	font-family: var(--tlb-font-display);
	font-size: 12px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
}

.tlb-step-icon {
	width: 28px;
	height: 28px;
	margin: 16px auto 8px;
	filter: brightness(0) invert(1);
}

.tlb-step-icon--train {
	width: 32px;
	height: 33px;
}

.tlb-heading {
	margin: 0 0 28px;
	color: var(--tlb-white);
	font-family: var(--tlb-font-display);
	font-size: var(--tlb-title-size);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: var(--tlb-title-leading);
	text-align: center;
}

.tlb-intro {
	margin: 0 auto var(--tlb-space-8);
	font-size: var(--tlb-body-size);
	line-height: var(--tlb-body-leading);
	text-align: center;
}

.tlb-step-intro {
	max-width: 440px;
	margin: -12px auto 24px;
	font-size: var(--tlb-body-size);
	line-height: var(--tlb-body-leading);
	text-align: center;
}

/* Choices --------------------------------------------------------------- */

.tlb-choice-group {
	display: grid;
	width: 100%;
	margin: 0;
	padding: 0;
	gap: 11px;
	border: 0;
}

.tlb-choice-control {
	display: block;
	color: var(--tlb-black);
	cursor: pointer;
}

.tlb-choice-control input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.tlb-choice-control.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.tlb-date-card {
	display: grid;
	width: 100%;
	min-height: var(--tlb-choice-height);
	padding: 14px 22px;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--tlb-space-4);
	border: 1px solid var(--tlb-white);
	border-radius: var(--tlb-radius-choice);
	background: var(--tlb-white);
	font-family: var(--tlb-font-ui);
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
}

.tlb-date-card>img {
	width: 28px;
	height: 28px;
}

.tlb-date-card small {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.tlb-sold-out-stock-message {
	max-width: 440px;
	margin: 20px auto 0;
	font-size: var(--tlb-body-size);
	line-height: var(--tlb-body-leading);
	text-align: center;
}

.tlb-sold-out-stock-message+.tlb-primary-action {
	margin-top: 20px;
}

.tlb-pizza-cards {
	gap: 12px;
}

.tlb-pizza-card {
	display: grid;
	width: 100%;
	min-height: 92px;
	padding: 16px 20px;
	grid-template-columns: 100px minmax(0, 1fr);
	align-items: center;
	gap: var(--tlb-space-3);
	border: 1px solid var(--tlb-white);
	border-radius: var(--tlb-radius-choice);
	background: var(--tlb-white);
}

.tlb-pizza-card__image {
	display: block;
	width: 100px;
	height: 100px;
	object-fit: contain;
}

.tlb-pizza-card__copy {
	display: grid;
	gap: 6px;
}

.tlb-pizza-card__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
}

.tlb-pizza-card__title span {
	font-weight: 400;
}

.tlb-pizza-card__meta {
	font-size: var(--tlb-compact-size);
	font-weight: 400;
	line-height: var(--tlb-compact-leading);
}

.tlb-choice-control input:checked+.tlb-date-card,
.tlb-choice-control input:checked+.tlb-pizza-card {
	border-color: var(--tlb-brand-dark);
	background: var(--tlb-selected);
	box-shadow: inset 0 0 0 2px var(--tlb-brand-dark);
}

/* Service selector ------------------------------------------------------ */

.tlb-service-select {
	position: relative;
	width: 100%;
	font-size: var(--tlb-body-size);
	line-height: var(--tlb-body-leading);
}

.tlb-service-select__trigger {
	position: relative;
	display: grid;
	width: 100%;
	min-height: 74px;
	padding: 12px 48px 12px 18px;
	align-content: center;
	border: 1px solid var(--tlb-white);
	border-radius: var(--tlb-radius-control);
	background: transparent;
	color: var(--tlb-white);
	font-weight: 500;
	line-height: 20px;
	text-align: left;
	cursor: pointer;
	transition: background-color 160ms ease;
}

.tlb-service-select__trigger:hover,
.tlb-service-select.is-open .tlb-service-select__trigger {
	background: rgba(255, 255, 255, 0.08);
}

.tlb-service-select__trigger:focus-visible {
	outline: 2px solid var(--tlb-white);
	outline-offset: 3px;
}

.tlb-service-select__trigger:disabled {
	opacity: 0.65;
	cursor: wait;
}

.tlb-service-select__value,
.tlb-service-select__route,
.tlb-service-select__route-line,
.tlb-service-select__option {
	display: grid;
}

.tlb-service-select__meta {
	display: flex;
	align-items: baseline;
	gap: var(--tlb-space-3);
	font-size: var(--tlb-compact-size);
	line-height: var(--tlb-compact-leading);
}

.tlb-service-select__meta span {
	opacity: 0.7;
}

.tlb-service-select__route {
	gap: 0;
}

.tlb-service-select__route-line {
	display: block;
	font-size: 14px;
	line-height: 20px;
}

.tlb-service-select__route-line strong {
	font-weight: 700;
}

.tlb-service-select__chevron {
	position: absolute;
	top: 50%;
	right: 18px;
	width: 15px;
	height: 9px;
	transform: translateY(-50%);
	transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

.tlb-service-select.is-open .tlb-service-select__chevron {
	transform: translateY(-50%) rotate(180deg);
}

.tlb-service-select__list {
	position: relative;
	z-index: 5;
	width: 100%;
	max-height: 800px;
	margin: 8px 0 0;
	padding: 8px;
	overflow-y: auto;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: var(--tlb-radius-control);
	background: var(--tlb-white);
	box-shadow: 0 14px 32px rgba(5, 45, 18, 0.22);
	color: var(--tlb-black);
	list-style: none;
	animation: tlb-dropdown-in 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
	transform-origin: top center;
}

@keyframes tlb-dropdown-in {
	from {
		opacity: 0;
		transform: translateY(-6px) scale(0.985);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.tlb-service-select.is-open ~ #tlb-journey-card,
.tlb-service-select.is-open ~ #tlb-step2-next,
.is-select-open #tlb-journey-card,
.is-select-open #tlb-step2-next {
	display: none !important;
}

.tlb-service-select__group-label {
	margin: 0;
	padding: 12px 12px 6px;
	color: var(--tlb-brand-dark);
	font-family: var(--tlb-font-display);
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
}

.tlb-service-select__group-label:not(:first-child) {
	margin-top: 6px;
	border-top: 1px solid rgba(0, 107, 95, 0.16);
}

.tlb-service-select__option {
	padding: 10px 12px;
	border-radius: 7px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.tlb-service-select__option+.tlb-service-select__option {
	margin-top: 4px;
}

.tlb-service-select__option:hover,
.tlb-service-select__option.is-active {
	background: rgba(0, 168, 143, 0.09);
	transform: translateX(3px);
}

.tlb-service-select__option[aria-selected="true"] {
	background: var(--tlb-selected);
}

.tlb-service-select__option[aria-selected="true"].is-active {
	box-shadow: inset 0 0 0 2px var(--tlb-brand);
}

.tlb-service-select__option.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.tlb-service-select__availability {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	text-transform: uppercase;
}

/* Journey card ---------------------------------------------------------- */

.tlb-journey-card {
	width: 100%;
	margin-top: 14px;
	padding: 16px 14px 18px;
	container: tlb-journey / inline-size;
	border-radius: var(--tlb-radius-control);
	background: var(--tlb-white);
	color: #192325;
}

.tlb-journey-card.is-entering {
	animation: tlb-card-in 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tlb-card-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.99);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.tlb-journey-card__service {
	display: grid;
	margin-bottom: 8px;
	grid-template-columns: 26px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
}

.tlb-journey-card__service>img {
	width: 24px;
	height: 24px;
}

.tlb-journey-card__service p {
	display: flex;
	margin: 0;
	align-items: baseline;
	gap: 25px;
	font-size: var(--tlb-compact-size);
	line-height: var(--tlb-compact-leading);
}

.tlb-journey-card__service p span {
	color: #4f5b5e;
}

.tlb-journey-route {
	position: relative;
}

.tlb-journey-route::before {
	position: absolute;
	z-index: 0;
	top: 9px;
	bottom: 9px;
	left: 10.5px;
	width: 3px;
	background: #5b6466;
	content: "";
	pointer-events: none;
}

.tlb-journey-terminal,
.tlb-timetable li {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 36px 62px minmax(0, 1fr);
	align-items: start;
}

.tlb-journey-terminal {
	min-height: 36px;
	font-size: 16px;
	line-height: 24px;
}

.tlb-timetable {
	display: grid;
	margin: 0;
	padding: 0;
	color: #3f4c4f;
	list-style: none;
}

.tlb-timetable li {
	min-height: 30px;
	font-size: var(--tlb-compact-size);
	line-height: var(--tlb-compact-leading);
}

.tlb-timetable li>strong {
	font-weight: 500;
}

.tlb-timetable__delivery>span:last-child {
	color: #192325;
	font-weight: 700;
}

.tlb-delivery-station {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px 12px;
}

.tlb-delivery-label {
	color: var(--tlb-dominos-blue);
	font-size: var(--tlb-compact-size);
	font-weight: 700;
	line-height: var(--tlb-compact-leading);
}

.tlb-timeline-marker {
	position: relative;
	display: block;
	width: 14px;
	/* min-height: 36px; */
	height: 100%;
}

.tlb-timeline-marker__stop {
	position: relative;
	z-index: 1;
	width: 11px;
	height: 11px;
	margin-top: 5px;
	margin-left: 6.5px;
	border-radius: 50%;
	background: var(--tlb-white);
}

.tlb-timeline-marker--terminal::before {
	position: absolute;
	z-index: 1;
	top: 4px;
	left: 7px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #5b6466;
	content: "";
}

.tlb-journey-terminal.is-destination {
	align-items: end;
}

.tlb-journey-terminal.is-destination .tlb-timeline-marker--terminal::before {
	top: auto;
	bottom: 5px;
}

/* Fields and consent ---------------------------------------------------- */

.tlb-field-stack {
	display: grid;
	gap: 14px;
}

.tlb-field-stack--journey {
	margin-top: 32px;
	gap: 24px;
}

.tlb-line-field {
	display: grid;
	gap: 2px;
	color: var(--tlb-white);
	font-size: var(--tlb-body-size);
	font-weight: 500;
	line-height: var(--tlb-body-leading);
}

.tlb-line-field>span small,
.tlb-form-intro small {
	font-size: 0.86em;
	font-weight: 400;
}

.tlb-line-field input,
.tlb-line-field textarea {
	width: 100%;
	min-height: 42px;
	padding: 4px 0 8px;
	border: 0;
	border-bottom: 1px solid var(--tlb-rule);
	border-radius: 0;
	background: transparent;
	color: var(--tlb-white);
	font-size: var(--tlb-body-size);
	font-weight: 400;
	line-height: var(--tlb-body-leading);
}

.tlb-line-field input::placeholder,
.tlb-line-field textarea::placeholder {
	color: var(--tlb-placeholder);
	opacity: 1;
}

.tlb-line-field textarea {
	min-height: 98px;
	resize: vertical;
}

.tlb-line-field input:focus-visible,
.tlb-line-field textarea:focus-visible {
	border-bottom-color: var(--tlb-white);
	box-shadow: inset 0 -1px 0 var(--tlb-white);
	outline: none;
}

.tlb-line-field input[aria-invalid="true"] {
	border-bottom-color: var(--tlb-selected);
	box-shadow: inset 0 -1px 0 var(--tlb-selected);
}

.tlb-line-field--textarea {
	margin-top: 30px;
}

.tlb-line-field--placeholder {
	display: block;
}

.tlb-consent {
	display: grid;
	margin: 0;
	grid-template-columns: 19px minmax(0, 1fr);
	align-items: start;
	gap: 12px;
	color: var(--tlb-white);
	font-size: var(--tlb-body-size);
	font-weight: 400;
	line-height: 22px;
	cursor: pointer;
}

.tlb-consent input {
	width: 19px;
	height: 19px;
	margin: 2px 0 0;
	accent-color: var(--tlb-white);
}

.tlb-consent-group {
	display: grid;
	margin-top: 28px;
	gap: 18px;
}

.tlb-privacy-notice {
	margin: 0;
	color: var(--tlb-white);
	font-size: var(--tlb-compact-size);
	line-height: var(--tlb-compact-leading);
}

.tlb-booking-note {
	margin: 16px 0 20px;
	color: var(--tlb-white);
	font-size: var(--tlb-compact-size);
	line-height: var(--tlb-compact-leading);
	opacity: 0.7;
}

.tlb-booking-note strong {
	font-weight: 700;
}

/* Export portal -------------------------------------------------------- */

.tlb-export-grid {
	display: grid;
	max-width: 440px;
	margin: 0 auto;
	gap: 36px;
}

.tlb-export-section,
.tlb-export-form {
	display: grid;
}

.tlb-export-heading {
	margin: 0 0 14px;
	color: var(--tlb-white);
	font-family: var(--tlb-font-display);
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	text-align: center;
}

.tlb-export-form {
	gap: 16px;
}

#tlb-dominos-export-form {
	gap: 10px;
}

.tlb-export-field {
	display: grid;
	gap: 8px;
	color: var(--tlb-white);
	font-size: var(--tlb-body-size);
	font-weight: 500;
	line-height: var(--tlb-body-leading);
}

.tlb-export-select-wrap {
	position: relative;
	display: block;
}

.tlb-export-select-wrap select {
	width: 100%;
	min-height: var(--tlb-control-height);
	padding: 12px 48px 12px 16px;
	appearance: none;
	border: 1px solid var(--tlb-white);
	border-radius: var(--tlb-radius-control);
	background: transparent;
	color: var(--tlb-white);
	font: inherit;
	cursor: pointer;
}

.tlb-export-select-wrap select:hover {
	background: rgba(255, 255, 255, 0.08);
}

.tlb-export-select-wrap select:focus-visible {
	outline: 2px solid var(--tlb-white);
	outline-offset: 3px;
}

.tlb-export-select-wrap select option {
	background: var(--tlb-white);
	color: var(--tlb-brand-dark);
}

.tlb-export-select-wrap img {
	position: absolute;
	top: 50%;
	right: 18px;
	width: 15px;
	height: 9px;
	transform: translateY(-50%);
	pointer-events: none;
}

.tlb-export-warning {
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--tlb-brand-dark);
	border-radius: var(--tlb-radius-control);
	background: var(--tlb-selected);
	color: var(--tlb-brand-dark);
	font-size: var(--tlb-compact-size);
	font-weight: 500;
	line-height: var(--tlb-compact-leading);
}

.tlb-export-warning[hidden] {
	display: none;
}

.tlb-booking-page .tlb-export-form .tlb-export-download {
	margin-top: 0;
}

.tlb-security-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 16px 20px;
	margin: 24px 0 16px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--tlb-radius-control);
	text-align: center;
	box-sizing: border-box;
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

.tlb-security-card.is-verified {
	border-color: rgba(72, 199, 142, 0.6);
	background: rgba(72, 199, 142, 0.06);
}

.tlb-security-card.has-error {
	border-color: rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.04);
}

.tlb-turnstile-status-text {
	margin: 0;
	color: var(--tlb-white);
	font-size: var(--tlb-compact-size);
	line-height: var(--tlb-compact-leading);
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.tlb-turnstile-retry-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	padding: 8px 16px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: var(--tlb-radius-control);
	color: var(--tlb-white);
	font-size: var(--tlb-compact-size);
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.tlb-turnstile-retry-btn:hover,
.tlb-turnstile-retry-btn:focus-visible {
	background: rgba(255, 255, 255, 0.25);
	border-color: var(--tlb-white);
}

#tlb-turnstile-widget {
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

#tlb-turnstile-widget iframe {
	max-width: 100%;
}

.tlb-form-intro {
	margin: 0 0 20px;
	font-size: var(--tlb-body-size);
	font-weight: 500;
	line-height: var(--tlb-body-leading);
}

/* Summary --------------------------------------------------------------- */

.tlb-summary-panel {
	width: 100%;
	padding: 20px;
	border: 1px solid var(--tlb-white);
	border-radius: var(--tlb-radius-control);
	color: var(--tlb-white);
}

.tlb-checkout-summary {
	margin-top: 48px;
}

.tlb-summary-panel__title,
.tlb-summary-heading {
	margin: 0 0 24px;
	font-family: var(--tlb-font-ui);
	font-size: var(--tlb-body-size);
	font-weight: 500;
	line-height: var(--tlb-body-leading);
}

.tlb-summary-heading {
	margin-bottom: 28px;
	font-family: var(--tlb-font-display);
	font-weight: 700;
	text-align: center;
}

.tlb-summary-list {
	display: grid;
	margin: 0;
	gap: 12px;
}

.tlb-summary-list div,
.tlb-summary-list dt,
.tlb-summary-list dd {
	display: grid;
	margin: 0;
}

.tlb-summary-list dt,
.tlb-summary-list dd {
	font-size: var(--tlb-body-size);
	line-height: var(--tlb-body-leading);
}

.tlb-summary-list dt {
	font-weight: 400;
}

.tlb-summary-list dd {
	font-weight: 700;
	overflow-wrap: anywhere;
}

/* Legal, actions and status -------------------------------------------- */

.tlb-app-footer {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 18px;
	padding: 12px 16px 24px;
	margin-top: auto;
	text-align: center;
}

.tlb-app-footer .tlb-legal-link {
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 400;
	opacity: 0.75;
	transition: opacity 0.2s ease;
}

.tlb-app-footer .tlb-legal-link:hover,
.tlb-app-footer .tlb-legal-link:focus-visible {
	opacity: 1;
}

.tlb-legal-block {
	margin: 0;
	color: var(--tlb-white);
	font-size: var(--tlb-compact-size);
	font-weight: 400;
	line-height: var(--tlb-compact-leading);
}

.tlb-legal-block p {
	margin: 0;
}

.tlb-legal-link-wrap {
	margin: 8px 0 0;
	font-size: var(--tlb-compact-size);
	line-height: var(--tlb-compact-leading);
	text-align: center;
}

.tlb-legal-link {
	color: var(--tlb-white);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tlb-legal-link:focus-visible {
	border-radius: 2px;
	outline: 3px solid var(--tlb-selected);
	outline-offset: 3px;
}

.tlb-booking-page .tlb-primary-action {
	display: flex;
	width: 100%;
	min-height: var(--tlb-control-height);
	margin-top: 36px;
	padding: 12px 22px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 1px solid var(--tlb-white);
	border-radius: var(--tlb-radius-control);
	background: transparent;
	color: var(--tlb-white);
	font-family: var(--tlb-font-display);
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease;
}

.tlb-primary-action:hover {
	background: var(--tlb-white);
	color: var(--tlb-brand);
}

.tlb-primary-action:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.tlb-primary-action.is-loading {
	cursor: wait;
}

.tlb-button-spinner {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: tlb-spin 700ms linear infinite;
}

@keyframes tlb-spin {
	to {
		transform: rotate(360deg);
	}
}

.tlb-inline-error {
	margin: 18px 0 -18px;
	padding: 10px 12px;
	border: 1px solid var(--tlb-white);
	border-radius: 6px;
	background: var(--tlb-selected);
	color: #3b1d00;
	font-size: 14px;
	line-height: 20px;
}

/* Step-specific rhythm -------------------------------------------------- */

#tlb-step-3 .tlb-heading,
#tlb-step-4 .tlb-heading {
	margin-bottom: 24px;
}

#tlb-step-5 .tlb-heading {
	margin-bottom: 18px;
}

#tlb-step-5 .tlb-primary-action {
	margin-top: 28px;
}

/* Confirmation -------------------------------------------------------- */

.tlb-confirmation-panel {
	padding-top: 42px;
}

.tlb-confirmation-eyebrow {
	margin: 0 0 12px;
	font-family: var(--tlb-font-display);
	font-size: 14px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
}

.tlb-confirmation-icon {
	width: 48px;
	height: auto;
	margin: 0 auto 14px;
	filter: brightness(0) invert(1);
}

.tlb-confirmation-title {
	max-width: 420px;
	margin-inline: auto;
	margin-bottom: 18px;
}

.tlb-confirmation-message {
	max-width: 440px;
	margin: 0 auto 24px;
	font-size: var(--tlb-body-size);
	line-height: var(--tlb-body-leading);
	text-align: center;
}

.tlb-confirmation-message a {
	color: var(--tlb-white);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tlb-order-reference {
	display: grid;
	margin: 0 0 28px;
	padding: 18px 20px;
	gap: 3px;
	border: 1px solid var(--tlb-white);
	border-radius: var(--tlb-radius-control);
	text-align: center;
}

.tlb-order-reference span {
	font-size: var(--tlb-compact-size);
	line-height: var(--tlb-compact-leading);
}

.tlb-order-reference strong {
	font-family: var(--tlb-font-display);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 36px;
}

.tlb-confirmation-panel .tlb-summary-panel {
	margin-bottom: 32px;
}

.tlb-confirmation-legal {
	margin-top: 0;
	text-align: center;
}

/* WooCommerce stays functional but visually behind the custom UI. ------- */

.tlb-checkout-offscreen,
#tlb-woocommerce-checkout-target {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tlb-wc-checkout-embed {
	width: 580px;
	white-space: normal;
}

/* Responsive refinements ------------------------------------------------ */

@container tlb-journey (max-width: 300px) {
	.tlb-timetable__delivery {
		padding-bottom: 12px;
	}
}

@media (min-width: 700px) {
	.tlb-main {
		padding-top: 4px;
		padding-bottom: 64px;
	}

	.tlb-step-progress {
		margin-top: 14px;
	}

	.tlb-heading {
		margin-bottom: 32px;
	}

	.tlb-pizza-card {
		padding: 18px 22px;
	}
}

@media (max-width: 360px) {
	:root {
		--tlb-flow-gutter: 16px;
	}

	.tlb-date-card {
		padding-inline: 18px;
		grid-template-columns: 34px minmax(0, 1fr);
		gap: 12px;
		font-size: 17px;
	}

	.tlb-date-card small {
		grid-column: 2;
	}

	.tlb-pizza-card {
		padding-inline: 16px;
		grid-template-columns: 100px minmax(0, 1fr);
	}

	.tlb-journey-terminal,
	.tlb-timetable li {
		grid-template-columns: 36px 52px minmax(0, 1fr);
	}

	.tlb-summary-panel {
		padding: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.tlb-booking-page *,
	.tlb-booking-page *::before,
	.tlb-booking-page *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* Background Pizza Image ------------------------------------------------ */

.tlb-bg-pizza {
	position: fixed;
	left: 0;
	bottom: 0;
	z-index: 0;
	width: clamp(320px, 42vw, 680px);
	height: auto;
	margin: 0;
	pointer-events: none;
	user-select: none;
	mix-blend-mode: screen;
	opacity: 0;
}

body[data-active-step="1"] .tlb-bg-pizza,
body[data-active-step="2"] .tlb-bg-pizza,
body[data-active-step="3"] .tlb-bg-pizza,
body[data-active-step="4"] .tlb-bg-pizza {
	opacity: 0.9;
}

@media (max-width: 699px) {
	.tlb-booking-page .tlb-bg-pizza {
		display: none;
	}
}
