/*
 * Silvercity Booking: customer screens (booking, checkout extras, the
 * confirmation and My trips). Mobile first, large targets. One brand colour
 * (Settings → Look) drives everything; the rest is neutral so it sits well
 * on any theme.
 */
:root { --scb-brand: #0b6e8c; }

.scb-booking,
.scb-countdown {
	--scb-accent: var(--scb-brand);
	--scb-accent-dark: #075a72;
	--scb-tint: #e9f5f9;
	--scb-tint-2: #d3ebf3;
	--scb-ink: #13222b;
	--scb-muted: #56646e;
	--scb-faint: #98a4ac;
	--scb-line: #e1e7eb;
	--scb-line-strong: #c3cfd6;
	--scb-canvas: #f4f7f9;
	--scb-surface: #fff;
	--scb-bad: #b42318;
	--scb-bad-tint: #fef3f2;
	--scb-few: #a15c07;
	--scb-few-tint: #fffaeb;
	--scb-radius: 16px;
	--scb-radius-sm: 12px;
	--scb-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px -14px rgba(16, 24, 40, .18);
}
@supports (color: color-mix(in srgb, red 50%, white)) {
	.scb-booking,
	.scb-countdown {
		--scb-accent-dark: color-mix(in srgb, var(--scb-brand) 80%, #000);
		--scb-tint: color-mix(in srgb, var(--scb-brand) 8%, #fff);
		--scb-tint-2: color-mix(in srgb, var(--scb-brand) 18%, #fff);
	}
}

.scb-booking {
	color: var(--scb-ink);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	max-width: 680px;
	margin: 0 auto;
	-webkit-font-smoothing: antialiased;
}
.scb-booking *,
.scb-booking *::before,
.scb-booking *::after { box-sizing: border-box; }
.scb-booking h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.65rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 .9rem; }
.scb-booking h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.005em; line-height: 1.3; margin: 0 0 .5rem; }
.scb-booking h2:focus,
.scb-booking h3:focus { outline: none; }
.scb-booking p { margin: 0 0 .5rem; }
.scb-booking a { color: var(--scb-accent-dark); text-underline-offset: 2px; }
.scb-booking :focus-visible { outline: 3px solid var(--scb-accent); outline-offset: 2px; }
.scb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Progress: a thin segmented bar with the step names. */
.scb-reset { margin: 1.25rem 0 0; text-align: center; }
.scb-reset__btn { all: unset; cursor: pointer; color: var(--scb-muted); font-size: .9rem; text-decoration: underline; padding: .5rem .75rem; }
.scb-reset__btn:hover, .scb-reset__btn:focus-visible { color: var(--scb-ink); }
.scb-reset__btn:focus-visible { outline: 2px solid var(--scb-brand, #0c7b9a); outline-offset: 2px; border-radius: 6px; }
.scb-rail { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 1rem; }
.scb-rail__step { flex: 1; display: flex; flex-direction: column; gap: .35rem; padding: 0; margin: 0; color: var(--scb-faint); font-size: .8rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.scb-rail__step::after { content: ""; order: -1; display: block; height: 4px; border-radius: 4px; background: var(--scb-line); }
.scb-rail__step.is-done { color: var(--scb-muted); }
.scb-rail__step.is-done::after,
.scb-rail__step.is-current::after { background: var(--scb-accent); }
.scb-rail__step.is-current { color: var(--scb-accent-dark); }
.scb-rail__num { display: none; }
@media (max-width: 480px) { .scb-rail__step:not(.is-current) .scb-rail__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* The trip so far. */
.scb-tripbar { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem .9rem 1.1rem; margin: 0 0 1rem; border-radius: var(--scb-radius); background: var(--scb-accent); color: #fff; box-shadow: var(--scb-shadow); }
.scb-tripbar__main { flex: 1; min-width: 0; }
.scb-booking .scb-tripbar p { margin: 0; }
.scb-tripbar__route { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.scb-tripbar__arrow { opacity: .8; font-weight: 400; }
.scb-tripbar__meta { font-size: .88rem; opacity: .9; }
.scb-btn.scb-btn--quiet { min-height: 40px; padding: .35rem .8rem; border: 1.5px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; font-size: .9rem; flex: none; }
.scb-btn.scb-btn--quiet:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }

/* Cards. */
.scb-card { background: var(--scb-surface); border: 1px solid var(--scb-line); border-radius: var(--scb-radius); padding: 1.25rem; margin: 0 0 1rem; box-shadow: var(--scb-shadow); }
@media (max-width: 420px) { .scb-card { padding: 1rem; } }
fieldset.scb-card { min-width: 0; }
fieldset.scb-card > legend { float: left; width: 100%; padding: 0; margin: 0 0 .75rem; }
fieldset.scb-card > legend + * { clear: both; }
.scb-passenger__title { font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.scb-sub { color: var(--scb-muted); margin: -.5rem 0 1rem !important; }
.scb-row { display: grid; gap: 0 .9rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .scb-row { grid-template-columns: 1fr 1fr; } }

/* Fields. */
.scb-field { margin: 0 0 1rem; }
.scb-field label,
.scb-label,
.scb-tiles legend { display: block; font-weight: 600; font-size: .95rem; margin: 0 0 .35rem; color: var(--scb-ink); }
.scb-field input,
.scb-field select,
.scb-field textarea { width: 100%; min-height: 50px; padding: .65rem .85rem; font: inherit; font-size: 1rem; border: 1.5px solid var(--scb-line-strong); border-radius: var(--scb-radius-sm); background: var(--scb-surface); color: var(--scb-ink); transition: border-color .15s, box-shadow .15s; }
.scb-field select { appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--scb-muted) 50%), linear-gradient(135deg, var(--scb-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.scb-field input:focus,
.scb-field select:focus,
.scb-field textarea:focus { border-color: var(--scb-accent); box-shadow: 0 0 0 4px var(--scb-tint-2); outline: none; }
.has-error input,
.has-error select { border-color: var(--scb-bad); }
.scb-help { color: var(--scb-muted); font-size: .9rem; margin: 0 0 .5rem; }
.scb-error { color: var(--scb-bad); font-weight: 600; font-size: .92rem; margin: .35rem 0 0; }
.scb-error--summary { padding: .75rem 1rem; border: 1px solid #fecdca; border-radius: var(--scb-radius-sm); background: var(--scb-bad-tint); }

/* One way / round trip. */
.scb-segments { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 1.1rem; border: 0; border-radius: 14px; background: var(--scb-canvas); }
.scb-segment { position: relative; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: .5rem; border-radius: 11px; font-weight: 600; color: var(--scb-muted); cursor: pointer; transition: background .15s, color .15s; }
.scb-segment input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.scb-segment:has(input:checked) { background: var(--scb-surface); color: var(--scb-accent-dark); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.scb-segment:has(input:focus-visible) { outline: 3px solid var(--scb-accent); outline-offset: 1px; }

/* From / to with a swap button. */
.scb-route { display: grid; grid-template-columns: 1fr; position: relative; }
.scb-route__swap { position: absolute; right: .75rem; top: calc(50% - 6px); z-index: 1; display: grid; place-items: center; border: 1.5px solid var(--scb-line-strong); background-color: var(--scb-surface); color: var(--scb-accent-dark); font-size: 0; cursor: pointer; box-shadow: 0 2px 6px rgba(16, 24, 40, .1); }
/* Fixed against theme button styles (padding, minimum height, line height), which stretched it into an oval with the arrows off-centre. */
.scb-booking .scb-route__swap { box-sizing: border-box !important; width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; max-width: 40px !important; max-height: 40px !important; padding: 0 !important; margin-top: 0; line-height: 1 !important; border-radius: 50% !important; flex: none; justify-self: center; text-transform: none; letter-spacing: 0; }
.scb-route__swap::before { content: ""; display: block; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 16V4M6 4L2.5 7.5M6 4l3.5 3.5M14 4v12m0 0l-3.5-3.5M14 16l3.5-3.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 16V4M6 4L2.5 7.5M6 4l3.5 3.5M14 4v12m0 0l-3.5-3.5M14 16l3.5-3.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.scb-route__swap:hover { border-color: var(--scb-accent); background-color: var(--scb-tint); }
.scb-route:has(.scb-route__swap) .scb-field:first-child { margin-bottom: .4rem; }
@media (min-width: 560px) {
	.scb-route { grid-template-columns: 1fr auto 1fr; gap: 0 .6rem; align-items: end; }
	.scb-route__swap { position: static; margin-bottom: calc(1rem + 5px); transform: rotate(90deg); }
	.scb-route:has(.scb-route__swap) .scb-field:first-child { margin-bottom: 1rem; }
	.scb-route:not(:has(.scb-route__swap)) { grid-template-columns: 1fr 1fr; }
}

/* Choices: chips with their own tick, the real input kept for keyboards and screen readers. */
.scb-tiles { border: 0; padding: 0; margin: 0 0 1.1rem; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); min-width: 0; }
.scb-tiles legend { float: left; width: 100%; grid-column: 1 / -1; padding: 0; margin-bottom: .1rem; }
.scb-tiles--two { grid-template-columns: 1fr 1fr; }
.scb-tiles .scb-help,
.scb-tiles .scb-error { grid-column: 1 / -1; }
.scb-tile { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 50px; padding: .6rem .8rem; border: 1.5px solid var(--scb-line-strong); border-radius: var(--scb-radius-sm); cursor: pointer; background: var(--scb-surface); line-height: 1.3; font-size: .95rem; transition: border-color .15s, background .15s; }
.scb-tile::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--scb-line-strong); background: var(--scb-surface); transition: all .15s; }
.scb-tile:has(input[type="checkbox"])::before { border-radius: 6px; }
.scb-tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.scb-tile:hover { border-color: var(--scb-accent); }
.scb-tile:has(input:checked) { border-color: var(--scb-accent); background: var(--scb-tint); color: var(--scb-accent-dark); font-weight: 600; }
.scb-tile:has(input:checked)::before { border-color: var(--scb-accent); background: var(--scb-accent); box-shadow: inset 0 0 0 3px var(--scb-surface); }
.scb-tile:has(input[type="checkbox"]:checked)::before { box-shadow: none; background: var(--scb-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.scb-tile:has(input:focus-visible) { outline: 3px solid var(--scb-accent); outline-offset: 2px; }
.has-error .scb-tile { border-color: var(--scb-bad); }

.scb-check { display: flex; align-items: flex-start; gap: .65rem; margin: 0 0 1rem; cursor: pointer; }
.scb-check input { width: 1.3rem; height: 1.3rem; margin: .1rem 0 0; flex: none; accent-color: var(--scb-accent); }
.scb-check--accept { font-weight: 600; padding: 1rem; border: 1.5px solid var(--scb-line-strong); border-radius: var(--scb-radius-sm); background: var(--scb-surface); transition: all .15s; }
.scb-check--accept:has(input:checked) { border-color: var(--scb-accent); background: var(--scb-tint); }
.scb-check--accept:has(input:disabled) { opacity: .6; cursor: not-allowed; }

/* Passenger count. */
.scb-stepper { display: inline-flex; align-items: center; gap: .25rem; padding: 4px; border-radius: 999px; background: var(--scb-canvas); }
.scb-stepper__btn { width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.4rem; line-height: 1; border: 0; border-radius: 50%; background: var(--scb-surface); color: var(--scb-accent-dark); cursor: pointer; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.scb-stepper__btn:hover:not(:disabled) { background: var(--scb-tint); }
.scb-stepper__btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.scb-stepper__value { min-width: 3rem; text-align: center; font-size: 1.25rem; font-weight: 700; }

/* Buttons. */
.scb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 50px; padding: .6rem 1.25rem; font: inherit; font-size: 1rem; font-weight: 650; line-height: 1.2; border-radius: var(--scb-radius-sm); border: 1.5px solid var(--scb-line-strong); background: var(--scb-surface); color: var(--scb-ink); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s; }
.scb-btn:hover:not(:disabled) { border-color: var(--scb-accent); color: var(--scb-accent-dark); }
.scb-btn:active:not(:disabled) { transform: translateY(1px); }
.scb-btn--primary { background: var(--scb-accent); border-color: var(--scb-accent); color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .1), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.scb-btn--primary:hover:not(:disabled) { background: var(--scb-accent-dark); border-color: var(--scb-accent-dark); color: #fff; }
.scb-btn--ghost { border-color: transparent; background: transparent; font-size: 1.5rem; min-width: 46px; min-height: 46px; padding: 0; border-radius: 50%; color: var(--scb-accent-dark); }
.scb-btn--ghost:hover:not(:disabled) { background: var(--scb-tint); border-color: transparent; }
.scb-btn--link { border: 0; padding: 0; min-height: 44px; background: none; color: var(--scb-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.scb-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.scb-card > .scb-btn--primary { width: 100%; margin-top: .25rem; }
.scb-actions { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; }
.scb-actions .scb-btn--primary { flex: 1; }

/* The footer bar on the passenger and policy steps: back, total, continue. */
.scb-dock { position: sticky; bottom: 0; z-index: 20; margin: 1rem -.25rem 0; padding: .75rem; padding-bottom: max(.75rem, env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border: 1px solid var(--scb-line); border-radius: var(--scb-radius) var(--scb-radius) 0 0; box-shadow: 0 -8px 24px -12px rgba(16, 24, 40, .25); backdrop-filter: blur(6px); }
.scb-booking .scb-dock__total { display: flex; flex-direction: column; align-items: flex-end; margin: 0 0 0 auto; line-height: 1.15; }
.scb-dock__label { font-size: .75rem; color: var(--scb-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.scb-dock__amount { font-size: 1.15rem; font-weight: 750; }
.scb-dock__amount:empty::before { content: "…"; }
.scb-dock .scb-btn--primary { flex: 0 1 auto; padding-inline: 1.5rem; }
.scb-dock > .scb-btn:first-child { padding-inline: 1rem; }

/* Notes on the first step and the confirmation. */
.scb-notes { display: grid; gap: .6rem; margin-top: 1.25rem; font-size: .93rem; color: var(--scb-muted); }
.scb-booking .scb-notes p { margin: 0; }
.scb-info { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem 1rem; border-radius: var(--scb-radius-sm); color: var(--scb-ink); }
.scb-info__icon { flex: none; width: 20px; height: 20px; margin-top: 2px; font-size: 0; background: currentColor; -webkit-mask: var(--scb-icon) center / contain no-repeat; mask: var(--scb-icon) center / contain no-repeat; }
.scb-info--time .scb-info__icon { --scb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2.5 2.5M9 2h6'/%3E%3C/svg%3E"); color: var(--scb-accent-dark); }
.scb-info--luggage .scb-info__icon { --scb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2M8 11v5M16 11v5'/%3E%3C/svg%3E"); color: var(--scb-few); }
.scb-info--time { background: var(--scb-tint); }
.scb-info--luggage { background: var(--scb-few-tint); }
.scb-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }

/* Calendar. */
.scb-cal__nav { display: flex; align-items: center; justify-content: space-between; margin: .25rem 0 .5rem; }
.scb-booking .scb-cal__title { margin: 0; text-align: center; font-size: 1.05rem; }
.scb-cal { min-height: 280px; }
.scb-cal__grid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; margin: 0 -4px; width: calc(100% + 8px); }
.scb-cal__grid th { font-size: .75rem; color: var(--scb-muted); font-weight: 600; padding: .2rem 0; text-transform: uppercase; letter-spacing: .03em; border: 0; background: none; }
.scb-cal__grid td { padding: 0; border: 0; background: none; }
.scb-day { position: relative; width: 100%; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: .3rem .1rem; border: 1.5px solid var(--scb-line-strong); border-radius: 10px; background: var(--scb-surface); color: var(--scb-ink); cursor: pointer; font: inherit; line-height: 1.15; transition: all .12s; }
.scb-day__num { font-weight: 700; font-size: 1rem; }
.scb-day__note { font-size: .62rem; line-height: 1.1; color: var(--scb-muted); text-align: center; }
.scb-day:disabled { background: var(--scb-canvas); border-color: transparent; cursor: default; color: var(--scb-faint); }
/* Day colours: green seats, yellow few left, red full, grey no bus (legend under the grid). */
.scb-day--ok { background: #ecfdf3; border-color: #75e0a7; }
.scb-day--few { background: #fef7c3; border-color: #fac515; }
.scb-day--full:disabled { background: #fee4e2; border-color: #fda29b; color: #b42318; text-decoration: line-through; text-decoration-thickness: 1px; }
.scb-day:hover:not(:disabled) { border-color: var(--scb-accent); box-shadow: 0 0 0 2px var(--scb-accent) inset; }
.scb-day--past:disabled { background: transparent; }
.scb-day--past .scb-day__num { font-weight: 500; }
.scb-day.is-today .scb-day__num { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* Selected keeps its seat colour (green/yellow) so it never looks like "no bus"; a thick outline and tick mark it. */
.scb-day.is-selected { border-color: var(--scb-accent-dark, var(--scb-accent)); box-shadow: 0 0 0 3px var(--scb-accent) inset, 0 4px 12px -4px var(--scb-accent); color: var(--scb-ink); }
.scb-day.is-selected .scb-day__num { font-weight: 800; }
.scb-day.is-selected::after { content: "✓"; position: absolute; top: 2px; right: 4px; font-size: .7rem; font-weight: 800; line-height: 1; color: var(--scb-accent-dark, var(--scb-accent)); }
.scb-cal__key { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .88rem; color: var(--scb-muted); }
.scb-cal__key li { display: flex; align-items: center; gap: .4rem; margin: 0; }
.scb-cal__swatch { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid; flex: none; }
.scb-cal__swatch--ok { background: #ecfdf3; border-color: #75e0a7; }
.scb-cal__swatch--few { background: #fef7c3; border-color: #fac515; }
.scb-cal__swatch--full { background: #fee4e2; border-color: #fda29b; }
.scb-cal__swatch--off { background: var(--scb-canvas); border-color: var(--scb-line-strong); }
@media (max-width: 420px) { .scb-day { min-height: 44px; border-radius: 8px; } }

/* A chosen trip leg. */
.scb-leg { padding: .75rem 0; border-bottom: 1px solid var(--scb-line); }
.scb-leg:first-child { padding-top: 0; }
.scb-booking .scb-leg p { margin: .1rem 0; }
.scb-leg__title { font-size: 1.05rem; font-weight: 700; }
.scb-leg__title strong { color: var(--scb-accent-dark); }
.scb-leg__dir { color: var(--scb-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }

/* Price. */
.scb-price { background: var(--scb-canvas); border: 1px solid var(--scb-line); border-radius: var(--scb-radius); padding: 1.1rem 1.25rem; margin: 0 0 1rem; }
.scb-price:empty { display: none; }
.scb-price h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--scb-muted); }
.scb-price table { width: 100%; border-collapse: collapse; margin: 0; border: 0; font-size: .95rem; }
.scb-price th,
.scb-price td { border: 0; background: none; padding: .2rem 0; }
.scb-price th { text-align: left; font-weight: 400; }
.scb-price td { text-align: right; white-space: nowrap; padding-left: 1rem; font-variant-numeric: tabular-nums; }
.scb-price__leg th { font-weight: 700; padding-top: .6rem; }
.scb-price__total th,
.scb-price__total td { font-weight: 750; font-size: 1.2rem; border-top: 1.5px solid var(--scb-line-strong); padding-top: .6rem; }

/* Policies. */
.scb-policy { max-height: 340px; overflow-y: auto; border: 1px solid var(--scb-line); border-radius: var(--scb-radius-sm); padding: .25rem 1rem .75rem; background: var(--scb-canvas); font-size: .95rem; }
.scb-policy h3 { font-size: 1rem; margin: .9rem 0 .25rem; }
.scb-policy > div,
.scb-policy > section { background: none; border: 0; padding: 0; }
.scb-policy__end { display: block; height: 1px; }
.scb-policy__jump { margin: 0 0 .4rem; }
@media (max-width: 600px) {
	.scb-policy { max-height: 62vh; }
}
.scb-progress { height: 4px; background: var(--scb-line); border-radius: 4px; margin: 0 0 .6rem; overflow: hidden; }
.scb-progress__bar { height: 100%; width: 0; background: var(--scb-accent); transition: width .2s; }
.scb-status { min-height: 1.5rem; font-weight: 600; }

/* "Your seats are held" bar on the cart and checkout. */
.scb-countdown { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: center; padding: .65rem 1rem; background: var(--scb-accent); color: #fff; font-weight: 600; box-shadow: 0 4px 12px -6px rgba(16, 24, 40, .35); }
.scb-countdown.is-warning { background: #b54708; }
.scb-countdown.is-ended { background: var(--scb-bad); }
.scb-countdown button { min-height: 38px; padding: .3rem .9rem; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .7); background: transparent; color: #fff; font-weight: 600; cursor: pointer; }
.scb-countdown button:hover { background: rgba(255, 255, 255, .15); }

/* Ticket lines in the WooCommerce cart, checkout and order pages. */
.woocommerce-checkout-review-order-table dl.variation,
.woocommerce-cart-form dl.variation,
.woocommerce-table--order-details .wc-item-meta { display: grid; grid-template-columns: max-content 1fr; gap: .1rem .6rem; margin: .4rem 0 0; padding: 0; font-size: .85rem; line-height: 1.35; list-style: none; }
.woocommerce-checkout-review-order-table dl.variation dt,
.woocommerce-cart-form dl.variation dt { float: none; margin: 0; font-weight: 600; color: #56646e; }
.woocommerce-checkout-review-order-table dl.variation dd,
.woocommerce-cart-form dl.variation dd { float: none; margin: 0; padding: 0; }
.woocommerce-checkout-review-order-table dl.variation dd p,
.woocommerce-cart-form dl.variation dd p { margin: 0; }
.woocommerce-table--order-details .wc-item-meta li { display: contents; }
.woocommerce-table--order-details .wc-item-meta .wc-item-meta-label { float: none; margin: 0; font-weight: 600; color: #56646e; }
.woocommerce-table--order-details .wc-item-meta p { display: inline; margin: 0; }

/* Confirmation. */
.scb-confirmation { margin-bottom: 2rem; }
.scb-done { display: flex; align-items: flex-start; gap: .9rem; margin: 0 0 1.25rem; }
.scb-done__icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #dcfae6; color: #067647; font-size: 1.5rem; font-weight: 700; }
.scb-booking .scb-done h2 { margin: .2rem 0 .25rem; }
.scb-booking .scb-done p { color: var(--scb-muted); }

/* A ticket (confirmation). */
.scb-ticket { position: relative; margin: 0 0 1rem; border-radius: var(--scb-radius); background: var(--scb-surface); border: 1px solid var(--scb-line); box-shadow: var(--scb-shadow); overflow: hidden; }
.scb-ticket__head { padding: 1rem 1.25rem; background: var(--scb-accent); color: #fff; }
.scb-booking .scb-ticket__ref { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; font-weight: 600; }
.scb-booking .scb-ticket__route { margin: .1rem 0 0; font-size: 1.3rem; color: #fff; }
.scb-ticket__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0; padding: 1rem 1.25rem .5rem; }
.scb-ticket__facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--scb-muted); font-weight: 600; }
.scb-ticket__facts dd { margin: 0; font-weight: 700; font-size: 1rem; }
.scb-booking .scb-ticket__where { padding: 0 1.25rem .9rem; margin: 0; font-size: .93rem; }
.scb-ticket__label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--scb-muted); font-weight: 600; }
.scb-ticket__tear { position: relative; height: 0; border-top: 2px dashed var(--scb-line-strong); margin: 0 1rem; }
.scb-ticket__tear::before,
.scb-ticket__tear::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--scb-canvas); border: 1px solid var(--scb-line); }
.scb-ticket__tear::before { left: -28px; }
.scb-ticket__tear::after { right: -28px; }
.scb-ticket__people { list-style: none; margin: 0; padding: .9rem 1.25rem .25rem; display: grid; gap: .2rem; }
.scb-ticket__age { color: var(--scb-muted); font-size: .9rem; }
.scb-booking .scb-ticket__code { padding: 0 1.25rem 1rem; margin: 0; color: var(--scb-muted); font-size: .88rem; }
.scb-ticket__code strong { color: var(--scb-ink); letter-spacing: .04em; }
@media (max-width: 380px) { .scb-ticket__facts { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { .scb-booking *, .scb-countdown { transition: none !important; scroll-behavior: auto; } }
@media (forced-colors: active) {
	.scb-tile:has(input:checked),
	.scb-segment:has(input:checked),
	.scb-day.is-selected { outline: 3px solid CanvasText; }
	.scb-tile::before { forced-color-adjust: auto; }
}

/* My trips. */
.scb-trips__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.scb-booking .scb-trips__head h2 { margin: 0; }
.scb-notice { padding: .75rem 1rem; border-radius: var(--scb-radius-sm); background: #ecfdf3; color: #054f31; border: 1px solid #abefc6; font-weight: 600; margin: 0 0 1rem; }
.scb-trip { padding: 0; overflow: hidden; }
.scb-trip > :not(.scb-trip__head) { margin-left: 1.25rem; margin-right: 1.25rem; }
.scb-trip > :last-child { margin-bottom: 1.1rem; }
.scb-trip__head { padding: .9rem 1.25rem; background: var(--scb-accent); color: #fff; margin: 0 0 .25rem; }
.scb-booking .scb-trip__head p { margin: 0; }
.scb-trip__route { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; opacity: .9; }
.scb-booking .scb-trip__date { margin: .1rem 0; font-size: 1.2rem; color: #fff; }
.scb-trip__dir { font-size: .88rem; opacity: .85; }
.scb-trip.is-cancelled .scb-trip__head { background: var(--scb-faint); }
.scb-trip.is-cancelled { opacity: .85; }
.scb-trip__status { display: inline-block; font-weight: 700; font-size: .85rem; color: var(--scb-few); background: var(--scb-few-tint); border-radius: 999px; padding: .15rem .65rem; margin-top: .75rem !important; }
.scb-trip__facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin-top: .9rem; margin-bottom: .9rem; font-size: .95rem; }
.scb-trip__facts dt { color: var(--scb-muted); }
.scb-trip__facts dd { margin: 0; font-weight: 600; }
.scb-trip__pending { padding: .75rem 1rem; border-radius: var(--scb-radius-sm); background: var(--scb-few-tint); border: 1px solid #fedf89; }
.scb-trip__pending p { margin: 0 0 .3rem; }
.scb-trips__past summary { cursor: pointer; font-weight: 700; padding: .5rem 0; min-height: 44px; }
.scb-actions--wrap { flex-wrap: wrap; }
.scb-actions--wrap .scb-btn { flex: 0 1 auto; }
.scb-move { border-top: 1px solid var(--scb-line); margin-top: 1rem; padding-top: 1rem; }
.scb-move h4 { margin: 0 0 .25rem; font-size: 1.05rem; font-weight: 700; }
.scb-move__days { display: grid; gap: .45rem; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); margin: .5rem 0 1rem; max-height: 420px; overflow-y: auto; padding: 2px; }
.scb-trip .scb-actions--wrap .scb-btn { flex: 1 1 12rem; }
.scb-field input.scb-code { font-size: 1.6rem; letter-spacing: .35em; max-width: 13rem; text-align: center; font-variant-numeric: tabular-nums; }

/* Weight and height side by side (one answer each). */
.scb-booking .scb-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 12px; }
.scb-booking .scb-pair select { padding-left: .8rem; padding-right: 1.9rem; background-position: calc(100% - 16px) 50%, calc(100% - 10px) 50%; }

/* Bus ticket heading (Passenger details and return-date steps). */
.scb-bt { margin: 0 0 .9rem; border: 1.5px solid var(--scb-line-strong); border-radius: 14px; background: var(--scb-surface); overflow: hidden; padding: 0; }
.scb-bt:last-of-type { margin-bottom: .5rem; }
.scb-bt__head { padding: .8rem 1rem .7rem; background: var(--scb-accent); color: #fff; }
.scb-booking .scb-bt__head p { margin: .1rem 0; color: #fff; }
.scb-bt__kind { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .92; }
.scb-booking .scb-bt__route { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.scb-bt__date { font-weight: 600; }
.scb-bt__tear { height: 0; border-top: 2px dashed var(--scb-line-strong); margin: 0 .75rem; }
.scb-bt__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: .75rem 1rem .25rem; }
.scb-bt__fact dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--scb-muted); }
.scb-bt__fact dd { margin: 0; font-size: 1.05rem; font-weight: 700; }
.scb-bt__fact--key dd { color: var(--scb-accent-dark, var(--scb-accent)); font-size: 1.2rem; }
.scb-bt__stops { list-style: none; margin: 0; padding: .25rem 1rem .85rem; display: grid; gap: .35rem; }
.scb-bt__label { display: inline-block; min-width: 5.2rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--scb-muted); }
@media (forced-colors: active) { .scb-bt__head { border-bottom: 1px solid CanvasText; } }
.scb-done__links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.scb-booking .scb-done__link { min-height: 44px; padding: .4rem .9rem; border: 1.5px solid var(--scb-accent); background: var(--scb-surface); color: var(--scb-accent-dark); font-size: .95rem; text-decoration: none; flex: none; }
.scb-booking .scb-done__link:hover { background: var(--scb-canvas); }

/* Step strip on the cart, checkout and pay pages. */
.sce-steps { margin: 0 0 1.25rem; font-family: inherit; }
.sce-steps-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 .6rem; }
.sce-steps ol { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; margin: 0; padding: 0; }
.sce-steps li { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .9rem; font-weight: 600; color: #667085; }
.sce-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid #d0d5dd; background: #fff; font-size: .8rem; }
.sce-steps li.is-done { color: #344054; }
.sce-steps li.is-done span { background: #0a6a87; border-color: #0a6a87; color: #fff; }
.sce-steps li.is-current { color: #101828; }
.sce-steps li.is-current span { background: #e8590c; border-color: #e8590c; color: #fff; }

/*
 * Dark mode and the soft light theme (built-in Silvercity Dark Mode sets
 * html[data-scdm] and html.scdm-soft before the page paints). Colours from
 * the "Calm Slate" design picked for the live sites.
 */
html.scdm-soft[data-scdm="light"] .scb-booking,
html.scdm-soft[data-scdm="light"] .scb-countdown {
	--scb-canvas: #f4f1ea;
	--scb-surface: #fbf9f4;
	--scb-line: #e4ded2;
	--scb-line-strong: #cfc7b8;
}
html[data-scdm="dark"] .scb-booking,
html[data-scdm="dark"] .scb-countdown {
	--scb-ink: #eef2f5;
	--scb-muted: #a9b6c0;
	--scb-faint: #7a8894;
	--scb-line: #2c3a46;
	--scb-line-strong: #3d4e5c;
	--scb-canvas: #121a22;
	--scb-surface: #1e2832;
	--scb-tint: #173847;
	--scb-tint-2: #1d4757;
	--scb-accent: #0d7a9c;
	--scb-accent-dark: #7fd4f0;
	--scb-bad: #fda29b;
	--scb-bad-tint: #3a1d1b;
	--scb-few: #fdb022;
	--scb-few-tint: #3a2f12;
	--scb-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
}
html[data-scdm="dark"] .scb-btn--primary:hover:not(:disabled) { background: #0a6a87; border-color: #0a6a87; }
html[data-scdm="dark"] .scb-day--ok,
html[data-scdm="dark"] .scb-cal__swatch--ok { background: #0f3324; border-color: #2f9e6b; }
html[data-scdm="dark"] .scb-day--few,
html[data-scdm="dark"] .scb-cal__swatch--few { background: #3a3110; border-color: #c69c12; }
html[data-scdm="dark"] .scb-day--full:disabled,
html[data-scdm="dark"] .scb-cal__swatch--full { background: #3a1d1b; border-color: #a84a42; color: #fda29b; }
html[data-scdm="dark"] .scb-day.is-selected::after { color: #7fd4f0; }
html[data-scdm="dark"] .scb-done__icon { background: #0f3324; color: #6ce9a6; }
html[data-scdm="dark"] .scb-notice { background: #0f3324; color: #a6f4c5; border-color: #2f9e6b; }
html[data-scdm="dark"] .woocommerce-cart-form dl.variation dt,
html[data-scdm="dark"] .woocommerce-table--order-details .wc-item-meta .wc-item-meta-label { color: #a9b6c0; }
html[data-scdm="dark"] .sce-steps li { color: #a9b6c0; }
html[data-scdm="dark"] .sce-steps li.is-done,
html[data-scdm="dark"] .sce-steps li.is-current { color: #eef2f5; }
html[data-scdm="dark"] .sce-steps li span { background: #1e2832; border-color: #3d4e5c; }
html[data-scdm="dark"] .sce-steps li.is-done span { background: #0d7a9c; border-color: #0d7a9c; }

/* A finished passenger folds to one line. */
.scb-passenger--folded { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; }
.scb-passenger--folded .scb-passenger__line { margin: 0; flex: 1 1 14rem; }
.scb-passenger__done { margin-top: 1rem; width: 100%; }
.scb-done__order { margin: .25rem 0 0; font-weight: 600; }

/* Checkout on phones: the totals rows use the table's full width (some
   themes turn them into shrink-wrapped flex rows). */
@media (max-width: 600px) {
	.woocommerce-checkout-review-order-table tfoot { display: table-footer-group !important; }
	.woocommerce-checkout-review-order-table tfoot tr { display: table-row !important; }
	.woocommerce-checkout-review-order-table tfoot th,
	.woocommerce-checkout-review-order-table tfoot td { display: table-cell !important; }
	.woocommerce-checkout-review-order-table tfoot td { text-align: right; }
}

/* Passenger step, approved Superdesign draft (folded cards). */
.scb-legs { padding: 1rem 1.1rem; margin-bottom: 1rem; }
.scb-legs__row + .scb-legs__row { border-top: 1px solid var(--scb-line); margin-top: .75rem; padding-top: .75rem; }
.scb-legs__top { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; margin: 0; font-size: .95rem; }
.scb-legs__kind { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .1rem .4rem; border-radius: 4px; background: #d1fae5; color: #065f46; }
.scb-legs__kind--return { background: #dbeafe; color: #1e40af; }
.scb-legs__by { margin-left: auto; color: var(--scb-muted, #56646e); }
.scb-legs__by strong { color: var(--scb-ink, #13222b); }
.scb-legs__place { margin: .3rem 0 0; font-size: .85rem; color: var(--scb-muted, #56646e); }
.scb-legs__more { margin-top: .75rem; }
.scb-legs__more summary { cursor: pointer; font-weight: 600; color: var(--scb-brand, #0b6e8c); }
.scb-legs__more .scb-tickets { margin-top: .75rem; }
.scb-fold { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; margin-bottom: .75rem; }
.scb-fold__tick { flex: 0 0 1.5rem; height: 1.5rem; border-radius: 50%; background: #d1fae5; color: #047857; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.scb-fold__body { flex: 1 1 auto; min-width: 0; }
.scb-fold__label { margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--scb-muted, #56646e); }
.scb-fold__text { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* Last-minute booking warning. */
.scb-late { border: 1px solid #f1a7a7; border-left: 5px solid #c81e1e; background: #fdecec; color: #8a1111; font-weight: 600; border-radius: var(--scb-radius-sm, 10px); padding: .8rem 1rem; margin: 1rem 0; }
.scb-late p { margin: 0; }
.scb-late[hidden] { display: none !important; }
html[data-scdm="dark"] .scb-late { background: #3d1515; border-color: #8c2b2b; border-left-color: #f05252; color: #ffd0d0; }
.scb-bag { margin: .75rem 0 0; }
.scb-bag[hidden] { display: none !important; }
.scb-bag__help { margin: .25rem 0 0; }
.scb-bag__limit { margin: .4rem 0 0; padding: .5rem .75rem; border-left: 4px solid var(--scb-brand, #0c7b9a); background: rgba(12, 123, 154, .08); border-radius: 6px; font-weight: 700; color: var(--scb-ink); }
.scb-bag__limit[hidden] { display: none !important; }

/*
 * 0.11.0: the look of the booking page customers already know (the old
 * Silvercity Group Booking card). Same font, colours, tab rail, big
 * fields and orange button; the booking steps sit in one card joined to
 * the rail. These rules come last on purpose so they win over the above.
 */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/atkinson-700.woff2") format("woff2"); }

.scb-booking {
	--scb-ink: #13232f;
	--scb-muted: #45525e;
	--scb-line: #d5dee5;
	--scb-line-strong: #8a98a5;
	--scb-canvas: #f2f6f8;
	--scb-tint: #e3f3f9;
	--scb-accent-dark: #07506a;
	--scb-rail: #11abd6;
	--scb-go: #e8590c;
	--scb-go-dark: #c2410c;
	max-width: 780px;
	font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 18px;
	line-height: 1.55;
	-webkit-text-size-adjust: 100%;
}
.scb-booking h2,
.scb-booking h3,
.scb-booking legend { font-family: inherit !important; color: var(--scb-ink); letter-spacing: -.01em !important; text-transform: none !important; font-weight: 800; line-height: 1.2; }
.scb-booking h2 { font-size: 24px; margin: 0 0 16px; }
.scb-booking strong { font-weight: 800; }
.scb-booking a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* The card and its tab rail. */
.scb-shell { background: var(--scb-surface); border: 1px solid var(--scb-line); border-top: 0; border-radius: 0 0 18px 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(16, 35, 47, .06), 0 8px 24px rgba(16, 35, 47, .07); }
.scb-booking .scb-rail { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--scb-rail); color: #fff; }
.scb-booking .scb-rail__step { flex: none; flex-direction: row; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 8px; margin: 0 !important; font-size: 17px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #fff; opacity: .75; position: relative; list-style: none; }
.scb-booking .scb-rail__step.is-current,
.scb-booking .scb-rail__step.is-done { opacity: 1; color: #fff; }
.scb-booking .scb-rail__step::after { content: none; }
.scb-booking .scb-rail__step.is-current::after { content: ""; order: 0; position: absolute; left: 12%; right: 12%; bottom: 0; height: 4px; background: #fff; border-radius: 4px 4px 0 0; }
.scb-booking .scb-rail__num { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex: none; }
.scb-booking .scb-rail__step.is-current .scb-rail__num,
.scb-booking .scb-rail__step.is-done .scb-rail__num { background: #fff; color: #07506a; border-color: #fff; }
.scb-booking .scb-rail__step.is-done .scb-rail__num { font-size: 0; }
.scb-booking .scb-rail__step.is-done .scb-rail__num::before { content: "\2713"; font-size: 15px; line-height: 1; }
@media (max-width: 600px) {
	.scb-booking .scb-rail { display: flex; }
	.scb-booking .scb-rail__step { flex: 1 1 0; padding: 12px 4px; font-size: 16px; }
	.scb-booking .scb-rail__step.is-current { flex: 2.4 1 auto; }
	/* Other steps keep their name for screen readers; only the number shows. */
	.scb-booking .scb-rail__step:not(.is-current) .scb-rail__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.scb-booking .scb-rail__step.is-current .scb-rail__label { white-space: nowrap; }
}

/* The trip so far: the dark strip under the rail. */
.scb-booking .scb-tripbar { margin: 0; padding: 14px 26px; border-radius: 0; background: #07506a; box-shadow: none; }
.scb-booking .scb-tripbar__route { font-size: 21px; font-weight: 800; gap: 4px 10px; }
.scb-booking .scb-tripbar__meta { font-size: 16px; opacity: .92; }
.scb-booking .scb-btn.scb-btn--quiet { min-height: 44px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 12px; font-size: 16px; font-weight: 800; }
@media (max-width: 600px) { .scb-booking .scb-tripbar { padding: 12px 16px; } }

/* Panels (first screen) and the body of the later steps. */
.scb-shell__body { padding: 26px 28px 28px; background: var(--scb-canvas); }
.scb-shell--search .scb-shell__body { padding: 0; background: var(--scb-surface); }
.scb-panel { padding: 26px 28px 28px; border-top: 1px solid var(--scb-line); }
.scb-panel:first-of-type { border-top: 0; }
.scb-booking .scb-panel__title { margin: 0 0 16px !important; font-size: 24px !important; }
.scb-booking .scb-panel .scb-error { margin: 14px 0 0; }
@media (max-width: 600px) {
	.scb-shell__body,
	.scb-panel { padding: 20px 16px 22px; }
	.scb-shell--search .scb-shell__body { padding: 0; }
	.scb-booking .scb-panel__title { font-size: 22px !important; }
}
.scb-booking .scb-card { border-radius: 14px; box-shadow: none; }
.scb-shell__body > :last-child,
.scb-shell__body > form > :last-child { margin-bottom: 0; }

/* One way / round trip. */
.scb-triptype { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.scb-triptype__option { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 2px solid var(--scb-line); border-radius: 14px; cursor: pointer; margin: 0; background: var(--scb-surface); min-height: 68px; -webkit-tap-highlight-color: transparent; }
.scb-booking .scb-triptype__option input { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; min-height: 0; flex: none; margin: 0; padding: 0; border: 2px solid var(--scb-line-strong); border-radius: 50%; background: var(--scb-surface); display: inline-grid; place-content: center; cursor: pointer; box-shadow: none; }
.scb-triptype__option input::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--scb-accent); transform: scale(0); transition: transform .12s ease-out; }
.scb-triptype__option input:checked { border-color: var(--scb-accent); }
.scb-triptype__option input:checked::before { transform: scale(1); }
.scb-triptype__option:hover { border-color: var(--scb-accent); }
.scb-triptype__option:has(input:checked) { border-color: var(--scb-accent); background: var(--scb-tint); }
.scb-triptype__text { display: flex; flex-direction: column; line-height: 1.3; }
.scb-triptype__text strong { font-size: 20px; color: var(--scb-ink); }
.scb-triptype__text small { font-size: 16px; color: var(--scb-muted); }
@media (max-width: 420px) { .scb-triptype { grid-template-columns: 1fr; } }

/* Departure, destination and passengers on one line. */
.scb-booking .scb-route { display: grid; grid-template-columns: 1fr 1fr 130px; gap: 14px; align-items: end; }
.scb-booking .scb-route .scb-field { margin: 0 !important; min-width: 0; }
@media (max-width: 680px) {
	.scb-booking .scb-route { grid-template-columns: 1fr 1fr; }
	.scb-booking .scb-field--pax { grid-column: 1 / -1; }
}
@media (max-width: 440px) { .scb-booking .scb-route { grid-template-columns: 1fr; } }

/* Fields: big, strong borders. */
.scb-booking .scb-field label,
.scb-booking .scb-label,
.scb-booking .scb-tiles legend { font-weight: 800; font-size: 17px; line-height: 1.3; margin: 0 0 6px; }
.scb-booking .scb-field input:not([type="checkbox"]):not([type="radio"]),
.scb-booking .scb-field select,
.scb-booking .scb-field textarea { min-height: 58px; padding: 12px 14px; font-family: inherit; font-size: 19px; color: var(--scb-ink); background-color: var(--scb-surface); border: 2px solid var(--scb-line-strong); border-radius: 12px; box-shadow: none; margin: 0; }
.scb-booking .scb-field select { height: 58px; padding: 0 44px 0 14px; line-height: 54px; cursor: pointer; background: var(--scb-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313232f' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 22px no-repeat; }
.scb-booking .scb-field input:hover,
.scb-booking .scb-field select:hover { border-color: var(--scb-accent); }
.scb-booking .scb-field input:focus,
.scb-booking .scb-field select:focus,
.scb-booking .scb-field textarea:focus { outline: 3px solid #1d4ed8; outline-offset: 1px; border-color: var(--scb-accent); box-shadow: none; }
.scb-booking .has-error input,
.scb-booking .has-error select { border-color: var(--scb-bad); background-color: #fff5f4; }
.scb-booking .scb-help { font-size: 16px; }
.scb-booking .scb-error { font-size: 17px; font-weight: 700; }

/* Buttons: orange for the one thing to press next. */
.scb-booking .scb-btn { font-family: inherit; text-transform: none; letter-spacing: 0; border-radius: 14px; font-weight: 800; font-size: 18px; box-shadow: none; }
.scb-booking .scb-btn--primary { min-height: 62px; padding: 16px 24px; background: var(--scb-go); border-color: var(--scb-go); color: #fff; font-size: 20px; line-height: 1.2; }
.scb-booking .scb-btn--primary:hover:not(:disabled),
.scb-booking .scb-btn--primary:focus { background: var(--scb-go-dark); border-color: var(--scb-go-dark); }
.scb-booking .scb-btn--ghost { min-height: 52px; background: var(--scb-surface); color: var(--scb-accent-dark); border: 2px solid var(--scb-accent); }
.scb-booking .scb-btn--ghost:hover:not(:disabled) { background: var(--scb-tint); }
.scb-booking .scb-btn--go { display: flex; width: 100%; margin: 18px 0 0; }

/* Good to know: the two notices and "Before you book, please check". */
.scb-facts { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .scb-facts--2 { grid-template-columns: 1fr 1fr; } }
.scb-fact { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--scb-line); background: var(--scb-canvas); color: var(--scb-ink); line-height: 1.35; min-width: 0; }
.scb-fact__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fff; }
.scb-fact__icon svg { width: 24px; height: 24px; display: block; }
.scb-fact__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.scb-fact__body small { font-size: 14px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.scb-fact__body strong { font-size: 18px; font-weight: 800; line-height: 1.35; }
.scb-fact--deadline { border-color: #efc3bf; background: #fdf1f0; }
.scb-fact--deadline .scb-fact__icon,
.scb-fact--deadline .scb-fact__body small,
.scb-fact--deadline .scb-fact__body strong { color: #a3211a; }
.scb-fact--luggage { border-color: #e9b94e; background: #ffefc2; }
.scb-fact--luggage .scb-fact__icon,
.scb-fact--luggage .scb-fact__body small { color: #6b4300; }
.scb-fact--luggage .scb-fact__body strong { color: #3d2600; font-size: 17px; line-height: 1.45; }
.scb-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 12px; padding: 14px 18px; border-radius: 14px; background: var(--scb-tint); border: 1px solid #bfe0ec; }
.scb-facts + .scb-ask { margin-top: 12px; }
.scb-ask:first-child { margin-top: 0; }
.scb-ask__lead { font-size: 17px; font-weight: 800; color: var(--scb-ink); flex: 1 1 auto; }
.scb-ask__links { display: flex; flex-wrap: wrap; gap: 8px; }
.scb-booking .scb-ask__link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px 10px 13px; border-radius: 999px; background: var(--scb-surface); border: 2px solid var(--scb-accent); color: var(--scb-accent-dark); font-weight: 800; text-decoration: none; font-size: 17px; line-height: 1.2; white-space: nowrap; }
.scb-ask__icon { display: inline-flex; }
.scb-ask__icon svg { width: 18px; height: 18px; display: block; flex: none; }
.scb-booking .scb-ask__link:hover,
.scb-booking .scb-ask__link:focus { background: var(--scb-accent); color: #fff; }
.scb-ask__phone { font-weight: 700; }
@media (max-width: 600px) {
	.scb-ask { flex-direction: column; align-items: stretch; }
	.scb-ask__lead { text-align: center; }
	.scb-ask__links { justify-content: center; }
}

/* The soft light theme keeps the old page's white card and grey lines. */
html.scdm-soft[data-scdm="light"] .scb-booking { --scb-canvas: #f2f6f8; --scb-surface: #fff; --scb-line: #d5dee5; --scb-line-strong: #8a98a5; }
html[data-scdm="dark"] .scb-booking { --scb-rail: #0c7b9a; }
html[data-scdm="dark"] .scb-booking .scb-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eef2f5' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
html[data-scdm="dark"] .scb-ask { border-color: #2c5566; }
html[data-scdm="dark"] .scb-booking .has-error input,
html[data-scdm="dark"] .scb-booking .has-error select { background-color: #3a1d1b; }
html[data-scdm="dark"] .scb-dock { background: rgba(30, 40, 50, .96); }
html[data-scdm="dark"] .scb-fact--deadline { border-color: #8c2b2b; background: #3d1515; }
html[data-scdm="dark"] .scb-fact--deadline .scb-fact__body small,
html[data-scdm="dark"] .scb-fact--deadline .scb-fact__body strong { color: #ffd0d0; }
html[data-scdm="dark"] .scb-fact--luggage { border-color: #c69c12; background: #3a3110; }
html[data-scdm="dark"] .scb-fact--luggage .scb-fact__body small,
html[data-scdm="dark"] .scb-fact--luggage .scb-fact__body strong { color: #ffe9a8; }
/* Phones: the bottom bar's button must fit inside the bar ("Continue to payment"). */
.scb-booking .scb-dock .scb-btn { min-width: 0; }
@media (max-width: 600px) {
	.scb-booking .scb-dock { gap: .5rem; }
	.scb-booking .scb-dock .scb-btn--primary { min-height: 54px; padding: 10px 14px; font-size: 17px; }
	.scb-booking .scb-dock > .scb-btn:first-child { padding-inline: 12px; font-size: 16px; }
}
