/* Order progress on the track page and the customer's order page. */
.track-order { padding: 22px 0; border-top: 1px solid var(--line); }
.track-order:first-child { border-top: 0; padding-top: 0; }
.track-order:last-child { padding-bottom: 0; }
.track-order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.track-order-head strong { color: var(--ink); font-size: 18px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline .step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; }
.timeline .step:last-child { padding-bottom: 0; }
.timeline .step::before { content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--line); }
.timeline .step:last-child::before { display: none; }
.timeline .step.done::before { background: var(--good); }
.timeline .dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 15px; background: var(--soft); color: var(--muted); border: 2px solid var(--line);
}
.timeline .done .dot { background: var(--good); border-color: var(--good); color: var(--paper); }
.timeline .current .dot { background: var(--ink); border-color: var(--ink); color: var(--paper); animation: step-pulse 2.2s ease-in-out infinite; }
.timeline .step > div { display: grid; gap: 2px; padding-top: 6px; }
.timeline strong { color: var(--ink); line-height: 1.25; }
.timeline .todo strong { color: var(--muted); font-weight: 700; }
@keyframes step-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 22%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--ink) 0%, transparent); }
}

.order-rejected { padding: 14px 16px; border-radius: 14px; background: var(--bad-soft); color: var(--bad); }
.order-rejected p { margin: 4px 0 0; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .timeline .current .dot { animation: none; }
}
