/* ChaiBD order tracking, app style (public/js/chai-track.js). Uses each website design's colours; light/dark. */
@keyframes tk-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes tk-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: none; opacity: 1; } }
@keyframes tk-ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes tk-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes tk-spin { to { transform: rotate(360deg); } }
@keyframes tk-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes tk-sheet { from { transform: translateY(100%); } }
@keyframes tk-fade { from { opacity: 0; } }
@keyframes tk-shine { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes tk-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.tk-hide { display: none !important; }
/* the design's own tracking blocks never flash before the app-style page takes over */
.track-hero, .track-status, body > section:has(.timeline), body > section:has(.table-wrap) { display: none !important; }
.tk { --tk-r: 20px; display: block; max-width: 1180px; margin: 0 auto; }
.tk svg, .tk-bar svg, .tk-sheet svg, .tk-hero svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tk-card { position: relative; padding: 16px; border-radius: var(--tk-r); background: var(--card); border: 1px solid var(--card-b); animation: tk-in .5s cubic-bezier(.2,.8,.2,1) both; }
.tk-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15.5px; }
.tk-card h3 svg { width: 19px; height: 19px; color: var(--red); }
.tk-card h3 small { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.tk-ic { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; color: var(--red); background: color-mix(in srgb, var(--red) 10%, var(--card)); }
.tk-ic svg { width: 21px; height: 21px; }

/* the route: China → Bangladesh */
.tk-route { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; overflow: visible; }
.tk-arc-bg { stroke: color-mix(in srgb, currentColor 28%, transparent); stroke-width: 2.4; stroke-dasharray: 3 7; fill: none; }
.tk-arc { stroke: currentColor; stroke-width: 3.2; fill: none; }
.tk-end circle { fill: currentColor; } .tk-end .tk-ping { fill: none; stroke: currentColor; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: tk-ping 2s ease-out infinite; }
.tk-end.a .tk-ping { animation-delay: 1s; }
.tk-mover circle { fill: var(--card); stroke: currentColor; stroke-width: 2.4; filter: drop-shadow(0 6px 8px rgba(0,0,0,.18)); }
.tk-mover-i path { fill: currentColor; stroke: none; }
.tk-route text { stroke: none; font: 700 12px "Hind Siliguri", Poppins, sans-serif; fill: currentColor; text-anchor: middle; opacity: .85; }
.tk-route.arrive .tk-end.b circle:first-child { animation: tk-pop .5s cubic-bezier(.34,1.56,.64,1); transform-box: fill-box; transform-origin: center; }

/* ------------------------------------------------------------------ find an order */
.tk-find { display: grid; gap: 14px; max-width: 560px; margin: 0 auto; }
.tk-find-hero { position: relative; overflow: hidden; display: grid; gap: 6px; padding: 22px 20px 14px; border-radius: 26px; color: var(--on-accent, #fff); background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--amber, #f2b705) 55%, transparent), transparent 60%), linear-gradient(140deg, color-mix(in srgb, var(--red) 82%, #ff7a45), var(--red)); box-shadow: 0 24px 40px -28px var(--red); animation: tk-in .55s cubic-bezier(.2,.8,.2,1) both; }
.tk-find-hero::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.09); pointer-events: none; }
.tk-find-t h1 { margin: 0; font-size: 24px; line-height: 1.25; color: inherit; }
.tk-find-t p { margin: 6px 0 0; font-size: 13.5px; opacity: .9; line-height: 1.5; }
.tk-find-hero .tk-route { color: #fff; max-width: 360px; margin-top: 4px; }
.tk-find-hero .tk-mover circle { fill: var(--red); stroke: #fff; }
.tk-find-hero .tk-mover-i path { fill: #fff; }
.tk-form { display: grid; gap: 10px; padding: 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--card-b); animation: tk-in .55s .08s cubic-bezier(.2,.8,.2,1) both; }
.tk-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 4%, var(--card)); border: 1.5px solid transparent; transition: border-color .2s, background .2s, box-shadow .2s; }
.tk-in:focus-within { border-color: var(--red); background: var(--card); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 12%, transparent); }
.tk-in.need { animation: tk-shake .4s; border-color: #e11d48; }
.tk-in > span { font: 800 18px Poppins, sans-serif; color: var(--red); width: 20px; text-align: center; }
.tk-in > svg { width: 20px; height: 20px; color: var(--red); }
.tk-in input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--ink); font: inherit; font-size: 15.5px; }
.tk-err { margin: 0; min-height: 0; font-size: 13px; color: #e11d48; } .tk-err:empty { display: none; }
.tk-go { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border: 0; border-radius: 16px; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; color: var(--on-accent, #fff); background: linear-gradient(135deg, color-mix(in srgb, var(--red) 80%, #ff7a45), var(--red)); box-shadow: 0 14px 24px -16px var(--red); transition: transform .25s cubic-bezier(.34,1.56,.64,1), filter .2s; }
.tk-go svg { width: 20px; height: 20px; stroke-width: 2.3; }
.tk-go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); animation: tk-sweep 3.2s ease-in-out infinite; will-change: transform; }
@keyframes tk-sweep { 0%, 50% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.tk-go:active { transform: scale(.97); }
.busy { pointer-events: none; }
.tk-go.busy > *, .tk-pay-go.busy { color: transparent !important; }
.tk-go.busy::before, .tk-pay-go.busy::before, .tk-chip.busy::before { content: ""; position: absolute; width: 22px; height: 22px; left: calc(50% - 11px); top: calc(50% - 11px); border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: tk-spin .7s linear infinite; }
.tk-chip.busy::before { border-color: color-mix(in srgb, var(--red) 25%, transparent); border-top-color: var(--red); left: auto; right: 14px; }

.tk-mine h3, .tk-recent h3 { margin: 6px 4px 8px; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.tk-mine-l { display: grid; gap: 8px; }
.tk-chip { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 18px; border: 1px solid var(--card-b); background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; animation: tk-in .45s both; transition: transform .25s cubic-bezier(.34,1.56,.64,1), border-color .2s; }
.tk-mine-l .tk-chip:nth-child(2) { animation-delay: .05s; } .tk-mine-l .tk-chip:nth-child(3) { animation-delay: .1s; } .tk-mine-l .tk-chip:nth-child(4) { animation-delay: .15s; }
.tk-chip:hover { border-color: color-mix(in srgb, var(--red) 40%, var(--card-b)); transform: translateY(-2px); }
.tk-chip:active { transform: scale(.98); }
.tk-chip img, .tk-chip-i { width: 46px; height: 46px; flex: none; border-radius: 12px; object-fit: cover; background: color-mix(in srgb, var(--red) 8%, var(--card)); display: grid; place-items: center; color: var(--red); }
.tk-chip-i svg { width: 22px; height: 22px; }
.tk-chip-t { flex: 1; min-width: 0; display: grid; } .tk-chip-t b { font: 700 14.5px Poppins, sans-serif; }
.tk-chip-t small { font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-chip-r { display: grid; justify-items: end; gap: 2px; } .tk-chip-r small { font: 700 13px Poppins, sans-serif; }
.tk-chip-r em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; color: #b45309; background: color-mix(in srgb, #f59e0b 16%, transparent); white-space: nowrap; }
.tk-chip-r em.st-DELIVERED { color: #15803d; background: color-mix(in srgb, #22c55e 15%, transparent); }
.tk-chip-r em.st-ON_DELIVERY, .tk-chip-r em.st-PROCESSED { color: #1d4ed8; background: color-mix(in srgb, #3b82f6 14%, transparent); }
.tk-chip-r em.st-CANCELLED, .tk-chip-r em.st-RETURNED, .tk-chip-r em.st-DAMAGED { color: #be123c; background: color-mix(in srgb, #e11d48 13%, transparent); }
.tk-chip > svg { width: 16px; height: 16px; flex: none; color: var(--ink-soft); }

/* ------------------------------------------------------------------ the order */
.tk.in .tk-res { animation: tk-fade .3s; }
.tk-hero { position: relative; overflow: hidden; display: grid; gap: 10px; padding: 14px 18px 18px; border-radius: 26px; color: var(--on-accent, #fff); animation: tk-in .5s cubic-bezier(.2,.8,.2,1) both; }
.tk-hero.tone-go { background: radial-gradient(110% 90% at 100% 0%, color-mix(in srgb, var(--amber, #f2b705) 50%, transparent), transparent 60%), linear-gradient(145deg, color-mix(in srgb, var(--red) 80%, #ff7a45), var(--red)); box-shadow: 0 26px 44px -30px var(--red); }
.tk-hero.tone-ok { background: radial-gradient(110% 90% at 100% 0%, rgba(190,242,100,.45), transparent 60%), linear-gradient(145deg, #22c55e, #15803d); box-shadow: 0 26px 44px -30px #15803d; }
.tk-hero.tone-stop { background: linear-gradient(145deg, #6b7280, #374151); }
.tk-hero::before { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; bottom: -170px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.tk-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tk-back, .tk-inv { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; border: 0; border-radius: 99px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: inherit; background: rgba(255,255,255,.17);  transition: background .2s, transform .2s; }
.tk-back:hover, .tk-inv:hover { background: rgba(255,255,255,.28); } .tk-back:active, .tk-inv:active { transform: scale(.95); }
.tk-back svg, .tk-inv svg { width: 16px; height: 16px; stroke-width: 2.2; }
.tk-inv { padding: 7px 10px 7px 13px; font: 700 13px Poppins, sans-serif; } .tk-inv.ok { background: rgba(255,255,255,.4); }
.tk-hero-t h1 { margin: 2px 0 0; font-size: 26px; line-height: 1.2; color: inherit; }
.tk-hero-t p { margin: 4px 0 0; font-size: 13.5px; opacity: .92; } .tk-hero-t p b { font-family: Poppins, sans-serif; }
.tk-hero .tk-route { color: #fff; max-width: 380px; }
.tk-hero .tk-mover circle { fill: #fff; stroke: #fff; } .tk-hero.tone-go .tk-mover-i path { fill: var(--red); } .tk-hero.tone-ok .tk-mover-i path { fill: #15803d; }
.tk-stages { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-top: 4px; }
.tk-stages-line { position: absolute; left: 10%; right: 10%; top: 21px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.28); }
.tk-stages-line i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: #fff; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.tk-stage { position: relative; z-index: 1; display: grid; justify-items: center; gap: 5px; text-align: center; animation: tk-pop .45s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(.25s + var(--i) * 80ms); }
.tk-stage span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.22); color: #fff; transition: background .3s; }
.tk-stage span svg { width: 18px; height: 18px; stroke-width: 2.1; }
.tk-stage small { font-size: 11.5px; font-weight: 600; opacity: .75; line-height: 1.2; }
.tk-stage.st-done span { background: #fff; color: var(--red); } .tone-ok .tk-stage.st-done span { color: #15803d; }
.tk-stage.st-now span { background: #fff; color: var(--red); animation: tk-pulse 1.8s ease-in-out infinite; box-shadow: 0 0 0 4px rgba(255,255,255,.3); }
.tk-stage.st-now small, .tk-stage.st-done small { opacity: 1; }
.tk-stage.st-now small { font-weight: 800; }

.tk-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; margin-top: 16px; align-items: start; }
.tk-main, .tk-side { display: grid; gap: 12px; min-width: 0; }
.tk-side { position: sticky; top: 90px; }
.tk-main > :nth-child(2) { animation-delay: .06s; } .tk-main > :nth-child(3) { animation-delay: .12s; } .tk-main > :nth-child(4) { animation-delay: .18s; }
.tk-side > :nth-child(2) { animation-delay: .1s; }

/* payment state */
.tk-pay { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--tk-r); border: 1.5px solid; animation: tk-in .5s both; }
.tk-pay > div { flex: 1; min-width: 180px; display: grid; gap: 2px; } .tk-pay b { font-size: 15px; } .tk-pay > div span { font-size: 13px; color: var(--ink-soft); }
.tk-pay-i { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 800 20px Poppins, sans-serif; color: #fff; }
.tk-pay-i svg { width: 22px; height: 22px; stroke-width: 2.6; }
.tk-pay.ok { border-color: color-mix(in srgb, #22c55e 45%, transparent); background: color-mix(in srgb, #22c55e 9%, var(--card)); } .tk-pay.ok .tk-pay-i { background: #16a34a; } .tk-pay.ok b { color: #15803d; }
.tk-pay.bad { border-color: color-mix(in srgb, #e11d48 45%, transparent); background: color-mix(in srgb, #e11d48 7%, var(--card)); } .tk-pay.bad .tk-pay-i { background: #e11d48; } .tk-pay.bad b { color: #be123c; }
.tk-pay.due { border-color: color-mix(in srgb, var(--red) 40%, transparent); background: color-mix(in srgb, var(--red) 6%, var(--card)); } .tk-pay.due .tk-pay-i { background: var(--red); }
.tk-pay.wait { border-color: color-mix(in srgb, #f59e0b 50%, transparent); background: color-mix(in srgb, #f59e0b 9%, var(--card)); } .tk-pay.wait b { color: #b45309; }
.tk-pay.wait .tk-pay-i { background: color-mix(in srgb, #f59e0b 20%, var(--card)); }
.tk-pay.wait .tk-pay-i i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid color-mix(in srgb, #f59e0b 30%, transparent); border-top-color: #f59e0b; animation: tk-spin 1s linear infinite; }
.tk-pay.fresh { animation: tk-pop .6s cubic-bezier(.34,1.56,.64,1); }
.tk-pay-go { position: relative; flex: none; padding: 11px 18px; border: 0; border-radius: 99px; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; color: #fff; background: var(--red); box-shadow: 0 10px 20px -12px var(--red); transition: transform .2s; }
.tk-pay.bad .tk-pay-go { background: #e11d48; } .tk-pay-go:active { transform: scale(.95); }

/* courier */
.tk-courier { display: flex; align-items: center; gap: 12px; }
.tk-courier > div { flex: 1; min-width: 0; display: grid; } .tk-courier small { font-size: 12px; color: var(--ink-soft); } .tk-courier b { font-size: 15px; }
.tk-copy { display: inline-flex; align-items: center; gap: 6px; max-width: 55%; padding: 8px 12px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--red) 50%, transparent); background: color-mix(in srgb, var(--red) 5%, transparent); color: var(--ink); cursor: pointer; font: 700 13px Poppins, sans-serif; }
.tk-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tk-copy svg { width: 15px; height: 15px; flex: none; color: var(--red); }
.tk-copy.ok { border-style: solid; border-color: #16a34a; }

/* logistics log */
.tk-log ol { list-style: none; margin: 0; padding: 0; }
.tk-log li { position: relative; display: grid; grid-template-columns: 52px 18px minmax(0, 1fr); gap: 0 10px; padding-bottom: 16px; animation: tk-in .45s both; }
.tk-log ol:first-of-type li:nth-child(2) { animation-delay: .06s; } .tk-log ol:first-of-type li:nth-child(3) { animation-delay: .12s; } .tk-log ol:first-of-type li:nth-child(n+4) { animation-delay: .18s; }
.tk-log li::before { content: ""; position: absolute; left: 70px; top: 18px; bottom: -2px; width: 2px; background: color-mix(in srgb, var(--ink) 11%, transparent); }
.tk-log ol:last-of-type li:last-child::before, .tk-log ol.tk-next[hidden] + * ~ li::before { display: none; }
.tk-log li:last-child { padding-bottom: 4px; }
.tk-log time { display: grid; justify-items: end; text-align: right; line-height: 1.25; padding-top: 1px; }
.tk-log time b { font: 700 12.5px Poppins, sans-serif; color: var(--ink-soft); } .tk-log time small { font-size: 11px; color: var(--ink-soft); opacity: .8; }
.tk-log li > i { position: relative; z-index: 1; width: 12px; height: 12px; margin: 4px 0 0 3px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 22%, var(--card)); box-shadow: 0 0 0 3px var(--card); }
.tk-log li > div b { display: block; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.tk-log li > div p { margin: 3px 0 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.tk-log li.now > i { width: 16px; height: 16px; margin: 2px 0 0 1px; background: var(--red); animation: tk-pulse 1.8s ease-in-out infinite; }
.tk-log li.now > div b { color: var(--red); font-size: 15px; font-weight: 700; } .tk-log li.now time b { color: var(--red); }
.tk-log li.now > div p { color: var(--ink); }
.tk-log li.next { opacity: .55; } .tk-log li.next > i { background: none; border: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); width: 8px; height: 8px; }
.tk-next { margin-top: 0 !important; }
.tk-more { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; margin-top: 4px; padding: 10px; border: 0; border-top: 1px dashed var(--card-b); background: none; color: var(--ink-soft); font: inherit; font-size: 13px; cursor: pointer; }
.tk-more svg { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .3s; } .tk-more.open svg { transform: rotate(-90deg); }
.tk-more:hover { color: var(--red); }

/* items */
.tk-items { display: grid; gap: 0; } .tk-items h3 { margin-bottom: 4px; }
.tk-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 10px 0; color: inherit; text-decoration: none; border-top: 1px solid color-mix(in srgb, var(--card-b) 80%, transparent); animation: tk-in .45s both; animation-delay: calc(.2s + var(--i) * 60ms); }
.tk-items h3 + .tk-item { border-top: 0; }
.tk-img { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; color: var(--red); background: color-mix(in srgb, var(--red) 6%, var(--card)); }
.tk-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; } a.tk-item:hover .tk-img img { transform: scale(1.07); }
.tk-img svg { width: 26px; height: 26px; }
.tk-item-t { display: grid; gap: 3px; align-content: start; min-width: 0; }
.tk-item-t > b { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-item-t em { justify-self: start; font-style: normal; font-size: 12px; padding: 1px 8px; border-radius: 7px; color: var(--ink-soft); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.tk-item-t > span { display: flex; justify-content: space-between; align-items: baseline; }
.tk-item-t strong { font: 800 15.5px Poppins, sans-serif; color: var(--red); } .tk-item-t small { color: var(--ink-soft); font-size: 13px; }

/* address, order info, bill */
.tk-addr { display: flex; gap: 12px; align-items: flex-start; overflow: hidden; }
.tk-addr::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--red) 30%, color-mix(in srgb, var(--amber, #f2b705) 80%, var(--red)) 70%, transparent); animation: tk-glow 3s ease-in-out infinite; }
.tk-addr > div { min-width: 0; } .tk-who { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; } .tk-who b { font-size: 15.5px; } .tk-who span { color: var(--ink-soft); font-size: 13.5px; }
.tk-addr p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.tk-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13.5px; } .tk-row span { color: var(--ink-soft); flex: none; } .tk-row b { text-align: right; font-weight: 600; }
.tk-row b em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; margin-left: 4px; color: #b45309; background: color-mix(in srgb, #f59e0b 16%, transparent); }
.tk-row b em.ok { color: #15803d; background: color-mix(in srgb, #22c55e 15%, transparent); } .tk-row b em.due { color: #be123c; background: color-mix(in srgb, #e11d48 12%, transparent); }
.tk-row b.off { color: #16a34a; }
.tk-bill hr { border: 0; border-top: 1px dashed var(--card-b); margin: 8px 0; }
.tk-total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--card-b); } .tk-total span { color: var(--ink); font-weight: 700; } .tk-total b { font: 800 21px Poppins, sans-serif; color: var(--red); }

/* actions */
.tk-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; animation: tk-in .5s .15s both; }
.tk-acts button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 8px; border-radius: 16px; border: 1px solid var(--card-b); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: transform .25s cubic-bezier(.34,1.56,.64,1), border-color .2s, color .2s; }
.tk-acts button svg { width: 18px; height: 18px; stroke-width: 2; }
.tk-acts button:hover { border-color: var(--red); color: var(--red); } .tk-acts button:active { transform: scale(.95); }
.tk-acts .tk-a-again { color: var(--on-accent, #fff); border-color: transparent; background: linear-gradient(135deg, color-mix(in srgb, var(--red) 80%, #ff7a45), var(--red)); box-shadow: 0 12px 22px -14px var(--red); }
.tk-acts .tk-a-again:hover { color: var(--on-accent, #fff); }
.tk-bar { display: none; }

/* loading */
.tk-skel { display: grid; gap: 12px; } .tk-skel i { display: block; height: 120px; border-radius: 22px; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, var(--card)) 25%, color-mix(in srgb, var(--ink) 10%, var(--card)) 50%, color-mix(in srgb, var(--ink) 5%, var(--card)) 75%); background-size: 200% 100%; animation: tk-shine 1.3s linear infinite; }
.tk-skel i:first-child { height: 260px; }

/* new receipt sheet */
.tk-sheet { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: flex-end; justify-content: center; background: rgba(10,8,8,.5); animation: tk-fade .25s; }
.tk-sheet.out { opacity: 0; transition: opacity .25s; }
.tk-sheet-box { position: relative; display: grid; gap: 12px; width: min(520px, 100%); max-height: 90vh; overflow: auto; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--card); animation: tk-sheet .38s cubic-bezier(.2,1,.3,1); }
.tk-grip { justify-self: center; width: 42px; height: 5px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.tk-sh-top { display: flex; justify-content: space-between; align-items: center; } .tk-sh-top b { font-size: 17px; }
.tk-x { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.tk-x svg { width: 18px; height: 18px; }
.tk-sh-amt { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--red) 7%, var(--card)); } .tk-sh-amt b { font: 800 20px Poppins, sans-serif; color: var(--red); }
.tk-banks { display: grid; gap: 8px; } .tk-banks label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--card-b); cursor: pointer; }
.tk-banks label:has(input:checked) { border-color: var(--red); background: color-mix(in srgb, var(--red) 6%, var(--card)); }
.tk-banks input { accent-color: var(--red); } .tk-banks span { display: grid; } .tk-banks small { color: var(--ink-soft); font-size: 12px; }
.tk-up { display: grid; place-items: center; min-height: 110px; padding: 14px; border-radius: 18px; border: 2px dashed color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 4%, var(--card)); cursor: pointer; text-align: center; }
.tk-up span { display: grid; justify-items: center; gap: 4px; } .tk-up svg { width: 28px; height: 28px; color: var(--red); } .tk-up small { color: var(--ink-soft); font-size: 12px; }
.tk-up img { max-height: 150px; max-width: 100%; border-radius: 10px; } .tk-up.done { border-style: solid; border-color: #16a34a; }
.tk-ref { height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--card-b); background: var(--card); color: var(--ink); font: inherit; font-size: 15px; outline: none; } .tk-ref:focus { border-color: var(--red); }
html.tk-lock { overflow: hidden; }

/* tablets and phones: one column, actions in a bottom bar */
@media (max-width: 1100px) {
  .tk-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tk-side { position: static; }
}
@media (max-width: 860px) {
  .tk-cols { grid-template-columns: minmax(0, 1fr); margin-top: 12px; gap: 12px; }
  .tk-side { order: -1; display: contents; }
  .tk-side .tk-acts { display: none; }
  .tk-side .tk-addr { order: 2; } .tk-side .tk-bill { order: 9; }
  .tk-main { display: contents; }
  .tk-main > .tk-pay { order: 0; } .tk-main > .tk-courier { order: 1; } .tk-main > .tk-log { order: 3; } .tk-main > .tk-order { order: 4; }
  html.tk-has .tk-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 880; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--card-b); box-shadow: 0 -12px 28px -20px rgba(0,0,0,.4); animation: tk-sheet .45s cubic-bezier(.2,1,.3,1); }
  html.tk-has .tk-bar .tk-acts { animation: none; grid-template-columns: auto auto minmax(0, 1fr); }
  html.tk-has .tk-bar .tk-acts button { padding: 11px 14px; border-radius: 999px; }
  html.tk-has .mnav, html.tk-has .cw-fab { display: none !important; }
  html.tk-has body { padding-bottom: 80px !important; }
}
@media (max-width: 620px) {
  .tk-card { padding: 14px; } .tk { --tk-r: 18px; }
  .tk-hero { padding: 12px 14px 16px; border-radius: 22px; } .tk-hero-t h1 { font-size: 23px; }
  .tk-stage small { font-size: 10.5px; } .tk-stage span { width: 32px; height: 32px; } .tk-stages-line { top: 19px; }
  .tk-find-t h1 { font-size: 22px; }
  .tk-log li { grid-template-columns: 44px 18px minmax(0, 1fr); gap: 0 8px; } .tk-log li::before { left: 60px; }
  .tk-pay .tk-pay-go { width: 100%; }
}
@media (max-width: 360px) { html.tk-has .tk-bar .tk-acts button span { font-size: 12.5px; } html.tk-has .tk-bar .tk-acts button { padding: 11px 10px; } }
/* phones: just the logo row, no search bar or category row */
@media (max-width: 720px) {
  header.main form.search, header.main .sx, nav.catnav { display: none !important; }
  header.main .wrap { row-gap: 0 !important; grid-template-rows: auto !important; padding-bottom: 8px; }
  html.tk-page body > section:first-of-type { padding-top: 6px !important; }
  html.tk-page .crumb { display: none; }
}
html.tk-page body > section:first-of-type { padding-bottom: 20px !important; }
@media (prefers-reduced-motion: reduce) { .tk *, .tk-sheet * { animation: none !important; transition: none !important; } }
/* computers and tablets: the route beside the status, the stages underneath */
@media (min-width: 861px) {
  .tk-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); column-gap: 24px; padding: 18px 24px 22px; }
  .tk-hero-top, .tk-stages { grid-column: 1 / -1; }
  .tk-hero-t { align-self: center; } .tk-hero-t h1 { font-size: 32px; } .tk-hero-t p { font-size: 15px; }
  .tk-hero .tk-route { max-width: none; margin-top: -30px; }
  .tk-stages { max-width: 760px; width: 100%; justify-self: center; }
}
@media (max-width: 620px) { .tk-hero .tk-route { max-width: 300px; margin-top: -4px; } }
/* less space between the tracking card and the footer logo */
html.tk-page body > section:first-of-type { padding-bottom: 10px !important; }
html.tk-page body > footer { margin-top: 6px !important; }
html.tk-page body > footer > .wrap { padding-top: 12px !important; }
@media (min-width: 1101px) { html.tk-page body > footer > .wrap { padding-top: 24px !important; } }

/* ---- wholesale shipping bill (bill 2) ---- */
.tk-sbill { display: grid !important; gap: 10px; padding: 16px !important; border: 2px solid color-mix(in srgb, #f97316 55%, transparent) !important; background: color-mix(in srgb, #f97316 6%, var(--card)) !important; scroll-margin-top: 90px; }
.tk-sb-h { display: flex; gap: 10px; align-items: center; } .tk-sb-i { font-size: 26px; } .tk-sb-h b { display: block; font-size: 17px; } .tk-sb-h small { font-size: 12.5px; color: var(--ink-soft); }
.tk-sb-rows { display: grid; gap: 2px; } .tk-sb-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed color-mix(in srgb, var(--ink-soft) 25%, transparent); font-size: 13.5px; }
.tk-sb-rows span { display: grid; } .tk-sb-rows small { font-size: 12px; color: var(--ink-soft); } .tk-sb-rows .ok { color: #15803d; }
.tk-sb-due { display: flex; justify-content: space-between; align-items: center; } .tk-sb-due span { font-weight: 700; } .tk-sb-due b { font-size: 24px; color: var(--red); }
.tk-sb-go { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; } .tk-sb-go .tk-pay-go { width: 100%; margin: 0; }
.tk-sb-go .tk-a-inv { background: none !important; color: var(--ink) !important; border: 1px solid color-mix(in srgb, var(--ink-soft) 35%, transparent) !important; }

.tk-res > .tk-sbill { margin: 0 0 14px; }

.tk-sbill .tk-sb-h, .tk-sbill .tk-sb-due, .tk-sbill .tk-sb-rows > div { display: flex !important; flex-direction: row !important; align-items: center; }
.tk-sbill .tk-sb-h > div, .tk-sbill .tk-sb-rows span { display: grid !important; } .tk-sbill .tk-sb-due { justify-content: space-between; } .tk-sbill .tk-sb-rows > div { justify-content: space-between; }
.tk-sbill .tk-sb-go .tk-pay-go { font-size: 14px; padding: 12px 10px; line-height: 1.25; }

.tk-sbill.wait { border-color: color-mix(in srgb, #6366f1 45%, transparent) !important; background: color-mix(in srgb, #6366f1 5%, var(--card)) !important; }
.tk-sbill.paid { border-color: color-mix(in srgb, #16a34a 45%, transparent) !important; background: color-mix(in srgb, #16a34a 5%, var(--card)) !important; }
.tk-sbill .tk-sb-h > div { flex: 1; min-width: 0; }
.tk-sb-pill { flex: none; padding: 4px 10px; border-radius: 99px; font-style: normal; font-size: 12px; font-weight: 800; } .tk-sb-pill.ok { color: #15803d; background: color-mix(in srgb, #16a34a 15%, var(--card)); } .tk-sb-pill.wait { color: #b45309; background: color-mix(in srgb, #f59e0b 18%, var(--card)); }
.tk-sbill.wait .tk-sb-due b { font-size: 18px; color: #4338ca; }
.tk-sb-note { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }

/* wholesale: waiting for the payment of the rest, on top of the logistics log */
.tk-log li.tk-wait > i { background: #f97316 !important; box-shadow: 0 0 0 5px color-mix(in srgb, #f97316 25%, transparent) !important; }
.tk-log li.tk-wait > div > b { color: #c2410c !important; font-size: 15px; }
.tk-log li.tk-wait p { margin: 4px 0 8px; } .tk-wait-amt { display: inline !important; color: var(--red) !important; font-size: 15px !important; }
.tk-log li.tk-wait .tk-gopay { padding: 9px 16px; font-size: 13.5px; }

/* wholesale: pay the shipping bill from the Dhaka warehouse update */
.tk-shpay { display: inline-flex; align-items: center; gap: 6px; margin: 7px 0 2px; padding: 8px 14px; border: 0; border-radius: 99px; font: inherit; font-size: 13px; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #f97316, #e11d48); box-shadow: 0 6px 16px -6px #e11d48; animation: tk-shp 1.8s ease-in-out infinite; }
.tk-shpay:hover { filter: brightness(1.07); }
.tk-feed li .tk-shpay, .tk-feed li .tk-shpaid { display: flex; width: max-content; max-width: 100%; }
.tk-shpaid { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #15803d; background: color-mix(in srgb, #16a34a 14%, transparent); }
.tk-shpaid.wait { color: #b45309; background: color-mix(in srgb, #f59e0b 16%, transparent); }
@keyframes tk-shp { 50% { box-shadow: 0 6px 22px -4px #f97316; } }
@media (prefers-reduced-motion: reduce) { .tk-shpay { animation: none; } }
.tk-sheet-box.tk-pay { display: block; } .tk-sheet-box .tk-sb-rows { margin: 4px 0 8px; }
.tk-sheet-box .tk-sb-go { display: grid; gap: 8px; margin-top: 10px; } .tk-sheet-box .tk-sb-go .tk-pay-go { width: 100%; justify-content: center; }
.tk-sh-wait { margin: 6px 0 10px; font-weight: 600; } .tk-sh-note { margin: 8px 0 4px; font-size: 13px; color: var(--ink-soft); }
.tk-sheet-box.tk-pay .tk-sh-top { display: flex; justify-content: space-between; align-items: center; }
.tk-sheet-box.tk-pay { max-height: 88vh; overflow: auto; }

/* wholesale: where the order stands in the Dhaka warehouse (billing, payment, its check) */
.tk-feed li.tk-wsf > span { display: grid; gap: 2px; } .tk-feed li.tk-wsf b { color: #c2410c; }
.tk-feed li.tk-wsf > i { background: #f97316 !important; }
.tk-feed li.tk-wsf.ok b, .tk-log li.tk-wait.ok > div > b { color: #15803d !important; }
.tk-feed li.tk-wsf.ok > i, .tk-log li.tk-wait.ok > i { background: #16a34a !important; box-shadow: 0 0 0 5px color-mix(in srgb, #16a34a 22%, transparent) !important; }

/* one card for the order: its items, then the details and the money */
.tk-order .tk-items { margin: 2px 0 8px; padding-bottom: 6px; border-bottom: 1px dashed var(--card-b); }
.tk-order .tk-items .tk-item:first-child { border-top: 0; }

/* the updates list: the latest five, "all updates" opens the rest */
.tk-feed li.more { display: none !important; } .tk-feed.all li.more { display: grid !important; }
.tk-feed li.tk-feed-all { display: block !important; grid-template-columns: none; }
.tk-feed-all button { margin-top: 2px; padding: 6px 12px; border: 1px solid var(--card-b); border-radius: 99px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--red); background: color-mix(in srgb, var(--red) 5%, var(--card)); cursor: pointer; }
.tk-feed-all button:hover { background: color-mix(in srgb, var(--red) 10%, var(--card)); }
/* the order card on wide screens: items on top, then the details in two columns */
.tk-order .tk-item-t > span { justify-content: flex-start; gap: 14px; align-items: baseline; }
.tk-order .tk-item-t > span small { order: 0; } .tk-order .tk-item-t > span strong { order: 1; margin-left: auto; }
@media (min-width: 861px) {
  .tk-cols { max-width: 1180px; margin-left: auto; margin-right: auto; grid-template-columns: minmax(0, 1fr) 340px; }
  .tk-order { padding: 20px 22px; }
  .tk-order .tk-items { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 24px; }
  .tk-order .tk-items .tk-item:nth-child(2) { border-top: 0; }
}
/* QC photos from the China warehouse */
.tk-card h3 small { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.tk-qc-n { margin: -4px 0 10px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.tk-qc-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.tk-qc-g button { aspect-ratio: 1; border: 0; border-radius: 12px; background: center / cover no-repeat color-mix(in srgb, var(--ink) 5%, var(--card)); cursor: zoom-in; transition: transform .2s; } .tk-qc-g button:active { transform: scale(.96); }
.tk-pv { position: fixed; inset: 0; z-index: 1600; display: grid; place-items: center; padding: 16px; background: rgba(5,5,5,.88); animation: tk-fade .2s; }
.tk-pv img { max-width: 100%; max-height: calc(100vh - 90px); border-radius: 12px; object-fit: contain; }
.tk-pv .tk-x { position: absolute; top: 14px; right: 14px; color: #fff; background: rgba(255,255,255,.15); }
.tk-zp, .tk-zn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; cursor: pointer; } .tk-zp { left: 10px; } .tk-zn { right: 10px; }
.tk-pv > span { position: absolute; bottom: 16px; color: #fff; font-size: 13px; font-weight: 700; }
/* the customer's problem reports */
.tk-cl { padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 3%, var(--card)); } .tk-cl + .tk-cl { margin-top: 8px; }
.tk-cl-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .tk-cl-h b { font-size: 14px; }
.tk-cl small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-soft); } .tk-cl p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; } .tk-cl .tk-cl-r { color: var(--ink-soft); }
.tk-cl-st { flex: none; padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 800; color: #b45309; background: color-mix(in srgb, #f59e0b 15%, var(--card)); }
.tk-cl-st.ok { color: #15803d; background: color-mix(in srgb, #16a34a 14%, var(--card)); } .tk-cl-st.no { color: var(--ink-soft); background: color-mix(in srgb, var(--ink) 7%, var(--card)); }
.tk-ck { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .tk-ck button { padding: 11px 8px; border-radius: 12px; border: 1.5px solid var(--card-b); background: var(--card); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.tk-ck button.on { border-color: var(--red); color: var(--red); background: color-mix(in srgb, var(--red) 7%, var(--card)); }
.tk-cf { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 8px; } .tk-cf select { min-width: 0; }
textarea.tk-ref { height: auto; padding: 12px 14px; resize: vertical; }
.tk-cp { display: flex; flex-wrap: wrap; gap: 6px; } .tk-cp:empty { display: none; }
.tk-cp span { position: relative; width: 64px; height: 64px; border-radius: 10px; background: center / cover; } .tk-cp button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--red); color: #fff; cursor: pointer; } .tk-cp button svg { width: 12px; height: 12px; }
.tk-cup { min-height: 84px; }
/* long bill lines (parts, product types) wrap instead of widening the page */
.tk-row span { flex: 0 1 auto; min-width: 0; } .tk-row b { flex: none; }
/* phones: with "report a problem" the bar has four actions — help and invoice become round icons */
@media (max-width: 1100px) {
  html.tk-has .tk-bar .tk-acts:has(.tk-a-claim) { grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  html.tk-has .tk-bar .tk-acts:has(.tk-a-claim) :is(.tk-a-help, .tk-a-inv) { width: 44px; padding: 11px 0; } html.tk-has .tk-bar .tk-acts:has(.tk-a-claim) :is(.tk-a-help, .tk-a-inv) span { display: none; }
  html.tk-has .tk-bar .tk-acts:has(.tk-a-claim) :is(.tk-a-again, .tk-a-claim) { padding: 11px 8px; font-size: 12.5px; min-width: 0; } html.tk-has .tk-bar .tk-acts:has(.tk-a-claim) :is(.tk-a-again, .tk-a-claim) span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* return & refund before the goods leave China (chai-track.js returnCard) */
.tk-ret .tk-ret-n { margin: 10px 0; font-size: 13px; line-height: 1.55; color: var(--ink-soft); }
.tk-ret .tk-a-ret { width: 100%; }
