/* Tracking + order lookup (A-Tracking / Desk-Tracking boards). Loaded after checkout.css. */
.page-header__logo--sm { width: 44px; height: 44px; }
.track { display: flex; flex-direction: column; gap: 14px; padding-block: 14px 24px; }
.track-hero { padding: 20px; border-radius: 22px; background: var(--c-maroon); color: var(--c-cream); display: flex; flex-direction: column; gap: 8px; }
.track-hero--closed { background: var(--c-brown); }
.track-hero__main { display: flex; flex-direction: column; gap: 8px; }
.track-hero__label { font-size: 14px; color: var(--c-on-maroon-soft); }
.track-hero__title { font-size: 28px; }
.track-hero__sub { font-size: 15px; color: var(--c-on-maroon-soft); }
.track-hero__when strong { font-weight: 800; }

.tsteps { margin: 0; padding: 18px; list-style: none; border-radius: 20px; background: var(--c-white); border: 1px solid var(--c-border); display: flex; flex-direction: column; }
.tstep { display: flex; gap: 14px; }
.tstep__mark { display: flex; flex-direction: column; align-items: center; width: 28px; flex-shrink: 0; }
.tstep__dot { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #E0C9A8; background: var(--c-white); }
.tstep.is-done .tstep__dot { background: var(--c-green); border: 0; color: var(--c-white); }
.tstep.is-now .tstep__dot { background: var(--c-saffron); border: 5px solid var(--c-cream-dark); }
.tstep__line { width: 2px; flex: 1; min-height: 26px; background: var(--c-track); }
.tstep:last-child .tstep__line { display: none; }
.tstep__text { display: flex; flex-direction: column; gap: 2px; padding-bottom: 18px; }
.tstep:last-child .tstep__text { padding-bottom: 0; }
.tstep__title { font-weight: 800; font-size: 16px; }
.tstep.is-now .tstep__title { font-size: 17px; color: var(--c-maroon); }
.tstep.is-todo .tstep__title { font-weight: 700; color: var(--c-muted); }
.tstep__sub { font-size: 13px; color: var(--c-brown-light); }
.tstep__sub:empty { display: none; }

.track-cols { display: flex; flex-direction: column; gap: 14px; }
.track-side { display: flex; flex-direction: column; gap: 14px; }
.track-card { padding: 16px; border-radius: 18px; background: var(--c-white); border: 1px solid var(--c-border); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.track-card__title { font-family: var(--font-body); font-weight: 800; font-size: 15px; }
.track-details .sum-row--total .price { color: var(--c-brown); }
/* Phase 6: "نتفق على الدفع على واتساب" box (not in the design; same card component) */
.track-wa { border-color: #BFE3CC; background: #F3FAF6; }
.track-wa__text { margin: 0; color: var(--c-brown-light); line-height: 1.6; }
.track-wa .strong-link { align-self: center; }
.track-addr { display: flex; gap: 8px; align-items: flex-start; color: var(--c-brown-light); font-size: 14px; }
.track-addr .icon { margin-top: 2px; }
.track-map { height: 150px; border-radius: 16px; background: #EFE6D6; border: 1px solid var(--c-input-border); overflow: hidden; z-index: 0; }

.guest-box { padding: 16px; border-radius: 18px; background: var(--c-cream-dark); display: flex; flex-direction: column; gap: 10px; }
.guest-box__title { font-weight: 800; font-size: 15px; }
.guest-box__text { font-size: 14px; color: var(--c-promo-text); line-height: 1.6; }
.guest-box__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.guest-box__btn { flex: 1 1 120px; height: 44px; font-size: 14px; }

.track-actions { display: flex; gap: 10px; }
.track-actions .btn { flex: 1; height: 52px; font-size: 15px; gap: 8px; }
.track > .muted.small { line-height: 1.6; }

.lookup { display: flex; flex-direction: column; gap: 14px; padding-block: 14px 32px; }
.lookup-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--c-border); color: inherit; text-decoration: none; }
.lookup-row:first-of-type { border-top: 0; }

@media (min-width: 900px) {
  .track { gap: 24px; padding-block: 32px 64px; }
  .track-hero { padding: 28px 32px; border-radius: 26px; flex-direction: row; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
  .track-hero__main { gap: 6px; }
  .track-hero__label { font-size: 15px; }
  .track-hero__title { font-size: 40px; }
  .track-hero__when { padding: 14px 20px; border-radius: 18px; background: rgba(255, 248, 238, 0.12); display: flex; flex-direction: column; gap: 2px; }
  .track-hero__when .track-hero__label { font-size: 14px; }
  .track-hero__when strong { font-size: 20px; }
  .track > .btn--block { width: auto; align-self: flex-start; padding: 0 40px; }

  .tsteps { padding: 24px; border-radius: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
  .tstep { flex-direction: column; gap: 10px; }
  .tstep__mark { flex-direction: row; align-items: center; width: auto; gap: 8px; }
  .tstep__dot { width: 32px; height: 32px; }
  .tstep.is-now .tstep__dot { border-width: 6px; }
  .tstep__line { width: auto; height: 3px; min-height: 0; border-radius: 2px; }
  .tstep.is-done .tstep__line { background: var(--c-green); }
  .tstep:last-child .tstep__line { display: block; }
  .tstep__text { padding-bottom: 0; }
  .tstep__sub { font-size: 14px; }

  .track-cols { flex-direction: row; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
  .track-details { flex: 999 1 480px; }
  .track-side { flex: 1 1 340px; gap: 16px; }
  .track-card { padding: 24px; border-radius: 22px; gap: 12px; font-size: 16px; }
  .track-card__title { font-family: var(--font-head); font-weight: 700; font-size: 22px; }
  .track-details .sum-row--total { font-size: 18px; }
  .track-card .btn--wa { height: 50px; font-size: 15px; }
  .guest-box { padding: 20px; border-radius: 22px; }
  .guest-box__title { font-size: 16px; }
  .guest-box__btn { height: 46px; }
  .lookup { padding-block: 0 64px; }
}
