.ffw-custom-tracking {
	--ffw-ink: #171717;
	--ffw-body: #4f4f4f;
	--ffw-muted: #6f6f6f;
	--ffw-line: #e3e3e3;
	--ffw-soft: #f7f7f7;
	--ffw-white: #fff;
	--ffw-sand: #f1efec;
}

.ffw-custom-tracking #main,
.ffw-custom-tracking .page-wrapper,
.ffw-custom-tracking .vamtam-main,
.ffw-custom-tracking .limit-wrapper,
.ffw-custom-tracking .limit-wrapper.vamtam-box-outer-padding {
	max-width: none;
	padding: 0;
	margin: 0;
}

.ffw-track-page,
.ffw-track-page *,
.ffw-track-page *::before,
.ffw-track-page *::after {
	box-sizing: border-box;
}

.ffw-track-page {
	color: var(--ffw-body);
	background:
		radial-gradient(900px 420px at 82% -8%, rgba(241, 239, 236, .95), transparent 62%),
		linear-gradient(180deg, #faf9f7 0%, #fff 40%, #fff 100%);
}

/* ---------- Hero ---------- */

.ffw-track-hero {
	max-width: 720px;
	margin: 0 auto;
	padding: clamp(44px, 7vw, 88px) clamp(20px, 5vw, 40px) clamp(28px, 4vw, 44px);
	text-align: center;
	animation: ffw-track-in .7s cubic-bezier(.22, 1, .36, 1) both;
}

.ffw-track-eyebrow {
	margin: 0 0 14px;
	color: var(--ffw-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.ffw-track-title {
	margin: 0 !important;
	color: var(--ffw-ink) !important;
	font-size: clamp(30px, 4.6vw, 52px) !important;
	font-weight: 500 !important;
	letter-spacing: -.03em !important;
	line-height: 1.1 !important;
	text-transform: none !important;
}

.ffw-track-lead {
	margin: 16px auto 0;
	max-width: 40rem;
	color: var(--ffw-muted);
	font-size: 16px;
	line-height: 1.65;
}

/* ---------- Form ---------- */

.ffw-track-form {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin: clamp(26px, 4vw, 38px) auto 0;
	max-width: 460px;
}

.ffw-track-page .ffw-track-input {
	flex: 1 1 auto;
	box-sizing: border-box;
	min-width: 0;
	height: 52px;
	padding: 0 18px;
	border: 1px solid var(--ffw-line);
	border-radius: 999px;
	background: var(--ffw-white);
	color: var(--ffw-ink);
	font-size: 15px;
	letter-spacing: .02em;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.ffw-track-page .ffw-track-input:focus {
	border-color: var(--ffw-ink);
	box-shadow: 0 0 0 3px rgba(23, 23, 23, .08);
	outline: none;
}

.ffw-track-page .ffw-track-submit {
	display: inline-flex;
	box-sizing: border-box;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	height: 52px;
	min-height: 0;
	padding: 0 30px;
	border: 1px solid var(--ffw-ink);
	border-radius: 999px;
	background: var(--ffw-ink);
	box-shadow: none;
	color: var(--ffw-white) !important;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	line-height: 1;
	text-transform: uppercase;
	transition: background .2s ease, color .2s ease;
}

.ffw-track-page .ffw-track-submit:hover,
.ffw-track-page .ffw-track-submit:focus-visible {
	background: var(--ffw-white);
	color: var(--ffw-ink) !important;
}

/* ---------- Result ---------- */

.ffw-track-result,
.ffw-track-empty {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 clamp(20px, 5vw, 40px) clamp(64px, 9vw, 116px);
}

/* The entry animation gives this card a stacking context of its own, so the delivery note
   inside it was painting under the timeline that follows. Lifting the whole card settles
   it, whatever z-index the note carries. */
.ffw-track-summary {
	position: relative;
	z-index: 3;
	padding: clamp(24px, 4vw, 34px) clamp(22px, 4vw, 34px);
	border: 1px solid var(--ffw-line);
	border-radius: 16px;
	background: var(--ffw-white);
	animation: ffw-track-in .6s cubic-bezier(.22, 1, .36, 1) both;
	animation-delay: .05s;
}

.ffw-track-greeting {
	margin: 0 0 6px;
	color: var(--ffw-muted);
	font-size: 14px;
	letter-spacing: .01em;
}

.ffw-track-headline {
	margin: 0 !important;
	color: var(--ffw-ink) !important;
	font-size: clamp(21px, 2.8vw, 28px) !important;
	font-weight: 500 !important;
	letter-spacing: -.02em !important;
	line-height: 1.25 !important;
	text-transform: none !important;
}

.ffw-track-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 34px;
	margin: 22px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--ffw-line);
}

.ffw-track-fact {
	margin: 0;
}

.ffw-track-fact dt {
	margin: 0 0 4px;
	color: var(--ffw-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.ffw-track-fact dd {
	margin: 0;
	color: var(--ffw-ink);
	font-size: 15px;
	font-weight: 500;
}

/* A line written for this one order. It should read like someone turned round and said it,
   so it is a soft warm panel with a quiet label rather than a bordered callout. */
.ffw-track-note {
	margin: 18px 0 0;
	padding: 17px 20px 19px;
	border: 1px solid #ebe5dd;
	border-radius: 16px;
	background: linear-gradient(135deg, #fcfaf8 0%, #f2eee9 100%);
	box-shadow: 0 1px 2px rgba(23, 23, 23, .03);
}

.ffw-track-note-label {
	display: flex;
	gap: 7px;
	align-items: center;
	margin: 0 0 9px;
	color: #8c8177;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .18em;
	line-height: 1;
	text-transform: uppercase;
}

.ffw-track-note-icon {
	flex: 0 0 auto;
	width: 13px;
	height: 13px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
}

.ffw-track-note-text {
	margin: 0;
	color: var(--ffw-ink);
	font-size: 15px;
	line-height: 1.65;
}

/* ---------- Delivery window ---------- */

.ffw-track-fact-eta {
	position: relative;
}

.ffw-track-fact-eta dt {
	display: flex;
	gap: 6px;
	align-items: center;
}

.ffw-track-help {
	display: inline-flex;
}

.ffw-track-help-btn {
	display: inline-flex;
	width: 15px;
	height: 15px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ffw-line);
	border-radius: 999px;
	background: var(--ffw-white);
	color: var(--ffw-muted);
	cursor: pointer;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
	list-style: none;
	transition: border-color .18s ease, color .18s ease;
}

.ffw-track-help-btn::-webkit-details-marker {
	display: none;
}

.ffw-track-help-btn:hover,
.ffw-track-help-btn:focus-visible,
.ffw-track-help[open] .ffw-track-help-btn {
	border-color: var(--ffw-ink);
	color: var(--ffw-ink);
}

/* The note hangs under the whole fact rather than under the icon, so it never sits half
   off the left edge of a phone. */
.ffw-track-help-note {
	position: absolute;
	z-index: 5;
	top: calc(100% + 10px);
	left: 0;
	width: min(320px, calc(100vw - 44px));
	padding: 15px 17px;
	border: 1px solid var(--ffw-line);
	border-radius: 12px;
	background: var(--ffw-white);
	box-shadow: 0 18px 44px rgba(0, 0, 0, .13);
	color: var(--ffw-body, #4f4f4f);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.6;
	text-transform: none;
	animation: ffw-track-note .22s cubic-bezier(.22, 1, .36, 1) both;
}

.ffw-track-help-note p {
	margin: 0 0 8px;
}

.ffw-track-help-note p:last-child {
	margin-bottom: 0;
}

.ffw-track-help-title {
	color: var(--ffw-ink);
	font-weight: 600;
}

@keyframes ffw-track-note {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

.ffw-track-pill {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--ffw-sand);
	color: var(--ffw-ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
}

/* ---------- Timeline ---------- */

.ffw-track-timeline {
	position: relative;
	margin: clamp(28px, 4vw, 40px) 0 0;
	padding: 0 0 0 30px;
	list-style: none;
}

.ffw-track-timeline::before {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 5px;
	width: 1px;
	background: var(--ffw-line);
}

.ffw-track-step {
	position: relative;
	margin: 0 0 26px;
	animation: ffw-track-step .55s cubic-bezier(.22, 1, .36, 1) both;
	animation-delay: calc(var(--ffw-step, 0) * .07s + .12s);
}

.ffw-track-step:last-child {
	margin-bottom: 0;
}

.ffw-track-dot {
	position: absolute;
	top: 6px;
	left: -30px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--ffw-line);
	transform: translateX(0);
}

.ffw-track-step.is-current .ffw-track-dot {
	left: -33px;
	width: 17px;
	height: 17px;
	background: var(--ffw-ink);
	box-shadow: 0 0 0 5px rgba(23, 23, 23, .08);
	animation: ffw-track-pulse 2.6s ease-out infinite;
}

.ffw-track-step-title {
	margin: 0;
	color: var(--ffw-muted);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}

.ffw-track-step.is-current .ffw-track-step-title {
	color: var(--ffw-ink);
	font-size: 17px;
	font-weight: 600;
}

.ffw-track-step-detail {
	margin: 6px 0 0;
	color: var(--ffw-body);
	font-size: 14px;
	line-height: 1.6;
}

.ffw-track-step-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin: 6px 0 0;
	color: var(--ffw-muted);
	font-size: 12.5px;
	letter-spacing: .01em;
}

.ffw-track-step-meta > * + *::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 3px;
	margin-right: 10px;
	border-radius: 50%;
	background: currentColor;
	opacity: .5;
	vertical-align: middle;
}

/* ---------- Pending / empty ---------- */

.ffw-track-pending {
	margin-top: clamp(24px, 3vw, 34px);
	padding: clamp(22px, 4vw, 30px);
	border: 1px dashed var(--ffw-line);
	border-radius: 14px;
	color: var(--ffw-muted);
	text-align: center;
}

.ffw-track-pending p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
}

.ffw-track-footnote {
	margin: 24px 0 0;
	color: var(--ffw-muted);
	font-size: 12.5px;
	text-align: center;
}

.ffw-track-empty {
	text-align: center;
	animation: ffw-track-in .5s cubic-bezier(.22, 1, .36, 1) both;
}

.ffw-track-empty-title {
	margin: 0 0 12px !important;
	color: var(--ffw-ink) !important;
	font-size: clamp(19px, 2.4vw, 24px) !important;
	font-weight: 500 !important;
	letter-spacing: -.02em !important;
	text-transform: none !important;
}

.ffw-track-empty p {
	margin: 0 0 8px;
	color: var(--ffw-muted);
	font-size: 15px;
	line-height: 1.65;
}

.ffw-track-empty a {
	color: var(--ffw-ink) !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

/* ---------- Motion ---------- */

@keyframes ffw-track-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes ffw-track-step {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes ffw-track-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(23, 23, 23, .18);
	}

	60% {
		box-shadow: 0 0 0 12px rgba(23, 23, 23, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(23, 23, 23, 0);
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 560px) {
	.ffw-track-form {
		flex-direction: column;
		align-items: stretch;
	}

	.ffw-track-page .ffw-track-submit {
		width: 100%;
	}

	.ffw-track-facts {
		gap: 14px 24px;
	}

	/* On its own row the note starts at the card's left edge, so a 320px panel always
	   has somewhere to go. */
	.ffw-track-fact-eta {
		flex: 1 1 100%;
	}

	.ffw-track-note {
		padding: 15px 16px 16px;
	}

	.ffw-track-note-text {
		font-size: 14.5px;
	}

	.ffw-track-timeline {
		padding-left: 26px;
	}

	.ffw-track-dot {
		left: -26px;
	}

	.ffw-track-step.is-current .ffw-track-dot {
		left: -29px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ffw-track-hero,
	.ffw-track-summary,
	.ffw-track-step,
	.ffw-track-empty,
	.ffw-track-help-note {
		animation: none;
	}

	.ffw-track-step.is-current .ffw-track-dot {
		animation: none;
	}
}

/* ---------- Email check ---------- */

/* Nothing about the order is on the page while this card is showing - it is built from the
   masked hint alone, which the server made and the browser never sees the source of. */
.ffw-track-verify {
	/* A gutter at every width - the result and empty cards get theirs from a wrapper this
	   one does not sit inside. */
	width: min(520px, 100% - 40px);
	margin: 0 auto clamp(64px, 9vw, 116px);
	padding: clamp(28px, 4vw, 40px) clamp(22px, 4vw, 38px);
	border: 1px solid var(--ffw-line);
	border-radius: 18px;
	background: var(--ffw-white);
	text-align: center;
	animation: ffw-track-in .5s cubic-bezier(.22, 1, .36, 1) both;
}

.ffw-track-verify-icon {
	display: inline-flex;
	width: 46px;
	height: 46px;
	align-items: center;
	justify-content: center;
	margin: 0 0 18px;
	border-radius: 50%;
	background: var(--ffw-sand);
}

.ffw-track-verify-icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: var(--ffw-ink);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.ffw-track-verify-title {
	margin: 0 0 12px !important;
	color: var(--ffw-ink) !important;
	font-size: clamp(21px, 2.6vw, 26px) !important;
	font-weight: 500 !important;
	letter-spacing: -.02em !important;
	text-transform: none !important;
}

.ffw-track-verify-copy {
	margin: 0 0 20px !important;
	color: var(--ffw-body, #4f4f4f) !important;
	font-size: 14.5px !important;
	line-height: 1.65 !important;
}

.ffw-track-verify-hint {
	display: inline-block;
	margin: 0 0 22px !important;
	padding: 9px 16px;
	border-radius: 999px;
	background: var(--ffw-sand);
	color: var(--ffw-ink) !important;
	font-size: 14px !important;
	letter-spacing: .04em;
	word-break: break-all;
}

.ffw-track-verify-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.ffw-track-verify-form .ffw-track-input {
	flex: 1 1 260px;
	min-width: 0;
	text-align: left;
}

.ffw-track-verify-error {
	margin: 0 0 16px !important;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fdf4f3;
	color: #8a2424 !important;
	font-size: 13.5px !important;
	line-height: 1.55 !important;
}

.ffw-track-verify-help {
	margin: 18px 0 0 !important;
	color: var(--ffw-muted) !important;
	font-size: 13px !important;
	line-height: 1.6 !important;
}

.ffw-track-verify-help a {
	color: var(--ffw-ink) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 520px) {
	.ffw-track-verify-form .ffw-track-input,
	.ffw-track-verify-form .ffw-track-submit {
		flex: 1 1 100%;
		width: 100%;
	}
}
