/* Track your order (design D): night path over a shipping label. Loaded only on /track-order/. */

/* Under the header: a string of velitas lights instead of the gold band (this page only). */
.vl-track .chiva { height: 30px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23FFC93C' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23FFC93C' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M0 4 Q60 16 120 4' fill='none' stroke='%23ffffff' stroke-opacity='.35' stroke-width='1'/%3E%3Cg transform='translate(20 7.9)'%3E%3Ccircle cy='9' r='9' fill='url(%23g)'/%3E%3Crect x='-1.6' width='3.2' height='3' rx='.6' fill='%239fb4c8'/%3E%3Cpath d='M0 3 C3.6 7 3.6 11 0 13 C-3.6 11 -3.6 7 0 3Z' fill='%23FFC93C'/%3E%3C/g%3E%3Cg transform='translate(60 10)'%3E%3Ccircle cy='9' r='9' fill='url(%23g)'/%3E%3Crect x='-1.6' width='3.2' height='3' rx='.6' fill='%239fb4c8'/%3E%3Cpath d='M0 3 C3.6 7 3.6 11 0 13 C-3.6 11 -3.6 7 0 3Z' fill='%23FF5D73'/%3E%3C/g%3E%3Cg transform='translate(100 7.9)'%3E%3Ccircle cy='9' r='9' fill='url(%23g)'/%3E%3Crect x='-1.6' width='3.2' height='3' rx='.6' fill='%239fb4c8'/%3E%3Cpath d='M0 3 C3.6 7 3.6 11 0 13 C-3.6 11 -3.6 7 0 3Z' fill='%234CC3F0'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 30px repeat-x; }
.vl-track .chiva-run { display: none; }

.vl-track-page { --navy: #010828; --muted: #5B5872; --line: #E4E1DA; max-width: 980px; padding-top: 40px; padding-bottom: 96px; container-type: inline-size; }
.vl-track-page h1, .vl-track-page h2 { text-wrap: balance; }
.vl-track-page p { margin: 0; }
.vt-small { font-size: 15px; color: var(--muted); }

/* Hero: the night sky */
.vt-hero { background: var(--navy); color: #fff; border-radius: 26px; padding: 22px 18px 20px; }
@container (min-width: 700px) { .vt-hero { padding: 34px 34px 26px; } }
.vt-hero h1 { font-size: clamp(32px, 7.5cqi, 54px); color: #fff; margin: 0; }
.vt-lead { color: #cfe9f7; font-size: 18px; margin-top: 8px !important; }
.vt-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.vt-head > div:only-child { grid-column: 1 / -1; }
.vt-flag { display: inline-flex; font-weight: 800; font-size: 15px; padding: 6px 12px; border-radius: 999px; margin-bottom: 10px; }
.vt-flag.go { background: #fff1c7; color: var(--gold-text); }
.vt-flag.wait { background: var(--sand); color: var(--link); }
.vt-flag.warn { background: #ffe1e6; color: var(--red-text); }
.vt-cal { width: 84px; border-radius: 16px; overflow: hidden; text-align: center; border: 3px solid #fff; background: #fff; color: var(--ink); }
.vt-cal .m { background: var(--coral); color: #fff; font-weight: 800; font-size: 14px; padding: 4px 0; text-transform: uppercase; }
.vt-cal .d { font: 400 44px/1 var(--display); padding: 6px 0 2px; }
.vt-cal .w { font-size: 13px; font-weight: 700; padding-bottom: 6px; text-transform: capitalize; }

/* The path: drawing and step names share one width, so each name sits under its stop */
.vt-path { margin: 22px auto 14px; max-width: 620px; }
@container (max-width: 420px) { .vt-path { margin-left: -6px; margin-right: -6px; } }
.vt-svg { display: block; width: 100%; height: auto; }
.vt-names { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 6px; text-align: center; font-size: 12px; letter-spacing: -.01em; line-height: 1.25; color: #9fb4c8; }
@container (min-width: 700px) { .vt-names { font-size: 15px; } }
.vt-names li.done { color: #fff; font-weight: 700; }
.vt-names li.now { color: var(--gold); font-weight: 800; }
.vt-pulse { transform-box: fill-box; transform-origin: center; animation: vt-pulse 2.4s ease-out infinite; }
@keyframes vt-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vt-pulse { animation: none; } }
.vt-live { text-align: center; margin-top: 18px !important; }
.vt-note { text-align: center; color: #cfe9f7; font-size: 15px; margin-top: 12px !important; }

/* Cards */
.vt-grid { display: grid; gap: 18px; margin-top: 20px; }
@container (min-width: 700px) { .vt-grid { grid-template-columns: 1fr 1fr; align-items: start; } .vt-wide { grid-column: 1 / -1; } }
.vt-card { background: #fff; border-radius: 24px; padding: 22px; border: 1px solid var(--line); }
@container (min-width: 700px) { .vt-card { padding: 28px; } }
.vt-card h2 { font-size: 24px; margin: 0 0 14px; }

/* The shipping label */
.vt-label { background: #fff; border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; }
.vt-top { display: flex; justify-content: space-between; align-items: center; gap: 4px 10px; flex-wrap: wrap; margin: 0; padding: 14px 18px; background: var(--ink); color: #fff; font: 800 17px/1.3 var(--text); letter-spacing: 0; }
.vt-placed { font-weight: 400; }
.vt-rows { margin: 0; padding: 16px 18px; display: grid; gap: 12px; }
.vt-rows > div { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.vt-rows dt { color: var(--muted); font-size: 15px; }
.vt-rows dd { margin: 0; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.vt-perf { border-top: 3px dashed var(--ink); margin: 0 14px; }
.vt-code { padding: 14px 18px 18px; text-align: center; }
.vt-bars { height: 54px; margin: 6px 0; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 13px); border-radius: 4px; }
.vt-num { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.vt-num a { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--link); overflow-wrap: anywhere; }
.vt-copy { font: 700 14px/1 var(--text); background: var(--sand); color: var(--ink); border: 0; border-radius: 999px; min-height: 36px; padding: 8px 14px; cursor: pointer; }
.vt-copy:hover, .vt-copy:focus-visible { background: var(--gold); }

/* History */
.vt-hist { list-style: none; margin: 0; padding: 0; }
.vt-hist li { position: relative; padding: 0 0 18px 30px; }
.vt-hist li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--muted); }
.vt-hist li::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.vt-hist li:last-child { padding-bottom: 0; }
.vt-hist li:last-child::after { display: none; }
.vt-hist li:first-child::before { background: var(--gold); box-shadow: inset 0 0 0 3px var(--ink); }
.vt-hist b { display: block; }
.vt-hist span { display: block; font-size: 15px; color: var(--muted); }
.vt-hist .vt-msg-h { font-weight: 800; color: var(--ink); }
.vt-hist .vt-msg { color: var(--ink); font-size: 16px; white-space: pre-line; overflow-wrap: anywhere; }

/* In your box */
.vt-items { display: grid; gap: 16px; }
.vt-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start; }
.vt-item img, .vt-noimg { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--sand); }
.vt-price { white-space: nowrap; }
.vt-names-box > summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.vt-names-box > summary::-webkit-details-marker { display: none; }
.vt-names-box > summary::after { content: "+"; font-size: 24px; }
.vt-names-box[open] > summary::after { content: "–"; }
.vt-cnames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; counter-reset: vt; }
@container (min-width: 700px) { .vt-cnames { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vt-cnames li { counter-increment: vt; background: var(--sand); border-radius: 12px; padding: 7px 10px; font-weight: 700; display: flex; gap: 8px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.vt-cnames li::before { content: counter(vt); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.vt-total { display: flex; justify-content: space-between; margin-top: 16px !important; border-top: 1px solid var(--line); padding-top: 12px; }

/* Lookup form */
.vt-hero--lookup { padding-bottom: 26px; text-align: center; }
.vt-lookup { display: grid; gap: 14px; max-width: 560px; margin: 22px auto 0; }
.vt-lookup .btn { width: 100%; justify-content: center; }
.vt-lookup label { font-weight: 800; display: block; margin-bottom: 6px; }
.vt-lookup input { width: 100%; font: 18px var(--text); min-height: 52px; border-radius: 16px; border: 2px solid var(--ink); padding: 0 16px; background: #fff; color: var(--ink); }
.vt-lookup input:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.vt-hint { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }
.vl-track-page .woocommerce-notices-wrapper { margin-bottom: 18px; }

.vt-help { text-align: center; margin-top: 28px !important; }
