/* Port Drayage Quote form, visual audit batch 2. Tokens only; layout and wording, nothing here prices anything. Linked after drayage-result.css. */

/* The map keeps ONE height with or without a route (the placeholder is no longer a short strip): the page never jumps when the route arrives. */
@media (max-width: 1023px) {
  .dq-map:not(.has-route) .dq-mapframe { height: var(--dq-map-h); }
}

/* ABOUT THIS MOVE: the Overweight threshold is a quiet second line, so no title runs to three lines; every tile is the same height on a phone. */
.dq-tile-s { display: block; font-size: 12px; font-weight: 400; line-height: 1.4; color: var(--muted); }
@media (max-width: 640px) {
  .dq-addons .dq-tile { min-height: 64px; }
}

/* THE PICKUP / DELIVERY LISTS: a little wider than a half-row field (so names are readable) but not as wide as before, and a soft fade at the bottom edge
   instead of a row cut in half. The fade is a sticky last child, so the border and shadow of the list are untouched; it ends in 24px of clear space. */
.dq-hub-list { width: max(100%, 300px); padding-bottom: 4px; scroll-padding-bottom: 24px; }
.dq-hub-list::after { content: ""; position: sticky; bottom: 0; display: block; height: 24px; background: linear-gradient(to bottom, transparent, var(--surface)); pointer-events: none; }
@media (max-width: 640px) { .dq-hub-list { width: 100%; } }

/* THE ESTIMATE IS BEING MADE (owner: "no processing/progress circle ... it just freezes for a while"): the button wears a spinner and its busy label the moment it is pressed, the line under it
   names the step under way (a live region), and the heavy-haul progress card (an indeterminate bar, see HH_CSS .is-idet) stands in the results area. A ring with one open quarter
   is the whole spinner, so with reduced motion it simply does not turn (the label and the bar still say "working"). Tokens only; the keyframes are the heavy-haul card's own. */
#hh-gobar-btn.is-busy { cursor: progress; opacity: 0.85; }
#hh-gobar-btn.is-busy::after { content: none; }
#hh-gobar-btn .dq-spin, .dq-bar button.is-busy::before { content: ""; display: inline-block; flex: none; width: 20px; height: 20px; box-sizing: border-box; margin-right: 8px; border: 2.5px solid color-mix(in srgb, currentColor 28%, transparent); border-top-color: currentColor; border-radius: 50%; }
.dq-bar button.is-busy { cursor: progress; }
.dq-bar button.is-busy svg { display: none; }
/* The status line is the live region (announced to screen readers); the card right under the button says the same thing in words, so on screen it is visually hidden, not shown twice. */
.dq-go-status { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dq-sheet.is-repricing { opacity: 0.6; cursor: progress; }
@media (prefers-reduced-motion: no-preference) {
  #hh-gobar-btn .dq-spin, .dq-bar button.is-busy::before { animation: hh-prog-spin 900ms linear infinite; }
  .dq-sheet { transition: opacity 120ms ease-out; }
}
