/* writtengift order progress (templates/order-progress.php): account order view and the tracking page.
   Horizontal stepper on wide screens, a vertical list under 600px. Words carry the state; colour supports it. */
.wg-progress { --wgpr-ink: var(--wg-ink, #161616); --wgpr-muted: var(--wg-muted, #5f5b55); --wgpr-line: var(--wg-line, #e9d9c2);
  --wgpr-accent: var(--wg-accent, #0a5844); --wgpr-risk: var(--wg-risk, #8a5a00); --wgpr-late: var(--wg-late, #a3361f);
  margin: 8px 0 24px; color: var(--wgpr-ink); font-variant-numeric: tabular-nums; }
.wg-progress *, .wg-progress *::before, .wg-progress *::after { box-sizing: border-box; }
.wg-progress__eta { font-family: var(--wp--preset--font-family--display, Georgia, serif); font-size: 22px; letter-spacing: -.01em; margin: 0 0 16px; }
.wg-progress__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wg-step { position: relative; padding: 26px 4px 0; text-align: center; font-size: 13px; line-height: 1.35; color: var(--wgpr-muted); min-width: 0; }
.wg-step::before { content: ''; position: absolute; top: 8px; left: calc(-50% + 9px); right: calc(50% + 9px); height: 2px; background: var(--wgpr-line); }
.wg-step:first-child::before { display: none; }
.wg-step__dot { position: absolute; top: 2px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--wgpr-line); }
.wg-step__label { display: block; color: var(--wgpr-ink); font-weight: 500; overflow-wrap: anywhere; }
.wg-step__date { display: block; margin-top: 2px; }
.wg-step.is-done::before { background: var(--wgpr-accent); }
.wg-step.is-done .wg-step__dot { background: var(--wgpr-accent); box-shadow: none; }
.wg-step.is-done .wg-step__dot::after { content: ''; position: absolute; left: 4px; top: 2px; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.wg-step.is-next .wg-step__dot { box-shadow: inset 0 0 0 3px var(--wgpr-accent); }
.wg-step.is-todo .wg-step__label { color: var(--wgpr-muted); font-weight: 400; }
.wg-progress__next { margin: 16px 0 0; font-size: 15px; }
.wg-progress--at_risk .wg-progress__next { color: var(--wgpr-risk); }
.wg-progress--late .wg-progress__next { color: var(--wgpr-late); }
.wg-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.wg-share__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--wgpr-ink); border-radius: 999px; background: transparent; color: var(--wgpr-ink); font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
.wg-share__btn:first-child { background: var(--wgpr-ink); color: #fff; }
.wg-share__btn:focus-visible { outline: 2px solid var(--wgpr-accent); outline-offset: 2px; }
@media (max-width: 600px) {
  .wg-progress__steps { grid-template-columns: 1fr; }
  .wg-step { text-align: left; padding: 0 0 18px 28px; }
  .wg-step:last-child { padding-bottom: 0; }
  .wg-step::before { display: none; }
  .wg-step:not(:last-child)::after { content: ''; position: absolute; left: 6px; top: 16px; bottom: -2px; width: 2px; background: var(--wgpr-line); }
  .wg-step:has(+ .wg-step.is-done)::after { background: var(--wgpr-accent); }
  .wg-step__dot { top: 2px; left: 0; margin-left: 0; }
  .wg-step__label, .wg-step__date { display: inline; }
  .wg-step__date:not(:empty)::before { content: ' · '; }
  .wg-share__btn { flex: 1 1 100%; }
}
/* The order's promise (templates/order-promise.php): thank-you page and order view. */
.wg-promise { background: var(--wg-surface-2, #f2ebe0); border-radius: var(--wg-radius-lg, 16px); padding: 16px 20px; margin: 0 0 24px; }
.wg-promise p { margin: 4px 0 0; }
.wg-promise__h { font-family: var(--wp--preset--font-family--display, Georgia, serif); font-size: 22px; letter-spacing: -.01em; color: var(--wg-ink, #161616); margin: 0; }
.wg-promise__g { color: var(--wg-accent, #0a5844); }
/* Account order view: the existing event list sits under the stepper. */
.wg-timeline img { max-width: 100%; height: auto; border-radius: 8px; margin: 6px 6px 0 0; }
.wg-timeline__photos { display: flex; flex-wrap: wrap; gap: 6px; }
.wg-timeline__photos img { width: 120px; height: 120px; object-fit: cover; }
