/* Get prices. Phone first: every control is at least 44px (the floor
   tools/scan-touch-targets.mjs holds), and the list is one column. */

.gp {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.gp-closed {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.gp-step {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.gp-step__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.gp-step__n {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent, #0a1422);
  font-size: 0.85rem;
  font-weight: 700;
}

.gp-group + .gp-group { margin-top: 12px; }

.gp-group__title {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.gp-group__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.gp-product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.gp-product[aria-pressed='true'] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.gp-product__label { font-weight: 700; font-size: 0.95rem; }
.gp-product__line { font-size: 0.82rem; color: var(--muted); }

.gp-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.gp-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  font-size: 0.86rem;
  font-weight: 600;
}

.gp-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.gp-times {
  padding-bottom: 12px;
  color: var(--muted);
}

.gp-hint {
  margin: 8px 0 0;
  font-size: 0.84rem;
}

/* The depth, under the length (Joel, 5 Oct 2026), as wide as one of the two
 * boxes above it; what it says when it looks like the wrong unit. */
.gp-depth {
  margin-top: 14px;
  max-width: calc(50% - 20px);
}
.gp-depth[hidden] { display: none; }
.gp-depth-warn {
  margin: 8px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--warn);
}

.gp-estimate {
  margin: 10px 0 0;
  min-height: 1.3em;
  font-size: 1rem;
  font-weight: 700;
}

.gp-toggle,
.gp-note-toggle,
.gp-pick,
.gp-retry,
.gp-row__ask-one {
  margin-top: 8px;
  padding: 0 14px;
  border-radius: 10px;
  min-height: 44px;
  cursor: pointer;
}

.gp-suggest {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}

.gp-suggest[hidden] { display: none; }

.gp-suggest__item {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.gp-suggest__item:last-child { border-bottom: 0; }

/* A suburb the locality list does not know: nothing is measured to it
 * (shared/place-to-measure.js), and this says why, by the box. --warn has
 * its own day-mode value in theme.css, so it reads on both themes. */
.gp-suburb-unknown {
  margin: 8px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--warn);
}

.gp-results { margin-top: 22px; }

/* THE LAST SUBURB'S ROWS, WHILE THE BOX SAYS ANOTHER (prices.js markStale;
 * QA sweep rerun, 3 Oct 2026). Dimmed where they are rather than cleared,
 * so the page does not jump at every key, and inert, so nothing on them can
 * be pressed; the line above them says whose they are, at full strength. */
.gp-stale {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--warn);
}

.gp-results.is-stale :is(#gpOrdered, #gpDistanceNote, #gpList, #gpAskBox, #gpFarBox) {
  opacity: 0.45;
  transition: opacity 0.15s ease;
}

.gp-status {
  margin: 0 0 10px;
  font-weight: 600;
}

.gp-note {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 0.88rem;
}

/* An order off this list (shared/one-order.js): the same card as the sign-in
 * box, because it is the same kind of thing — the one next step. */
.gp-ordered {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  background: var(--panel);
}

.gp-ordered p { margin: 0; }
.gp-ordered__btn { margin-top: 10px; }

/* The yard that said no to the last order off this list: its Order stays. */
.gp-row__saidno {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.gp-row__locked {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.gp-signin {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  background: var(--panel);
}

.gp-signin p { margin: 0 0 10px; }

.gp-signin__buttons a,
.gp-ordered__btn,
.gp-row__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.gp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gp-row {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.gp-row.is-no_price,
.gp-row.is-declined { opacity: 0.8; }

.gp-row__head { font-size: 0.98rem; }
.gp-row__what { margin-top: 2px; font-size: 0.9rem; }

.gp-row__price {
  margin-top: 6px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.gp-row__sub { color: var(--muted); }

.gp-row__action { margin-top: 10px; }

.gp-row__picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gp-est { display: inline; }

.gp-est summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline dotted;
}

.gp-est__parts {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.gp-ask {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  background: var(--panel);
}

.gp-ask textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.gp-ask textarea[hidden] { display: none; }

.gp-ask__btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.gp-ask__btn[hidden] { display: none; }

.gp-ask__status {
  margin: 8px 0 0;
  min-height: 1.3em;
  font-size: 0.9rem;
}

.gp-far__title {
  margin: 22px 0 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ── ONE QUESTION AT A TIME (Joel, 4 Oct 2026; shared/order-steps.js) ──────
   Order material opens here as four screens. body[data-gp-step] says which
   shows (prices.js showStep); without it (Get prices closed) nothing below
   applies. Written for a customer of any age: the question is the biggest
   thing on the screen, every answer is a big target, and Next is one wide
   button at the bottom. */
body:not([data-gp-step]) .gp-bar { display: none; }
body[data-gp-step] .gp { max-width: 600px; font-size: 1.125rem; }
body[data-gp-step] .gp .page-header h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--muted);
}

.gp-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.gp-progress[hidden] { display: none; }
.gp-back {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}
.gp-progress__count { font-weight: 700; color: var(--muted); }
.gp-bar {
  height: 8px;
  margin-top: 12px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
}
.gp-bar span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.25s ease;
}
@media (prefers-reduced-motion: reduce) { .gp-bar span { transition: none; } }

/* One screen at a time. */
body[data-gp-step] .gp-step {
  display: none;
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: none;
}
body[data-gp-step="1"] .gp-step[data-step="1"],
body[data-gp-step="2"] .gp-step[data-step="2"],
body[data-gp-step="3"] .gp-step[data-step="3"] { display: block; }
body[data-gp-step]:not([data-gp-step="4"]) #gpResults { display: none !important; }

body[data-gp-step] .gp-step__title {
  display: block;
  margin: 0 0 6px;
  font-size: clamp(1.75rem, 6vw, 2.15rem);
  line-height: 1.2;
  text-wrap: balance;
}
.gp-step__title:focus { outline: none; }
.gp-step__title:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.gp-step__lede { margin: 0 0 18px; color: var(--muted); font-size: 1.15rem; }

/* ① the products, one wide tile each */
body[data-gp-step] .gp-group + .gp-group { margin-top: 18px; }
body[data-gp-step] .gp-group__title { margin-bottom: 8px; font-size: 0.95rem; }
body[data-gp-step] .gp-group__items { grid-template-columns: 1fr; gap: 10px; }
body[data-gp-step] .gp-product {
  min-height: 76px;
  padding: 14px 18px;
  border-width: 2px;
  border-radius: 14px;
  gap: 4px;
}
body[data-gp-step] .gp-product:hover { border-color: var(--accent); }
body[data-gp-step] .gp-product__label { font-size: 1.25rem; }
body[data-gp-step] .gp-product__line { font-size: 1.02rem; }

/* ② and ③ the boxes */
body[data-gp-step] .gp-area { gap: 12px; }
body[data-gp-step] .gp-field { gap: 6px; font-size: 1.05rem; }
body[data-gp-step] .gp-field input {
  min-height: 60px;
  padding: 12px 14px;
  border-width: 2px;
  border-radius: 12px;
  font-size: 1.3rem;
}
body[data-gp-step] .gp-times { padding-bottom: 18px; font-size: 1.3rem; }
body[data-gp-step] .gp-hint { font-size: 1rem; }
body[data-gp-step] .gp-depth-warn { font-size: 1.02rem; }
body[data-gp-step] .gp-estimate { margin-top: 16px; font-size: 1.3rem; }
body[data-gp-step] .gp-toggle {
  display: block;
  width: 100%;
  min-height: 56px;
  margin-top: 16px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
}
body[data-gp-step] .gp-suggest__item { min-height: 56px; padding: 0 16px; font-size: 1.15rem; }
body[data-gp-step] .gp-suburb-unknown { font-size: 1rem; }

/* border: 0, as every accent button here: .primary sets no border, so a
   <button> kept the browser's own, a white frame round Next and "Show me
   the yards" (Joel, 5 Oct 2026). */
.gp-next {
  display: block;
  width: 100%;
  border: 0;
  min-height: 64px;
  margin-top: 20px;
  border-radius: 14px;
  font-size: 1.25rem;
  font-weight: 750;
  cursor: pointer;
}
.gp-next:disabled { opacity: 0.45; cursor: not-allowed; }

/* ④ the yards */
body[data-gp-step] .gp-results { margin-top: 24px; }
body[data-gp-step] .gp-status { font-size: 1.1rem; color: var(--muted); }
body[data-gp-step] .gp-row { padding: 16px 18px; border-width: 2px; }
body[data-gp-step] .gp-row__head { font-size: 1.2rem; }
body[data-gp-step] .gp-row__what { font-size: 1.02rem; }
body[data-gp-step] .gp-row__price { font-size: 1.05rem; }
body[data-gp-step] .gp-row__order {
  width: 100%;
  min-height: 56px;
  border-radius: 12px;
  font-size: 1.15rem;
}
body[data-gp-step] .gp-est__parts { font-size: 0.98rem; }
body[data-gp-step] .gp-ask__btn { min-height: 56px; font-size: 1.1rem; }
/* The same frame on the ask: no border of its own (see .gp-next). */
.gp-ask__btn { border: 0; }
.gp-elsewhere { margin: 24px 0 0; font-size: 1.02rem; }
.gp-elsewhere a { display: inline-flex; align-items: center; min-height: 44px; }

/* What delivery adds, and the cheapest delivered (Joel, 5 Oct 2026). */
.gp-row__delivery { margin-top: 4px; color: var(--muted); font-size: 0.95rem; }
body[data-gp-step] .gp-row__delivery { font-size: 1.02rem; }
.gp-row.is-cheapest { border-color: var(--ok); }
.gp-row__best {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--ok);
  color: #04130c;
  font-size: 0.92rem;
  font-weight: 800;
}
body.light .gp-row__best { color: #ffffff; }
.gp-knowyard { margin-top: 18px; }
