/* Heavy-haul phone layout notes (owner, 2026-11-22, annotated screenshots). Loaded after the page's own styles.
   1. The ft | m units switch lives in the dimensions card's top-right corner (it left the Quotes / Save toolbar).
   2. The 3D model select and the quantity stepper share ONE row; the select grows, the stepper is compact.
   3. The 3D preview band is the cargo card's last element, so it reads as part of the card.
   4. Phones: the header band's title sits higher (the Embed button floats top-right instead of owning a row). */

/* The card's header line: only the units switch, right aligned. */

/* The model row. Wide screens: the wrapper is transparent, so the weight | model | quantity grid is exactly what it was. */
#hh-form .hh-model-row { display: contents; }

/* The preview is the card's last element at every width. */
#hh-form .hh-cargo-input-card > .hh-cargo3d { order: 8; grid-column: 1 / -1; margin: 0; }

@media (max-width: 639px) {
  /* One row: [3D model select grows][quantity - 1 +]. The select can shrink to nothing, so 320px never wraps or clips. */
  #hh-form .hh-cargo-input-card .hh-model-row { display: flex; align-items: stretch; gap: 8px; order: 6; grid-column: 1 / -1; min-width: 0; }
  #hh-form .hh-cargo-input-card .hh-model-row > .hh-field--ctype { flex: 1 1 0; min-width: 0; }
  #hh-form .hh-cargo-input-card .hh-model-row > .hh-field--quantity { flex: 0 0 auto; width: 96px; min-width: 0; }
  #hh-form .hh-cargo-input-card .hh-model-row .hh-cargo-picker-button, #hh-form .hh-cargo-input-card .hh-model-row select { text-overflow: ellipsis; }
}
@media (max-width: 360px) {
  #hh-form .hh-cargo-input-card .hh-model-row > .hh-field--quantity { width: 88px; }
}

/* Header band on phones: the Embed button floats at the top-right and the title starts at the band's top padding. */
@media (max-width: 760px) {
  .qtt-band.qtt-band { position: relative; }
  .qtt-band.qtt-band .qtt-band-row { position: absolute; top: 12px; right: 16px; margin: 0; width: auto; }
  .qtt-band.qtt-band h1 { margin-top: 0; padding-right: 80px; box-sizing: border-box; }
}

/* The units switch in the dimensions card is a small control: 20px tall, tight options, and the head row gives back its padding above and gap below. */
#hh-form .hh-cargo-input-card { padding-top: 8px; }
/* The units switch now sits in the quotes bar, level with Quotes, Save and 'Powered by' (see .hh-qbar-r). */

/* The equipment select never wraps its text: a long label (the empty-state prompt, a long equipment name) is cut with an ellipsis, and the select's side padding is tightened so more of it fits. */
#hh-form .hh-field--combo .hh-combo { padding-right: 24px; padding-left: 8px; min-width: 0; overflow: hidden; }
/* The empty-state prompt is a sentence: it is set a size smaller so all of it fits on a phone. */
#hh-form .hh-field--combo .hh-combo[aria-disabled="true"] .hh-eqval-name { font-size: 13px; }
#hh-form .hh-field--combo .hh-eqval { display: block; min-width: 0; overflow: hidden; }
#hh-form .hh-field--combo .hh-eqval-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* PHONES USE THE WHOLE SCREEN WIDTH (owner): the page shell keeps only an 8px gutter on each side (it was 16px) and the dimensions card an 8px inner padding (it was 12px), so the cards, fields and buttons run nearly edge to edge. */
@media (max-width: 767px) {
  body.qtt main#main.qh-shell { padding-left: 8px; padding-right: 8px; }
  #hh-form .hh-cargo-input-card { padding-left: 8px; padding-right: 8px; }
  body.qtt .qtt-band { margin-left: 8px; margin-right: 8px; }
}

/* 'Report a problem' sits a little lower under the form card, clear of the map above it. */
#hh-form .hh-cargo-input-card > .qtt-report, .hh-cargo-input-card > .qtt-report { margin-top: 24px; }
