/* ── TOKENS ── */

/* ── TOP STRIP ── */

/* ── NAV ── */

/* ── BUTTONS ── */

/* ── LAYOUT ── */
.wrap{max-width:1320px;margin:auto;padding:0 20px;}
main.tk-main { display: block; }

/* ── TRACKING PAGE ── */
.wrap{max-width:1320px;margin:auto;padding:0 20px;}
main.tk-main { display: block; flex-grow: 1; padding: 40px 0 80px; }
.tk-wrap { max-width: 560px; }
.tk-hero { text-align: center; margin-bottom: 32px; }
.tk-hero h1 { font-family: var(--ff-head); font-size: clamp(32px, 7vw, 44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 10px; }
.tk-hero p { color: var(--ink-2); font-size: 17px; line-height: 1.45; max-width: 34ch; margin: 0 auto; }
.tk-card, .ov-card { background: var(--surface); border: 1px solid var(--paper); border-radius: 20px; padding: 20px; margin-bottom: 16px; }
.tk-card h2 { font-family: var(--ff-head); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; }
.tk-card label, .form-group label { display: block; font-family: var(--ff-body); font-weight: 600; font-size: 15px; margin-bottom: 8px; color: var(--ink); }
.form-group { margin-bottom: 16px; }
.form-control { width: 100%; min-height: 52px; padding: 14px 16px; border: 0; border-radius: 12px; font-family: var(--ff-body); font-size: 17px; color: var(--ink); background: var(--cream); appearance: none; -webkit-appearance: none; }
.form-control::placeholder { color: var(--ink-3); opacity: 1; }
.form-control:focus-visible { outline: 2px solid var(--tagz); outline-offset: 2px; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.tk-help, .track-copied { font-size: 13px; color: var(--ink-3); line-height: 1.45; margin: 8px 4px 16px; }
.tk-help code { font-size: 12px; overflow-wrap: anywhere; }
.track-copied { color: var(--tagz-dk); font-weight: 600; }
.tk-err { font-size: 14px; font-weight: 600; color: #b42318; margin: -8px 4px 16px; }
.tk-card .btn, .ov-card .btn { min-height: 52px; border-radius: 14px; font-size: 17px; }
.tk-alt { margin-top: 8px; border-top: 1px solid var(--paper); }
.tk-alt summary, .ov-card details > summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; color: var(--ink); }
.tk-alt summary::-webkit-details-marker, .ov-card details > summary::-webkit-details-marker { display: none; }
.tk-alt summary::after, .ov-card details > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s var(--ease); flex-shrink: 0; margin-right: 4px; }
.tk-alt[open] summary::after, .ov-card details[open] > summary::after { transform: rotate(-135deg); }
.tk-alt form { padding-bottom: 4px; }
.tk-help-card { text-align: center; padding: 8px 8px 0; }
.tk-help-card h2 { font-family: var(--ff-head); font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.tk-help-card p { color: var(--ink-3); font-size: 14px; line-height: 1.5; margin: 0 auto 8px; max-width: 42ch; }
.tk-help-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; column-gap: 24px; }
.tk-help-actions .btn { all: unset; }
.tk-link, .tk-help-actions a { font-size: 15px; font-weight: 600; color: var(--tagz-dk); min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }
.tk-help-actions a:hover { text-decoration: underline; }
.tk-help-actions a:focus-visible { outline: 2px solid var(--tagz); outline-offset: 2px; border-radius: 6px; }

/* ── FOOTER ── */

.footer-top{
  display:grid;grid-template-columns:1fr;
  gap:40px;margin-bottom:40px;
}
.footer-brand p{font-size:13px;line-height:1.6;margin-top:12px;font-weight:300;max-width:100%;}
.footer-col h4{
  font-family:var(--ff-head);font-size:11px;font-weight:700;
  letter-spacing:0.1em;text-transform:uppercase;
  color:rgba(255,255,255,0.35);margin-bottom:16px;
}
.footer-col ul{list-style:none;}
.footer-col li{margin-bottom:10px;}
.footer-col a{
  font-size:13px;font-weight:400;
  color:rgba(255,255,255,0.5);transition:color 0.2s;
}
.footer-col a:hover{color:#fff;}
.wa-footer{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(37,211,102,0.12);
  border:1px solid rgba(37,211,102,0.25);
  border-radius:var(--r);
  padding:10px 16px;margin-top:16px;
  font-family:var(--ff-head);font-size:13px;font-weight:600;color:#25D366;
}
.wa-footer svg{width:16px;height:16px;fill:#25D366;}

/* Responsive */
@media (min-width: 600px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
  .footer-brand p { max-width: 280px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ── ORDER VIEW (?o=&t=) ── */
.order-view { margin: 0; text-align: left; }
.order-view[hidden] { display: none; }
.ov-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ov-head h2 { font-family: var(--ff-head); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; margin: 0; }
.ov-sub { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.ov-badge { font: 600 14px var(--ff-body); padding: 6px 12px; border-radius: 999px; background: var(--tagz-lt); color: var(--tagz-dk); white-space: nowrap; }
.ov-badge.ok { background: var(--green-lt); color: var(--green); }
.ov-badge.warn { background: rgba(249,112,102,0.14); color: #b42318; }
.ov-bar { display: flex; gap: 4px; margin-top: 20px; }
.ov-bar i { flex: 1; height: 6px; border-radius: 3px; background: var(--paper); }
.ov-bar i.on { background: var(--tagz); }
.ov-step { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.ov-card h2 { font-family: var(--ff-head); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; overflow-wrap: anywhere; }
.ov-card details > summary { font-family: var(--ff-head); font-weight: 700; font-size: 20px; }
.ov-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; font-size: 16px; border-top: 1px solid var(--paper); }
.ov-card h2 + .ov-row, .ov-card .ov-awb:first-of-type { border-top: 0; }
.ov-k { color: var(--ink-3); flex-shrink: 0; }
.ov-v { color: var(--ink); font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.ov-items { list-style: none; padding: 12px 0; margin: 0; font-size: 16px; border-top: 1px solid var(--paper); }
.ov-items li { padding: 4px 0; overflow-wrap: anywhere; }
.ov-msg { color: var(--ink-2); font-size: 16px; line-height: 1.5; margin: 0 0 12px; }
.ov-awb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; font-size: 16px; border-top: 1px solid var(--paper); }
.ov-awb code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 500; overflow-wrap: anywhere; flex: 1; min-width: 0; }
.ov-copy { min-height: 44px; min-width: 64px; padding: 0 12px; border: 0; background: transparent; font: 600 16px var(--ff-body); color: var(--tagz-dk); cursor: pointer; border-radius: 10px; }
.ov-copy:focus-visible { outline: 2px solid var(--tagz); }
.ov-card .btn { margin-top: 12px; }
.ov-skel { height: 120px; border-radius: 20px; background: linear-gradient(90deg, var(--paper), var(--warm), var(--paper)); background-size: 200% 100%; animation: ov-sh 1.4s linear infinite; margin-bottom: 16px; }
@keyframes ov-sh { to { background-position: -200% 0; } }
.tl { list-style: none; margin: 12px 0 0; padding: 0; }
.tl-item { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 2px; background: var(--paper); }
.tl-item.done:not(:last-child)::before { background: var(--tagz); }
.tl-dot { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid var(--paper); background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.tl-item.done .tl-dot { background: var(--tagz); border-color: var(--tagz); }
.tl-item.current .tl-dot { border-color: var(--tagz); box-shadow: 0 0 0 4px var(--tagz-lt); }
.tl-item.exception .tl-dot { background: #d92d20; border-color: #d92d20; }
.tl-body { min-width: 0; padding-top: 1px; }
.tl-label { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.tl-when, .tl-note { font-size: 14px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; }
.tl-note { color: var(--ink-2); }
.tl-item.future .tl-label { color: var(--ink-3); font-weight: 400; }
.tl-item.exception .tl-label { color: #b42318; }
.tl-item.exception .tl-body { background: rgba(249,112,102,0.1); border-radius: 12px; padding: 8px 12px; flex: 1; }
@media (min-width: 768px) { .tk-card, .ov-card { padding: 28px; } main.tk-main { padding-top: 64px; } }
@media (prefers-reduced-motion: reduce) { .ov-skel { animation: none; } .tk-alt summary::after, .ov-card details > summary::after { transition: none; } }
