:root {
  --page: #f8f9ef;
  --surface: #fff;
  --ink: #193229;
  --muted: #486056;
  --brand: #194c3b;
  --brand-hover: #113c2e;
  --accent: #e2efbc;
  --line: #77885f;
  --edge: #d7dfc6;
  --error: #702418;
  --error-bg: #ffe8e2;
  --radius: 1.375rem;
  --field-radius: .7rem;
  font: 1rem/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  accent-color: var(--brand);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
header { background: var(--brand); color: var(--surface); padding: .85rem 0; }
header .wrap, .toolbar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
header strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.045em; }
header span { color: var(--accent); font-size: .9rem; }
.wrap { width: min(100% - 2rem, 46rem); margin-inline: auto; }
main { padding-block: 1.5rem 3rem; }
h1 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.25rem); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.03em; }
h2, h3 { margin: 0 0 .75rem; }
.toolbar { margin-bottom: 1rem; }
.toolbar h1 { margin-right: auto; }
.card { padding: clamp(.95rem, 4vw, 1.35rem); margin-bottom: 1rem; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface); }
.status { display: inline-block; border-radius: var(--field-radius); padding: .3rem .55rem; background: var(--accent); font-weight: 650; }
form, label { display: grid; gap: .6rem; }
.order-form { gap: 1rem; }
.order-form h2 { margin: 0; }
.order-form label { font-weight: 650; }
.order-form :is(select, input) { font-weight: 400; }
.order-form section, .house-fields { display: grid; gap: .75rem; }
.public-house-picker { display: grid; gap: .65rem; max-width: 32rem; }
.public-house-picker p:empty { display: none; }
.courier-login-link { width: min(100%, 21rem); margin: 1.5rem auto 0; }
.courier-login-link summary {
  padding: .65rem;
  min-height: 44px;
  border: 1px solid var(--brand);
  border-radius: var(--field-radius);
  text-align: center;
  font-weight: 650;
  cursor: pointer;
}
.courier-login-link summary:hover, .courier-login-link[open] summary { background: var(--accent); }
.house-fields {
  padding: .75rem;
  border-radius: var(--field-radius);
  background: var(--accent);
}
.house-fields p { margin: 0; color: var(--muted); }
.house-fields p:empty { display: none; }
.order-form output {
  font-size: 1.25rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.checkbox { display: flex; align-items: center; }
.checkbox input { flex: 0 0 auto; }
form { max-width: 32rem; margin-block: .75rem; }
input, select, button, textarea { font: inherit; color: inherit; border-radius: var(--field-radius); min-height: 44px; }
input, select, textarea { min-width: 0; max-width: 100%; border: 1px solid var(--line); background: var(--surface); padding: .55rem .65rem; }
button { background: var(--brand); color: var(--surface); border: 0; padding: .6rem .9rem; font-weight: 650; cursor: pointer; }
button:not(.secondary):enabled:hover { background: var(--brand-hover); }
button.secondary { color: var(--brand); background: var(--accent); }
button:disabled { cursor: default; opacity: .65; }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.actions { display: flex; gap: .55rem; flex-wrap: wrap; margin-block: .75rem; }
#notice { background: var(--error-bg); color: var(--error); padding: .75rem; border-radius: var(--field-radius); }
#phone-error { color: var(--error); }
.urgent { color: var(--error); font-weight: 650; }
.support-message { white-space: pre-wrap; overflow-wrap: anywhere; }
textarea { width: 100%; }
input[aria-invalid="true"] { border-color: var(--error); }
a { color: var(--brand); text-underline-offset: .15em; }
li { margin-bottom: .3rem; }

.order-call {
  position: sticky;
  inset-block-start: .5rem;
  z-index: 2;
  border: 2px solid #194c3b;
}

.order-map { margin-block: .75rem; }
.order-map-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 512 / 320;
  max-width: 512px;
  overflow: hidden;
  margin-top: .65rem;
  border-radius: .6rem;
  background: #e6eee6;
}
.order-map-tile {
  position: absolute;
  width: 50%;
  height: 80%;
  max-width: none;
}
.order-map-pin {
  position: absolute;
  min-width: 1.55rem;
  padding-inline: .25rem;
  border: 2px solid white;
  border-radius: 1rem;
  background: #194c3b;
  color: white;
  font-weight: 750;
  text-align: center;
  transform: translate(-50%, -50%);
}
.order-map-pin[data-container="true"] { background: #714633; }
.order-map-credit { font-size: .875rem; }
