/* Request wizard. Mobile first; colours, fonts and radius come only from the tenant tokens (--cf-*). */

.wz {
  --wz-radius: var(--cf-radius);
  --wz-radius-sm: calc(var(--cf-radius) * 0.6);
  --wz-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px -12px rgb(0 0 0 / 0.12);
  --wz-shadow-lift: 0 2px 4px rgb(0 0 0 / 0.05), 0 16px 32px -16px rgb(0 0 0 / 0.22);
  --wz-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --wz-focus: 0 0 0 3px var(--cf-bg), 0 0 0 5px var(--cf-primary);
  max-width: 46rem;
  margin: 0 auto;
  padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  color: var(--cf-ink);
}

.wz *,
.wz *::before,
.wz *::after {
  box-sizing: border-box;
}

.wz-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wz-icon {
  flex: none;
  vertical-align: middle;
}

/* ---- Card ---------------------------------------------------------------------------------------- */

.wz-card {
  position: relative;
  padding: 1.5rem 1.25rem;
  background: var(--cf-bg);
  border: 1px solid var(--cf-border);
  border-radius: var(--wz-radius);
  box-shadow: var(--wz-shadow);
}

@media (min-width: 40rem) {
  .wz-card {
    padding: 2.25rem 2.5rem;
  }
}

.wz-eyebrow {
  margin: 0 0 0.25rem;
  color: var(--cf-primary);
  font-family: var(--cf-font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wz-title {
  margin: 0 0 1.25rem;
  font-family: var(--cf-font-heading);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  outline: none;
}

.wz-title::after {
  display: none;
}

.wz-lead {
  margin: 0 0 1.25rem;
  color: var(--cf-muted);
  font-size: 1.0625rem;
}

.wz-muted {
  color: var(--cf-muted);
}

.wz-prewrap {
  white-space: pre-wrap;
}

.wz-step {
  animation: wz-step-in 0.35s var(--wz-ease);
}

@keyframes wz-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.wz-section + .wz-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--cf-border);
}

.wz-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: var(--cf-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}

.wz-section-title::after,
.wz-group-title::after {
  display: none;
}

.wz-section-title .wz-icon {
  color: var(--cf-primary);
}

.wz-group-title {
  margin: 1.5rem 0 0.75rem;
  color: var(--cf-muted);
  font-family: var(--cf-font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wz-optional {
  margin-left: 0.25rem;
  color: var(--cf-muted);
  font-family: var(--cf-font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* ---- Progress ------------------------------------------------------------------------------------ */

.wz-progress {
  margin: -0.25rem 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--cf-border);
}

.wz-progress ol {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wz-progress-step {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  color: var(--cf-muted);
  font-size: 0.75rem;
  text-align: center;
}

.wz-progress-dot {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 2px solid var(--cf-border);
  border-radius: 999px;
  background: var(--cf-bg);
  color: var(--cf-muted);
  font: 700 0.875rem var(--cf-font-heading);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--wz-ease);
}

button.wz-progress-dot {
  cursor: pointer;
}

button.wz-progress-dot:hover {
  transform: scale(1.08);
}

.is-current .wz-progress-dot {
  border-color: var(--cf-primary);
  background: var(--cf-primary);
  color: #fff;
  box-shadow: 0 0 0 5px var(--cf-primary-tint);
}

.is-done .wz-progress-dot {
  border-color: var(--cf-primary);
  background: var(--cf-primary-tint);
  color: var(--cf-primary);
}

.is-current .wz-progress-label {
  color: var(--cf-ink);
  font-weight: 600;
}

.wz-progress-label {
  display: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 40rem) {
  .wz-progress-label {
    display: block;
  }
}

.wz-progress-bar {
  height: 4px;
  margin: 0.75rem 1.125rem 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cf-border);
}

.wz-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cf-primary), var(--cf-primary-hover));
  transition: width 0.45s var(--wz-ease);
}

/* ---- Tiles --------------------------------------------------------------------------------------- */

.wz-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.wz-tiles {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.wz-tiles-wide {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.wz-tiles-compact {
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

/* On a phone, tiles with an icon (and usually an explanation) get the full width: two side by side leave a word per
   line and push the text out of the tile. */
@media (max-width: 36rem) {
  .wz-tiles:has(.wz-tile-icon) {
    grid-template-columns: 1fr;
  }
}

.wz-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 4.5rem;
  padding: 1rem 2.75rem 1rem 1rem;
  border: 2px solid var(--cf-border);
  border-radius: var(--wz-radius-sm);
  background: var(--cf-bg);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.25s var(--wz-ease), transform 0.25s var(--wz-ease);
  -webkit-tap-highlight-color: transparent;
}

.wz-tile:hover {
  border-color: var(--cf-primary-soft);
  box-shadow: var(--wz-shadow-lift);
  transform: translateY(-2px);
}

.wz-tile:has(input:focus-visible) {
  box-shadow: var(--wz-focus);
}

.wz-tile.is-selected {
  border-color: var(--cf-primary);
  background: var(--cf-primary-tint);
}

.wz-tile.is-compact {
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.75rem 2rem 0.75rem 0.875rem;
  text-align: center;
}

.wz-tile-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: 999px;
  background: var(--cf-surface);
  color: var(--cf-primary);
  transition: background-color 0.2s, color 0.2s;
}

.wz-tile.is-selected .wz-tile-icon {
  background: var(--cf-primary);
  color: #fff;
}

.wz-tile-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
  overflow-wrap: anywhere;   /* a long word wraps inside the tile instead of running out of it */
  hyphens: auto;
}

.wz-tile-title {
  font-family: var(--cf-font-heading);
  font-weight: 700;
  line-height: 1.25;
}

.wz-tile-hint {
  color: var(--cf-muted);
  font-size: 0.875rem;
  line-height: 1.35;
}

.wz-tile-check {
  position: absolute;
  top: 50%;
  right: 0.875rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--cf-border);
  border-radius: 999px;
  color: transparent;
  transform: translateY(-50%);
  transition: all 0.2s var(--wz-ease);
}

.wz-tile.is-compact .wz-tile-check {
  right: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
}

.wz-tile.is-selected .wz-tile-check {
  border-color: var(--cf-primary);
  background: var(--cf-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

/* ---- Catalog items ------------------------------------------------------------------------------- */

.wz-items {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wz-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.625rem 0.625rem 0.75rem;
  border: 1px solid var(--cf-border);
  border-radius: var(--wz-radius-sm);
  background: var(--cf-bg);
  transition: border-color 0.2s, background-color 0.2s;
}

.wz-item.is-selected {
  border-color: var(--cf-primary-soft);
  background: var(--cf-primary-tint);
}

.wz-item-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: calc(var(--wz-radius-sm) * 0.7);
  background: var(--cf-surface);
  color: var(--cf-ink);
}

.wz-item.is-selected .wz-item-icon {
  background: var(--cf-bg);
  color: var(--cf-primary);
}

.wz-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wz-item-name {
  font-weight: 600;
  line-height: 1.3;
}

.wz-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  color: var(--cf-muted);
  font-size: 0.8125rem;
}

.wz-item-extra {
  grid-column: 1 / -1;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--cf-primary-soft);
}

/* Value & contents of a line: folded by default, the summary reads as a link. */
.wz-declare {
  margin-top: 0.5rem;
}

.wz-declare > summary {
  cursor: pointer;
  color: var(--cf-primary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0;
}

.wz-declare[open] > summary {
  margin-bottom: 0.5rem;
}

.wz-item-extra + .wz-item-extra {
  border-top: 0;
  padding-top: 0;
}

.wz-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.0625rem 0.5rem;
  border-radius: 999px;
  background: var(--cf-surface);
  color: var(--cf-ink);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---- Quantity stepper ---------------------------------------------------------------------------- */

.wz-stepper {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  border: 1px solid var(--cf-border);
  border-radius: 999px;
  background: var(--cf-bg);
}

.wz-stepper-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--cf-surface);
  color: var(--cf-ink);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.1s;
}

.wz-stepper-btn:hover:not(:disabled) {
  background: var(--cf-primary);
  color: #fff;
}

.wz-stepper-btn:active:not(:disabled) {
  transform: scale(0.92);
}

.wz-stepper-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.wz-stepper-btn:focus-visible {
  outline: none;
  box-shadow: var(--wz-focus);
}

.wz-stepper-value {
  width: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--cf-ink);
  font: 700 1rem var(--cf-font-heading);
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.wz-stepper-value::-webkit-outer-spin-button,
.wz-stepper-value::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.wz-stepper-value:focus-visible {
  outline: 2px solid var(--cf-primary);
  border-radius: 6px;
}

/* Phones: a slimmer stepper leaves room for the item name. */
@media (max-width: 30rem) {
  .wz-item {
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .wz-item-icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .wz-stepper-btn {
    width: 2.25rem;
    height: 2.25rem;
  }

  .wz-stepper-value {
    width: 2rem;
  }
}

/* ---- Odd-sized items ----------------------------------------------------------------------------- */

.wz-odd {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
  border: 2px dashed var(--cf-border);
  border-radius: var(--wz-radius-sm);
}

.wz-odd-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wz-odd-head > span:last-child {
  display: flex;
  flex-direction: column;
}

.wz-odd-item {
  padding: 1rem;
  border-radius: var(--wz-radius-sm);
  background: var(--cf-surface);
  animation: wz-step-in 0.3s var(--wz-ease);
}

.wz-odd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.wz-odd .wz-btn {
  justify-self: start;
}

/* ---- Form fields --------------------------------------------------------------------------------- */

.wz-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
  margin-bottom: 1rem;
}

.wz-label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.wz-input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--cf-border);
  border-radius: calc(var(--wz-radius-sm) * 0.7);
  background: var(--cf-bg);
  color: var(--cf-ink);
  font: inherit;
  font-size: 1rem; /* 16px: iOS does not zoom in on focus */
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea.wz-input {
  min-height: 0;
  resize: vertical;
}

.wz-input::placeholder {
  color: var(--cf-muted);
  opacity: 0.7;
}

.wz-input:hover {
  border-color: var(--cf-muted);
}

.wz-input:focus {
  outline: none;
  border-color: var(--cf-primary);
  box-shadow: 0 0 0 4px var(--cf-primary-tint);
}

.wz-input.is-invalid {
  border-color: var(--cf-primary);
  background: var(--cf-primary-tint);
}

.wz-input-short {
  max-width: 10rem;
}

.wz-hint {
  margin: 0;
  color: var(--cf-muted);
  font-size: 0.8125rem;
}

.wz-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
  color: var(--cf-primary);
  font-size: 0.875rem;
  font-weight: 600;
  animation: wz-shake 0.3s;
}

.wz-error > span {
  display: grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  border-radius: 999px;
  background: var(--cf-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

@keyframes wz-shake {
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.wz-row {
  display: grid;
  gap: 0 0.75rem;
}

@media (min-width: 30rem) {
  .wz-row-2,
  .wz-row-odd-foot,
  .wz-row-declare {
    grid-template-columns: 1fr 1fr;
  }

  .wz-row-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .wz-row-street {
    grid-template-columns: 1fr 9rem;
  }

  .wz-row-city {
    grid-template-columns: 9rem 1fr;
  }
}

.wz-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.wz-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.75rem 0;
  cursor: pointer;
  line-height: 1.45;
}

.wz-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wz-check-box {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  border: 2px solid var(--cf-border);
  border-radius: 7px;
  background: var(--cf-bg);
  color: transparent;
  transition: all 0.15s var(--wz-ease);
}

.wz-check:hover .wz-check-box {
  border-color: var(--cf-muted);
}

.wz-check input:checked + .wz-check-box {
  border-color: var(--cf-primary);
  background: var(--cf-primary);
  color: #fff;
}

.wz-check input:focus-visible + .wz-check-box {
  box-shadow: var(--wz-focus);
}

.wz-reveal {
  margin-top: 1rem;
  animation: wz-step-in 0.3s var(--wz-ease);
}

/* ---- Buttons ------------------------------------------------------------------------------------- */

.wz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1rem var(--cf-font-heading);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s var(--wz-ease), box-shadow 0.2s;
}

/* Phones: Back becomes a round icon button so the main action keeps its full label. */
@media (max-width: 30rem) {
  .wz-actions .wz-btn-ghost {
    width: 3rem;
    padding: 0;
  }

  .wz-actions .wz-btn-ghost span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

.wz-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.wz-btn:focus-visible {
  outline: none;
  box-shadow: var(--wz-focus);
}

.wz-btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.wz-btn-primary {
  flex: 1;
  background: var(--cf-primary);
  color: #fff;
  box-shadow: 0 8px 20px -10px var(--cf-primary);
}

.wz-btn-primary:hover:not(:disabled) {
  background: var(--cf-primary-hover);
}

.wz-btn-primary .wz-icon {
  transition: transform 0.2s var(--wz-ease);
}

.wz-btn-primary:hover .wz-icon {
  transform: translateX(3px);
}

.wz-btn-ghost {
  border-color: var(--cf-border);
  background: var(--cf-bg);
  color: var(--cf-ink);
}

.wz-btn-ghost:hover:not(:disabled) {
  border-color: var(--cf-ink);
}

.wz-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--cf-primary);
  font: 600 0.9375rem var(--cf-font-body);
  cursor: pointer;
}

.wz-link-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wz-link-btn:focus-visible {
  outline: 2px solid var(--cf-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Sticky bottom bar on phones, inline below the card on larger screens. */
.wz-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--cf-border);
  background: color-mix(in srgb, var(--cf-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wz-actions-inner {
  display: flex;
  gap: 0.75rem;
  max-width: 46rem;
  margin: 0 auto;
}

@media (min-width: 40rem) {
  .wz {
    padding-bottom: 0;
  }

  .wz-actions {
    position: static;
    margin-top: 1.25rem;
    padding: 0;
    border: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .wz-actions-inner {
    justify-content: space-between;
  }

  .wz-btn-primary {
    flex: 0 0 auto;
    min-width: 12rem;
    margin-left: auto;
  }
}

/* ---- Review -------------------------------------------------------------------------------------- */

.wz-review {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 40rem) {
  .wz-review {
    grid-template-columns: 1fr 1fr;
  }
}

.wz-review-card {
  padding: 1rem 1.125rem;
  border-radius: var(--wz-radius-sm);
  background: var(--cf-surface);
}

.wz-review-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.wz-review-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--cf-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
}

.wz-review-card h3::after {
  display: none;
}

.wz-review-card h3 .wz-icon {
  color: var(--cf-primary);
}

.wz-review-card p {
  margin: 0.25rem 0;
}

.wz-review-list {
  display: grid;
  gap: 0.25rem;
  margin: 0.5rem 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.wz-review-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.wz-qty {
  font-weight: 700;
  white-space: nowrap;
}

.wz-review-total {
  display: flex;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--cf-border);
}

.wz-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0;
}

.wz-route-arrow {
  color: var(--cf-primary);
}

.wz-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--cf-ink);
  color: var(--cf-bg);
  font-weight: 600;
  animation: wz-step-in 0.3s var(--wz-ease);
}

.wz-consent {
  padding-top: 0.5rem;
}

.wz-captcha {
  min-height: 65px;
  margin-top: 1rem;
}

/* ---- Notices and states -------------------------------------------------------------------------- */

.wz-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: -0.25rem 0 1.25rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: var(--wz-radius-sm);
  background: var(--cf-surface);
  font-size: 0.9375rem;
}

.wz-alert {
  margin: 1.25rem 0 0;
  padding: 0.875rem 1rem;
  border-left: 4px solid var(--cf-primary);
  border-radius: 6px;
  background: var(--cf-primary-tint);
  font-weight: 600;
}

.wz-state {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  min-height: 16rem;
  text-align: center;
}

.wz-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--cf-primary-tint);
  border-top-color: var(--cf-primary);
  border-radius: 999px;
  animation: wz-spin 0.8s linear infinite;
}

.wz-spinner-small {
  width: 1.125rem;
  height: 1.125rem;
  border-width: 2px;
  border-color: rgb(255 255 255 / 0.35);
  border-top-color: #fff;
}

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

/* ---- Done ---------------------------------------------------------------------------------------- */

.wz-done {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  text-align: center;
  animation: wz-step-in 0.4s var(--wz-ease);
}

.wz-done-check {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.25rem;
  border-radius: 999px;
  background: var(--cf-accent);
  color: #fff;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--cf-accent) 15%, transparent);
  animation: wz-pop 0.5s var(--wz-ease);
}

.wz-done-check .wz-icon path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: wz-draw 0.45s 0.25s var(--wz-ease) forwards;
}

@keyframes wz-pop {
  from { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.08); }
}

@keyframes wz-draw {
  to { stroke-dashoffset: 0; }
}

.wz-done-title {
  margin: 0 0 1rem;
  font-family: var(--cf-font-heading);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  font-weight: 800;
  outline: none;
}

.wz-done-title::after {
  display: none;
}

.wz-done .wz-muted {
  margin: 0;
}

.wz-done-number {
  display: inline-block;
  margin: 0.25rem 0 1.25rem;
  padding: 0.5rem 1.25rem;
  border: 2px dashed var(--cf-primary-soft);
  border-radius: var(--wz-radius-sm);
  background: var(--cf-primary-tint);
  color: var(--cf-primary);
  font: 800 1.5rem var(--cf-font-heading);
  letter-spacing: 0.04em;
}

.wz-done-text {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  color: var(--cf-muted);
}

.wz-done-text .wz-icon {
  margin-right: 0.25rem;
  color: var(--cf-accent);
}

@media (prefers-reduced-motion: reduce) {
  .wz *,
  .wz *::before,
  .wz *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .wz-done-check .wz-icon path {
    stroke-dashoffset: 0;
  }
}

/* ---- Uploads ------------------------------------------------------------------------------------- */

.wz-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0.75rem 0 0.375rem;
}

.wz-upload-btn {
  cursor: pointer;
}

.wz-upload-input:focus-visible + .wz-upload-btn {
  box-shadow: var(--wz-focus);
}

.wz-odd-photo {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  margin-bottom: 0.5rem;
}

.wz-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: 0.625rem;
  width: 100%;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.wz-file {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  animation: wz-step-in 0.3s var(--wz-ease);
}

.wz-file-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--cf-border);
  border-radius: calc(var(--wz-radius-sm) * 0.7);
  background: var(--cf-surface);
}

.wz-file-doc {
  display: grid;
  place-items: center;
  color: var(--cf-muted);
}

.wz-file.is-busy .wz-file-thumb {
  opacity: 0.6;
}

.wz-file.is-failed .wz-file-thumb {
  border-color: var(--cf-primary);
  opacity: 0.5;
}

.wz-file-name {
  overflow: hidden;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-file-error {
  color: var(--cf-primary);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.wz-file-remove {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.6);
  color: #fff;
  cursor: pointer;
}

.wz-file-remove:hover {
  background: var(--cf-primary);
}

.wz-file-remove:focus-visible {
  outline: none;
  box-shadow: var(--wz-focus);
}

.wz-file-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cf-border);
}

.wz-file-progress span {
  display: block;
  height: 100%;
  background: var(--cf-primary);
  transition: width 0.2s;
}

.wz-review-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.wz-review-thumbs img,
.wz-review-thumbs .wz-file-doc {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 8px;
  background: var(--cf-bg);
}

/* ---- Address lookup ------------------------------------------------------------------------------ */

.wz-lookup {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: -0.25rem 0 0;
  color: var(--cf-muted);
  font-size: 0.875rem;
}

.wz-lookup.is-found {
  color: var(--cf-accent);
  font-weight: 600;
}

.wz-spinner-tiny {
  width: 0.875rem;
  height: 0.875rem;
  border-width: 2px;
}

.wz-question {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--cf-primary);
  border-radius: 6px;
  background: var(--cf-primary-tint);
  white-space: pre-wrap;
}

.wz-supplement-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
