/* „Urmărește comanda” (pages/urmareste-comanda.html): the two fields and the button on a white card, the answer under
   them: a neutral line when nothing matches, else the order (its number, the step as a badge, the five steps, the books
   and the parcel's link). Below 720px the fields stack and the button takes the full width. */
.track { display: grid; gap: 20px; max-width: 880px; margin-top: calc(-1 * clamp(32px, 4vw, 64px)); padding: clamp(22px, 3.5vw, 36px); border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.track__form { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 14px; align-items: end; }
.track__field { display: grid; gap: 6px; min-width: 0; }
.track__label { font-size: 14px; font-weight: 700; color: var(--navy); }
.track__input { width: 100%; height: 52px; padding: 0 20px; border: 1.5px solid var(--border-2); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.track__input::placeholder { color: var(--text-3); opacity: 1; }
.track__input:hover { border-color: var(--text-3); }
.track__input:focus { outline: none; border-color: var(--navy); box-shadow: var(--ring); }
.track__btn { padding: 0 26px; justify-content: center; }
.track__miss { margin: 0; padding: 14px 18px; border-radius: 16px; background: #fdecea; color: #8c1d18; font-size: 15px; font-weight: 600; line-height: 1.5; }

.track__order { display: grid; gap: 16px; padding-top: 20px; border-top: 1px solid var(--border); }
.track__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.track__number { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--navy); }
.track__date { margin: 2px 0 0; font-size: 15px; color: var(--text-2); }
.track__badge { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; background: var(--mist); color: var(--navy); font-size: 15px; font-weight: 700; white-space: nowrap; }
.track__badge--approval, .track__badge--printing { background: var(--pink); }
.track__badge--shipped, .track__badge--delivered { background: var(--yellow); }
.track__badge--cancelled, .track__badge--problem { background: #fdecea; color: #8c1d18; }
.track__text { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--text); }
.track__when { margin: -8px 0 0; font-size: 16px; color: var(--text-2); }
.track__when strong { color: var(--navy); }

.track__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; counter-reset: step; }
.track__step { position: relative; display: grid; gap: 8px; padding-top: 14px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--text-3); counter-increment: step; }
.track__step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.track__step--done { color: var(--navy); }
.track__step--done::before { background: var(--navy); box-shadow: none; }
.track__step--current { color: var(--navy); }
.track__step--current::before { background: linear-gradient(90deg, var(--navy) 50%, var(--yellow) 50%); box-shadow: none; }

.track__items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.track__items li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 14px 18px; border-radius: 16px; background: var(--surface-2); }
.track__items strong { color: var(--navy); font-size: 16px; }
.track__items span { font-size: 15px; color: var(--text-2); }

.track__parcel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 18px; border-radius: 16px; background: var(--mist); }
.track__parcel p { margin: 0; font-size: 16px; color: var(--text); }
.track__parcel .btn { padding: 0 24px; }

@media (max-width: 720px) {
  .track { margin-top: 0; border-radius: 22px; }
  .track__form { grid-template-columns: 1fr; }
  .track__btn { width: 100%; }
  .track__steps { grid-template-columns: 1fr; gap: 10px; }
  .track__step { grid-template-columns: 22px 1fr; align-items: center; padding-top: 0; }
  .track__step::before { position: static; width: 14px; height: 14px; border-radius: 50%; }
  .track__parcel .btn { width: 100%; justify-content: center; }
}
