/* Order tracking */
[hidden] { display: none !important; }
.track-wrap { max-width: 820px; display: grid; gap: 24px; }
.form-error { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; background: #fde8f2; color: #9c0c5b; font-size: .9rem; font-weight: 600; }
.demo-banner { margin: 0 0 22px; padding: 10px 14px; border-radius: 8px; background: #fff4dc; color: #7a5200; font-size: .88rem; font-weight: 600; }
.muted { color: var(--muted); font-size: .9rem; }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 30px; }
.result-head h2 { font-size: 1.6rem; }
.badge { padding: 8px 16px; border-radius: 999px; background: var(--cyan); color: #fff; font-weight: 700; font-size: .9rem; }

/* Horizontal timeline (desktop) */
.timeline { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.timeline li { position: relative; display: grid; gap: 2px; justify-items: center; text-align: center; padding: 0 6px; color: var(--muted); }
.timeline li b { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.timeline li small { font-size: .78rem; }
.timeline .dot { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #d4d6dc; position: relative; z-index: 1; }
.timeline li::before { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 3px; background: #d4d6dc; }
.timeline li:first-child::before { display: none; }
.timeline li.done::before, .timeline li.current::before { background: var(--green); }
.timeline li.done .dot { background: var(--green); border-color: var(--green); }
.timeline li.current .dot { border-color: var(--green); box-shadow: 0 0 0 5px rgba(31, 174, 138, .2); background: #fff; }
.timeline li.done b, .timeline li.current b { color: var(--ink); }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.result-grid h3 { font-size: 1rem; margin-bottom: 6px; }
.result-grid p { margin: 0; color: var(--muted); font-size: .95rem; }
.result-grid a { color: var(--magenta); font-weight: 600; }

/* Ordered item */
.item-row { display: flex; align-items: center; gap: 16px; }
.item-row b { display: block; margin-bottom: 2px; }
.item-thumb { position: relative; width: 96px; flex-shrink: 0; aspect-ratio: 808 / 900; background: var(--bg-soft); border-radius: 10px; padding: 6px; }
.item-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.item-thumb .item-design { position: absolute; left: 50%; top: 46%; width: 34%; height: auto; transform: translate(-50%, -50%); }

/* Vertical timeline (mobile) */
@media (max-width: 640px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { grid-template-columns: 22px 1fr; column-gap: 14px; justify-items: start; text-align: left; padding: 0 0 22px; }
  .timeline li b { margin-top: 0; }
  .timeline li small { grid-column: 2; }
  .timeline .dot { grid-row: 1 / span 2; }
  .timeline li::before { top: -22px; left: 9px; width: 3px; height: 100%; }
  .result-grid { grid-template-columns: 1fr; }
  .result-head h2 { font-size: 1.3rem; }
}

/* tracking: carrier number, pictures of the items, totals */
.tracking-no { margin: 4px 0 18px; padding: 12px 16px; border-radius: 10px; background: #fff6e0; }
.item-thumb { flex: none; width: 64px; height: 64px; }
.item-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; background: #f4f5f7; }
.totals-line { color: var(--muted); font-size: .9rem; margin: 8px 0 2px; }
.timeline small { display: block; }
.custom-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #fde3f1; color: #b3125f; font-size: .75rem; font-weight: 700; }

.review-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: #fff6e0; }
