/* The delivery price finder (/parcels/) — phone first: one column, big targets, the price on the right of each line.
   Tokens only (packages/design/tokens.css); no CDN, the faces come from /css/fonts.css. */
.dlv-page { background: var(--bc-canvas); overflow-x: clip; }
.dlv-page :focus-visible { outline: 2.5px solid var(--bc-focus); outline-offset: 3px; }
.dlv { max-width: 760px; margin: 0 auto; padding: 92px 16px var(--bc-s8); }
.dlv-k { margin: 0 0 var(--bc-s2); color: var(--bc-plum); font-size: var(--bc-t-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dlv-head h1 { font-size: clamp(2rem, 7vw, 3.25rem); }
.dlv-sub { margin: var(--bc-s3) 0 var(--bc-s5); color: var(--bc-ink-2); font-size: var(--bc-t-sm); }

.dlv-form { display: grid; gap: var(--bc-s4); padding: var(--bc-s4); background: var(--bc-surface); border: 1px solid var(--bc-line); border-radius: var(--bc-r-lg); }
.dlv-places { display: grid; gap: var(--bc-s3); }
.dlv-f { display: grid; gap: 6px; font-size: var(--bc-t-xs); font-weight: 600; color: var(--bc-ink-2); }
.dlv-f input { width: 100%; min-height: 48px; padding: 0 var(--bc-s3); border: 1.5px solid var(--bc-line); border-radius: var(--bc-r-sm); background: var(--bc-surface); color: var(--bc-ink); font: 400 var(--bc-t-sm)/1.2 var(--bc-text); box-sizing: border-box; }
.dlv-f input:focus { border-color: var(--bc-plum); outline: none; }
.dlv-size { margin: 0; padding: 0; border: 0; min-width: 0; }
.dlv-size legend { padding: 0; margin-bottom: 6px; font-size: var(--bc-t-xs); font-weight: 600; color: var(--bc-ink-2); }
.dlv-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bc-s2); }
.dlv-chip { position: relative; display: grid; gap: 2px; min-height: 56px; padding: var(--bc-s2) var(--bc-s3); border: 1.5px solid var(--bc-line); border-radius: var(--bc-r-md); cursor: pointer; align-content: center; }
.dlv-chip input { position: absolute; opacity: 0; pointer-events: none; }
.dlv-chip b { font: 700 var(--bc-t-sm)/1.1 var(--bc-display); }
.dlv-chip small { color: var(--bc-ink-3); font-size: 13px; line-height: 1.25; }
.dlv-chip:has(input:checked) { border-color: var(--bc-plum); background: var(--bc-plum-tint); }
.dlv-chip:has(input:focus-visible) { outline: 2.5px solid var(--bc-focus); outline-offset: 2px; }
.dlv-chip--own { grid-column: 1 / -1; min-height: 48px; }
.dlv-dims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bc-s3); margin-top: var(--bc-s3); }
.dlv-dims[hidden] { display: none; }
.dlv-go { width: 100%; }
.dlv-go:disabled { opacity: .7; cursor: progress; }

.dlv-out { margin-top: var(--bc-s5); }
.dlv-out:empty { display: none; }
.dlv-route { display: flex; flex-wrap: wrap; gap: 4px var(--bc-s2); align-items: baseline; margin: 0 0 var(--bc-s3); font-size: var(--bc-t-sm); }
.dlv-route span { flex-basis: 100%; color: var(--bc-ink-3); font-size: var(--bc-t-xs); }
.dlv-v, .dlv-err { margin: 0 0 var(--bc-s3); padding: var(--bc-s3) var(--bc-s4); border-radius: var(--bc-r-md); background: #FFF4DD; color: #5A3B00; font-size: var(--bc-t-sm); }
.dlv-err { background: #FDECEC; color: #7A1B1B; }
.dlv-list { display: grid; gap: var(--bc-s2); margin: 0; padding: 0; list-style: none; }
.dlv-o { padding: var(--bc-s3) var(--bc-s4); background: var(--bc-surface); border: 1px solid var(--bc-line); border-radius: var(--bc-r-md); }
.dlv-o.is-best { border-color: var(--bc-sage); box-shadow: inset 3px 0 0 var(--bc-sage); }
.dlv-o-top { display: flex; align-items: center; gap: var(--bc-s2); flex-wrap: wrap; }
.dlv-o-c { font: 700 var(--bc-t-sm)/1.2 var(--bc-display); }
.dlv-tag { padding: 2px 8px; border-radius: 99px; background: var(--bc-sage-tint); color: var(--bc-sage); font-size: 12px; font-weight: 700; }
.dlv-o-p { margin-inline-start: auto; font: 700 var(--bc-t-lg)/1 var(--bc-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dlv-o-w { margin: 4px 0 0; color: var(--bc-ink-2); font-size: var(--bc-t-xs); }
.dlv-o-m { display: flex; flex-wrap: wrap; gap: 4px var(--bc-s3); margin: 4px 0 0; color: var(--bc-ink-3); font-size: 13px; }
.dlv-how { margin-top: var(--bc-s2); font-size: var(--bc-t-xs); }
.dlv-how summary, .dlv-nofit summary { cursor: pointer; color: var(--bc-plum); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.dlv-how ol { margin: var(--bc-s2) 0; padding-inline-start: 1.3em; color: var(--bc-ink); }
.dlv-how li + li { margin-top: 4px; }
.dlv-o-l { margin: 0; color: var(--bc-ink-3); }
.dlv-o-l a { color: var(--bc-plum); }
.dlv-o.is-stale .dlv-chk { color: #8A4B00; font-weight: 700; }
.dlv-o.is-stale .dlv-chk::before { content: "⚠ "; }
.dlv-nofit { margin-top: var(--bc-s4); font-size: var(--bc-t-xs); color: var(--bc-ink-2); }
.dlv-nofit ul { margin: var(--bc-s2) 0 0; padding-inline-start: 1.2em; }
.dlv-nofit li + li { margin-top: 4px; }
.dlv-nofit small { display: block; color: var(--bc-ink-3); }
.dlv-note, .dlv-api { margin: var(--bc-s5) 0 0; color: var(--bc-ink-3); font-size: var(--bc-t-xs); }
.dlv-api { margin-top: var(--bc-s2); overflow-wrap: anywhere; }
.dlv-api a { color: var(--bc-plum); }

@media (min-width: 600px) {
  .dlv { padding-top: 116px; padding-inline: var(--bc-gutter); }
  .dlv-form { padding: var(--bc-s5); }
  .dlv-places { grid-template-columns: 1fr 1fr; }
  .dlv-sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dlv-dims { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dlv-go { width: auto; justify-self: start; }
}

/* a courier priced only in its own app: the place of the price says so, in a quieter tone */
.dlv-app-h { margin: var(--bc-s5) 0 var(--bc-s2); font-size: var(--bc-t-sm); font-weight: 700; }
.dlv-o-p--app { color: var(--bc-ink-2); font-size: var(--bc-t-sm); font-weight: 600; }
