/* ==========================================================================
   Track Order (logged-in page + the page for visitors without an account)
   Also holds the status badges used by View Order.
   ========================================================================== */

/* --- status badges ------------------------------------------------------------------ */
.st-badge { display: inline-block; padding: 6px 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.3px; color: #fff; background: #d99a2b; border-radius: 999px; white-space: nowrap; }
.st-in-design { background: #5a3fc0; } .st-printing { background: #1d6fa5; } .st-packing { background: #1e7a8c; }
.st-out-for-delivery { background: #b5590c; } .st-completed { background: #22803f; } .st-cancelled { background: #b23434; }

.trk { padding-top: 44px; padding-bottom: 64px; }
.trk-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-primary); }

/* --- order picker --------------------------------------------------------------------- */
.trk-select { max-width: 760px; margin: 0 auto 30px; padding: 26px 30px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 18px; box-shadow: 0 10px 28px rgba(22, 59, 74, 0.07); }
.trk-select label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--color-text); }
.trk-select-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trk-select select { flex: 1; min-width: 240px; padding: 13px 14px; font: inherit; font-size: 14.5px; color: var(--color-text); background: var(--color-white); border: 1.5px solid var(--color-border); border-radius: 12px; }
.trk-select select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(22, 59, 74, 0.08); }
.trk-select .btn { padding: 13px 28px; }
.trk-help { margin-top: 12px; font-size: 13.5px; color: var(--color-text-light); }

/* --- the order card ------------------------------------------------------------------------ */
.trk-card { max-width: 1000px; margin: 0 auto; padding: 32px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 22px; box-shadow: 0 14px 34px rgba(22, 59, 74, 0.08); }
.trk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 22px; margin-bottom: 28px; border-bottom: 1px solid var(--color-border); }
.trk-code { margin: 2px 0 4px; font-family: var(--font-heading); font-size: 30px; color: var(--color-text); }
.trk-meta { font-size: 14px; color: var(--color-text-light); }

/* progress steps */
.trk-steps { display: flex; margin: 0; padding: 0; list-style: none; }
.trk-steps li { position: relative; flex: 1; text-align: center; }
.trk-steps li::before { content: ""; position: absolute; top: 21px; left: -50%; width: 100%; height: 3px; background: var(--color-border); }
.trk-steps li:first-child::before { display: none; }
.trk-steps li.is-done::before, .trk-steps li.is-current::before { background: var(--color-primary); }
.trk-dot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 auto 10px; font-size: 16px; color: var(--color-text-light); background: var(--color-bg-soft); border: 2px solid var(--color-border); border-radius: 50%; }
.trk-steps li.is-done .trk-dot { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }
.trk-steps li.is-current .trk-dot { color: #fff; background: var(--color-accent); border-color: var(--color-accent); box-shadow: 0 0 0 6px rgba(30, 87, 97, 0.14); }
.trk-label { display: block; padding: 0 4px; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--color-text-light); }
.trk-steps li.is-current .trk-label, .trk-steps li.is-done .trk-label { color: var(--color-text); }

.trk-now { display: flex; gap: 16px; align-items: flex-start; margin-top: 26px; padding: 18px 20px; background: var(--color-primary-pale); border-radius: 14px; }
.trk-now > i { margin-top: 2px; font-size: 22px; color: var(--color-accent); }
.trk-now b { display: block; margin-bottom: 4px; font-size: 15px; color: var(--color-text); }
.trk-now p { font-size: 14px; line-height: 1.6; color: var(--color-text-light); }

.trk-cancelled { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; color: #8a2b22; background: #fdecea; border-radius: 14px; }
.trk-cancelled > i { margin-top: 2px; font-size: 22px; }
.trk-cancelled b { display: block; margin-bottom: 4px; font-size: 15px; }
.trk-cancelled p { font-size: 14px; line-height: 1.6; }

/* detail panels */
.trk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.trk-panel { padding: 22px 24px; border: 1px solid var(--color-border); border-radius: 16px; }
.trk-panel h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--font-heading); font-size: 16px; color: var(--color-text); }
.trk-panel h3 i { width: 30px; height: 30px; line-height: 30px; text-align: center; font-size: 13px; color: var(--color-primary); background: var(--color-primary-pale); border-radius: 50%; }
.trk-row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 10px 0; font-size: 14px; border-bottom: 1px solid #eef3f5; }
.trk-row:last-child { border-bottom: none; }
.trk-row > span:first-child { color: var(--color-text-light); }
.trk-row > span:last-child { font-weight: 600; text-align: right; color: var(--color-text); white-space: pre-line; }
.trk-row.is-total { margin-top: 4px; padding-top: 14px; border-top: 1px dashed var(--color-border); }
.trk-row.is-total > span { font-size: 15px; font-weight: 700; color: var(--color-text); }
.trk-note { margin-top: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.55; color: var(--color-text-light); background: var(--color-bg-soft); border-radius: 10px; }
.trk-note.is-ok { color: #1f5f3a; background: #e8f6ee; }
.trk-designs { display: flex; gap: 14px; flex-wrap: wrap; }
.trk-designs figure { flex: 1; min-width: 120px; margin: 0; text-align: center; }
.trk-designs img { display: block; max-width: 100%; max-height: 240px; margin: 0 auto 8px; border: 1px solid var(--color-border); border-radius: 10px; background: #f4f7f8; }
.trk-designs figcaption { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--color-text-light); }
.trk-muted { font-size: 13.5px; color: var(--color-text-light); }
.trk-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--color-border); }
.trk-actions .btn { padding: 11px 24px; }
.trk-actions .trk-muted { flex: 1; }

/* --- page for visitors without an account ------------------------------------------------------ */
.trk-section { max-width: 1040px; margin: 0 auto 54px; }
.trk-section-head { max-width: 640px; margin: 0 auto 28px; text-align: center; }
.trk-section-head h2 { margin-bottom: 8px; font-family: var(--font-heading); font-size: 28px; color: var(--color-text); }
.trk-section-head p { font-size: 15px; line-height: 1.7; color: var(--color-text-light); }
.trk-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trk-feature { padding: 22px 18px; text-align: center; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 16px; }
.trk-feature i { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 auto 12px; font-size: 19px; color: var(--color-primary); background: var(--color-primary-pale); border-radius: 14px; }
.trk-feature h4 { margin-bottom: 6px; font-size: 15px; color: var(--color-text); }
.trk-feature p { font-size: 13px; line-height: 1.6; color: var(--color-text-light); }
.trk-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trk-guide-item { display: flex; gap: 14px; padding: 20px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 16px; }
.trk-guide-item .trk-dot { flex: 0 0 44px; margin: 0; }
.trk-guide-item h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 15px; color: var(--color-text); }
.trk-guide-item p { font-size: 13.5px; line-height: 1.65; color: var(--color-text-light); }
.trk-guide-item.is-cancelled .trk-dot { color: #b23434; background: #fdecea; border-color: #f3c5c0; }
.trk-defs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.trk-def { padding: 20px 22px; background: var(--color-white); border: 1px solid var(--color-border); border-left: 4px solid var(--color-primary); border-radius: 12px; }
.trk-def h4 { margin-bottom: 6px; font-size: 15px; color: var(--color-text); }
.trk-def p { font-size: 13.5px; line-height: 1.65; color: var(--color-text-light); }
.trk-policy { padding: 26px 30px; background: var(--color-primary-pale); border-radius: 18px; }
.trk-policy h3 { margin-bottom: 8px; font-family: var(--font-heading); font-size: 18px; color: var(--color-text); }
.trk-policy p { font-size: 14.5px; line-height: 1.75; color: var(--color-text-light); }
.trk-faq details { padding: 16px 20px; margin-bottom: 10px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 12px; }
.trk-faq summary { cursor: pointer; font-size: 15px; font-weight: 700; color: var(--color-text); }
.trk-faq details p { margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--color-text-light); }
.trk-cta { padding: 38px 30px; text-align: center; background: var(--color-accent); border-radius: 22px; }
.trk-cta h2 { margin-bottom: 8px; font-family: var(--font-heading); font-size: 26px; color: #fff; }
.trk-cta p { margin-bottom: 20px; font-size: 15px; color: #cfe3e8; }
.trk-cta .btn { margin: 0 6px; }
.trk-cta .btn-light { color: var(--color-accent); background: #fff; }
.trk-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); }

@media (max-width: 900px) {
  .trk-features { grid-template-columns: repeat(2, 1fr); }
  .trk-guide { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .trk-card { padding: 22px 18px; }
  .trk-grid, .trk-defs, .trk-guide, .trk-features { grid-template-columns: 1fr; }
  .trk-head { flex-direction: column; }
  /* the progress bar stays horizontal (landscape) on every screen: see responsive.css */
}

/* reminder to pay the balance (View Order + Track Order) */
.pay-reminder { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 14px 16px; font-size: 14px; line-height: 1.55; color: #7a4b00; background: #fff6e5; border: 1px solid #f1d08a; border-radius: 14px; }
.pay-reminder i { margin-top: 3px; color: #d98a00; }
.pay-reminder a { color: #7a4b00; }
