:root {
  --color-ivory: #f7f3ec;
  --color-cream: #efe7dc;
  --color-forest: #24423a;
  --color-rose: #b7867e;
  --color-rose-text: #7b504b;
  --color-sage: #e5eee7;
  --color-sage-text: #4f6d61;
  --color-ink: #26332f;
  --color-muted: #53625d;
  --color-white: #ffffff;
  --color-line: #dcd5ca;
  --color-error: #8b332e;
  --content-width: 1160px;
  --shadow-soft: 0 18px 50px rgba(44, 60, 52, 0.08);
  --shadow-card: 0 10px 26px rgba(38, 51, 47, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-ivory);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(183, 134, 126, 0.8);
  outline-offset: 4px;
}

.order-container {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--color-white);
  background: var(--color-forest);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.order-header {
  background: rgba(247, 243, 236, 0.94);
  border-bottom: 1px solid rgba(220, 213, 202, 0.75);
  backdrop-filter: blur(12px);
}

.order-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 1px;
  letter-spacing: 0.13em;
}

.brand-name {
  color: var(--color-forest);
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-forest);
  border-bottom: 1px solid rgba(36, 66, 58, 0.32);
  font-size: 13px;
  font-weight: 700;
}

.back-link span {
  font-size: 16px;
  font-weight: 400;
}

.order-intro {
  max-width: 760px;
  padding: 76px 0 48px;
}

.eyebrow,
.step-kicker {
  margin: 0 0 15px;
  color: var(--color-rose-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--color-forest);
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(44px, 5.2vw, 70px);
  line-height: 0.99;
}

.order-lede {
  max-width: 640px;
  margin-bottom: 27px;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.7;
}

.prototype-banner {
  display: inline-flex;
  margin: 0;
  padding: 11px 15px;
  color: var(--color-sage-text);
  background: #e8f0ea;
  border-left: 3px solid var(--color-sage-text);
  border-radius: 4px 10px 10px 4px;
  font-size: 12px;
  font-weight: 700;
}

.order-scope-note {
  display: grid;
  gap: 4px;
  margin: -4px 0 30px;
  padding: 16px 18px;
  color: var(--color-sage-text);
  background: #e8f0ea;
  border-left: 3px solid var(--color-sage-text);
  border-radius: 4px 10px 10px 4px;
  font-size: 13px;
}

.order-scope-note strong {
  color: var(--color-forest);
}

.future-consent-preview {
  padding: 21px 23px;
  background: #f5f1ea;
  border: 1px dashed var(--color-line);
  border-radius: 15px;
}

.future-consent-preview legend {
  font-size: 19px;
}

.future-consent-preview[disabled] {
  opacity: 1;
}

.local-handoff-panel {
  padding: 18px 20px;
  margin-bottom: 30px;
  background: #eef3ed;
  border: 1px solid #cbdacb;
  border-radius: var(--radius-sm);
}

.local-handoff-panel legend {
  margin-bottom: 8px;
  font-size: 19px;
}

.local-handoff-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #ece6dc;
}

.local-checkout-panel {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 20px;
  background: #f1f5ef;
  border: 1px solid #bfd0c0;
  border-radius: var(--radius-sm);
}

.local-checkout-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.local-checkout-heading h3 {
  margin: 0;
  font-size: 24px;
}

.local-checkout-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--color-sage-text);
  background: #e0ebdf;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.local-payment-state {
  margin: 0;
  color: var(--color-forest);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.local-payment-state[data-state="error"] {
  color: var(--color-error);
}

.simulated-provider-controls {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #d8e2d7;
}

.simulated-provider-label {
  margin: 0;
  color: var(--color-forest);
  font-size: 12px;
  font-weight: 750;
}

.simulated-provider-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.handoff-feedback {
  margin: 0;
  color: var(--color-sage-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.handoff-feedback[data-state="error"] {
  color: var(--color-error);
}

.future-consent-preview[disabled] .check-choice {
  cursor: default;
}

.future-consent-preview[disabled] .check-choice span {
  color: var(--color-muted);
}

.order-layout {
  display: grid;
  grid-template-areas: "form summary";
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 36px;
  padding-bottom: 100px;
}

.order-form {
  grid-area: form;
  min-width: 0;
}

.step-progress {
  margin-bottom: 22px;
  padding: 21px 24px 22px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.progress-status {
  margin-bottom: 15px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-list li {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding-top: 11px;
  color: var(--color-muted);
  border-top: 1px solid var(--color-line);
}

.step-list li span {
  color: var(--color-rose-text);
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: 18px;
  line-height: 1;
}

.step-list li strong {
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.25;
}

.step-list li[aria-current="step"] {
  color: var(--color-forest);
  border-top: 2px solid var(--color-rose-text);
}

.step-list li[aria-current="step"] span {
  color: var(--color-rose-text);
}

.error-summary {
  margin-bottom: 20px;
  padding: 13px 16px;
  color: var(--color-error);
  background: #f9e9e4;
  border: 1px solid #d9aaa1;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}

.order-step,
.completion-panel {
  padding: 42px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.step-heading {
  margin-bottom: 35px;
  padding-bottom: 27px;
  border-bottom: 1px solid #ece6dc;
}

.step-heading .step-kicker {
  margin-bottom: 10px;
}

.step-heading h2,
.completion-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 49px);
  line-height: 1.02;
}

.step-heading p:last-child,
.completion-panel > p:not(.eyebrow) {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
}

.step-heading h2:focus-visible,
.completion-panel h2:focus-visible {
  outline-offset: 7px;
}

fieldset,
.form-fieldset {
  min-width: 0;
  padding: 0;
  margin: 0 0 30px;
  border: 0;
}

legend {
  width: 100%;
  padding: 0;
  margin-bottom: 7px;
  color: var(--color-forest);
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.2;
}

.field-help {
  margin: 0 0 17px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.55;
}

.choice-grid,
.tone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.gift-choice,
.tone-choice,
.addon-choice,
.check-choice {
  cursor: pointer;
}

.gift-choice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 20px;
  background: #fbfaf7;
  border: 1px solid var(--color-line);
  border-radius: 15px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.gift-choice:hover,
.gift-choice:focus-within {
  border-color: var(--color-rose-text);
  box-shadow: 0 7px 16px rgba(38, 51, 47, 0.06);
}

.gift-choice:has(input:checked) {
  background: #f4ebe5;
  border-color: var(--color-rose-text);
}

.gift-choice input,
.tone-choice input,
.addon-choice input,
.check-choice input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--color-forest);
}

.choice-content,
.addon-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.choice-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.choice-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--color-rose-text);
  background: #f2dfd9;
  border-radius: 50%;
  font-size: 15px;
}

.choice-price {
  color: var(--color-rose-text);
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: 23px;
  line-height: 1;
  white-space: nowrap;
}

.choice-content strong,
.addon-content strong {
  color: var(--color-forest);
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.12;
}

.choice-content > span:last-child,
.addon-content > span:last-child {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.55;
}

.field-error {
  min-height: 0;
  padding: 0;
  margin: 8px 0 0;
  color: var(--color-error);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.field-error:not(:empty) {
  padding: 3px 0;
}

.addon-fieldset {
  padding: 22px 23px;
  background: var(--color-sage);
  border-radius: 15px;
}

.addon-fieldset legend {
  font-size: 19px;
}

.addon-choice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.addon-choice:focus-within {
  outline: 3px solid rgba(79, 109, 97, 0.35);
  outline-offset: 5px;
}

.addon-content {
  gap: 7px;
}

.addon-content .choice-topline {
  align-items: baseline;
}

.addon-content .choice-price {
  font-size: 20px;
}

.required-label {
  display: inline-block;
  margin-left: 6px;
  color: var(--color-rose-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-forest);
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  color: var(--color-ink);
  background: #fcfbf8;
  border: 1px solid #cfc8bc;
  border-radius: 10px;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field input,
.field select {
  min-height: 49px;
  padding: 10px 13px;
}

.field textarea {
  min-height: 110px;
  padding: 12px 13px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--color-white);
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(36, 66, 58, 0.13);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.photo-fieldset[aria-invalid="true"],
.choice-fieldset[aria-invalid="true"],
.tone-fieldset[aria-invalid="true"],
.consent-fieldset[aria-invalid="true"] {
  border-color: var(--color-error);
}

.privacy-note,
.delivery-note {
  margin: -4px 0 29px;
  padding: 13px 15px;
  color: var(--color-muted);
  background: #f8f5ef;
  border-left: 3px solid var(--color-rose);
  border-radius: 4px 9px 9px 4px;
  font-size: 12px;
  line-height: 1.55;
}

.privacy-note span {
  margin-right: 7px;
  color: var(--color-rose-text);
}

.photo-fieldset {
  margin-bottom: 30px;
}

.drop-zone {
  display: flex;
  align-items: center;
  min-height: 190px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 25px;
  color: var(--color-muted);
  background: #f5f8f4;
  border: 1px dashed #9bad9f;
  border-radius: 15px;
  cursor: pointer;
  text-align: center;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.drop-zone:hover,
.drop-zone:focus-within,
.drop-zone.is-dragging {
  background: #edf4ee;
  border-color: var(--color-forest);
}

.drop-icon {
  display: inline-grid;
  width: 41px;
  height: 41px;
  place-items: center;
  color: var(--color-forest);
  background: #dfeae1;
  border-radius: 50%;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}

.drop-zone strong {
  color: var(--color-forest);
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
}

.drop-zone > span:last-of-type {
  font-size: 12px;
}

.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;
}

.photo-count {
  margin: 17px 0 11px;
  color: var(--color-forest);
  font-size: 12px;
  font-weight: 800;
}

.photo-list,
.review-photo-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.photo-item {
  position: relative;
  min-width: 0;
  padding-bottom: 8px;
  background: #f8f5ef;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  overflow: hidden;
}

.photo-item img,
.review-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.photo-item figcaption {
  overflow: hidden;
  padding: 6px 7px 0;
  color: var(--color-muted);
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-photo {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--color-forest);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(36, 66, 58, 0.16);
  border-radius: 50%;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.remove-photo:hover {
  color: var(--color-error);
  background: var(--color-white);
}

.tone-grid {
  grid-template-columns: 1fr;
}

.tone-choice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px 17px;
  background: #fbfaf7;
  border: 1px solid var(--color-line);
  border-radius: 12px;
}

.tone-choice:hover,
.tone-choice:focus-within {
  border-color: var(--color-rose-text);
}

.tone-choice:has(input:checked) {
  background: #f5ece7;
  border-color: var(--color-rose-text);
}

.tone-choice > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tone-choice strong {
  color: var(--color-forest);
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.15;
}

.tone-choice small {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.5;
}

.imaginative-note {
  margin: 13px 0 0;
  padding: 12px 14px;
  color: var(--color-sage-text);
  background: #e8f0ea;
  border-left: 3px solid var(--color-sage-text);
  border-radius: 4px 9px 9px 4px;
  font-size: 12px;
  line-height: 1.55;
}

.field-stack {
  display: grid;
  gap: 25px;
}

.field-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-top: 7px;
}

.field-meta .field-help {
  margin: 0;
}

.field-meta > span {
  flex: 0 0 auto;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

.delivery-note {
  margin: 22px 0 0;
}

.consent-fieldset {
  padding: 22px 23px 20px;
  background: #f8f5ef;
  border-radius: 15px;
}

.consent-fieldset legend {
  font-size: 19px;
}

.check-choice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 0;
  color: var(--color-ink);
  font-size: 13px;
  line-height: 1.5;
}

.check-choice:focus-within {
  outline: 3px solid rgba(79, 109, 97, 0.35);
  outline-offset: 4px;
}

.check-choice input {
  margin-top: 2px;
}

.consent-fieldset .field-error {
  margin-top: 6px;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 34px;
}

.step-actions-split {
  justify-content: space-between;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button span {
  font-size: 16px;
  font-weight: 400;
}

.button-forest {
  color: var(--color-white);
  background: var(--color-forest);
  box-shadow: 0 8px 18px rgba(36, 66, 58, 0.12);
}

.button-forest:hover {
  background: #31584b;
}

.button-outline {
  color: var(--color-forest);
  background: transparent;
  border-color: #aebbb3;
}

.button-outline:hover {
  background: #f0f5f1;
  border-color: var(--color-forest);
}

.order-summary {
  grid-area: summary;
  position: sticky;
  top: 24px;
  min-width: 0;
}

.summary-details {
  overflow: hidden;
  background: var(--color-forest);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.summary-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 23px;
  color: var(--color-white);
  cursor: pointer;
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: 25px;
  list-style: none;
}

.summary-details summary::-webkit-details-marker {
  display: none;
}

.summary-toggle {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #d9c293;
  font-family: Arial, sans-serif;
  font-size: 0;
  line-height: 1;
}

.summary-toggle::before {
  content: "↓";
  font-size: 18px;
  transition: transform 180ms ease;
}

.summary-details[open] .summary-toggle {
  transform: none;
}

.summary-details[open] .summary-toggle::before {
  content: "↑";
}

.summary-body {
  padding: 0 23px 23px;
}

.summary-main-row,
.summary-addon-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid rgba(224, 235, 225, 0.18);
}

.summary-main-row strong,
.summary-addon-row strong {
  display: block;
  max-width: 190px;
  color: var(--color-white);
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.15;
}

.summary-main-row > span:last-child,
.summary-addon-row > span:last-child {
  flex: 0 0 auto;
  color: #e7cfab;
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: 18px;
}

.summary-label {
  display: block;
  margin-bottom: 5px;
  color: #bdd0c5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  padding: 19px 0 9px;
  border-top: 1px solid rgba(224, 235, 225, 0.35);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 750;
}

.summary-total strong {
  color: #e7cfab;
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: 31px;
  font-weight: 400;
}

.summary-note {
  margin: 12px 0 0;
  color: #d7e2d9;
  font-size: 11px;
  line-height: 1.45;
}

.summary-note span {
  margin-right: 5px;
  color: #e7cfab;
}

.review-notice {
  margin-bottom: 26px;
  padding: 14px 16px;
  color: var(--color-sage-text);
  background: #e8f0ea;
  border-left: 3px solid var(--color-sage-text);
  border-radius: 4px 9px 9px 4px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.review-groups {
  display: grid;
  gap: 13px;
}

.review-group {
  padding: 20px;
  background: #fbfaf7;
  border: 1px solid var(--color-line);
  border-radius: 14px;
}

.review-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 11px;
  margin-bottom: 13px;
  border-bottom: 1px solid #e8e1d7;
}

.review-group h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.edit-button {
  padding: 3px 0;
  color: var(--color-rose-text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(123, 80, 75, 0.35);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-group dl {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
}

.review-group dl > div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 12px;
}

.review-group dt {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.review-group dd {
  min-width: 0;
  margin: 0;
  color: var(--color-ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.review-group > p {
  margin: 0 0 13px;
  color: var(--color-muted);
  font-size: 12px;
}

.review-photo-list {
  grid-template-columns: repeat(5, 1fr);
  max-width: 400px;
}

.review-photo {
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
}

.review-consents {
  display: grid;
  gap: 7px;
  padding: 0 0 0 19px;
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
}

.completion-panel {
  text-align: center;
}

.completion-spark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin: 0 auto 22px;
  color: var(--color-rose-text);
  background: #f2dfd9;
  border-radius: 50%;
  font-size: 21px;
}

.completion-panel .eyebrow {
  margin-bottom: 11px;
}

.completion-panel h2 {
  margin-bottom: 18px;
}

.completion-panel > p:not(.eyebrow) {
  margin-right: auto;
  margin-bottom: 29px;
  margin-left: auto;
}

.completion-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.order-footer {
  padding: 28px 0 34px;
  color: #d7e2d9;
  background: var(--color-forest);
  font-size: 11px;
}

.order-footer .order-container {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

.order-footer p {
  margin: 0;
}

.order-footer-copy {
  max-width: 650px;
}

.order-footer-copy p + p {
  margin-top: 6px;
}

.order-policy-nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 8px 15px;
  max-width: 360px;
}

.order-policy-nav a {
  color: #e0e9e2;
  text-decoration: underline;
  text-decoration-color: rgba(224, 233, 226, 0.35);
  text-underline-offset: 3px;
}

.order-policy-nav a:hover {
  text-decoration-color: currentColor;
}

@media (max-width: 1000px) {
  .order-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 22px;
  }

  .order-step,
  .completion-panel {
    padding: 33px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .order-container {
    width: min(calc(100% - 36px), var(--content-width));
  }

  .order-intro {
    padding: 58px 0 35px;
  }

  .order-layout {
    grid-template-areas: "summary" "form";
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 75px;
  }

  .order-summary {
    position: static;
  }

  .order-step,
  .completion-panel {
    padding: 30px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .order-footer .order-container {
    flex-direction: column;
    gap: 10px;
  }

  .order-policy-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .order-container {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .order-nav {
    min-height: 78px;
    gap: 15px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-subtitle {
    font-size: 8px;
  }

  .back-link {
    font-size: 11px;
    text-align: right;
  }

  h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .order-lede {
    font-size: 15px;
  }

  .prototype-banner {
    display: block;
    font-size: 11px;
  }

  .step-progress {
    padding: 18px;
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
  }

  .step-list li:last-child {
    grid-column: 1 / -1;
  }

  .step-list li strong {
    font-size: 9px;
  }

  .order-step,
  .completion-panel {
    padding: 23px 19px;
    border-radius: 18px;
  }

  .step-heading {
    margin-bottom: 27px;
    padding-bottom: 22px;
  }

  .step-heading h2,
  .completion-panel h2 {
    font-size: 37px;
  }

  legend {
    font-size: 21px;
  }

  .gift-choice,
  .addon-fieldset,
  .consent-fieldset {
    padding: 16px;
  }

  .choice-content strong,
  .addon-content strong {
    font-size: 19px;
  }

  .choice-content > span:last-child,
  .addon-content > span:last-child {
    font-size: 11px;
  }

  .drop-zone {
    min-height: 175px;
    padding: 19px;
  }

  .photo-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .field-meta {
    flex-direction: column;
    gap: 4px;
  }

  .field-meta > span {
    text-align: left;
  }

  .review-group {
    padding: 16px;
  }

  .review-group dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .review-photo-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .step-actions,
  .step-actions-split {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .step-actions .button {
    width: 100%;
  }

  .completion-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .completion-actions .button {
    width: 100%;
  }
}

@media (max-width: 340px) {
  .order-container {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .back-link {
    max-width: 125px;
  }

  .step-progress {
    padding: 15px;
  }

  .order-step,
  .completion-panel {
    padding: 20px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
