/**
 * Widget styles.
 *
 * Everything is scoped under .fw-root and driven by custom properties, so a
 * tenant's brand colour is a single --fw-primary override at runtime. No
 * element selectors leak out — the widget renders inside an iframe today, but
 * inline embedding must stay possible without restyling the host page.
 */

.fw-root {
  --fw-primary: #1f5f4a;
  --fw-primary-soft: color-mix(in srgb, var(--fw-primary) 8%, white);
  --fw-primary-border: color-mix(in srgb, var(--fw-primary) 28%, white);
  --fw-accent: #c8873b;

  --fw-ink: #16211d;
  --fw-ink-soft: #5b6a64;
  --fw-ink-faint: #8a978f;
  --fw-line: #e2e7e4;
  --fw-surface: #ffffff;
  --fw-canvas: #f6f8f7;
  --fw-danger: #b02a37;
  --fw-danger-soft: #fdf1f2;

  --fw-radius: 14px;
  --fw-radius-sm: 9px;
  --fw-shadow: 0 1px 2px rgb(22 33 29 / 6%), 0 8px 24px -12px rgb(22 33 29 / 18%);

  box-sizing: border-box;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fw-ink);
  background: var(--fw-canvas);
  /* Anchors the address overlay, which covers the widget and not the host page. */
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.fw-root *,
.fw-root *::before,
.fw-root *::after { box-sizing: inherit; }

/* ── Shell ─────────────────────────────────────────────────────────────── */

.fw-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--fw-surface);
  border-bottom: 1px solid var(--fw-line);
}

.fw-logo { height: 30px; width: auto; max-width: 150px; object-fit: contain; }

.fw-company { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }

.fw-progress-track {
  height: 3px;
  background: var(--fw-line);
  position: relative;
  overflow: hidden;
}

.fw-progress-bar {
  height: 100%;
  background: var(--fw-primary);
  border-radius: 0 3px 3px 0;
  transition: width 320ms cubic-bezier(.4, 0, .2, 1);
}

.fw-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 30px 20px 44px;
}

.fw-column {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
}

.fw-panel { animation: fw-in 260ms cubic-bezier(.2, .7, .3, 1); }

@keyframes fw-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fw-panel { animation: none; }
  .fw-progress-bar { transition: none; }
}

/* ── Typography ────────────────────────────────────────────────────────── */

.fw-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--fw-ink-faint);
  margin-bottom: 10px;
}

.fw-title {
  font-size: 25px;
  line-height: 1.22;
  font-weight: 650;
  letter-spacing: -0.021em;
  margin: 0 0 8px;
}

.fw-subtitle {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fw-ink-soft);
  margin: 0 0 24px;
  max-width: 52ch;
}

/* ── Option cards ──────────────────────────────────────────────────────── */

.fw-options { display: grid; gap: 10px; }
.fw-options[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.fw-options[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 560px) {
  .fw-options[data-columns="3"] { grid-template-columns: repeat(2, 1fr); }
}

.fw-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  font: inherit;
  color: var(--fw-ink);
  background: var(--fw-surface);
  border: 1.5px solid var(--fw-line);
  border-radius: var(--fw-radius);
  cursor: pointer;
  transition: border-color 140ms, background 140ms, transform 140ms;
}

.fw-options[data-columns="2"] .fw-option,
.fw-options[data-columns="3"] .fw-option {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 14px;
}

.fw-option:hover {
  border-color: var(--fw-primary-border);
  box-shadow: 0 2px 10px -6px rgb(22 33 29 / 22%);
}

.fw-option:active { transform: scale(.99); }

.fw-option[aria-pressed="true"] {
  border-color: var(--fw-primary);
  background: var(--fw-primary-soft);
  color: var(--fw-primary);
}

/*
 * A tick on the chosen card. With the auto-advance there is no confirm button
 * to acknowledge the tap, and on the way back through the wizard this is the
 * only thing showing what was answered last time.
 *
 * Set on the label rather than in a corner: the corners are already taken by
 * the badge and the illustration, and an inline tick cannot collide with a hint
 * that runs long.
 */
.fw-option[aria-pressed="true"] .fw-option-label::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 7px;
  vertical-align: -2px;
  border-radius: 50%;
  background: var(--fw-primary) center / 10px 10px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6.4 4.7 9 10 3'/%3E%3C/svg%3E");
}

.fw-option:focus-visible {
  outline: 2px solid var(--fw-primary);
  outline-offset: 2px;
}

.fw-option-art {
  flex: none;
  width: 58px;
  color: var(--fw-ink-soft);
}

.fw-option[aria-pressed="true"] .fw-option-art { color: var(--fw-primary); }
.fw-option-art svg { width: 100%; height: auto; display: block; }

.fw-option-body { min-width: 0; }
.fw-option-label { font-weight: 600; font-size: 15px; line-height: 1.3; }

.fw-option-hint {
  font-size: 13px;
  line-height: 1.45;
  color: var(--fw-ink-soft);
  margin-top: 3px;
}

.fw-option[aria-pressed="true"] .fw-option-hint {
  color: color-mix(in srgb, var(--fw-primary) 72%, var(--fw-ink-soft));
}

.fw-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--fw-accent);
  color: white;
}

/* ── Fields ────────────────────────────────────────────────────────────── */

.fw-fields { display: grid; gap: 16px; }
.fw-fields[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 560px) {
  .fw-fields[data-columns="2"] { grid-template-columns: 1fr; }
}

.fw-field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.fw-field-hint {
  font-size: 12.5px;
  color: var(--fw-ink-soft);
  margin-top: 5px;
  line-height: 1.45;
}

.fw-input-wrap { position: relative; display: flex; align-items: center; }

.fw-input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* 16px stops iOS Safari zooming the page on focus. */
  color: var(--fw-ink);
  background: var(--fw-surface);
  border: 1.5px solid var(--fw-line);
  border-radius: var(--fw-radius-sm);
  transition: border-color 140ms, box-shadow 140ms;
}

.fw-input:focus {
  outline: none;
  border-color: var(--fw-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fw-primary) 14%, transparent);
}

.fw-input[data-has-unit="true"] { padding-right: 46px; }

.fw-input-unit {
  position: absolute;
  right: 14px;
  font-size: 14px;
  color: var(--fw-ink-faint);
  pointer-events: none;
}

/* ── Counters ──────────────────────────────────────────────────────────── */

.fw-counters { display: grid; gap: 8px; }

.fw-counter {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  background: var(--fw-surface);
  border: 1.5px solid var(--fw-line);
  border-radius: var(--fw-radius-sm);
  transition: border-color 140ms, background 140ms;
}

/* A row that has been answered reads as done at a glance. */
.fw-counter[data-filled] {
  border-color: var(--fw-primary-border);
  background: var(--fw-primary-soft);
}

.fw-counter-icon {
  flex: none;
  width: 30px;
  color: var(--fw-ink-faint);
  transition: color 140ms;
}

.fw-counter-icon svg { width: 100%; height: auto; display: block; }
.fw-counter[data-filled] .fw-counter-icon { color: var(--fw-primary); }

.fw-counter-body { flex: 1; min-width: 0; }
.fw-counter-label { font-weight: 600; font-size: 14.5px; }
.fw-counter-hint { font-size: 12.5px; color: var(--fw-ink-soft); margin-top: 2px; }

.fw-stepper { display: flex; align-items: center; gap: 4px; flex: none; }

.fw-stepper-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 19px;
  line-height: 1;
  color: var(--fw-ink);
  background: var(--fw-canvas);
  border: 1.5px solid var(--fw-line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 140ms, background 140ms;
}

.fw-stepper-btn:hover:not(:disabled) { border-color: var(--fw-primary); color: var(--fw-primary); }
.fw-stepper-btn:disabled { opacity: .4; cursor: default; }
.fw-stepper-btn:focus-visible { outline: 2px solid var(--fw-primary); outline-offset: 2px; }

.fw-stepper-value {
  min-width: 34px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  font-size: 16px;
}

/* ── Facade step: which wall am I at? ──────────────────────────────────── */

.fw-plan {
  margin: 0 0 20px;
  padding: 10px 14px 12px;
  background: var(--fw-surface);
  border: 1.5px solid var(--fw-line);
  border-radius: var(--fw-radius);
}

.fw-plan-svg {
  display: block;
  width: 100%;
  max-width: 292px;
  height: auto;
  margin: 0 auto;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fw-plan-house {
  fill: var(--fw-canvas);
  stroke: var(--fw-line);
  stroke-width: 1.5;
}

.fw-plan-neighbour {
  fill: none;
  stroke: var(--fw-ink-faint);
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
  opacity: .45;
}

.fw-plan-wall {
  stroke: var(--fw-ink-faint);
  stroke-width: 3;
  opacity: .5;
}

.fw-plan-wall.is-active {
  stroke: var(--fw-primary);
  stroke-width: 7;
  opacity: 1;
}

.fw-plan-garden circle {
  fill: none;
  stroke: var(--fw-ink-faint);
  stroke-width: 1.4;
  opacity: .35;
}

.fw-plan-street { fill: var(--fw-canvas); stroke: var(--fw-line); stroke-width: 1.4; }
.fw-plan-street-line { stroke: var(--fw-ink-faint); stroke-width: 1.6; stroke-dasharray: 9 8; opacity: .5; }

.fw-plan-label {
  fill: var(--fw-ink-faint);
  stroke: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fw-plan-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 8px;
}

.fw-plan-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--fw-ink-soft);
}

.fw-plan-key::before {
  content: '';
  width: 16px;
  height: 4px;
  border-radius: 2px;
  flex: none;
}

.fw-plan-key.is-active::before { background: var(--fw-primary); }

.fw-plan-key.is-neighbour::before {
  height: 0;
  border-top: 2px dashed var(--fw-ink-faint);
  opacity: .7;
}

/* ── Facade step ───────────────────────────────────────────────────────── */

.fw-copy-previous {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--fw-primary);
  background: var(--fw-primary-soft);
  border: 1.5px solid var(--fw-primary-border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 140ms;
}

.fw-copy-previous::before { content: '⧉'; font-size: 14px; }
.fw-copy-previous:hover { background: color-mix(in srgb, var(--fw-primary) 14%, white); }
.fw-copy-previous:focus-visible { outline: 2px solid var(--fw-primary); outline-offset: 2px; }

.fw-subheading {
  margin: 22px 0 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fw-ink-faint);
}

.fw-facade-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--fw-primary-soft);
  border-radius: var(--fw-radius-sm);
  font-size: 13.5px;
  color: var(--fw-ink-soft);
}

.fw-facade-total strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--fw-primary);
  font-variant-numeric: tabular-nums;
}

.fw-facade-total[hidden] { display: none; }

/* ── Checkbox ──────────────────────────────────────────────────────────── */

.fw-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  background: var(--fw-surface);
  border: 1.5px solid var(--fw-line);
  border-radius: var(--fw-radius-sm);
  cursor: pointer;
  transition: border-color 140ms;
}

.fw-check:hover { border-color: var(--fw-primary-border); }
.fw-check input { margin: 2px 0 0; width: 17px; height: 17px; accent-color: var(--fw-primary); flex: none; }
.fw-check-text { font-size: 13.5px; line-height: 1.5; color: var(--fw-ink-soft); }
.fw-check-text strong { color: var(--fw-ink); font-weight: 600; }

.fw-check-icon { flex: none; width: 28px; color: var(--fw-ink-faint); }
.fw-check-icon svg { width: 100%; height: auto; display: block; }
.fw-check:has(input:checked) { border-color: var(--fw-primary-border); background: var(--fw-primary-soft); }
.fw-check:has(input:checked) .fw-check-icon { color: var(--fw-primary); }

/* ── Errors ────────────────────────────────────────────────────────────── */

.fw-errors {
  margin-top: 16px;
  padding: 11px 14px;
  background: var(--fw-danger-soft);
  border: 1px solid color-mix(in srgb, var(--fw-danger) 24%, white);
  border-radius: var(--fw-radius-sm);
  color: var(--fw-danger);
  font-size: 13.5px;
  line-height: 1.5;
}

.fw-errors ul { margin: 0; padding-left: 17px; }

/* ── Live estimate ─────────────────────────────────────────────────────── */

.fw-live {
  margin-top: 22px;
  padding: 13px 16px;
  background: var(--fw-primary-soft);
  border: 1px solid var(--fw-primary-border);
  border-radius: var(--fw-radius-sm);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fw-live-label { font-size: 13px; color: var(--fw-ink-soft); }

.fw-live-value {
  font-size: 19px;
  font-weight: 700;
  color: var(--fw-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ── Footer nav ────────────────────────────────────────────────────────── */

/*
 * In the flow, directly under the question — not pinned to the bottom of the
 * viewport. Pinned, the customer had to scroll past the whole step to reach a
 * button that was often already answered; here “Volgende” sits exactly where
 * the eye lands after the last field.
 */
.fw-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--fw-line);
}

.fw-footer-spacer { flex: 1; }

/* Stands in for the primary button on steps that advance by themselves. */
.fw-footer-hint {
  font-size: 13px;
  color: var(--fw-ink-faint);
  text-align: right;
  line-height: 1.4;
}

.fw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 140ms, border-color 140ms, transform 140ms, opacity 140ms;
}

.fw-btn:active { transform: scale(.98); }
.fw-btn:focus-visible { outline: 2px solid var(--fw-primary); outline-offset: 2px; }

.fw-btn-primary {
  background: var(--fw-primary);
  color: white;
  box-shadow: 0 1px 2px rgb(22 33 29 / 12%), 0 6px 16px -10px var(--fw-primary);
}

.fw-btn-primary:hover { background: color-mix(in srgb, var(--fw-primary) 88%, black); }
.fw-btn-primary:disabled { opacity: .5; cursor: default; box-shadow: none; }

.fw-btn-ghost { background: transparent; color: var(--fw-ink-soft); border-color: var(--fw-line); }
.fw-btn-ghost:hover { color: var(--fw-ink); border-color: var(--fw-ink-faint); }

/* ── Result ────────────────────────────────────────────────────────────── */

.fw-price-card {
  background: var(--fw-surface);
  border: 1px solid var(--fw-line);
  border-radius: var(--fw-radius);
  box-shadow: var(--fw-shadow);
  overflow: hidden;
  margin-bottom: 18px;
}

.fw-price-head {
  padding: 26px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--fw-primary-soft), transparent);
  border-bottom: 1px solid var(--fw-line);
}

.fw-price-amount {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fw-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.fw-price-caption { font-size: 13.5px; color: var(--fw-ink-soft); margin-top: 7px; }

.fw-price-vat {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 11px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--fw-primary-soft);
  color: var(--fw-primary);
}

.fw-breakdown { padding: 6px 0; }

.fw-group-head {
  padding: 14px 24px 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--fw-ink-faint);
}

.fw-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 8px 24px;
  font-size: 14px;
}

.fw-line + .fw-line { border-top: 1px solid color-mix(in srgb, var(--fw-line) 60%, transparent); }
.fw-line-label { font-weight: 500; }
.fw-line-amount { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

.fw-line-meta {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--fw-ink-faint);
}

.fw-auto-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 4px;
  background: var(--fw-canvas);
  color: var(--fw-ink-faint);
  vertical-align: 1px;
}

.fw-totals { padding: 14px 24px 20px; border-top: 1px solid var(--fw-line); background: var(--fw-canvas); }

.fw-total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  font-size: 14px;
}

.fw-total-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.fw-total-row[data-discount] { color: var(--fw-primary); }

.fw-total-row[data-grand] {
  margin-top: 9px;
  padding-top: 12px;
  border-top: 1.5px solid var(--fw-line);
  font-size: 17px;
  font-weight: 700;
}

.fw-note {
  padding: 13px 16px;
  background: var(--fw-surface);
  border: 1px solid var(--fw-line);
  border-left: 3px solid var(--fw-accent);
  border-radius: var(--fw-radius-sm);
  font-size: 13px;
  line-height: 1.55;
  color: var(--fw-ink-soft);
  margin-bottom: 12px;
}

.fw-derivation {
  margin-bottom: 18px;
  border: 1px solid var(--fw-line);
  border-radius: var(--fw-radius-sm);
  background: var(--fw-surface);
  overflow: hidden;
}

.fw-derivation summary {
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.fw-derivation summary::-webkit-details-marker { display: none; }
.fw-derivation summary::after { content: ' ▾'; color: var(--fw-ink-faint); }
.fw-derivation[open] summary::after { content: ' ▴'; }
.fw-derivation ul { margin: 0; padding: 0 16px 14px 33px; font-size: 13px; color: var(--fw-ink-soft); line-height: 1.65; }

.fw-actions { display: grid; gap: 10px; }

.fw-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid color-mix(in srgb, white 35%, transparent);
  border-top-color: white;
  border-radius: 50%;
  animation: fw-spin 640ms linear infinite;
}

@keyframes fw-spin { to { transform: rotate(360deg); } }

.fw-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Address lookup overlay ────────────────────────────────────────────── */

/*
 * Covers the widget rather than the host page: the widget is usually framed,
 * and a dialog that escapes the frame is not ours to place.
 */
.fw-address {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: color-mix(in srgb, var(--fw-ink) 42%, transparent);
  animation: fw-in 180ms cubic-bezier(.2, .7, .3, 1);
}

.fw-address-sheet {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: 26px 24px 22px;
  background: var(--fw-surface);
  border-radius: var(--fw-radius);
  box-shadow: var(--fw-shadow);
}

.fw-address-sheet.is-wide { max-width: 560px; }

.fw-address-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  color: var(--fw-ink-faint);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.fw-address-close:hover { background: var(--fw-canvas); color: var(--fw-ink); }
.fw-address-close:focus-visible { outline: 2px solid var(--fw-primary); outline-offset: 2px; }

.fw-address-title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.fw-address-lead { margin: 0 0 16px; font-size: 14px; color: var(--fw-ink-soft); }

.fw-address-status {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--fw-ink-faint);
}

.fw-address-search { position: relative; }

.fw-address-results {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  border: 1.5px solid var(--fw-line);
  border-radius: var(--fw-radius-sm);
  overflow: hidden;
}

.fw-address-results button {
  display: block;
  width: 100%;
  padding: 10px 13px;
  font: inherit;
  font-size: 14px;
  text-align: left;
  color: var(--fw-ink);
  background: var(--fw-surface);
  border: 0;
  border-bottom: 1px solid var(--fw-line);
  cursor: pointer;
}

.fw-address-results li:last-child button { border-bottom: 0; }
.fw-address-results button:hover { background: var(--fw-primary-soft); }
.fw-address-results button:focus-visible { outline: 2px solid var(--fw-primary); outline-offset: -2px; }

.fw-address-skip {
  margin-top: 18px;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--fw-ink-soft);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

.fw-address-loading { padding: 26px 0; text-align: center; }

.fw-address-spinner {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  border: 2.5px solid var(--fw-line);
  border-top-color: var(--fw-primary);
  border-radius: 50%;
  animation: fw-spin 720ms linear infinite;
}

.fw-address-photo {
  position: relative;
  margin: 0 0 16px;
  overflow: hidden;
  background: var(--fw-canvas);
  border: 1px solid var(--fw-line);
  border-radius: var(--fw-radius-sm);
  line-height: 0;
}

.fw-address-photo img { width: 100%; height: auto; display: block; }

.fw-address-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Bright enough to read against roof tiles, grass and asphalt alike. */
.fw-address-outline polygon {
  fill: color-mix(in srgb, var(--fw-accent) 22%, transparent);
  stroke: #ffcf6b;
  stroke-width: 2.5;
  stroke-linejoin: round;
  paint-order: stroke;
}

.fw-address-summary {
  padding: 14px 16px;
  background: var(--fw-canvas);
  border-radius: var(--fw-radius-sm);
}

.fw-address-type { font-size: 14px; font-weight: 650; margin-bottom: 8px; }

.fw-address-facades { margin: 0; padding: 0; list-style: none; }

.fw-address-facades li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--fw-line);
}

.fw-address-facades li:last-child { border-bottom: 0; }

.fw-address-facade { font-size: 14px; font-weight: 600; }
.fw-address-area { font-size: 14px; font-weight: 650; white-space: nowrap; }

.fw-address-dims {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--fw-ink-soft);
}

.fw-address-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1.5px solid var(--fw-line);
  font-size: 14px;
}

.fw-address-total strong { font-size: 17px; }

.fw-address-notes {
  margin: 14px 0 0;
  padding: 12px 14px 12px 30px;
  font-size: 13px;
  color: var(--fw-ink-soft);
  background: color-mix(in srgb, var(--fw-accent) 8%, white);
  border-radius: var(--fw-radius-sm);
}

.fw-address-notes li { margin: 3px 0; }

.fw-address-actions { display: flex; gap: 10px; margin-top: 18px; }

.fw-address-primary,
.fw-address-secondary {
  flex: 1;
  padding: 12px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  border-radius: var(--fw-radius-sm);
  cursor: pointer;
}

.fw-address-primary {
  color: white;
  background: var(--fw-primary);
  border: 1.5px solid var(--fw-primary);
}

.fw-address-secondary {
  color: var(--fw-ink);
  background: var(--fw-surface);
  border: 1.5px solid var(--fw-line);
}

.fw-address-primary:hover { background: color-mix(in srgb, var(--fw-primary) 88%, black); }
.fw-address-secondary:hover { background: var(--fw-canvas); }

.fw-address-primary:focus-visible,
.fw-address-secondary:focus-visible { outline: 2px solid var(--fw-primary); outline-offset: 2px; }

/* The intro screen's second route in, next to Start. */
.fw-address-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 11px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  color: var(--fw-primary);
  background: var(--fw-primary-soft);
  border: 1.5px solid var(--fw-primary-border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 140ms;
}

.fw-address-cta::before { content: '⌖'; font-size: 16px; }
.fw-address-cta:hover { background: color-mix(in srgb, var(--fw-primary) 14%, white); }
.fw-address-cta:focus-visible { outline: 2px solid var(--fw-primary); outline-offset: 2px; }

.fw-address-cta-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--fw-ink-faint);
}

@media (prefers-reduced-motion: reduce) {
  .fw-address { animation: none; }
  .fw-address-spinner { animation-duration: 2s; }
}

/* A measured facade states its dimensions instead of asking for them. */
.fw-facade-measured {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--fw-primary-soft);
  border: 1.5px solid var(--fw-primary-border);
  border-radius: var(--fw-radius-sm);
}

.fw-facade-measured-label { font-size: 12px; color: var(--fw-ink-soft); }
.fw-facade-measured-value { font-size: 15px; font-weight: 650; }

.fw-facade-measured button {
  padding: 7px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--fw-primary);
  background: var(--fw-surface);
  border: 1.5px solid var(--fw-primary-border);
  border-radius: 999px;
  cursor: pointer;
}

.fw-facade-measured button:focus-visible { outline: 2px solid var(--fw-primary); outline-offset: 2px; }
