/* Booking on the quote page: pick a day, pay the deposit, see where it's at.
   Built on the short quote layout's own tokens (.qs: ink, soft, hair, paper, sky, tint), so it
   reads as part of the page. Green and amber appear only as real booking states. */
.qs { --ok: #146c43; --ok-tint: #e6f5ec; --ok-line: #8fd1ad; --wait: #8a4f00; --wait-tint: #fff3dc; --wait-line: #f2a93b; --bad: #b42318; }

.qb { scroll-margin-top: 56px; }
.qb-body { margin-top: 18px; }

/* Loading: the shape of the day strip, not a spinner. */
.qb-skel { display: flex; gap: 8px; overflow: hidden; margin: 0 -20px; padding: 0 20px; }
.qb-skel span { flex: 0 0 64px; height: 82px; border-radius: 14px; background: linear-gradient(90deg, #e6edf3 25%, #f2f6f9 50%, #e6edf3 75%); background-size: 300% 100%; animation: qb-shimmer 1.3s ease-in-out infinite; }
@keyframes qb-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.qb-loading { margin-top: 10px !important; font-size: 13px; color: var(--soft); }

/* Courtesy car switch */
.qb-courtesy { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px 14px 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 var(--hair); }
.qb-courtesy-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; }
.qb-courtesy b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.qb-courtesy small { display: block; font-size: 13px; line-height: 1.35; color: var(--soft); }
.qb-switch { position: relative; flex: 0 0 auto; width: 52px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: #cbd6e0; cursor: pointer; transition: background .2s ease; }
.qb-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(10, 31, 51, .3); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.qb-switch[aria-checked="true"] { background: var(--sky); }
.qb-switch[aria-checked="true"]::after { transform: translateX(20px); }

/* The day strip */
.qb-rail { position: relative; margin-top: 16px; }
.qb-strip { display: flex; gap: 8px; margin: 0 -20px; padding: 4px 20px 6px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.qb-strip::-webkit-scrollbar { display: none; }
.qb-day { position: relative; flex: 0 0 64px; scroll-snap-align: start; display: grid; justify-items: center; gap: 1px; padding: 10px 0 9px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair); font: inherit; color: var(--ink); cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.qb-day:active { transform: scale(.96); }
.qb-dow, .qb-mon { font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--soft); }
.qb-num { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.qb-day.is-req { box-shadow: inset 0 0 0 1.5px var(--wait-line); }
.qb-day.is-req::after { content: ""; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--wait-line); }
.qb-day[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: 0 10px 22px -12px rgba(10, 31, 51, .7); }
.qb-day[aria-checked="true"] .qb-dow, .qb-day[aria-checked="true"] .qb-mon { color: #b9cad8; }
.qb-day:disabled { background: transparent; box-shadow: none; cursor: default; }
.qb-day:disabled:active { transform: none; }
.qb-day:disabled .qb-dow, .qb-day:disabled .qb-mon, .qb-day:disabled .qb-num { color: #a3b3c1; }
.qb-day:disabled .qb-num { text-decoration: line-through; text-decoration-thickness: 2px; }
.qb-day:focus-visible, .qb-switch:focus-visible, .qb-x:focus-visible, .qb-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.qb-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px !important; font-size: 13px; color: var(--soft); }
.qb-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--wait-line); vertical-align: 1px; }

/* The picked day */
.qb-pick { margin: 14px -8px 0; padding: 20px 20px 18px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 var(--hair), 0 26px 50px -38px rgba(10, 31, 51, .5); }
.qb-pick-date { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.qb-facts { list-style: none; margin: 10px 0 0; padding: 0; }
.qb-facts li { position: relative; padding: 5px 0 5px 24px; font-size: 15px; line-height: 1.45; color: #2b3d4d; }
.qb-facts li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 10px; height: 5px; border-left: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(-45deg); }
.qb-state { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px !important; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.qb-state svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; }
.qb-state--ok { background: var(--ok-tint); color: var(--ok); }
.qb-state--req { background: var(--wait-tint); color: var(--wait); }
.qb-cta { display: block; width: 100%; margin-top: 14px; border: 0; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.qb-fine { margin-top: 10px !important; font-size: 13px; line-height: 1.45; color: var(--soft); text-align: center; }
.qb-notice { margin-bottom: 14px !important; padding: 12px 14px; border-radius: 12px; background: var(--wait-tint); color: var(--wait); font-size: 14px; font-weight: 600; }
.qb-empty { padding: 18px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 var(--hair); font-size: 15px; }
.qb-link { display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }

/* Booking status, once there is one */
.qb-status { margin: 0 -8px; padding: 20px 20px 18px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 var(--hair), 0 26px 50px -38px rgba(10, 31, 51, .5); }
.qb-status--ok { box-shadow: inset 0 0 0 2px var(--ok-line), 0 26px 50px -38px rgba(10, 31, 51, .5); }
.qb-status--wait { box-shadow: inset 0 0 0 2px var(--wait-line), 0 26px 50px -38px rgba(10, 31, 51, .5); }
.qb-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.qb-badge svg { width: 16px; height: 16px; }
.qb-status--ok .qb-badge { background: var(--ok-tint); color: var(--ok); }
.qb-status--wait .qb-badge { background: var(--wait-tint); color: var(--wait); }
.qb-status .qb-pick-date { margin-top: 12px !important; }
.qb-status-note { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 14px; color: #2b3d4d; }

/* Confirm sheet */
.qb-sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; font-family: Montserrat, system-ui, sans-serif; color: var(--ink); }
.qb-sheet[hidden] { display: none; }
.qb-scrim { position: absolute; inset: 0; background: rgba(10, 31, 51, .45); opacity: 0; transition: opacity .25s ease; }
.qb-panel { position: relative; width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; padding: 10px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; transform: translateY(100%); transition: transform .34s cubic-bezier(.2, .8, .2, 1); }
.qb-sheet.is-open .qb-scrim { opacity: 1; }
.qb-sheet.is-open .qb-panel { transform: none; }
@media (min-width: 700px) {
  .qb-sheet { align-items: center; }
  .qb-panel { border-radius: 22px; padding-bottom: 24px; opacity: 0; transform: translateY(18px); transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
  .qb-sheet.is-open .qb-panel { opacity: 1; }
  .qb-grab { display: none; }
}
.qb-grab { width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 999px; background: #d5dde5; }
.qb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.qb-head h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.qb-x { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.qb-x svg { width: 18px; height: 18px; }
/* Checkout: order summary + payment. Two columns on a desktop, stacked on a phone. */
.qb-panel--co { padding: 10px 0 0; }
.qb-x--corner { position: absolute; top: 14px; right: 16px; z-index: 2; }
.qb-co-grid { display: grid; }
.qb-co-sum { padding: 4px 22px 20px; }
.qb-co-pay { padding: 20px 22px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); }
.qb-co-title { margin: 0 52px 0 0; font-size: 23px; font-weight: 800; letter-spacing: -.035em; line-height: 1.2; }
.qb-co-sub { margin-top: 2px !important; font-size: 13px; color: var(--soft); }
.qb-items { list-style: none; margin: 16px 0 0; padding: 0; }
.qb-li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; }
.qb-li + .qb-li { border-top: 1px solid var(--hair); }
.qb-thumb { display: block; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: #1b2530; }
.qb-thumb--ico { display: grid; place-items: center; background: var(--tint); color: var(--ink); }
.qb-thumb--ico svg { width: 22px; height: 22px; }
.qb-li-text { min-width: 0; }
.qb-li-text b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.qb-li-text small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--soft); }
.qb-li-price { display: flex; align-items: baseline; gap: 6px; font-size: 15px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qb-li-price s { font-weight: 600; color: var(--soft); }
.qb-free { padding: 2px 8px; border-radius: 6px; background: var(--tint); font-size: 13px; font-weight: 800; }
.qb-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 2px solid var(--ink); }
.qb-total > span:first-child { font-size: 16px; font-weight: 800; line-height: 1.25; }
.qb-total small { display: block; font-size: 12px; font-weight: 600; color: var(--soft); }
.qb-total > span:last-child { display: flex; align-items: baseline; gap: 10px; }
.qb-total s { font-size: 15px; font-weight: 600; color: var(--soft); }
.qb-total b { font-size: 30px; font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.qb-saving { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px !important; padding: 5px 11px 5px 8px; border-radius: 999px; background: var(--ok-tint); color: var(--ok); font-size: 13px; font-weight: 800; }
.qb-saving svg { width: 15px; height: 15px; }
.qb-due { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair); }
.qb-due div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 14px; }
.qb-due dt { font-weight: 600; color: var(--soft); }
.qb-due dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.qb-due div:first-child dt, .qb-due div:first-child dd { font-size: 17px; font-weight: 800; color: var(--ink); }
.qb-when { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--paper); }
.qb-when-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #fff; color: var(--ink); }
.qb-when-ico svg { width: 20px; height: 20px; }
.qb-when b { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; }
.qb-when small { display: block; margin-top: 1px; font-size: 13px; line-height: 1.4; color: var(--soft); }
.qb-hold { margin-top: 12px !important; padding: 12px 14px; border-radius: 12px; background: var(--wait-tint); color: var(--wait); font-size: 14px; font-weight: 600; line-height: 1.45; }
.qb-express { margin-top: 18px; min-height: 52px; }
.qb-express[hidden] { display: none; }
.qb-divider { display: flex; align-items: center; gap: 12px; margin-top: 16px !important; font-size: 13px; font-weight: 600; color: var(--soft); }
.qb-divider::before, .qb-divider::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.qb-divider[hidden] { display: none; }
.qb-card { margin-top: 16px; min-height: 96px; }
.qb-paybtn { display: block; width: 100%; min-height: 54px; margin-top: 16px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; font: inherit; font-size: 16px; font-weight: 800; letter-spacing: -.01em; cursor: pointer; transition: opacity .15s ease, transform .15s ease; }
.qb-paybtn:disabled { opacity: .3; cursor: default; }
.qb-paybtn:not(:disabled):active { transform: scale(.98); }
.qb-paybtn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
@media (min-width: 900px) {
  .qb-panel--co { max-width: 940px; padding: 0; }
  .qb-panel--co .qb-grab { display: none; }
  .qb-co-grid { grid-template-columns: 1fr 1fr; }
  .qb-co-sum { padding: 34px 32px 32px; background: var(--paper); }
  .qb-co-sum .qb-due { background: #fff; }
  .qb-co-pay { padding: 34px 32px 32px; border-top: 0; }
  .qb-co-pay .qb-when { margin-right: 44px; }
}
.qb-err { margin-top: 12px !important; color: var(--bad); font-size: 14px; font-weight: 600; }
.qb-err:empty { display: none; }
.qb-secure { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px !important; font-size: 12px; color: var(--soft); }
.qb-secure svg { width: 13px; height: 13px; }
.qb-busy { margin-top: 18px !important; padding: 14px; border-radius: 12px; background: var(--paper); font-size: 15px; font-weight: 700; text-align: center; }
.qb-busy::after { content: ""; display: block; height: 3px; margin-top: 10px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--sky), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: qb-slide 1.1s ease-in-out infinite; }
@keyframes qb-slide { from { background-position: -50% 0; } to { background-position: 150% 0; } }

/* Done */
.qb-done { padding: 14px 2px 4px; text-align: center; }
.qb-done-ico { width: 64px; height: 64px; margin: 6px auto 10px; color: var(--ok); }
.qb-done--wait .qb-done-ico { color: var(--wait-line); }
.qb-done h3 { margin: 0; font-size: 27px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.qb-done p { margin-top: 10px; font-size: 16px; color: #2b3d4d; }
.qb-done .qb-facts { display: inline-block; margin-top: 14px; text-align: left; }
.qb-done .qs-btn { margin-top: 18px; }

/* Test build only */
.qb-testbar { position: sticky; top: 0; z-index: 70; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; background: #fff3dc; border-bottom: 1px solid #f1d39d; color: #6b4100; font-family: Montserrat, system-ui, sans-serif; font-size: 13px; font-weight: 700; }
.qb-testbar button { padding: 6px 12px; border: 0; border-radius: 999px; background: #6b4100; color: #fff; font: inherit; cursor: pointer; }
.qb-test { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: 10px; background: rgba(10, 31, 51, .45); font-family: Montserrat, system-ui, sans-serif; color: var(--ink); }
.qb-test[hidden] { display: none; }
.qb-test-panel { width: 100%; max-width: 560px; max-height: calc(100dvh - 20px); overflow-y: auto; padding: 18px 18px 20px; border-radius: 18px; background: #fff; }
.qb-test h4 { margin: 18px 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.qb-test p, .qb-test li { font-size: 14px; line-height: 1.5; }
.qb-test a { color: var(--ink); font-weight: 700; }
.qb-test ul { margin: 6px 0 0; padding-left: 18px; }
.qb-test-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.qb-test-btns button { padding: 10px 14px; border: 0; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--hair); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.qb-test-btns button.is-go { background: var(--ok-tint); box-shadow: inset 0 0 0 1.5px var(--ok-line); color: var(--ok); }
.qb-test-btns button:disabled { opacity: .45; cursor: default; }
.qb-test pre { margin: 6px 0 0; padding: 12px; border-radius: 12px; background: var(--paper); font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.qb-test table { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 13px; }
.qb-test td { padding: 6px 4px; border-top: 1px solid var(--hair); vertical-align: top; }
.qb-test td:last-child { color: var(--soft); }

@media (prefers-reduced-motion: reduce) {
  .qb *, .qb-sheet *, .qb-skel span, .qb-busy::after { transition: none !important; animation: none !important; }
}
