/* ================================================================
   House of Deer — Track your order
   Reuses the contact page form styles (contact.css) — only the
   result card and the progress steps are new.
   ================================================================ */

.tk-wrap { max-width: 560px; margin: 0 auto; }
.tk-wrap [hidden] { display: none !important; }

/* ---------- RESULT HEAD ---------- */
.tk-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}
.tk-order {
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.tk-badge {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--teal);
  background: rgba(111, 151, 174, 0.16);
  box-shadow: inset 0 0 0 1px rgba(111, 151, 174, 0.5);
  white-space: nowrap;
}
.tk-badge.is-delivered { color: #9ad3b0; background: rgba(110, 190, 140, 0.14); box-shadow: inset 0 0 0 1px rgba(110, 190, 140, 0.45); }
.tk-badge.is-closed    { color: #f0b4b4; background: rgba(234, 120, 120, 0.1);  box-shadow: inset 0 0 0 1px rgba(234, 120, 120, 0.35); }

/* ---------- PROGRESS STEPS ---------- */
.tk-steps { list-style: none; margin: 0 0 30px; padding: 0; position: relative; }
.tk-step {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  column-gap: 16px;
  padding-bottom: 26px;
}
.tk-step:last-child { padding-bottom: 0; }

/* the line joining one dot to the next */
.tk-step::before {
  content: "";
  position: absolute;
  left: 12px; top: 26px; bottom: 0;
  width: 2px;
  background: rgba(var(--ink), 0.14);
}
.tk-step:last-child::before { display: none; }
.tk-step.is-done::before { background: var(--teal); }

.tk-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px rgba(var(--ink), 0.2);
}
.tk-step.is-done .tk-dot { background: var(--teal); box-shadow: none; }
.tk-dot svg {
  width: 14px; height: 14px;
  fill: none; stroke: #0a0c16;
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0;
}
.tk-step.is-done .tk-dot svg { opacity: 1; }
.tk-step.is-current .tk-dot { box-shadow: 0 0 0 4px rgba(111, 151, 174, 0.25); }

.tk-step-label { font-size: 1rem; letter-spacing: -0.01em; color: rgba(var(--ink), 0.45); line-height: 26px; }
.tk-step.is-done .tk-step-label { color: var(--text); }
.tk-step-date { display: block; font-size: 0.82rem; color: rgba(var(--ink), 0.5); line-height: 1.3; margin-top: -2px; }

/* ---------- COURIER TRACKING ---------- */
.tk-ship {
  padding: 18px 20px;
  margin-bottom: 26px;
  border-radius: 16px;
  background: rgba(var(--ink), 0.04);
  box-shadow: inset 0 0 0 1px rgba(var(--ink), 0.08);
}
.tk-ship-line { margin: 6px 0 0; font-size: 1rem; line-height: 1.5; word-break: break-word; }
.tk-ship-btn { display: inline-flex; margin-top: 16px; }

/* ---------- DETAILS ---------- */
.tk-meta { margin: 0 0 10px; }
.tk-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid rgba(var(--ink), 0.08);
  font-size: 0.95rem;
}
.tk-meta dt { color: rgba(var(--ink), 0.55); }
.tk-meta dd { margin: 0; text-align: right; }

.tk-again { margin-top: 22px; }

@media (max-width: 520px) {
  .tk-result-head { flex-direction: column; }
}
