/*
 * STNew Taxi Booking System — customer booking card.
 *
 * Everything is scoped under .stntbs-app; no global element styles. Mobile-first.
 * Re-brand per site by overriding the custom properties, e.g. in a child theme:
 *   .stntbs-app { --stntbs-accent: #0b3d91; --stntbs-cta: #f5b301; --stntbs-cta-text: #111; }
 * Selectors on form controls/buttons are deliberately a little more specific than typical theme
 * rules so the card does not depend on the active theme's form styling.
 */
.stntbs-app {
	--stntbs-accent: #1d4ed8;           /* Selected states, links, focus. */
	--stntbs-accent-text: #ffffff;
	--stntbs-cta: var(--stntbs-accent); /* Primary buttons. */
	--stntbs-cta-text: var(--stntbs-accent-text);
	--stntbs-text: #0f172a;
	--stntbs-muted: #526072;
	--stntbs-border: #cfd6df;
	--stntbs-line: #e6e9ee;
	--stntbs-bg: #ffffff;
	--stntbs-surface: #f3f5f8;
	--stntbs-error: #b91c1c;
	--stntbs-success: #15803d;
	--stntbs-radius: 10px;
	--stntbs-card-radius: 16px;
	--stntbs-max-width: 640px;
	--stntbs-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	box-sizing: border-box;
	container-type: inline-size;
	container-name: stntbs;
	width: 100%;
	max-width: var(--stntbs-max-width);
	margin: 0 auto;
	color: var(--stntbs-text);
	font-family: var(--stntbs-font);
	font-size: 15px;
	line-height: 1.45;
	text-align: left;
}

.stntbs-app *,
.stntbs-app *::before,
.stntbs-app *::after {
	box-sizing: border-box;
}

.stntbs-app [hidden] {
	display: none !important;
}

.stntbs-app p,
.stntbs-app ul,
.stntbs-app dl,
.stntbs-app dd,
.stntbs-app h2,
.stntbs-app h3,
.stntbs-app h4 {
	margin: 0;
}

.stntbs-app svg {
	display: inline-block;
	flex: none;
}

/* ---------- Card + header ---------- */
.stntbs-app .stntbs-card {
	position: relative;
	padding: 18px 16px 20px;
	background: var(--stntbs-bg);
	border: 1px solid var(--stntbs-line);
	border-radius: var(--stntbs-card-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px -14px rgba(15, 23, 42, 0.22);
}

.stntbs-app .stntbs-head {
	margin: 0 0 14px;
}

.stntbs-app .stntbs-head__title.stntbs-head__title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--stntbs-text);
	text-transform: none;
}

.stntbs-app .stntbs-head__sub {
	margin-top: 2px;
	font-size: 0.82rem;
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-title.stntbs-title {
	margin: 0 0 2px;
	padding: 0;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--stntbs-text);
	text-transform: none;
}

.stntbs-app .stntbs-step-label {
	margin: 0 0 12px;
	font-size: 0.78rem;
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-form .stntbs-step-label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.stntbs-app .stntbs-notice {
	margin: 0 0 12px;
	color: var(--stntbs-muted);
}

/* ---------- Trip type (segmented) ---------- */
.stntbs-app .stntbs-trip-type {
	min-width: 0;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
}

.stntbs-app .stntbs-trip-type > legend {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.stntbs-app .stntbs-segmented {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	background: var(--stntbs-surface);
	border-radius: 12px;
}

.stntbs-app .stntbs-choice {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.stntbs-app .stntbs-choice input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.stntbs-app .stntbs-choice span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 8px;
	border-radius: 9px;
	font-weight: 600;
	font-size: 0.93rem;
	color: var(--stntbs-muted);
	text-align: center;
}

.stntbs-app .stntbs-choice input:checked + span {
	background: var(--stntbs-accent);
	color: var(--stntbs-accent-text);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}

.stntbs-app .stntbs-choice input:focus-visible + span {
	outline: 2px solid var(--stntbs-accent);
	outline-offset: 2px;
}

/* ---------- Fields ---------- */
.stntbs-app .stntbs-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 10px;
	margin: 0 0 12px;
}

.stntbs-app .stntbs-field {
	min-width: 0;
	margin: 0;
}

.stntbs-app .stntbs-field--customer-email {
	grid-column: 1 / -1;
}

.stntbs-app .stntbs-label.stntbs-label {
	display: block;
	margin: 0 0 4px;
	padding: 0;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--stntbs-text);
}

.stntbs-app .stntbs-req {
	color: var(--stntbs-error);
}

.stntbs-app .stntbs-control {
	position: relative;
}

.stntbs-app .stntbs-control > .stntbs-icon {
	position: absolute;
	top: 50%;
	left: 11px;
	z-index: 1;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	color: var(--stntbs-muted);
	pointer-events: none;
}

.stntbs-app .stntbs-control .stntbs-input.stntbs-input {
	display: block;
	width: 100%;
	height: 46px;
	min-height: 46px;
	margin: 0;
	padding: 0 10px;
	font-family: inherit;
	font-size: 16px; /* 16px avoids iOS zoom-on-focus. */
	line-height: 1.2;
	color: var(--stntbs-text);
	background: var(--stntbs-bg);
	border: 1px solid var(--stntbs-border);
	border-radius: var(--stntbs-radius);
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	text-overflow: ellipsis;
}

.stntbs-app .stntbs-control--icon .stntbs-input.stntbs-input {
	padding-left: 34px;
}

.stntbs-app .stntbs-control .stntbs-input::placeholder {
	color: #8a94a3;
	opacity: 1;
}

.stntbs-app .stntbs-control .stntbs-input--select.stntbs-input {
	padding-right: 26px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526072' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 14px;
}

.stntbs-app .stntbs-control .stntbs-input:hover {
	border-color: #aab4c1;
}

.stntbs-app .stntbs-control .stntbs-input:focus,
.stntbs-app .stntbs-control .stntbs-input:focus-visible {
	outline: 2px solid var(--stntbs-accent);
	outline-offset: 0;
	border-color: var(--stntbs-accent);
}

.stntbs-app .stntbs-control .stntbs-input[aria-invalid="true"] {
	border-color: var(--stntbs-error);
}

.stntbs-app .stntbs-control .stntbs-input:disabled {
	cursor: not-allowed;
	background-color: var(--stntbs-surface);
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-error {
	margin: 4px 0 0;
	font-size: 0.78rem;
	line-height: 1.35;
	color: var(--stntbs-error);
}

/* Date button (calendar popover); the native date input stays as value holder / fallback. */
.stntbs-app .stntbs-native-date.stntbs-input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	opacity: 0;
}

.stntbs-app .stntbs-control .stntbs-date-btn.stntbs-input {
	display: flex;
	align-items: center;
	text-align: left;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-transform: none;
	letter-spacing: normal;
	font-weight: 400;
}

.stntbs-app .stntbs-date-btn__text {
	overflow: hidden;
	text-overflow: ellipsis;
}

.stntbs-app .stntbs-date-btn.is-empty .stntbs-date-btn__text {
	color: #8a94a3;
}

/* ---------- Calendar popover ---------- */
.stntbs-app .stntbs-cal {
	position: absolute;
	z-index: 60;
	width: 300px;
	max-width: calc(100% - 16px);
	padding: 10px;
	background: var(--stntbs-bg);
	border: 1px solid var(--stntbs-line);
	border-radius: 14px;
	box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.35);
}

.stntbs-app .stntbs-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin: 0 0 6px;
}

.stntbs-app .stntbs-cal__title {
	flex: 1;
	font-weight: 700;
	font-size: 0.93rem;
	text-align: center;
}

.stntbs-app .stntbs-cal .stntbs-cal__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	color: var(--stntbs-text);
	background: transparent;
	border: 1px solid var(--stntbs-line);
	border-radius: 9px;
	cursor: pointer;
	box-shadow: none;
}

.stntbs-app .stntbs-cal .stntbs-cal__nav:hover:not(:disabled) {
	background: var(--stntbs-surface);
}

.stntbs-app .stntbs-cal .stntbs-cal__nav:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.stntbs-app .stntbs-cal__grid {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 2px;
	table-layout: fixed;
}

.stntbs-app .stntbs-cal__grid th,
.stntbs-app .stntbs-cal__grid td {
	padding: 0;
	border: 0;
	background: none;
	text-align: center;
}

.stntbs-app .stntbs-cal__grid th {
	padding: 4px 0;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-cal .stntbs-cal__day {
	display: block;
	width: 100%;
	height: 36px;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 500;
	line-height: 36px;
	color: var(--stntbs-text);
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
}

.stntbs-app .stntbs-cal .stntbs-cal__day:hover {
	background: var(--stntbs-surface);
}

.stntbs-app .stntbs-cal .stntbs-cal__day.is-today {
	box-shadow: inset 0 0 0 1px var(--stntbs-accent);
}

.stntbs-app .stntbs-cal .stntbs-cal__day.is-selected {
	background: var(--stntbs-accent);
	color: var(--stntbs-accent-text);
	font-weight: 700;
}

/* Unavailable days: clearly faded + struck through, no hover, not-allowed cursor. */
.stntbs-app .stntbs-cal .stntbs-cal__day.is-disabled,
.stntbs-app .stntbs-cal .stntbs-cal__day.is-disabled:hover {
	color: #a3aab5;
	background: transparent;
	text-decoration: line-through;
	text-decoration-color: rgba(163, 170, 181, 0.7);
	cursor: not-allowed;
	box-shadow: none;
}

.stntbs-app .stntbs-cal .stntbs-cal__day:focus-visible {
	outline: 2px solid var(--stntbs-accent);
	outline-offset: 1px;
}

/* ---------- Buttons ---------- */
.stntbs-app .stntbs-actions {
	margin-top: 14px;
}

.stntbs-app .stntbs-button.stntbs-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	margin: 0;
	padding: 0 18px;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	border-radius: 12px;
	border: 1px solid transparent;
	box-shadow: none;
	cursor: pointer;
	width: auto;
}

.stntbs-app .stntbs-button--primary.stntbs-button {
	background: var(--stntbs-cta);
	border-color: var(--stntbs-cta);
	color: var(--stntbs-cta-text);
}

.stntbs-app .stntbs-button--primary.stntbs-button:hover:not(:disabled) {
	filter: brightness(0.94);
}

.stntbs-app .stntbs-button--secondary.stntbs-button {
	background: var(--stntbs-bg);
	border-color: var(--stntbs-border);
	color: var(--stntbs-text);
}

.stntbs-app .stntbs-button--secondary.stntbs-button:hover:not(:disabled) {
	background: var(--stntbs-surface);
}

.stntbs-app .stntbs-button--block.stntbs-button {
	width: 100%;
	min-height: 50px;
	font-size: 1rem;
}

/* Confirmation: customer-clicked "Send Booking on WhatsApp" (dark WhatsApp green, AA contrast). */
.stntbs-app .stntbs-button--whatsapp.stntbs-button {
	margin-bottom: 10px;
	background: #075e54;
	border-color: #075e54;
	color: #fff;
}

.stntbs-app .stntbs-button--whatsapp.stntbs-button:hover,
.stntbs-app .stntbs-button--whatsapp.stntbs-button:focus {
	background: #054c44;
	color: #fff;
}

.stntbs-app .stntbs-button--link.stntbs-button {
	min-height: 36px;
	padding: 0 4px;
	background: none;
	border: 0;
	color: var(--stntbs-accent);
	font-size: 0.82rem;
	text-decoration: underline;
}

.stntbs-app .stntbs-button:focus-visible {
	outline: 2px solid var(--stntbs-accent);
	outline-offset: 2px;
}

.stntbs-app .stntbs-button:disabled {
	opacity: 0.65;
	cursor: progress;
}

.stntbs-app .stntbs-icon--after,
.stntbs-app .stntbs-ico--after {
	width: 18px;
	height: 18px;
}

.stntbs-app .stntbs-ico {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.stntbs-app .stntbs-status {
	min-height: 1.2em;
	margin: 8px 0 0;
	font-size: 0.8rem;
	color: var(--stntbs-muted);
	text-align: center;
}

/* ---------- Messages ---------- */
.stntbs-app .stntbs-error-summary,
.stntbs-app .stntbs-step2-message,
.stntbs-app .stntbs-step3-message {
	margin: 0 0 12px;
	padding: 10px 12px;
	border: 1px solid var(--stntbs-error);
	border-left-width: 4px;
	border-radius: var(--stntbs-radius);
	background: #fef2f2;
	font-size: 0.88rem;
}

.stntbs-app .stntbs-error-summary:focus,
.stntbs-app .stntbs-step2-message:focus,
.stntbs-app .stntbs-step3-message:focus {
	outline: 2px solid var(--stntbs-accent);
	outline-offset: 2px;
}

.stntbs-app .stntbs-error-summary__title {
	font-weight: 700;
	color: var(--stntbs-error);
}

.stntbs-app .stntbs-error-summary__list {
	margin: 4px 0 0;
	padding-left: 1.1em;
}

.stntbs-app .stntbs-error-summary a {
	color: var(--stntbs-error);
	text-decoration: underline;
}

.stntbs-app .stntbs-step2-message p,
.stntbs-app .stntbs-step3-message p {
	margin: 0 0 8px;
}

.stntbs-app .stntbs-step2-message p:last-child,
.stntbs-app .stntbs-step3-message p:last-child {
	margin: 0;
}

/* ---------- Location suggestions (Google Places) ---------- */
.stntbs-app .stntbs-suggest {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 50;
	margin-top: 4px;
	background: var(--stntbs-bg);
	border: 1px solid var(--stntbs-line);
	border-radius: 12px;
	box-shadow: 0 14px 32px -12px rgba(15, 23, 42, 0.35);
	overflow: hidden;
}

.stntbs-app .stntbs-suggest__list {
	margin: 0;
	padding: 4px 0;
	list-style: none;
	max-height: 216px; /* About five rows. */
	overflow-y: auto;
	overscroll-behavior: contain;
}

.stntbs-app .stntbs-suggest__item {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 42px;
	margin: 0;
	padding: 5px 12px;
	cursor: pointer;
	line-height: 1.25;
}

.stntbs-app .stntbs-suggest__item:hover,
.stntbs-app .stntbs-suggest__item.is-active {
	background: var(--stntbs-surface);
}

.stntbs-app .stntbs-suggest__item.is-active {
	box-shadow: inset 3px 0 0 var(--stntbs-accent);
}

.stntbs-app .stntbs-suggest__main,
.stntbs-app .stntbs-suggest__secondary {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.stntbs-app .stntbs-suggest__main {
	font-size: 0.9rem;
	font-weight: 600;
}

.stntbs-app .stntbs-suggest__secondary {
	font-size: 0.76rem;
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-suggest__credit {
	margin: 0;
	padding: 3px 12px;
	border-top: 1px solid var(--stntbs-line);
	font-size: 0.7rem;
	color: var(--stntbs-muted);
	text-align: right;
}

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

/* ---------- Step 2: vehicles ---------- */
.stntbs-app .stntbs-step2:focus,
.stntbs-app .stntbs-step3:focus,
.stntbs-app .stntbs-success:focus {
	outline: none;
}

.stntbs-app .stntbs-trip-summary {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 12px;
	padding: 10px 12px;
	background: var(--stntbs-surface);
	border-radius: 12px;
}

.stntbs-app .stntbs-trip-summary__body {
	min-width: 0;
}

.stntbs-app .stntbs-trip-summary__route {
	font-size: 0.86rem;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.stntbs-app .stntbs-trip-summary__meta {
	margin-top: 2px;
	font-size: 0.78rem;
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-trip-summary .stntbs-button--link.stntbs-button {
	position: relative;
	flex: none;
	min-height: 28px;
}

/* Tap target of at least 44 x 44 px (WCAG 2.5.5) without changing how the link looks or the box's height. */
.stntbs-app .stntbs-trip-summary .stntbs-button--link.stntbs-button::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	min-width: 44px;
	height: 44px;
	transform: translate( -50%, -50% );
}

.stntbs-app .stntbs-loading {
	margin: 0 0 12px;
	font-size: 0.88rem;
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-vehicles.stntbs-vehicles {
	display: grid;
	gap: 10px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.stntbs-app .stntbs-vehicle {
	margin: 0;
	padding: 10px 12px;
	background: var(--stntbs-bg);
	border: 1px solid var(--stntbs-line);
	border-radius: 14px;
}

.stntbs-app .stntbs-vehicle.is-selected {
	border-color: var(--stntbs-accent);
	box-shadow: 0 0 0 2px var(--stntbs-accent);
}

.stntbs-app .stntbs-vehicle__main {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	align-items: center;
	gap: 2px 10px;
}

/* Row 1: name + price; row 2: Seats · Bags · AC across both; the image spans both rows. */
.stntbs-app .stntbs-vehicle__main > .stntbs-vehicle__media {
	grid-row: 1 / span 2;
}

.stntbs-app .stntbs-vehicle__main > .stntbs-vehicle__specs {
	grid-column: 2 / -1;
	grid-row: 2;
}

.stntbs-app .stntbs-vehicle__media {
	position: relative;
	width: 64px;
	height: 46px;
	overflow: hidden;
	background: var(--stntbs-surface);
	border-radius: 9px;
}

.stntbs-app .stntbs-vehicle__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: contain;
}

.stntbs-app .stntbs-vehicle__media--empty {
	background: var(--stntbs-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 22h52v-6l-8-2-8-8H20l-8 8-6 2z'/%3E%3Ccircle cx='18' cy='24' r='4' fill='%23f3f5f8'/%3E%3Ccircle cx='46' cy='24' r='4' fill='%23f3f5f8'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.stntbs-app .stntbs-vehicle__info {
	min-width: 0;
}

.stntbs-app .stntbs-vehicle__name.stntbs-vehicle__name {
	display: inline;
	margin: 0;
	font-family: inherit;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--stntbs-text);
	overflow-wrap: anywhere;
}

.stntbs-app .stntbs-vehicle__badge {
	display: none;
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--stntbs-accent);
	color: var(--stntbs-accent-text);
	font-size: 0.68rem;
	font-weight: 700;
	vertical-align: 2px;
}

.stntbs-app .stntbs-vehicle.is-selected .stntbs-vehicle__badge {
	display: inline-block;
}

.stntbs-app .stntbs-spec--type {
	margin-left: 6px;
	font-size: 0.74rem;
	font-weight: 500;
	color: var(--stntbs-muted);
}

/* Seats · Bags · AC: one compact row; icons use the primary (Book Now) colour. */
.stntbs-app .stntbs-vehicle__specs {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px;
	margin-top: 2px;
	overflow: hidden;
	font-size: 0.76rem;
	line-height: 1.3;
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-spec {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	min-width: 0;
	white-space: nowrap;
}

.stntbs-app .stntbs-spec .stntbs-ico {
	color: var(--stntbs-cta);
}

.stntbs-app .stntbs-spec .stntbs-ico svg {
	width: 14px;
	height: 14px;
}

.stntbs-app .stntbs-vehicle__sub {
	margin-top: 2px;
	font-size: 0.74rem;
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-vehicle__price {
	text-align: right;
	white-space: nowrap;
}

.stntbs-app .stntbs-vehicle__price strong {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--stntbs-text);
}

.stntbs-app .stntbs-vehicle__pending {
	display: inline-block;
	max-width: 88px;
	font-size: 0.72rem;
	line-height: 1.25;
	color: var(--stntbs-muted);
	white-space: normal;
}

.stntbs-app .stntbs-vehicle__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--stntbs-line);
}

.stntbs-app .stntbs-vehicle .stntbs-vehicle__toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 40px;
	margin: 0;
	padding: 0 4px;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--stntbs-accent);
	background: none;
	border: 0;
	box-shadow: none;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
}

.stntbs-app .stntbs-vehicle__toggle:focus-visible {
	outline: 2px solid var(--stntbs-accent);
	outline-offset: 2px;
	border-radius: 6px;
}

.stntbs-app .stntbs-vehicle .stntbs-vehicle__select.stntbs-button {
	min-height: 40px;
	padding: 0 16px;
	border-radius: 10px;
	font-size: 0.88rem;
}

.stntbs-app .stntbs-vehicle.is-selected .stntbs-vehicle__select.stntbs-button {
	background: var(--stntbs-bg);
	border-color: var(--stntbs-accent);
	color: var(--stntbs-accent);
}

.stntbs-app .stntbs-vehicle__details {
	margin-top: 8px;
	padding: 10px 12px;
	background: var(--stntbs-surface);
	border-radius: 10px;
	font-size: 0.84rem;
}

.stntbs-app .stntbs-details__title {
	margin: 8px 0 4px;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--stntbs-text);
}

.stntbs-app .stntbs-details__title:first-child {
	margin-top: 0;
}

/* Fare Details: Included | Not included in two columns (desktop and mobile). */
.stntbs-app .stntbs-inc-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 14px;
	margin-top: 4px;
}

.stntbs-app .stntbs-inc-col {
	min-width: 0;
	overflow-wrap: anywhere;
}

.stntbs-app .stntbs-inc-col .stntbs-details__title {
	margin-top: 8px;
}

.stntbs-app .stntbs-vehicle__km {
	margin: 8px 0 0;
	font-size: 0.8rem;
}

/* Removed Step 2 helper paragraph: never shown, even in page HTML cached before 0.8.5. */
.stntbs-app .stntbs-fare-note {
	display: none !important;
}

.stntbs-app .stntbs-selection-status {
	margin: 0 0 8px;
	font-size: 0.78rem;
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-selection-status:not(:empty) {
	color: var(--stntbs-text);
	font-weight: 600;
}

/* Label/value rows (fare breakdowns): value keeps one line where possible, label wraps first. */
.stntbs-app .stntbs-rows {
	margin: 0;
}

.stntbs-app .stntbs-rows > div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
	gap: 10px;
	padding: 4px 0;
	border-bottom: 1px dashed var(--stntbs-line);
}

.stntbs-app .stntbs-rows dt {
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-rows dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

/* ---------- Step 3 review + success ---------- */
.stntbs-app .stntbs-panels {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	margin: 0 0 12px;
}

.stntbs-app .stntbs-panel {
	min-width: 0;
	margin: 0;
	padding: 10px 12px 12px;
	background: var(--stntbs-bg);
	border: 1px solid var(--stntbs-line);
	border-radius: 12px;
}

.stntbs-app .stntbs-panel__title.stntbs-panel__title {
	margin: 0 0 6px;
	font-family: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-review {
	display: grid;
	gap: 4px;
	margin: 0;
	font-size: 0.86rem;
}

.stntbs-app .stntbs-review__row {
	display: grid;
	grid-template-columns: minmax(84px, 36%) minmax(0, 1fr);
	gap: 10px;
}

.stntbs-app .stntbs-review dt {
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-review dd {
	margin: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* Fare rows size independently: the value fills the rest of its own row (right-aligned) and only
   moves under its label when both do not fit, so values like "250 km/day × 2 days = 500.0 km"
   never break awkwardly and short rows stay on one line. */
.stntbs-app .stntbs-panel--fare .stntbs-review {
	gap: 0;
}

.stntbs-app .stntbs-panel--fare .stntbs-review__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0 10px;
	padding: 5px 0;
	border-bottom: 1px dashed var(--stntbs-line);
}

.stntbs-app .stntbs-panel--fare .stntbs-review__row dt {
	flex: 0 1 auto;
	max-width: 100%;
}

.stntbs-app .stntbs-panel--fare .stntbs-review__row dd {
	flex: 1 0 auto;
	max-width: 100%;
	text-align: right;
	overflow-wrap: normal;
}

.stntbs-app .stntbs-panel--vehicle .stntbs-vehicle__media {
	width: 96px;
	height: 64px;
	margin: 0 0 6px;
}

.stntbs-app .stntbs-panel__vehicle-name {
	font-weight: 700;
	overflow-wrap: anywhere;
}

.stntbs-app .stntbs-vehicle__facts {
	font-size: 0.8rem;
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-total {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px 12px;
	margin: 10px 0 0;
	padding: 10px 12px;
	background: var(--stntbs-surface);
	border-radius: 10px;
}

.stntbs-app .stntbs-total span {
	font-weight: 600;
}

.stntbs-app .stntbs-total strong {
	font-size: 1.4rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--stntbs-text);
}

.stntbs-app .stntbs-total--compact {
	padding: 8px 0 0;
	background: none;
}

.stntbs-app .stntbs-total--compact strong {
	font-size: 1.1rem;
}

.stntbs-app .stntbs-min-note {
	margin: 8px 0 0;
	font-size: 0.78rem;
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-inc__title {
	margin: 8px 0 2px;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--stntbs-text);
}

.stntbs-app .stntbs-inc__list.stntbs-inc__list {
	margin: 0;
	padding-left: 1.15em;
	font-size: 0.84rem;
	overflow-wrap: anywhere;
}

.stntbs-app .stntbs-inc__list li {
	margin: 0;
}

.stntbs-app .stntbs-inc__note {
	margin: 8px 0 0;
	font-size: 0.76rem;
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-confirm-status {
	min-height: 1.2em;
	margin: 0 0 6px;
	font-size: 0.82rem;
	color: var(--stntbs-muted);
}

/* Mobile: primary action first, full-width stacked buttons. */
.stntbs-app .stntbs-actions--split {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.stntbs-app .stntbs-actions--split .stntbs-button {
	width: 100%;
}

.stntbs-app .stntbs-actions--split [data-stntbs-confirm] {
	order: -1;
	min-height: 50px;
	font-size: 1rem;
}

.stntbs-app .stntbs-success__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
}

.stntbs-app .stntbs-success__tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--stntbs-success);
	color: #ffffff;
}

.stntbs-app .stntbs-success .stntbs-title.stntbs-title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.3;
}

.stntbs-app .stntbs-booking-id {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 4px 10px;
	margin: 0 0 4px;
	padding: 12px;
	border: 1px dashed var(--stntbs-accent);
	border-radius: 12px;
	background: var(--stntbs-surface);
	text-align: center;
}

.stntbs-app .stntbs-booking-id__label {
	font-size: 0.85rem;
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-booking-id strong {
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--stntbs-text);
	overflow-wrap: anywhere;
}

.stntbs-app .stntbs-success .stntbs-step-label {
	text-align: center;
}

/* ---------- Fare details modal (overlay appended to <body>, still scoped by .stntbs-app) ---------- */
.stntbs-app.stntbs-app--modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 16px;
	container-type: normal;
}

.stntbs-app.stntbs-app--modal[hidden] {
	display: none !important;
}

.stntbs-app .stntbs-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.stntbs-app .stntbs-modal {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	background: var(--stntbs-bg);
	border-radius: var(--stntbs-card-radius);
	box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.45);
	overflow: hidden;
}

.stntbs-app .stntbs-modal:focus {
	outline: none;
}

.stntbs-app .stntbs-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 12px 12px 16px;
	border-bottom: 1px solid var(--stntbs-line);
}

.stntbs-app .stntbs-modal__heading {
	min-width: 0;
}

.stntbs-app .stntbs-modal__title.stntbs-modal__title {
	margin: 0;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--stntbs-text);
	overflow-wrap: anywhere;
}

.stntbs-app .stntbs-modal__sub {
	margin-top: 2px;
	font-size: 0.78rem;
	color: var(--stntbs-muted);
}

.stntbs-app .stntbs-modal .stntbs-modal__close {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: -4px 0 0;
	padding: 0;
	color: var(--stntbs-text);
	background: transparent;
	border: 1px solid var(--stntbs-line);
	border-radius: 10px;
	box-shadow: none;
	cursor: pointer;
}

.stntbs-app .stntbs-modal .stntbs-modal__close:hover {
	background: var(--stntbs-surface);
}

.stntbs-app .stntbs-modal .stntbs-modal__close:focus-visible,
.stntbs-app .stntbs-modal__body:focus-visible {
	outline: 2px solid var(--stntbs-accent);
	outline-offset: 2px;
}

.stntbs-app .stntbs-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 10px 16px 16px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	font-size: 0.86rem;
}

.stntbs-app .stntbs-vehicle.is-updated {
	border-color: var(--stntbs-accent);
}

/* Honeypot: off-screen but not display:none (some bots skip hidden fields). */
.stntbs-app .stntbs-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Very narrow cards (small phones, narrow columns) ---------- */
@container stntbs (max-width: 339px) {
	.stntbs-app .stntbs-card {
		padding: 14px 12px 16px;
	}
}

@container stntbs (max-width: 299px) {
	.stntbs-app .stntbs-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.stntbs-app .stntbs-vehicle__main {
		grid-template-columns: 52px minmax(0, 1fr) auto;
	}

	.stntbs-app .stntbs-vehicle__media {
		width: 52px;
		height: 40px;
	}
}

/* Desktop pointers: slightly smaller input text (mobile keeps 16px to avoid iOS zoom). */
@media (min-width: 768px) {
	.stntbs-app .stntbs-control .stntbs-input.stntbs-input {
		font-size: 15px;
	}
}

/* ---------- Wider cards ---------- */
@container stntbs (min-width: 520px) {
	.stntbs-app .stntbs-card {
		padding: 22px 22px 24px;
	}

	.stntbs-app .stntbs-panels {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.stntbs-app .stntbs-panel--fare,
	.stntbs-app .stntbs-panel--inclusions {
		grid-column: 1 / -1;
	}

	.stntbs-app .stntbs-panel--fare .stntbs-review {
		font-size: 0.88rem;
	}

	.stntbs-app .stntbs-actions--split {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	.stntbs-app .stntbs-actions--split .stntbs-button {
		width: auto;
	}

	.stntbs-app .stntbs-actions--split [data-stntbs-confirm] {
		order: 0;
	}

	.stntbs-app .stntbs-actions--split [data-stntbs-edit] {
		margin-right: auto;
	}

	.stntbs-app .stntbs-button--block.stntbs-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.stntbs-app .stntbs-choice span,
	.stntbs-app .stntbs-input,
	.stntbs-app .stntbs-button,
	.stntbs-app .stntbs-vehicle {
		transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, filter 0.15s ease;
	}
}

/* Confirmation page receipt ([stntbs_booking_receipt], since 0.9.1) */
.stntbs-app--receipt .stntbs-booking-id__note{margin:2px 0 0;font-size:.82rem;color:var(--stntbs-muted)}
.stntbs-app--receipt .stntbs-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.stntbs-app--receipt .stntbs-actions .stntbs-button{flex:1 1 160px;justify-content:center;text-align:center;text-decoration:none}
.stntbs-app--receipt .stntbs-actions .stntbs-button--whatsapp{flex-basis:100%}
.stntbs-app--receipt .stntbs-receipt-empty{text-align:center}
.stntbs-app--receipt .stntbs-receipt-empty p{margin:8px auto 4px;max-width:44ch;color:var(--stntbs-muted)}
.stntbs-app--receipt .stntbs-receipt-empty .stntbs-actions{justify-content:center}
