:root {
  --header-height: 76px;
  --ink: #0f172a;
  --muted: #667085;
  --line: #dbe2ea;
  --line-strong: #c7d0dc;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --surface-soft: #f3f6fb;
  --accent: #2f5bea;
  --accent-dark: #0f1b3d;
  --success: #34c77b;
  /* Required-boundary token (>=3:1 on white/near-white field surfaces): used
     only where a field/control border is the sole visible boundary. Decorative
     card/section dividers keep --line/--line-strong unchanged. */
  --control-boundary: var(--muted);
  /* Darker success variant (>=4.5:1 with white text) for the one place
     --success is used as a small-text background; the brighter --success
     stays untouched for its decorative (non-text) uses. */
  --success-strong: #157a45;
  --focus-ring: rgba(47, 91, 234, 0.35);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --type-display: clamp(30px, 2.7vw, 40px);
  --type-body: 14px;
  --type-meta: 11px;
  --workspace-top-gap: 12px;
  --workspace-bottom-gap: 17px;
  --workspace-height: calc(
    100dvh - var(--header-height) - var(--workspace-top-gap) - var(--workspace-bottom-gap)
  );
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

/* The shared widgets keep their cards/API, but tenant-visible entry is owned
   exclusively by the six storefront channel controls. */
#cgo-chat-fab,
#cgo-fab {
  display: none !important;
}

html {
  min-height: 100%;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-height: 100%;
  margin: 0;
  overflow: visible;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  /* Visible-on-focus keyboard bypass link: stays in normal document/tab
     order (never display:none/visibility:hidden, which would also remove it
     from the focus order) but is moved off-screen with a positional offset
     until it receives keyboard focus. Logical inset properties keep it
     writing-mode/direction-agnostic. */
  position: fixed;
  z-index: 1000;
  inset-block-start: -100px;
  inset-inline-start: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent-dark);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: inset-block-start 150ms ease;
}

.skip-link:focus-visible {
  inset-block-start: 12px;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset-inline: 0;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  width: min(85vw, 1480px);
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 31px;
  height: 38px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-name {
  color: var(--ink);
  font-family: "Eurostile Extended", Eurostile, "Exo 2", "Arial Black", sans-serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.brand-name span {
  color: #d5a129;
}

.brand-copy small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
}

.chapter-nav {
  display: flex;
  align-self: stretch;
  gap: 32px;
}

.chapter-nav a {
  display: flex;
  align-items: center;
  padding: 3px 0 0;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.chapter-nav a.is-active {
  color: var(--accent);
  border-color: var(--accent);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.locale-tools {
  display: grid;
  justify-items: end;
  gap: 1px;
}

.tenant-local-time {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
}

.languages {
  display: flex;
  gap: 10px;
}

.languages button {
  min-width: auto;
  padding: 5px 0;
  color: var(--muted);
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.languages .selected {
  color: var(--ink);
  border-color: var(--accent);
}

.profile {
  display: inline-flex;
  min-height: 42px;
  min-width: 128px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

main {
  min-height: 100dvh;
  /* JavaScript is the sole magnetic-settle owner in normal motion mode (see
     app.js's directional glide): native mandatory snap previously
     competed with it for the same scroll position, which is why the owner's
     reported "settle to next/previous chapter" glide did not reproduce even
     with the JS timer fixed. Do not reintroduce `y mandatory` here. */
  scroll-snap-type: none;
  padding-top: var(--header-height);
}

html.is-locked {
  overflow: hidden;
}

.screen {
  position: relative;
  /* Content-driven reflow invariant: min-height (not a fixed height) lets a
     chapter grow taller than one viewport at constrained height/zoom instead
     of clipping content; do not reintroduce a hidden-overflow clip here. */
  min-height: max(620px, calc(100dvh - var(--header-height)));
  padding: 22px 48px 28px;
  border-bottom: 1px solid var(--line);
}

.block-caption,
.section-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.estimate-screen {
  display: grid;
  place-items: center;
  padding: 0;
}

.estimate-layout {
  width: min(85vw, 1480px);
  height: auto;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 18px;
}

.estimate-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: end;
  gap: 32px;
  padding-top: 2px;
}

.estimate-eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.estimate-hero h1 {
  max-width: 760px;
  margin: 7px 0 8px;
  font-size: clamp(36px, 3vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.courier-business-name {
  display: block;
  margin-top: 6px;
  color: #d5a129;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.estimate-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.estimate-hero .estimate-hero-note {
  justify-self: end;
  max-width: 360px;
  padding-bottom: 3px;
}

.estimate-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.route-card {
  display: flex;
  min-width: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  flex-direction: column;
  padding: 24px;
  border: 0;
  background: var(--panel);
}

.route-card .block-caption {
  margin-bottom: 14px;
}

.estimate-route-fields {
  position: relative;
  display: grid;
  gap: 10px;
}

.route-card-footer {
  display: grid;
  gap: 12px;
  margin-block-start: auto;
  padding-block-start: 18px;
}

.estimate-address-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 66px;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--control-boundary);
  border-radius: 14px;
  background: var(--panel);
  cursor: text;
}

.estimate-address-field:focus-within {
  border-color: var(--accent);
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.estimate-address-field > span:last-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.estimate-address-field small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.estimate-address-field input {
  width: 100%;
  min-width: 0;
  padding: 0 42px 0 0;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.estimate-pin {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
}

.estimate-pin.destination {
  background: var(--accent);
}

.estimate-swap {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 13px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  transform: translateY(-50%);
}

.estimate-box {
  padding: 15px 17px;
  border: 1px solid #e7ebf2;
  border-radius: 16px;
  background: var(--surface-soft);
}

.estimate-box > div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.estimate-box span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.estimate-box strong {
  font-size: clamp(28px, 2.2vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.route-status-line {
  width: 100%;
  min-height: 32px;
  margin: 0;
  padding: 8px 11px;
  color: #214bb6;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #edf4ff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}

.route-status-line.warning,
.route-status-line.error {
  color: #a52a2a;
  border-color: #f0cf70;
  background: #fff4cc;
}

.estimate-continue {
  display: block;
  padding: 13px 16px;
  color: white;
  border-radius: 12px;
  background: var(--accent);
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.estimate-workspace > .map-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #eef2f7;
}

.estimate-workspace > .map-frame::before {
  position: absolute;
  z-index: 1;
  top: 45%;
  right: 17%;
  left: 19%;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  transform: rotate(5deg);
}

.estimate-map-card {
  position: absolute;
  z-index: 4;
  bottom: 24px;
  left: 28px;
  display: grid;
  max-width: 310px;
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.estimate-map-card strong {
  font-size: 13px;
}

.estimate-map-card span {
  color: var(--muted);
  font-size: 11px;
}

.map-frame {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: #e3e4df;
}

.map-grid {
  position: absolute;
  inset: -40px;
  opacity: 0.6;
  background:
    linear-gradient(35deg, transparent 46%, #cad3df 47%, #cad3df 49%, transparent 50%) 0 0 / 140px 95px,
    linear-gradient(-28deg, transparent 46%, #d5dce5 47%, #d5dce5 49%, transparent 50%) 0 0 / 180px 125px,
    repeating-linear-gradient(90deg, transparent 0 69px, #dbe2ea 70px 72px);
  transform: rotate(-4deg);
}

.map-point {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--accent-dark);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
  font-size: 12px;
  font-weight: 850;
}

.map-point.pickup {
  top: 30%;
  left: 27%;
}

.map-point.dropoff {
  right: 24%;
  bottom: 27%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.channel-area {
  display: grid;
  grid-template-rows: auto auto auto;
  min-height: 0;
  padding: 16px 20px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.channel-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.channel-heading strong {
  font-size: 17px;
}

.channel-heading span {
  color: var(--muted);
  font-size: 12px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.channel-card {
  display: flex;
  min-width: 0;
  min-height: 72px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  padding: 11px 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  text-align: left;
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
}

.channel-card > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-soft);
}

.channel-card > span svg,
.fact-icon svg,
.value-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.channel-grid .primary-channel {
  color: white;
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.channel-grid .primary-channel > span {
  background: rgba(255, 255, 255, 0.12);
}

.order-screen,
.about-screen {
  display: grid;
  place-items: center;
  padding: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.section-heading h1 {
  margin: 5px 0 0;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1;
}

.section-heading p {
  color: var(--muted);
  font-size: 13px;
}

.order-screen .section-heading h1 {
  font-size: clamp(28px, 2.6vw, 40px);
}

.optional-status {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.optional-status.structured {
  color: #176b3a;
  background: #e5f7ec;
}

.optional-status.manual {
  color: #8a4a00;
  background: #fff0d8;
}

.optional-status.empty {
  /* #5c6675 (not --muted): --muted itself is only 4.31:1 on this specific
     #eceff3 surface -- this scoped, slightly darker shade reaches 4.5:1
     here without changing --muted's other (already-compliant) uses. */
  color: #5c6675;
  background: #eceff3;
}

.primary-action,
.text-action {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 850;
}

.primary-action {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

.text-action {
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}

.modal-shell[hidden] {
  display: none;
}

.modal-shell {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
}

.optional-modal-card {
  position: relative;
  z-index: 1;
  width: min(1080px, 94vw);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.24);
}

.optional-modal-card > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px 20px;
  border-bottom: 1px solid var(--line);
}

.optional-modal-card > header span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.optional-modal-card h2 {
  margin: 6px 0 0;
  font-size: 29px;
  letter-spacing: -0.025em;
}

.optional-modal-card > header p {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.modal-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  font-size: 21px;
}

.modal-warning {
  margin: 16px 26px 0;
  padding: 11px 13px;
  border: 1px solid #efb661;
  border-radius: 10px;
  background: #fff6e8;
  color: #704000;
  font-size: 12px;
}

.modal-party-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  padding: 20px 26px 16px;
}

.modal-party {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.party-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.party-heading > div {
  display: grid;
  gap: 2px;
}

.party-heading strong {
  font-size: 15px;
}

.party-heading > div span {
  color: var(--muted);
  font-size: 11px;
}

.party-pin {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
}

.party-pin.destination {
  background: var(--accent);
}

.readonly-address,
.party-fields label,
.modal-order-extras > label:first-child {
  display: grid;
  gap: 6px;
}

.readonly-address > span,
.party-fields label > span,
.modal-order-extras label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.party-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.party-fields .wide {
  grid-column: 1 / -1;
}

.readonly-address input,
.party-fields input,
.party-fields textarea,
.modal-order-extras input[type="text"] {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--control-boundary);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.readonly-address input,
.party-fields input[readonly] {
  color: #475467;
  background: #eef2f7;
  font-weight: 750;
}

.party-fields textarea {
  min-height: 70px;
  resize: vertical;
}

.readonly-address input:focus-visible,
.party-fields input:focus-visible,
.party-fields textarea:focus-visible,
.modal-order-extras input[type="text"]:focus-visible {
  border-color: var(--accent);
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.modal-order-extras {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0 26px 20px;
}

.modal-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
}

.modal-checkbox input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.optional-modal-card > footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
}

.optional-modal-card .primary-action {
  color: white;
  border-color: var(--accent);
  border-radius: 10px;
  background: var(--accent);
}

.order-layout {
  display: grid;
  width: min(85vw, 1480px);
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 16px;
  padding-block: 10px;
}

.booking-heading h1 {
  margin: 0;
  font-size: clamp(36px, 3vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.booking-heading p {
  max-width: none;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.booking-heading-line {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  height: 100%;
  align-items: stretch;
  min-height: 0;
  gap: 18px;
}

.booking-main {
  display: grid;
  grid-template-rows: minmax(230px, 1fr) auto;
  height: 100%;
  align-content: stretch;
  min-height: 0;
  gap: 18px;
}

.booking-route-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.booking-route-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  padding: 18px 18px 10px;
}

.booking-route-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.booking-route-head > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-route-head a {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.booking-route-points {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 5px;
  margin-top: 7px;
}

.booking-route-point {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.booking-pin {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
}

.booking-pin.destination {
  background: var(--accent);
}

.booking-route-point small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.booking-route-point strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.booking-route-arrow {
  margin-left: 9px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.booking-route-copy > p {
  margin: auto 0 0;
}

.booking-route-map {
  width: 100%;
  height: 100%;
  border: 0;
  background: #eef2f7;
}

.booking-route-map::before {
  position: absolute;
  z-index: 1;
  top: 49%;
  right: 18%;
  left: 18%;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  transform: rotate(4deg);
}

.booking-route-map .map-point {
  width: 34px;
  height: 34px;
  border-width: 4px;
  font-size: 11px;
}

.booking-schedule-card {
  display: grid;
  grid-template-rows: auto auto auto;
  align-self: start;
  align-content: start;
  min-height: 0;
  gap: 14px;
  overflow: visible;
}

.booking-when-card {
  display: grid;
  grid-template-rows: auto auto minmax(88px, auto) auto;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.booking-schedule-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max(50%, 480px);
  align-items: center;
  gap: 20px;
}

.booking-schedule-title {
  min-width: 0;
}

.booking-schedule-title > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.booking-schedule-title h2 {
  margin: 0;
  font-size: 22px;
}

.booking-schedule-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.booking-date-switcher {
  display: grid;
  grid-template-columns: auto 68px minmax(130px, 1fr) 68px auto;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.booking-small-button {
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.booking-step-button {
  width: 68px;
}

.booking-date-center {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: center;
  gap: 1px 5px;
  text-align: center;
}

.booking-date-center strong {
  font-size: 12px;
  white-space: nowrap;
}

.booking-date-center > span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.booking-date-center em {
  grid-column: 1 / -1;
  margin-top: 1px;
  padding: 2px 6px;
  /* #136f42 (was #16834f, 4.34:1 on this background): reaches 4.5:1. */
  color: #136f42;
  border-radius: 999px;
  background: #e7f8ef;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.booking-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 2px;
  font-size: 13px;
}

.booking-slot-head span {
  color: var(--muted);
}

.booking-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 9px;
  min-height: 88px;
  overflow-x: auto;
  padding: 1px 1px 3px;
}

.booking-slot {
  position: relative;
  display: grid;
  width: auto;
  min-width: 0;
  align-content: center;
  gap: 4px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  text-align: left;
}

.booking-slot.selected {
  border: 2px solid var(--accent);
  background: #f7f9ff;
}

.booking-slot strong {
  font-size: 14px;
}

.booking-slot small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
}

.booking-slot b {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  color: white;
  border-radius: 999px;
  background: var(--success-strong);
  font-size: 11px;
}

.booking-slot.selected b {
  background: var(--accent);
}

.booking-status-line {
  align-self: end;
  width: 100%;
  min-height: 32px;
  margin: 0;
  padding: 8px 11px;
  color: #214bb6;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #edf4ff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}

.booking-status-line.warning,
.booking-status-line.error {
  color: #a52a2a;
  border-color: #f0cf70;
  background: #fff4cc;
}

.booking-confirmation {
  margin-top: 7px;
}

.booking-required {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: stretch;
  gap: 12px;
}

.booking-package-field {
  position: relative;
  z-index: 5;
  grid-column: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 58px;
  height: 100%;
  min-height: 44px;
  align-content: start;
  align-items: start;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.booking-package-field small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.package-picker-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 30px;
  align-self: start;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  text-align: start;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.package-picker-trigger:focus-visible {
  border-radius: 7px;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.package-picker-trigger > span:last-child {
  color: var(--accent);
  font-size: 17px;
  transition: transform 120ms ease;
}

.package-picker-trigger[aria-expanded="true"] > span:last-child {
  transform: rotate(180deg);
}

.package-picker-options {
  position: absolute;
  z-index: 40;
  inset-block-start: calc(100% + 5px);
  inset-inline: 8px;
  display: grid;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.package-picker-options[hidden] {
  display: none;
}

.package-picker-options button {
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: start;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.package-picker-options button:hover,
.package-picker-options button:focus-visible,
.package-picker-options button[aria-selected="true"] {
  color: var(--accent-dark);
  background: #edf4ff;
  outline: 0;
}

.booking-required-field {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--control-boundary);
  border-radius: 12px;
  background: var(--panel);
  text-align: left;
}

.booking-required-field > span {
  display: grid;
  gap: 3px;
}

.booking-required-field small {
  color: var(--muted);
  font-size: 13px;
}

.booking-required-field strong {
  font-size: 15px;
}

.booking-required-field > b {
  color: var(--accent);
}

.booking-optional {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-rows: auto 65px auto;
  min-height: 124px;
  align-self: start;
  align-items: center;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.booking-optional > div {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 8px;
  min-width: 0;
}

.booking-optional > div > span {
  font-size: 13px;
  font-weight: 850;
}

.booking-optional .optional-status {
  font-size: 11px;
}

.booking-optional > p {
  grid-column: 1 / -1;
  grid-row: 3;
  min-width: 0;
}

.booking-optional textarea {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  height: 65px;
  resize: none;
  padding: 9px 10px;
  color: #475467;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.booking-optional textarea:focus-visible {
  border-color: var(--accent);
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.booking-optional-edit,
.booking-optional-clear {
  min-height: 31px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  font-size: 12px;
  font-weight: 800;
}

.booking-optional-edit {
  grid-column: 2;
  grid-row: 1;
}

.booking-optional-clear {
  grid-column: 3;
  grid-row: 1;
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}

.booking-summary {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.booking-summary > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.booking-summary > header span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.booking-summary h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.booking-summary-status {
  padding: 5px 8px;
  color: #214bb6;
  border-radius: 999px;
  background: #edf4ff;
  font-size: 11px;
  font-weight: 850;
}

.booking-summary-body {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}

.booking-summary-group {
  display: grid;
  gap: 4px;
}

.booking-summary-group small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.booking-summary-group strong {
  font-size: 15px;
}

.booking-summary-group span {
  color: var(--muted);
  font-size: 13px;
}

.booking-summary-route {
  display: grid;
  gap: 7px;
}

.booking-summary-route > div {
  display: grid;
  gap: 2px;
}

.booking-summary-route .booking-summary-route-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.booking-summary-route strong {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.booking-summary-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 800;
}

.booking-summary-price strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.booking-review-button {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  color: white;
  border: 0;
  border-radius: 11px;
  background: var(--accent);
  font-size: 14px;
  font-weight: 850;
}

.booking-review-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.booking-consent {
  display: flex;
  align-items: start;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.booking-consent input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
}

.booking-turnstile {
  display: flex;
  width: 100%;
  min-width: 300px;
  justify-content: center;
  min-height: 66px;
  overflow: hidden;
}

.booking-turnstile > div {
  width: 100% !important;
}

.booking-order-result {
  min-height: 1.4em;
  margin: 0 !important;
}

.booking-order-result.error {
  color: #b42318;
}

.booking-order-result.success {
  color: #067647;
}

.booking-summary-body > p:not(.booking-status-line) {
  margin: -8px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
}

.about-layout {
  display: grid;
  /* min(420px, 37vw) / min(480px, 42vw): identical to the original 420px/480px
     floors at every accepted viewport (they only bind below ~1150px CSS
     width), so this only prevents horizontal document overflow at
     constrained zoom -- it does not change the accepted 100% composition. */
  grid-template-columns: minmax(min(420px, 37vw), 1fr) minmax(min(480px, 42vw), 1.05fr);
  align-items: stretch;
  gap: clamp(32px, 4vw, 64px);
  height: 100%;
  min-height: 0;
  padding: 0;
}

.courier-visual {
  position: relative;
  display: block;
  min-height: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e9edf3;
  box-shadow: var(--shadow);
}

.courier-cover-switch {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #e9edf3;
  text-align: initial;
}

.courier-cover-switch::after {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 7px 10px;
  color: var(--accent-dark);
  border: 1px solid rgba(219, 226, 234, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  content: "Change cover";
  font-size: 10px;
  font-weight: 750;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.courier-cover-switch:hover::after,
.courier-cover-switch:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.courier-cover-switch:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.courier-cover-switch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.courier-visual figcaption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: grid;
  min-width: 138px;
  gap: 3px;
  padding: 13px 15px;
  border: 1px solid rgba(219, 226, 234, 0.9);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.courier-visual figcaption strong {
  text-transform: uppercase;
}

.courier-visual figcaption span {
  color: var(--muted);
  font-size: 11px;
}

.about-copy {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(36px, 5vh, 60px) 0 0;
}

.about-copy > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-copy h1 {
  margin: 13px 0 7px;
  font-size: clamp(36px, 3vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.about-lead {
  margin: 0;
  color: #344054;
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.45;
}

.about-story {
  max-width: 62ch;
  margin: clamp(18px, 2.5vh, 28px) 0;
  color: var(--muted);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.65;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.about-facts article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 112px;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.fact-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--accent);
  border-radius: 50%;
  background: #eaf0ff;
}

.about-facts article > div {
  display: grid;
  gap: 6px;
}

.about-facts strong {
  color: #475467;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-facts article > div span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.about-screen-layout {
  display: grid;
  width: min(85vw, 1480px);
  /* min-height (not height) keeps the accepted 100% composition while
     letting the About chapter grow with its content at constrained
     height/zoom instead of clipping it. Do not reintroduce a fixed
     `height` here (see FE-PROTOTYPE-005). */
  min-height: calc(100vh - var(--header-height) - 32px);
  min-height: calc(100dvh - var(--header-height) - 32px);
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-values article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 13px;
}

.value-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--accent);
  border-radius: 50%;
  background: #eaf0ff;
}

.value-icon svg {
  width: 21px;
  height: 21px;
}

.about-values article > div {
  display: grid;
  gap: 4px;
}

.about-values strong {
  font-size: 13px;
}

.about-values article > div span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 54px;
  align-items: center;
  gap: 24px;
  padding: 8px 0;
  font-size: 11px;
}

.site-footer > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
}

.site-footer span {
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  text-decoration: none;
  font-weight: 750;
}

.footer-channels {
  display: flex;
  gap: 9px;
}

.footer-channels :is(button, a) {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  color: var(--accent-dark);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 11px;
  font-weight: 750;
}

.footer-channels :is(button, a) span {
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.screen-dots {
  position: fixed;
  z-index: 30;
  top: 50%;
  right: 16px;
  display: grid;
  gap: 0;
  transform: translateY(-50%);
}

.screen-dots a {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  text-decoration: none;
}

.screen-dots a::before {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: white;
  content: "";
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.screen-dots a.is-active::before {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.35);
}

@media (max-width: 1050px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
  }

  .chapter-nav {
    display: none;
  }

  .channel-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (prefers-reduced-motion: reduce) {
  /* Disable CSS-owned smooth scrolling and decorative transitions. */
  html {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }

  .screen-dots a::before {
    transition: none;
  }
}

/* Production route controls */
.estimate-address-field > span:last-child {
  position: relative;
}

.estimate-geolocate {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: -3px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  color: var(--accent);
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

.estimate-geolocate:hover,
.estimate-geolocate:focus-visible {
  background: var(--surface-soft);
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.estimate-geolocate:disabled {
  cursor: wait;
  opacity: 0.45;
}

.address-suggestions {
  position: absolute;
  z-index: 1001;
  inset-block-start: calc(100% + 12px);
  inset-inline: -58px -14px;
  display: grid;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.address-suggestions[hidden] {
  display: none;
}

.address-suggestion {
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: start;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
}

.address-suggestion:hover,
.address-suggestion:focus-visible {
  background: var(--surface-soft);
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--focus-ring);
}

#estimate-map,
#booking-route-map {
  isolation: isolate;
}

.estimate-workspace > #estimate-map::before,
#booking-route-map::before {
  content: none;
}

.leaflet-container {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #eef2f7;
  font-family: inherit;
  cursor: crosshair;
}

.leaflet-control-attribution {
  font-size: 9px;
}

.route-marker {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
  font-size: 10px;
  font-weight: 850;
}

.route-marker.destination {
  background: var(--accent);
}

html[dir="rtl"] .estimate-address-field input {
  padding-right: 0;
  padding-left: 42px;
}

html[dir="rtl"] .estimate-swap {
  right: auto;
  left: 13px;
}

html[dir="rtl"] .booking-route-arrow {
  transform: scaleX(-1);
}

.booking-phone-card {
  grid-column: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.booking-phone-card > .booking-zone-title {
  grid-column: 1 / -1;
  align-self: start;
}

.booking-phone-card label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.booking-phone-card input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  border: 1px solid var(--control-boundary);
  border-radius: 10px;
  background: var(--panel);
  font: inherit;
  font-size: 13px;
}

.booking-phone-card input:focus-visible {
  border-color: var(--accent);
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.phone-verification-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-verification-actions[hidden] {
  display: none;
}

.phone-verification-actions button,
.phone-change-number {
  min-height: 42px;
  padding: 9px 13px;
  color: #fff;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.phone-verification-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.phone-verification-result {
  grid-column: 1 / -1;
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  overflow: hidden;
  white-space: nowrap;
}

.phone-verification-result > span {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-verification-result.success {
  font-weight: 800;
}

.phone-resend-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
}

.phone-resend-controls[hidden] {
  display: none;
}

.phone-resend-controls select,
.phone-resend-controls button {
  height: 24px;
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid #b9c9ef;
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}

.phone-resend-controls button {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.phone-resend-controls select:disabled,
.phone-resend-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.phone-change-number {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: auto;
  padding: 0;
  color: var(--accent-dark);
  background: transparent;
}

@media (max-width: 800px) {
  .booking-phone-card {
    grid-template-columns: 1fr;
  }
}

.booking-route-head > .booking-zone-title,
.booking-schedule-title h2.booking-zone-title,
.booking-package-field .booking-zone-title,
.booking-phone-card > .booking-zone-title,
.booking-optional > div > .booking-zone-title,
.booking-summary > header span.booking-zone-title:first-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Three-screen typography contract: one family and only display/body/meta sizes. */
main,
main * {
  font-family: inherit !important;
}

main * {
  font-size: var(--type-body) !important;
}

main h1,
main .courier-business-name,
main .estimate-box strong,
main .booking-summary-price strong {
  font-size: var(--type-display) !important;
}

main .estimate-hero h1.is-long-copy {
  font-size: clamp(26px, 2.25vw, 34px) !important;
}

main .estimate-hero h1.is-very-long-copy {
  font-size: clamp(22px, 1.9vw, 29px) !important;
}

main small,
main .block-caption,
main .estimate-eyebrow,
main .optional-status,
main .booking-summary-status,
main .route-marker,
main .leaflet-control-attribution {
  font-size: var(--type-meta) !important;
}

main .booking-zone-title {
  font-size: var(--type-body) !important;
  font-weight: 900;
}

main .route-card .block-caption,
main .channel-heading strong {
  font-size: var(--type-body) !important;
  font-weight: 900;
  letter-spacing: 0.08em;
}

main .booking-phone-card label > span {
  color: var(--ink);
  font-size: var(--type-body) !important;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.package-size-warning {
  align-self: start;
  width: 100%;
  height: 58px;
  margin: 0;
  font-weight: 400;
  line-height: 1.25;
  overflow: hidden;
}

main .package-size-warning {
  font-size: var(--type-body) !important;
}

main .package-size-warning.is-tight {
  font-size: var(--type-meta) !important;
}

.estimate-layout,
.order-layout,
.about-screen-layout {
  align-self: start;
  height: var(--workspace-height);
  min-height: var(--workspace-height);
  margin-top: var(--workspace-top-gap);
}

.estimate-layout {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.estimate-hero {
  margin-top: -8px;
}

.channel-card {
  min-height: 120px;
}

@media (max-width: 1150px) {
  .booking-required {
    grid-template-columns: 1fr;
  }

  .booking-phone-card,
  .booking-package-field {
    grid-column: 1;
  }
}

/* Compact desktop density: keep each chapter visually proportional when the
   browser has less vertical room (1440x900 / 1920x1080, browser chrome, or
   moderate zoom). Content may still grow and free-scroll; nothing is clipped. */
@media (max-height: 980px) and (min-width: 1051px) {
  :root {
    --header-height: 64px;
    --type-display: clamp(26px, 2.35vw, 34px);
    --type-body: 13px;
    --type-meta: 10px;
    --workspace-top-gap: 8px;
    --workspace-bottom-gap: 13px;
  }

  .screen {
    min-height: max(560px, calc(100dvh - var(--header-height)));
    padding: 12px 40px 14px;
  }

  .estimate-screen,
  .order-screen,
  .about-screen {
    padding: 0;
  }

  .estimate-layout,
  .order-layout,
  .about-screen-layout {
    height: var(--workspace-height);
    min-height: var(--workspace-height);
    gap: 10px;
  }

  .estimate-hero {
    gap: 22px;
  }

  .estimate-hero h1,
  .booking-heading h1,
  .about-copy h1 {
    margin-block: 4px;
  }

  .route-card {
    padding: 14px;
  }

  .route-card .block-caption {
    margin-bottom: 8px;
  }

  .estimate-route-fields {
    gap: 7px;
  }

  .estimate-address-field {
    min-height: 50px;
    padding-block: 7px;
  }

  .estimate-pin {
    width: 27px;
    height: 27px;
  }

  .estimate-box {
    padding: 9px 13px;
  }

  .route-card-footer {
    gap: 8px;
    padding-block-start: 10px;
  }

  .estimate-continue {
    padding-block: 9px;
  }

  .route-status-line {
    min-height: 2.5em;
    padding-top: 7px;
  }

  .channel-area {
    padding: 9px 14px 8px;
  }

  .channel-heading {
    margin-bottom: 7px;
  }

  .channel-card {
    min-height: 115px;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }

  .channel-card > span {
    width: 32px;
    height: 32px;
  }

  .booking-layout {
    gap: 10px;
  }

  .booking-main {
    grid-template-rows: minmax(190px, 1fr) auto;
    gap: 10px;
  }

  .booking-route-copy {
    padding: 14px 14px 10px;
  }

  .booking-route-head {
    margin-bottom: 7px;
  }


  .booking-schedule-card {
    grid-template-rows: auto auto auto;
    gap: 10px;
  }

  .booking-when-card {
    grid-template-rows: auto auto minmax(60px, auto) auto;
    gap: 6px;
    padding: 8px;
  }

  .booking-schedule-top {
    gap: 12px;
  }

  .booking-date-switcher {
    min-height: 42px;
    padding: 4px;
  }

  .booking-small-button {
    height: 30px;
  }

  .booking-slots {
    min-height: 60px;
  }

  .booking-slot {
    padding: 7px 9px;
  }

  .booking-confirmation {
    margin-top: 2px;
    padding: 7px 10px;
  }

  .booking-phone-card {
    gap: 8px;
    padding: 9px;
  }

  .booking-phone-card label {
    gap: 2px;
  }

  .booking-phone-card input,
  .phone-verification-actions button {
    min-height: 38px;
    padding-block: 8px;
  }

  .phone-verification-result {
    min-height: 30px;
  }

  .booking-package-field {
    grid-template-rows: auto auto 58px;
    min-height: 38px;
    padding: 9px;
  }

  .booking-package-field .package-picker-trigger {
    min-height: 30px;
    padding-block: 2px;
  }

  .booking-optional {
    grid-template-rows: auto 58px auto;
    min-height: 112px;
    gap: 7px;
    padding: 8px;
  }

  .booking-optional textarea {
    height: 58px;
    padding-block: 6px;
  }

  .booking-summary > header,
  .booking-summary-body {
    padding: 14px;
  }

  .booking-summary-body {
    gap: 10px;
  }

  .booking-summary-price {
    padding-top: 9px;
  }

  .booking-review-button {
    min-height: 38px;
    padding-block: 8px;
  }

  .about-layout {
    gap: 28px;
  }

  .about-copy {
    padding-top: 12px;
  }

  .about-story {
    margin-block: 10px;
    line-height: 1.5;
  }

  .about-facts {
    gap: 8px 10px;
  }

  .about-facts article {
    min-height: 72px;
    padding: 9px 11px;
  }

  .about-values {
    gap: 18px;
    padding-block: 9px;
  }

  .value-icon {
    width: 34px;
    height: 34px;
  }

  .site-footer {
    min-height: 44px;
    padding-block: 4px;
  }
}

/* Hebrew glyphs need slightly more optical size than the Latin/Cyrillic copy
   at the same nominal value. Keep the shared type scale, but raise both text
   tokens by one pixel for Hebrew only. */
html[lang="he"] {
  --type-body: 15px;
  --type-meta: 12px;
}

@media (max-height: 980px) and (min-width: 1051px) {
  html[lang="he"] {
    --type-body: 14px;
    --type-meta: 11px;
  }
}
