/* Order tracking page for the shop's customer (track.html) */
.tk-page { --text: #0b1220; --text-2: #4a5670; --text-3: #7a859e; color-scheme: light; min-height: 100vh; background: #f2f5fb; display: flex; justify-content: center; align-items: flex-start; padding: 24px 14px; color: #0b1220; }
.tk-card { width: min(460px, 100%); background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(11, 18, 32, .08); padding: 22px; position: relative; }
.tk-state { text-align: center; color: #6b7690; padding: 30px 0; }
.tk-langs { position: absolute; inset-inline-end: 14px; top: 14px; display: flex; gap: 2px; background: #f2f5fb; border-radius: 10px; padding: 3px; }
.tk-langs button { border: 0; background: none; padding: 3px 8px; border-radius: 7px; font: inherit; font-size: 12px; cursor: pointer; color: #6b7690; }
.tk-langs button.on { background: #fff; color: #0b1220; font-weight: 700; }
.tk-head { display: flex; gap: 12px; align-items: center; padding: 6px 0 16px; border-bottom: 1px solid #e8ecf3; padding-inline-end: 90px; }
.tk-head img, .tk-ini { width: 54px; height: 54px; border-radius: 14px; object-fit: contain; flex: none; }
.tk-ini { display: grid; place-items: center; background: var(--brand-soft, #e8eeff); color: var(--brand, #2f5deb); font-weight: 800; font-size: 22px; }
.tk-head h1 { margin: 0; font-size: 19px; overflow-wrap: anywhere; } .tk-head p { margin: 2px 0 0; color: #6b7690; font-size: 13px; }
.tk-title { font-size: 16px; margin: 16px 0 12px; }
.tk-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 0; }
.tk-steps li { display: flex; gap: 12px; position: relative; padding-bottom: 16px; color: #9aa3b8; }
.tk-steps li:last-child { padding-bottom: 0; }
.tk-steps li i { width: 16px; height: 16px; border-radius: 50%; border: 3px solid #d5dbe8; background: #fff; flex: none; margin-top: 2px; z-index: 1; }
.tk-steps li:not(:last-child)::after { content: ''; position: absolute; inset-inline-start: 7px; top: 18px; bottom: 0; width: 2px; background: #e3e8f2; }
.tk-steps li.done, .tk-steps li.now { color: #0b1220; }
.tk-steps li.done i { background: #16a34a; border-color: #16a34a; } .tk-steps li.done:not(:last-child)::after { background: #16a34a; }
.tk-steps li.failed i { background: #dc2626; border-color: #dc2626; }
.tk-steps li.now i { border-color: var(--brand, #2f5deb); box-shadow: 0 0 0 5px var(--brand-ring, rgba(47, 93, 235, .15)); animation: tk-pulse 1.6s infinite; }
@keyframes tk-pulse { 50% { box-shadow: 0 0 0 9px var(--brand-soft, rgba(47, 93, 235, .05)); } }
.tk-steps b { display: block; font-size: 14.5px; } .tk-steps small { color: #6b7690; font-size: 12px; }
.tk-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: 14px; background: #f6f8fc; border-radius: 12px; padding: 12px; }
.tk-kv dt { color: #6b7690; } .tk-kv dd { margin: 0; overflow-wrap: anywhere; }
.tk-result h3 { margin: 0 0 6px; font-size: 14px; }
.tk-result pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 12px; padding: 12px; font-size: 13.5px; font-family: ui-monospace, monospace; background: #e9f8ef; border: 1px solid #bfe8cf; }
.tk-result.failed pre { background: #fdeeee; border-color: #f4c7c7; }
.tk-wait { color: #6b7690; font-size: 14px; background: #f6f8fc; border-radius: 12px; padding: 12px; margin: 0; }
.tk-contact { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tk-wa { --_bg: #25d366; --_fg: #fff; --_bd: transparent; }
.tk-contact .btn { flex: 1; justify-content: center; }
