/* Order wizard ("Start your order"). Loads after styles.css; everything is scoped to the order page. */

body[data-page="order"] {
  --ow-line: rgba(43, 26, 18, 0.12);
  --ow-line-strong: rgba(43, 26, 18, 0.22);
  --ow-tint: #F6EADB;
  --ow-tint-strong: #EFDCC5;
  --ow-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Sprite icon fallback, in case the global .icon rule is missing */
:where(body[data-page="order"]) .icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.125em;
}

body[data-page="order"] .order-wrap { max-width: 900px; }

/* —— Progress —— */
.ow-progress { margin: 0 0 28px; }
.ow-progress__meta {
  display: none;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.ow-progress__count { font-weight: 600; color: var(--brown); font-variant-numeric: tabular-nums; }
.ow-progress__bar {
  display: none;
  height: 6px;
  border-radius: 999px;
  background: var(--beige);
  overflow: hidden;
}
.ow-progress__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--caramel-deep);
}
.ow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.ow-steps__item { position: relative; }
/* Connector between dots */
.ow-steps__item + .ow-steps__item::before {
  content: "";
  position: absolute;
  top: 20px;
  right: calc(50% + 26px);
  left: calc(-50% + 26px);
  height: 2px;
  border-radius: 2px;
  background: var(--beige);
}
.ow-steps__item.is-done + .ow-steps__item::before,
.ow-steps__item.is-done + .ow-steps__item.is-current::before { background: var(--caramel); }
.ow-steps__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 2px 4px;
  background: none;
  border: 0;
  font: inherit;
  color: var(--muted);
  text-align: center;
}
button.ow-steps__btn { cursor: pointer; }
.ow-steps__dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: var(--cream-soft);
  border: 1px solid var(--ow-line-strong);
  color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.3s var(--ow-ease);
}
.ow-steps__label { font-size: 12.5px; font-weight: 500; line-height: 1.2; }
.is-done .ow-steps__dot {
  background: var(--ow-tint);
  border-color: rgba(122, 77, 43, 0.35);
  color: var(--caramel-deep);
}
.is-done .ow-steps__btn { color: var(--brown-mid); }
.is-done button.ow-steps__btn:hover .ow-steps__dot { background: var(--ow-tint-strong); transform: translateY(-1px); }
.is-done button.ow-steps__btn:hover .ow-steps__label { text-decoration: underline; text-underline-offset: 3px; }
.is-current .ow-steps__dot {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--cream);
  box-shadow: 0 6px 16px rgba(43, 26, 18, 0.2);
}
.is-current .ow-steps__label { color: var(--brown); font-weight: 600; }

@media (max-width: 720px) {
  .ow-steps { display: none; }
  .ow-progress__meta { display: flex; }
  .ow-progress__bar { display: block; }
  .ow-progress { margin-bottom: 20px; }
}

/* —— Step panel —— */
.ow-panel {
  background: var(--cream-soft);
  border: 1px solid var(--ow-line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 1px 2px rgba(43, 26, 18, 0.04), 0 18px 40px -18px rgba(43, 26, 18, 0.14);
}
.ow-panel.is-entering { animation: owIn 0.45s var(--ow-ease) both; }
@keyframes owIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.ow-head { margin: 0 0 26px; max-width: 60ch; }
body[data-page="order"] .ow-head h2 {
  font-size: clamp(28px, 4.2vw, 40px);
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 8px;
}
.ow-head p { margin: 0; color: var(--brown-mid); line-height: 1.6; }

/* —— Step 1: categories —— */
.ow-cats {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-auto-rows: auto;
  gap: 14px;
}
.ow-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--ow-line);
  border-radius: 18px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.25s, transform 0.3s var(--ow-ease);
}
.ow-cat--feature { grid-row: span 2; }
.ow-cat:hover { border-color: var(--ow-line-strong); transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(43, 26, 18, 0.3); }
.ow-cat__img {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--beige);
}
.ow-cat--feature .ow-cat__img { aspect-ratio: auto; flex: 1; min-height: 220px; }
.ow-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ow-ease); }
.ow-cat:hover .ow-cat__img img { transform: scale(1.03); }
.ow-cat__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 8px 6px; }
.ow-cat__title { font-family: 'Playfair Display', Georgia, serif; font-size: 19px; font-weight: 600; }
.ow-cat--feature .ow-cat__title { font-size: 24px; }
.ow-cat__desc { font-size: 13px; color: var(--muted); line-height: 1.45; }
.ow-cat__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: var(--brown);
  color: var(--cream);
  box-shadow: 0 4px 10px rgba(43, 26, 18, 0.25);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.35s var(--ow-ease);
}
.ow-cat__badge .icon { stroke-width: 2.4; }
.ow-cat.is-active {
  background: var(--ow-tint);
  border-color: var(--caramel-deep);
  box-shadow: 0 0 0 1px var(--caramel-deep) inset, 0 12px 26px -16px rgba(43, 26, 18, 0.35);
}
.ow-cat.is-active .ow-cat__badge { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .ow-cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ow-cat--feature { grid-row: auto; grid-column: 1 / -1; }
  .ow-cat--feature .ow-cat__img { min-height: 0; aspect-ratio: 16 / 9; flex: none; }
  .ow-cat__title { font-size: 17px; }
  .ow-cat--feature .ow-cat__title { font-size: 21px; }
  .ow-cat__desc { font-size: 12.5px; }
  .ow-cat__badge { top: 12px; right: 12px; }
}

/* —— Pills (occasion, fulfilment) —— */
.ow-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.ow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--ow-line-strong);
  background: #fff;
  color: var(--brown);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.3s var(--ow-ease);
}
.ow-pill .icon { font-size: 18px; color: var(--caramel-deep); transition: color 0.2s; }
.ow-pill:hover { border-color: var(--caramel-deep); background: var(--ow-tint); }
.ow-pill.is-active { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.ow-pill.is-active .icon { color: var(--gold); }
.ow-pill:active { transform: scale(0.98); }
@media (max-width: 720px) {
  .ow-pills:not(.ow-pills--pair) { display: grid; grid-template-columns: 1fr 1fr; }
  .ow-pill { justify-content: flex-start; }
}

/* —— Step 3: details —— */
.ow-group {
  margin: 0 0 18px;
  padding: 22px 22px 24px;
  border: 1px solid var(--ow-line);
  border-radius: var(--radius-md);
  background: #fff;
  min-width: 0;
}
.ow-group--plain { background: none; border: 0; padding: 0; margin: 0 0 26px; }
.ow-legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0 0 16px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--brown);
}
.ow-group:not(.ow-group--plain) .ow-legend { float: left; width: 100%; }
.ow-group:not(.ow-group--plain) .ow-legend + * { clear: both; }
.ow-legend .icon {
  font-size: 16px;
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: var(--ow-tint);
  color: var(--caramel-deep);
}
.ow-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.ow-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ow-field--wide { grid-column: 1 / -1; }
.ow-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brown-mid);
}
.ow-req {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--caramel-deep);
  background: var(--ow-tint);
  border-radius: 999px;
  padding: 1px 8px;
}
body[data-page="order"] .ow-in {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--ow-line-strong);
  border-radius: 12px;
  background: var(--cream-soft);
  font-size: 15.5px;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
body[data-page="order"] .ow-in::placeholder { color: #7E6850; opacity: 1; }
body[data-page="order"] .ow-in:hover { border-color: rgba(43, 26, 18, 0.36); }
body[data-page="order"] .ow-in:focus {
  outline: none;
  border-color: var(--caramel-deep);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(176, 123, 79, 0.28);
}
body[data-page="order"] .ow-in[aria-invalid="true"] {
  border-color: var(--err);
  background: #FFF8F6;
}
body[data-page="order"] .ow-in[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 52, 31, 0.2); }
body[data-page="order"] textarea.ow-in { min-height: 0; }
.ow-help { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 640px) {
  .ow-fields { grid-template-columns: 1fr; }
  .ow-group { padding: 18px 16px 20px; }
}

/* —— Errors, notes and asides —— */
body[data-page="order"] .ow-error {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(180, 52, 31, 0.28);
  border-radius: 14px;
  line-height: 1.5;
}
.ow-error > .icon { font-size: 20px; margin-top: 1px; }
.ow-error p { margin: 0; }
.ow-error__wa { margin-top: 12px; }
.ow-note,
.ow-aside {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--brown-mid);
}
.ow-note .icon,
.ow-aside .icon { font-size: 18px; margin-top: 1px; color: var(--caramel-deep); }
.ow-note {
  margin: 0 0 26px;
  padding: 14px 16px;
  background: var(--ow-tint);
  border: 1px solid rgba(122, 77, 43, 0.18);
  border-radius: 14px;
}
.ow-aside { margin: 20px 0 0; }

/* —— Step 4: upload —— */
.ow-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 38px 20px;
  text-align: center;
  border: 1.5px dashed rgba(122, 77, 43, 0.45);
  border-radius: 20px;
  background: var(--ow-tint);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.3s var(--ow-ease);
}
.ow-drop:hover,
.ow-drop.is-over { background: var(--ow-tint-strong); border-color: var(--caramel-deep); }
.ow-drop.is-over { transform: scale(1.01); }
.ow-drop:focus-within { outline: 2px solid var(--caramel-deep); outline-offset: 3px; }
.ow-drop.is-full { cursor: default; border-style: solid; border-color: var(--ow-line); background: var(--cream); }
.ow-drop__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: #fff;
  color: var(--caramel-deep);
  border: 1px solid rgba(122, 77, 43, 0.2);
  margin-bottom: 4px;
}
.ow-drop__title { font-family: 'Playfair Display', Georgia, serif; font-size: 21px; font-weight: 600; color: var(--brown); }
.ow-drop__hint { font-size: 13.5px; color: var(--brown-mid); max-width: 44ch; line-height: 1.5; }
.ow-drop__btn { margin-top: 8px; background: #fff; pointer-events: none; }
.ow-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.ow-thumbs-wrap { margin: 18px 0 0; }
.ow-thumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ow-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--beige);
}
.ow-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ow-thumb--empty {
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px dashed var(--ow-line-strong);
  color: var(--muted-dark);
  font-size: 26px;
}
.ow-thumb__rm {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(43, 26, 18, 0.78);
  color: var(--cream);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.ow-thumb__rm:hover { background: var(--brown); transform: scale(1.06); }
.ow-thumb__rm .icon { stroke-width: 2.2; }
.ow-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 8px;
  margin: -4px -8px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--caramel-deep);
  cursor: pointer;
  border-radius: 8px;
}
.ow-link:hover { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }

/* —— Step 5: review —— */
.ow-review {
  border: 1px solid var(--ow-line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}
.ow-review__sec { padding: 18px 22px 20px; }
.ow-review__sec + .ow-review__sec { border-top: 1px solid var(--ow-line); }
.ow-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}
.ow-review__head h3 { font-size: 18px; }
.ow-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--ow-line-strong);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--caramel-deep);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ow-edit:hover { background: var(--ow-tint); border-color: var(--caramel-deep); color: var(--brown); }
.ow-review__list { margin: 0; display: grid; gap: 2px; }
.ow-review__row {
  display: grid;
  grid-template-columns: minmax(130px, 34%) 1fr;
  gap: 16px;
  padding: 7px 0;
}
.ow-review__row dt { font-size: 13.5px; color: var(--muted); }
.ow-review__row dd { margin: 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; white-space: pre-line; }
.ow-review__empty { margin: 0; font-size: 14px; color: var(--muted); font-style: italic; }
.ow-review__photos { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 8px; }
.ow-review__photos li { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--beige); }
.ow-review__photos img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) {
  .ow-review__sec { padding: 16px; }
  .ow-review__row { grid-template-columns: 1fr; gap: 2px; padding: 6px 0; }
}

/* —— Step 6: consent —— */
.ow-what {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--ow-tint);
  margin: 0 0 22px;
}
.ow-what h3,
.ow-done__next h3 { font-size: 19px; margin: 0 0 14px; }
.ow-timeline {
  list-style: none;
  counter-reset: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.ow-timeline li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--brown-mid);
}
.ow-timeline li > .icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: #fff;
  color: var(--caramel-deep);
  border: 1px solid rgba(122, 77, 43, 0.2);
  margin-top: -6px;
}
.ow-consent {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--ow-line-strong);
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  line-height: 1.5;
  color: var(--brown);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.ow-consent:hover { border-color: var(--caramel-deep); }
.ow-consent.is-checked { background: var(--ow-tint); border-color: var(--caramel-deep); }
.ow-consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--brown);
  cursor: pointer;
}
.ow-consent input[aria-invalid="true"] { outline: 2px solid var(--err); outline-offset: 2px; }

/* —— Step 7: payment options —— */
.ow-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ow-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 48px 14px 14px;
  text-align: left;
  border: 1px solid var(--ow-line-strong);
  border-radius: 16px;
  background: #fff;
  font: inherit;
  color: var(--brown);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.25s;
}
.ow-option:hover { border-color: var(--caramel-deep); }
.ow-option__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--ow-tint);
  color: var(--caramel-deep);
  transition: background 0.2s, color 0.2s;
}
.ow-option__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ow-option__title { font-weight: 600; font-size: 15px; }
.ow-option__desc { font-size: 13px; color: var(--muted); line-height: 1.4; }
.ow-option__tick {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  border: 1px solid var(--ow-line-strong);
  color: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ow-option__tick .icon { stroke-width: 2.6; }
.ow-option.is-active {
  background: var(--ow-tint);
  border-color: var(--caramel-deep);
  box-shadow: 0 0 0 1px var(--caramel-deep) inset;
}
.ow-option.is-active .ow-option__icon { background: var(--brown); color: var(--cream); }
.ow-option.is-active .ow-option__tick { background: var(--brown); border-color: var(--brown); color: var(--cream); }
@media (max-width: 560px) {
  .ow-options { grid-template-columns: 1fr; }
}

/* —— Navigation —— */
body[data-page="order"] .ow-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
}
body[data-page="order"] .ow-nav .btn { min-height: 50px; font-size: 15px; white-space: nowrap; }
body[data-page="order"] .ow-nav__back { padding: 12px 22px 12px 18px; }
body[data-page="order"] .ow-nav__next { padding: 13px 22px 13px 28px; }
.ow-nav .icon { font-size: 18px; transition: transform 0.3s var(--ow-ease); }
.ow-nav__next:not([disabled]):hover .icon { transform: translateX(3px); }
.ow-nav__back:hover .icon { transform: translateX(-3px); }
.ow-nav__next.is-sending .icon { animation: owNudge 1s ease-in-out infinite; }
@keyframes owNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
@media (max-width: 720px) {
  body[data-page="order"] .ow-nav {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 20px calc(-1 * clamp(16px, 4vw, 40px)) 0;
    padding: 12px clamp(16px, 4vw, 40px) calc(12px + env(safe-area-inset-bottom));
    background: var(--cream);
    border-top: 1px solid var(--ow-line);
    box-shadow: 0 -10px 24px -16px rgba(43, 26, 18, 0.3);
  }
  body[data-page="order"] .ow-nav__next { flex: 1; }
  body[data-page="order"] .ow-nav__back.is-invisible { display: none; }
}

/* —— Step 8: confirmation —— */
.ow-done {
  text-align: center;
  background: var(--cream-soft);
  border: 1px solid var(--ow-line);
  border-radius: 28px;
  padding: clamp(32px, 6vw, 60px) clamp(18px, 5vw, 56px);
  box-shadow: 0 24px 50px -24px rgba(43, 26, 18, 0.22);
}
.ow-done__mark {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok);
  color: #fff;
  font-size: 40px;
  animation: owPop 0.6s var(--ow-ease) both;
}
.ow-done__mark::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(31, 122, 68, 0.35);
  animation: owRing 1.1s 0.25s var(--ow-ease) both;
}
.ow-done__check {
  stroke-width: 2.6;
  stroke-dasharray: 26;
  stroke-dashoffset: 0;
  animation: owDraw 0.55s 0.3s var(--ow-ease) both;
}
@keyframes owPop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes owRing {
  from { transform: scale(0.8); opacity: 0; }
  50% { opacity: 1; }
  to { transform: scale(1.12); opacity: 0.5; }
}
@keyframes owDraw {
  from { stroke-dashoffset: 26; }
  to { stroke-dashoffset: 0; }
}
.ow-done__script {
  margin: 22px 0 0;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(34px, 6vw, 46px);
  line-height: 1;
  color: var(--caramel-deep);
}
body[data-page="order"] .ow-done h2 {
  font-size: clamp(28px, 4.5vw, 42px);
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 6px 0 0;
}
.ow-done__lead { max-width: 50ch; margin: 14px auto 0; color: var(--brown-mid); line-height: 1.6; }
.ow-ref {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 28px auto 0;
  padding: 20px 28px 18px;
  border: 1px solid rgba(122, 77, 43, 0.25);
  border-radius: 20px;
  background: var(--ow-tint);
}
.ow-ref__label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.ow-ref__val {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--brown);
  user-select: all;
}
.ow-ref__copy { margin-top: 6px; background: #fff; min-height: 40px; }
.ow-ref__copy.is-copied { border-color: var(--ok); color: var(--ok); }
.ow-done__meta { margin: 14px auto 0; font-size: 14px; color: var(--muted); max-width: 52ch; line-height: 1.5; }
.ow-done__next {
  max-width: 480px;
  margin: 34px auto 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--ow-line);
  text-align: left;
}
.ow-done__next h3 { text-align: left; }
.ow-done__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 0;
}
.ow-done__actions .btn { min-height: 50px; }
.ow-done__actions .icon { font-size: 18px; }
.ow-done__again { margin: 22px auto 0; }
@media (max-width: 480px) {
  .ow-done__actions { flex-direction: column; }
  .ow-done__actions .btn { width: 100%; }
  .ow-ref { display: flex; padding: 18px 16px; }
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  .ow-panel.is-entering,
  .ow-done__mark,
  .ow-done__mark::after,
  .ow-done__check,
  .ow-nav__next.is-sending .icon { animation: none; }
  .ow-done__check { stroke-dashoffset: 0; }
  .ow-cat,
  .ow-cat__img img,
  .ow-pill,
  .ow-drop,
  .ow-steps__dot,
  .ow-nav .icon { transition: none; }
  .ow-cat:hover,
  .ow-cat:hover .ow-cat__img img,
  .ow-drop.is-over { transform: none; }
}
