/*
 * Public order tracking — /track-order/
 *
 * Reuses the account screen's timeline and pill components rather than
 * restyling them: the customer who scans a parcel and the customer who opens
 * their account should be looking at the same thing. Only the page frame is
 * new, because this one has no account navigation beside it.
 *
 * Sized narrower than the account screens on purpose. This is opened on a
 * phone, standing over a parcel, usually one-handed.
 */

.fv-track {
	max-width: 640px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ── Header ────────────────────────────────────────────────────── */

.fv-track-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	background: var(--fv-cream);
	border: 1px solid var(--fv-line);
	border-radius: var(--fv-radius-xl);
	padding: 22px 20px;
}

.fv-track-eyebrow {
	font-family: var(--fv-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fv-ink-3);
}

.fv-track-head h1 {
	margin: 2px 0 6px;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--fv-ink);
}

.fv-track-line {
	font-size: 13px;
	color: var(--fv-ink-2);
}

/* ── Cards ─────────────────────────────────────────────────────── */

.fv-track-card {
	background: var(--fv-surface);
	border: 1px solid var(--fv-line);
	border-radius: var(--fv-radius-xl);
	padding: 20px;
}

.fv-track-card h2 {
	margin: 0 0 14px;
	font-family: var(--fv-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fv-ink-3);
}

/* ── Items ─────────────────────────────────────────────────────── */

.fv-track-items {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fv-track-items li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	font-size: 14px;
	color: var(--fv-ink);
}

.fv-track-items .qty {
	font-family: var(--fv-mono);
	font-size: 12.5px;
	color: var(--fv-ink-3);
	white-space: nowrap;
}

.fv-track-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding-top: 12px;
	border-top: 1px dashed var(--fv-line);
	font-size: 14px;
	color: var(--fv-ink-2);
}

.fv-track-total strong {
	font-family: var(--fv-mono);
	font-size: 16px;
	color: var(--fv-ink);
}

.fv-track-muted {
	margin: 0;
	font-size: 13.5px;
	color: var(--fv-ink-3);
}

/* ── Lookup form ───────────────────────────────────────────────── */

/*
 * Shown when nobody has asked anything yet, and again under a failed lookup
 * so the visitor can correct a digit rather than start over.
 */
.fv-track-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 320px;
	margin: 22px auto 0;
	text-align: left;
}

.fv-track-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--fv-ink-2);
}

.fv-track-form input {
	height: 46px;
	padding: 0 4px;
	border: 0;
	border-bottom: 1px solid var(--fv-line);
	border-radius: 0;
	background: transparent;
	font-family: inherit;
	/* 16px so iOS does not zoom the page when the field takes focus. */
	font-size: 16px;
	color: var(--fv-ink);
	transition: border-color 0.2s ease;
}

.fv-track-form input:focus {
	border-bottom-color: var(--fv-accent);
	outline: 0;
	box-shadow: none;
}

.fv-track-form .fv-track-cta {
	justify-content: center;
	width: 100%;
	border: 0;
	cursor: pointer;
	font-family: inherit;
}

/*
 * A failed lookup is a correction, not an alarm — the visitor has almost
 * certainly mistyped a digit, so it reads as a line above the form rather
 * than an error panel.
 */
.fv-track-miss {
	color: var(--fv-hot-ink);
}


/* ── Nothing found ─────────────────────────────────────────────── */

/*
 * Deliberately calm. Someone reaching this has usually just scanned their own
 * parcel and been told nothing was found — an alarming page would suggest
 * their order is lost, when the likely cause is a truncated link.
 */
.fv-track-empty {
	background: var(--fv-surface);
	border: 1px solid var(--fv-line);
	border-radius: var(--fv-radius-xl);
	padding: 40px 24px;
	text-align: center;
}

.fv-track-empty h1 {
	margin: 0 0 10px;
	font-size: clamp(20px, 4vw, 26px);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--fv-ink);
	text-wrap: balance;
}

.fv-track-empty p {
	margin: 0 auto 8px;
	max-width: 44ch;
	font-size: 14px;
	line-height: 1.6;
	color: var(--fv-ink-2);
}

.fv-track-cta {
	display: inline-flex;
	align-items: center;
	height: 42px;
	margin-top: 12px;
	padding: 0 20px;
	border-radius: var(--fv-radius-md);
	background: var(--fv-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.15s ease;
}

.fv-track-cta:hover,
.fv-track-cta:focus {
	background: var(--fv-accent-hover);
	color: #fff;
}

@media (max-width: 480px) {
	.fv-track-head {
		padding: 18px 16px;
	}

	.fv-track-card {
		padding: 16px;
	}
}
