/* ParcelKite – customer tracking */
.pk-track { --pk-accent: #0f766e; --pk-line: #e5e7eb; --pk-muted: #6b7280; max-width: 760px; margin: 0 auto 2em; font-size: 1rem; }
.pk-track__title { font-size: 1.25em; margin: 0 0 1em; }
.pk-muted { color: var(--pk-muted); font-size: .9em; }
.pk-button { display: inline-block; padding: .7em 1.4em; border-radius: 8px; background: var(--pk-accent); color: #fff !important; border: 0; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.pk-button:hover { filter: brightness(.92); }
.pk-button--ghost { background: transparent; color: var(--pk-accent) !important; box-shadow: inset 0 0 0 2px var(--pk-accent); }
.pk-form { background: #fff; border: 1px solid var(--pk-line); border-radius: 14px; padding: 1.5em; max-width: 460px; margin: 0 auto; }
.pk-form__title { margin: 0 0 .3em; }
.pk-form__intro { color: var(--pk-muted); margin: 0 0 1em; }
.pk-form label { display: block; font-weight: 600; margin-bottom: .3em; }
.pk-form input { width: 100%; box-sizing: border-box; padding: .7em .8em; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1em; }
.pk-form__error { background: #fef2f2; color: #b91c1c; padding: .6em .8em; border-radius: 8px; }
.pk-ship { background: #fff; border: 1px solid var(--pk-line); border-radius: 14px; padding: 1.25em 1.25em 1em; margin: 0 0 1.25em; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.pk-ship__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; flex-wrap: wrap; }
.pk-ship__carrier { display: block; font-weight: 700; }
.pk-ship__number { display: block; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; color: var(--pk-muted); word-break: break-all; }
.pk-badge { display: inline-block; padding: .3em .8em; border-radius: 999px; font-size: .85em; font-weight: 700; background: #f3f4f6; color: #374151; white-space: nowrap; }
.pk-badge--transit { background: #eff6ff; color: #1d4ed8; }
.pk-badge--ofd, .pk-badge--pickup { background: #fff7ed; color: #c2410c; }
.pk-badge--delivered { background: #ecfdf5; color: #047857; }
.pk-badge--problem { background: #fef2f2; color: #b91c1c; }
.pk-steps { display: flex; list-style: none; margin: 1.2em 0 1em; padding: 0; counter-reset: pk; }
.pk-steps li { flex: 1; position: relative; text-align: center; font-size: .78em; color: var(--pk-muted); padding-top: 22px; }
.pk-steps li::before { content: ''; position: absolute; top: 4px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #d1d5db; z-index: 1; }
.pk-steps li::after { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: #e5e7eb; }
.pk-steps li:first-child::after { display: none; }
.pk-steps li.is-done { color: #111827; }
.pk-steps li.is-done::before, .pk-steps li.is-done::after { background: var(--pk-accent); }
.pk-steps li.is-current::before { box-shadow: 0 0 0 5px color-mix(in srgb, var(--pk-accent) 25%, transparent); }
.pk-ship--problem .pk-steps li.is-current::before { background: #dc2626; }
.pk-ship__summary p { margin: .3em 0; }
.pk-ship__eta { color: #065f46; }
.pk-events { margin: .8em 0; }
.pk-events summary { cursor: pointer; color: var(--pk-accent); font-weight: 600; }
.pk-timeline { list-style: none; margin: .8em 0 0; padding: 0 0 0 1.1em; border-left: 2px solid var(--pk-line); }
.pk-timeline__item { position: relative; padding: 0 0 .9em .6em; }
.pk-timeline__item::before { content: ''; position: absolute; left: -1.5em; top: .4em; width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; border: 2px solid #fff; }
.pk-timeline__item:first-child::before { background: var(--pk-accent); }
.pk-timeline__item--problem::before { background: #dc2626 !important; }
.pk-timeline__item--delivered::before { background: #059669 !important; }
.pk-timeline__desc { display: inline; }
.pk-timeline time { display: block; }
.pk-ship__foot { display: flex; align-items: center; justify-content: space-between; gap: 1em; flex-wrap: wrap; border-top: 1px solid var(--pk-line); padding-top: .9em; margin-top: .6em; }
@media (max-width: 520px) {
	.pk-steps li span { display: none; }
	.pk-steps li.is-current span { display: block; position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
	.pk-steps { margin-bottom: 1.8em; }
}
