/* Order tracking page. Uses the theme tokens from mf-child main.css (never redefined here). */

.mf-track { display: grid; gap: var(--s4, 16px); max-width: 760px; margin: 0 auto var(--s7, 48px); }
.mf-track__intro, .mf-track__more { margin: 0; color: var(--text-2, #55575d); font-size: var(--fs-sm, .875rem); }
.mf-track__more a { color: var(--ink, #0e0e10); font-weight: 600; }

/* Soft card: no outline, a gentle lift on the paper background */
.mf-track__card {
  display: grid; gap: var(--s3, 12px);
  padding: var(--s4, 16px);
  border: 0; border-radius: var(--r-md, 16px);
  background: var(--card, #fff);
  box-shadow: 0 1px 2px rgba(14, 14, 16, .05), 0 6px 20px rgba(14, 14, 16, .05);
}
@media (min-width: 768px) { .mf-track__card { padding: var(--s5, 24px); } }

.mf-track__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1, 4px) var(--s3, 12px); }
.mf-track__title { margin: 0; font-family: var(--f-head); font-size: var(--fs-lg, 1.1875rem); line-height: 1.25; }
.mf-track__date { color: var(--text-2, #55575d); font-size: var(--fs-sm, .875rem); }
.mf-track__hi, .mf-track__status { margin: 0; }
.mf-track__status { font-weight: 600; }

/* Steps: vertical on phones, a row from tablet up */
.mf-steps { list-style: none; margin: var(--s2, 8px) 0 0; padding: 0; display: grid; gap: 0; }
.mf-steps__item { position: relative; display: flex; gap: var(--s3, 12px); align-items: flex-start; min-height: 44px; padding-bottom: var(--s2, 8px); }
.mf-steps__item::before { /* connector */
  content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; border-radius: 2px; background: var(--mist, #e7e5e0);
}
.mf-steps__item:last-child::before { display: none; }
.mf-steps__item.is-done::before { background: var(--success, #1f7a4d); }
.mf-steps__item.is-current::before { background: var(--mist, #e7e5e0); }
.mf-steps__dot {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mist, #e7e5e0); color: #fff;
}
.mf-steps__item.is-done .mf-steps__dot { background: var(--success, #1f7a4d); }
.mf-steps__item.is-current .mf-steps__dot { box-shadow: 0 0 0 4px var(--success-tint, #e8f3ec); }
.mf-steps__text { display: grid; gap: 2px; padding-top: 2px; }
.mf-steps__label { font-weight: 600; line-height: 1.3; }
.mf-steps__item.is-todo .mf-steps__label { color: var(--text-2, #55575d); font-weight: 500; }
.mf-steps__when { color: var(--text-2, #55575d); font-size: var(--fs-sm, .875rem); }

@media (min-width: 768px) {
  .mf-steps { grid-template-columns: repeat(5, 1fr); }
  .mf-steps__item { flex-direction: column; align-items: flex-start; gap: var(--s2, 8px); padding: 0 var(--s2, 8px) 0 0; }
  .mf-steps__item::before { left: 28px; right: 4px; top: 11px; bottom: auto; width: auto; height: 2px; }
}

/* Courier details */
.mf-track__ship { display: flex; flex-wrap: wrap; gap: var(--s3, 12px) var(--s6, 32px); margin: 0; padding: var(--s3, 12px) var(--s4, 16px); border-radius: var(--r-sm, 12px); background: var(--paper, #f7f5f0); }
.mf-track__ship div { display: grid; gap: 2px; min-width: 0; }
.mf-track__ship dt { color: var(--text-2, #55575d); font-size: var(--fs-sm, .875rem); }
.mf-track__ship dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mf-track__awb { font-family: var(--f-mono); font-weight: 500; letter-spacing: .02em; }
.mf-track__actions { margin: 0; }
.mf-track__actions .mf-btn { width: 100%; }
@media (min-width: 600px) { .mf-track__actions .mf-btn { width: auto; } }

/* Form */
.mf-track__form .mf-alert { margin: 0; }
.mf-track__field { display: grid; gap: var(--s1, 4px); margin: 0; }
.mf-track__field label { font-weight: 600; }
.mf-track__field input { width: 100%; min-height: 48px; }
.mf-track__hint { color: var(--text-2, #55575d); font-size: var(--fs-sm, .875rem); }
@media (min-width: 768px) {
  .mf-track__form { grid-template-columns: 1fr 1fr; column-gap: var(--s4, 16px); }
  .mf-track__form > .mf-track__title, .mf-track__form > .mf-alert, .mf-track__form > .mf-track__actions { grid-column: 1 / -1; }
}

/* The theme's paragraph and list margins would double the card's own spacing. */
.mf-track .mf-track__card > *, .mf-track > p, .mf-track .mf-steps { margin: 0; }
.mf-track .mf-steps { margin-top: var(--s2, 8px); }
