/* Harkham — the customer's own page (OPS-128). Only what exists on this surface.
 *
 * ⚠️ EVERY TOKEN AND EVERY SHARED PRIMITIVE LIVES IN `/shared/tokens.css`, WHICH `index.html` LOADS
 * BEFORE THIS FILE — the contract `/complete` and `/invoice` already keep. DO NOT DECLARE A CUSTOM
 * PROPERTY OR A HEX COLOUR HERE: `src/sharedDesignTokens.test.ts` fails on either, and this file is on
 * its list.
 */

/* The two sign-in cards: one column a phone can read without turning sideways. */
.narrow { max-width: 30rem; margin-left: auto; margin-right: auto }
/* L3-75 (LAUNCH-ACCEPT-4 UX-46): a form label sits flush with its box, and the button does not touch the box above it.
 * `.glabel` is the menu's group label, with the menu's side padding; inside a sign-in form that padding read as an
 * indent. */
.narrow form .glabel { padding-left: 0; padding-right: 0 }
.narrow form .btn.block { margin-top: var(--s3) }

/* One booking in the list — a row a customer reads, not a table cell (the completion page's reason). */
.bookingrow {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4);
  padding: var(--s3) 0; border-bottom: 1px solid var(--line);
}
.bookingrow:last-child { border-bottom: 0 }
.bookingrow .bname { font-weight: 600; color: var(--ink) }
.bookingrow .bmeta { font-size: var(--t-small); color: var(--ink3); margin-top: 2px }
.bookingrow .bval { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums }

/* The history: what happened, in order. */
.history { list-style: none; margin: 0; padding: 0 }
.history li { padding: var(--s2) 0; border-bottom: 1px solid var(--line) }
.history li:last-child { border-bottom: 0 }

/* The ITN box and its button: side by side where there is room, the button under the box where there
 * is not. 🔴 OPS-132 step 13 (LA1-49): they sat loose in a `.bval`, whose `white-space: nowrap` held
 * them on one line — on LAUNCH-ACCEPT-1's 390px phone the page went to 465px and "Save ITN" was off
 * the edge of the screen. */
.itnrow { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center }
.itnrow .inp { flex: 1 1 11rem; width: auto; min-width: 0 }

@media (max-width: 767px) {
  .bookingrow { flex-direction: column; gap: var(--s2) }
  /* A phone stacks the row, so nothing in it has to stay on one line — the sentence beside a car's
   * title and the ITN box among them (LA1-49). */
  .bookingrow .bval { text-align: left; white-space: normal }
}
