/* Suivi de colis (templates/page-tracking.php, template-parts/tracking/, assets/js/tracking.js).
   Hero always dark (gp-scheme-dark): a drawn map, the plugin's lookup form in a glass card, the journey band
   (road, van, four stations). Help bands below follow the colour scheme. The plugin's markup (.gp-track…) is
   only restyled here, never changed. Resting styles are the last frame of every animation; all motion sits in
   the prefers-reduced-motion: no-preference block at the end, and the looping parts only run while tracking.js
   says so (classes gp-tk-live, gp-tk-play, is-playing), so without JavaScript nothing moves. */

.gp-tk { --tk-r: 28px; --tk-danger: #ff7a6b; --tk-ease: cubic-bezier(.65, 0, .35, 1); }
.gp-tk-h2 { max-width: 16ch; margin: 0; font-size: clamp(1.75rem, 1.1rem + 2.3vw, 3.2rem); }

/* ---------- Hero ---------- */
.gp-tk-hero { position: relative; isolation: isolate; overflow: hidden; overflow: clip; padding: calc(var(--header-total) + clamp(28px, 4.4vw, 64px)) 0 clamp(36px, 5vw, 72px); background: var(--bg); color: var(--ink); }
.gp-tk-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(52% 60% at 82% 18%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%), radial-gradient(46% 56% at 4% 100%, rgba(255, 255, 255, .06), transparent 70%); }
.gp-tk-hero__map { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.gp-tk-hero__map::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, .1) 1px, transparent 1.6px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 96%); mask-image: linear-gradient(180deg, #000 20%, transparent 96%); }
.gp-tk-map { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.gp-tk-map__rings circle { fill: none; stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
.gp-tk-map__route { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 9; }
.gp-tk-map__glow { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 70 930; stroke-dashoffset: 520; opacity: 0; }
.gp-tk-map__pin { fill: var(--accent); opacity: .75; }
.gp-tk-map__ping { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }

.gp-tk-hero__grid { display: grid; gap: clamp(22px, 3vw, 32px); }
.gp-tk-hero__text { min-width: 0; }
.gp-tk-hero__title { max-width: 12ch; margin: 0 0 .5rem; font-size: clamp(2.3rem, 1rem + 5vw, 5.2rem); }
.gp-tk-hero__lead { max-width: 34ch; margin: 0; }
@media (min-width: 1000px) {
	.gp-tk-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(400px, 468px); grid-template-rows: auto 1fr; grid-template-areas: "text card" "band card"; column-gap: clamp(48px, 5.4vw, 96px); row-gap: 36px; align-items: start; }
	.gp-tk-hero__text { grid-area: text; }
	.gp-tk-card { grid-area: card; align-self: center; }
	.gp-tk-journey { grid-area: band; align-self: end; }
	/* A found order: wider card for the result, the band follows the reader beside it. */
	.gp-tk[data-tk-state="found"] .gp-tk-hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.gp-tk[data-tk-state="found"] .gp-tk-card { align-self: start; }
	.gp-tk[data-tk-state="found"] .gp-tk-journey { position: sticky; top: calc(var(--header-total) + 20px); align-self: start; }
}

/* ---------- Form card (the plugin's [gp_tracking_lookup] output) ---------- */
.gp-tk-card { position: relative; min-width: 0; padding: clamp(20px, 2.4vw, 34px); border: 1px solid rgba(255, 255, 255, .13); border-radius: var(--tk-r); background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)), rgba(14, 15, 18, .8); box-shadow: 0 34px 80px -34px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.gp-tk-card::before { content: ""; position: absolute; top: -1px; left: 28px; right: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .85; }
.gp-tk-card .gp-track { gap: 18px; margin: 0; }
.gp-tk-card .gp-track__title { font-weight: 800; letter-spacing: -.005em; text-transform: uppercase; }
.gp-tk-card .gp-track--lookup > .gp-track__title { display: flex; align-items: center; gap: 14px; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }
.gp-tk-card .gp-track--lookup > .gp-track__title::before { content: ""; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0b0d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v10H3zM14 11h4l3 3v3h-7z'/%3E%3Ccircle cx='7.5' cy='18' r='2'/%3E%3Ccircle cx='17.5' cy='18' r='2'/%3E%3C/svg%3E") center / 24px no-repeat; }
.gp-tk-card .gp-track__account { color: var(--ink-2); font-size: .94rem; }
.gp-tk-card .gp-track__account a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: .2em; }

.gp-tk-card .gp-track__form { display: grid; gap: 16px; max-width: none; }
.gp-tk-card .gp-field { gap: 8px; margin: 0; }
.gp-tk-card .gp-field label { font-size: .92rem; }
.gp-tk-card .gp-field input { min-height: 56px; padding: 12px 16px 12px 50px; border: 1.5px solid transparent; border-radius: 14px; background-color: #fff; color: var(--paper-ink, #121316); background-position: 16px center; background-repeat: no-repeat; background-size: 20px; font-size: 1.05rem; transition: box-shadow .2s ease, border-color .2s ease; }
.gp-tk-card #gp-track-number { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23575a61' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 9h15M4 15h15M10 4 8 20M16 4l-2 16'/%3E%3C/svg%3E"); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.gp-tk-card #gp-track-email { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23575a61' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.gp-tk-card .gp-field input:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.gp-tk-card .gp-field input[aria-invalid="true"] { border-color: var(--tk-danger); box-shadow: 0 0 0 3px rgba(255, 122, 107, .22); }
.gp-tk-card .gp-field__help { margin: 0; color: var(--ink-2); font-size: .86rem; line-height: 1.4; }
.gp-tk-card .gp-track__form .gp-btn { width: 100%; min-height: 58px; margin-top: 4px; }
.gp-tk-card .gp-track__form .gp-btn::after { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.gp-tk-card .gp-track__form .gp-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.gp-tk-card .gp-track__error { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid rgba(255, 122, 107, .5); border-radius: 16px; background: rgba(255, 122, 107, .12); color: var(--ink); font-size: .95rem; line-height: 1.45; }
.gp-tk-card .gp-track__error::before { content: "!"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tk-danger); color: #0a0b0d; font-weight: 800; line-height: 1; }
.gp-tk-card .gp-track__error:focus-visible { outline: 2px dashed var(--tk-danger); outline-offset: 4px; }

/* Result of a found order */
.gp-tk-card .gp-track__result { display: grid; gap: 16px; margin-top: 4px; padding-top: 22px; border-top: 1px solid var(--line); }
.gp-tk-card .gp-track__result:focus-visible { outline: 2px dashed var(--accent); outline-offset: 6px; border-radius: 4px; }
.gp-tk-card .gp-track__result > .gp-track__title { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); }
.gp-tk-card .gp-track__order-status { color: var(--ink-2); }
.gp-tk-card .gp-track__order-status strong { color: var(--ink); }
.gp-tk-card .gp-track__empty { color: var(--ink-2); }
.gp-tk-card .gp-track__parcel { border-color: var(--line); border-radius: 20px; background: rgba(255, 255, 255, .035); }
.gp-tk-card .gp-track__steps { margin-top: 4px; }
.gp-tk-card .gp-track__step { padding-top: 34px; font-size: .86rem; }
.gp-tk-card .gp-track__step::before { top: 10px; height: 3px; border-radius: 3px; background: var(--line); }
.gp-tk-card .gp-track__step::after { top: 1px; width: 21px; height: 21px; border-width: 2px; background: var(--bg); }
.gp-tk-card .gp-track__step.is-done::before { background: var(--accent); }
.gp-tk-card .gp-track__step.is-done::after { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0b0d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.gp-tk-card .gp-track__step.is-current::after { border: 2px solid var(--accent); background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
@media (max-width: 560px) {
	.gp-tk-card .gp-track__step { padding: 0 0 0 34px; min-height: 22px; }
	.gp-tk-card .gp-track__step::before { top: 22px; bottom: -12px; left: 9px; width: 3px; height: auto; }
}
.gp-tk-card .gp-track__event { border-inline-start-color: var(--line); }
.gp-tk-card .gp-track__event:first-child { border-inline-start-color: var(--accent); }
@media (min-width: 1000px) {
	.gp-tk[data-tk-state="found"] .gp-track__form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
	.gp-tk[data-tk-state="found"] .gp-track__form .gp-btn { grid-column: 1 / -1; }
}

/* ---------- Journey band ---------- */
.gp-tk-journey { --tk-k: 0; --tk-n: 4; --tk-move: 1.1s; position: relative; min-width: 0; padding: 16px clamp(12px, 2vw, 24px) 20px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), rgba(12, 13, 16, .84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.gp-tk-journey__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.gp-tk-journey__title { display: grid; gap: 3px; min-width: 0; margin: 0; }
.gp-tk-journey__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--ink-2); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.gp-tk-journey__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.gp-tk-journey.is-alert .gp-tk-journey__eyebrow::before { background: var(--tk-danger); box-shadow: 0 0 0 4px rgba(255, 122, 107, .2); }
.gp-tk-journey__count { color: var(--accent-ink); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.gp-tk-journey__now { font-family: var(--font-display); font-size: clamp(1.02rem, .92rem + .5vw, 1.3rem); font-weight: 800; line-height: 1.15; text-transform: uppercase; }
.gp-tk-journey.is-alert .gp-tk-journey__now { color: var(--tk-danger); }
.gp-tk-pause { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--ink); cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.gp-tk-pause[hidden] { display: none; }
.gp-tk-pause:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12); }
.gp-tk-pause:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gp-tk-pause .gp-i { width: 18px; height: 18px; }
.gp-tk-pause__icon { display: grid; }
.gp-tk-pause__icon--play, .gp-tk-journey.is-paused .gp-tk-pause__icon--pause { display: none; }
.gp-tk-journey.is-paused .gp-tk-pause__icon--play { display: grid; }

/* Road and van: the van stands above the station it has reached (centres at (k + .5) / n of the width). */
.gp-tk-road { position: relative; height: 70px; margin-top: 8px; container-type: inline-size; overflow-x: clip; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 44' fill='%23fff' fill-opacity='.07'%3E%3Crect x='0' y='26' width='22' height='18' rx='1.5'/%3E%3Crect x='24' y='14' width='14' height='30' rx='1.5'/%3E%3Crect x='40' y='22' width='26' height='22' rx='1.5'/%3E%3Crect x='68' y='8' width='10' height='36' rx='1.5'/%3E%3Crect x='80' y='28' width='30' height='16' rx='1.5'/%3E%3Crect x='112' y='16' width='18' height='28' rx='1.5'/%3E%3Crect x='132' y='4' width='24' height='40' rx='1.5'/%3E%3Crect x='158' y='24' width='14' height='20' rx='1.5'/%3E%3Crect x='174' y='18' width='28' height='26' rx='1.5'/%3E%3Crect x='204' y='10' width='12' height='34' rx='1.5'/%3E%3Crect x='218' y='26' width='22' height='18' rx='1.5'/%3E%3C/svg%3E") left 0 bottom 20px / 240px 44px repeat-x; } /* faint skyline */
.gp-tk-road::before { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 16px; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.gp-tk-road::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 11px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .3) 0 14px, transparent 14px 28px); }
.gp-tk-road__fill { position: absolute; left: calc(50% / var(--tk-n)); right: calc(50% / var(--tk-n)); bottom: 2px; height: 3px; border-radius: 3px; background: var(--accent); transform: scaleX(max(0, var(--tk-k) / (var(--tk-n) - 1))); transform-origin: left center; }
.gp-tk-journey.is-alert .gp-tk-road__fill { background: var(--tk-danger); }
.gp-tk-van { position: absolute; left: 0; bottom: 9px; z-index: 1; width: 92px; translate: calc((var(--tk-k) + .5) / var(--tk-n) * 100cqw - 50%) 0; }
.gp-tk-van__svg { display: block; width: 100%; height: auto; overflow: visible; }
.gp-tk-journey.is-back .gp-tk-van__svg { transform: scaleX(-1); }
.gp-tk-journey.is-wait .gp-tk-van { opacity: .6; }
.gp-tk-van__shadow { fill: rgba(0, 0, 0, .45); }
.gp-tk-van__box { fill: #f4f3ee; }
.gp-tk-van__cab { fill: #dcdbd4; }
.gp-tk-van__glass { fill: #23262c; }
.gp-tk-van__stripe { fill: var(--accent); }
.gp-tk-van__mark { fill: none; stroke: #121316; stroke-width: 2.2; stroke-linejoin: round; opacity: .75; }
.gp-tk-van__line { fill: none; stroke: rgba(18, 19, 22, .25); stroke-width: 1.5; }
.gp-tk-van__light { fill: #ffe066; }
.gp-tk-van__wheel { transform-box: fill-box; transform-origin: center; }
.gp-tk-van__wheel circle { fill: #0c0d10; stroke: #3a3d44; stroke-width: 2; }
.gp-tk-van__wheel .gp-tk-van__hub { fill: #a3a5ab; stroke: none; }
.gp-tk-van__wheel path { stroke: #a3a5ab; stroke-width: 2.5; stroke-linecap: round; }
.gp-tk-van__speed { position: absolute; right: calc(100% - 4px); top: 26%; display: grid; gap: 7px; width: 34px; opacity: 0; }
.gp-tk-van__speed i { display: block; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55)); }
.gp-tk-van__speed i:nth-child(2) { width: 70%; justify-self: end; }
.gp-tk-van__flag { position: absolute; top: -12px; right: 6px; display: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tk-danger); color: #0a0b0d; font-size: .85rem; font-weight: 800; line-height: 1; }
.gp-tk-journey.is-alert .gp-tk-van__flag { display: grid; }

/* Stations */
.gp-tk-stations { display: grid; grid-template-columns: repeat(var(--tk-n), minmax(0, 1fr)); margin: 4px 0 0; padding: 0; list-style: none; text-align: center; }
.gp-tk-station { display: grid; justify-items: center; align-content: start; gap: 8px; min-width: 0; padding: 0 3px; color: var(--ink-2); }
.gp-tk-station::before { content: ""; width: 2px; height: 10px; border-radius: 2px; background: rgba(255, 255, 255, .16); }
.gp-tk-station__disc { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border: 1.5px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(255, 255, 255, .05); color: var(--ink-2); }
.gp-tk-station__disc > .gp-i { width: 24px; height: 24px; }
.gp-tk-station__disc::after { content: ""; position: absolute; inset: -7px; border: 2px solid var(--accent); border-radius: 50%; opacity: 0; }
.gp-tk-station__tick { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--accent); color: var(--on-accent); transform: scale(0); }
.gp-tk-station__tick .gp-i { width: 13px; height: 13px; stroke-width: 3; }
.gp-tk-station__label { max-width: 100%; font-size: .84rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.gp-tk-station.is-on, .gp-tk-station.is-done, .gp-tk-station.is-alert { color: var(--ink); }
.gp-tk-station.is-on::before, .gp-tk-station.is-done::before { background: var(--accent); }
.gp-tk-station.is-on .gp-tk-station__disc { border-color: var(--accent); background: var(--accent); color: var(--on-accent); transform: scale(1.08); }
.gp-tk-station.is-on .gp-tk-station__disc::after { opacity: .35; }
.gp-tk-station.is-done .gp-tk-station__disc { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent-ink); }
.gp-tk-station.is-done .gp-tk-station__tick { transform: scale(1); }
.gp-tk-station.is-alert::before { background: var(--tk-danger); }
.gp-tk-station.is-alert .gp-tk-station__disc { border-color: var(--tk-danger); background: var(--tk-danger); color: #0a0b0d; }
@media (min-width: 1000px) {
	.gp-tk-road { height: 84px; }
	.gp-tk-van { width: 116px; }
	.gp-tk-station__disc { width: 60px; height: 60px; }
	.gp-tk-station__disc > .gp-i { width: 26px; height: 26px; }
	.gp-tk-station__label { font-size: .9rem; }
}
@media (max-width: 599.98px) {
	.gp-tk-journey { padding-inline: 10px; }
	.gp-tk-journey__bar { padding-inline: 4px; }
	.gp-tk-road { height: 58px; }
	.gp-tk-van { width: 70px; }
	.gp-tk-station__disc { width: 44px; height: 44px; }
	.gp-tk-station__disc > .gp-i { width: 21px; height: 21px; }
	.gp-tk-station__label { font-size: .72rem; }
}

/* ---------- Help: where to find the order number ---------- */
.gp-tk-find { padding-block: clamp(48px, 6.4vw, 92px) clamp(36px, 5vw, 64px); }
.gp-tk-find__grid { display: grid; gap: clamp(36px, 5vw, 88px); align-items: center; }
@media (min-width: 900px) { .gp-tk-find__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.gp-tk-find__text .gp-tk-h2 { margin-bottom: clamp(18px, 2.4vw, 28px); }
.gp-tk-tips { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.gp-tk-tips li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.gp-tk-tips__n { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-ink); font-size: .8rem; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.gp-tk-tips p { margin: 0; padding-top: 10px; color: var(--ink-2); font-size: clamp(1rem, .96rem + .2vw, 1.1rem); line-height: 1.5; }
.gp-tk-tips a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-ink); text-decoration-thickness: 2px; text-underline-offset: .2em; }

/* Drawn confirmation e-mail (decorative, aria-hidden) */
.gp-tk-mail { position: relative; width: 100%; max-width: 520px; padding-top: 34px; justify-self: center; color: #121316; }
.gp-tk-mail__note { position: absolute; top: 0; left: clamp(10px, 4%, 28px); right: clamp(10px, 4%, 28px); z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid rgba(18, 19, 22, .08); border-radius: 18px; background: rgba(255, 255, 255, .94); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.gp-tk-mail__avatar { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #1d1f24; color: #d4ff3a; font-family: var(--font-display); font-weight: 800; }
.gp-tk-mail__note-text { display: grid; min-width: 0; font-size: .86rem; line-height: 1.3; }
.gp-tk-mail__note-text span { color: #4b4e55; }
.gp-tk-mail__window { position: relative; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .55), 0 0 0 1px rgba(18, 19, 22, .08); }
.gp-tk-mail__top { display: flex; gap: 6px; padding: 30px 16px 12px; background: #ecebe6; }
.gp-tk-mail__top i { width: 10px; height: 10px; border-radius: 50%; background: #c9c7c0; }
.gp-tk-mail__head { padding: 16px 22px; background: #1d1f24; color: #fff; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.gp-tk-mail__head sup { color: #d4ff3a; font-size: .55em; }
.gp-tk-mail__body { display: grid; gap: 12px; padding: 22px 22px 26px; }
.gp-tk-mail__h { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.gp-tk-mail__line { display: block; width: var(--w, 80%); height: 9px; border-radius: 9px; background: #e9e8e3; }
.gp-tk-mail__order { display: flex; align-items: center; gap: 12px; margin: 6px 0; font-size: 1.2rem; font-weight: 800; }
.gp-tk-mail__order mark { padding: .12em .4em; border-radius: 8px; background: linear-gradient(#d4ff3a, #d4ff3a) left center / 100% 100% no-repeat; color: #121316; font-variant-numeric: tabular-nums; }
.gp-tk-mail__lens { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #121316; color: #d4ff3a; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.gp-tk-mail__lens .gp-i { width: 20px; height: 20px; }
.gp-tk-mail__row { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid #efeee9; }
.gp-tk-mail__row i { width: 46%; height: 9px; border-radius: 9px; background: #e9e8e3; }
.gp-tk-mail__row i + i { width: 18%; }

/* ---------- Help: contact, FAQ, returns ---------- */
.gp-tk-ask { padding-block: 0 var(--space-section); } /* the section room before the footer or the Pro band, whose background starts there (main.css) */
.gp-tk-ask__card { display: grid; gap: clamp(20px, 3vw, 40px); padding: clamp(24px, 4.2vw, 60px); overflow: hidden; isolation: isolate; border: 1px solid rgba(255, 255, 255, .08); border-radius: calc(var(--tk-r) + 6px); background: radial-gradient(circle at 96% 4%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 46%), linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)), var(--bg); color: var(--ink); }
.gp-tk-ask__links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gp-tk-tile { display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 14px 18px 14px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-1); color: var(--ink); text-decoration: none; transition: background-color .25s ease, border-color .25s ease; }
.gp-tk-tile:hover { border-color: var(--accent-line); background: var(--surface-2); }
.gp-tk-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
:root[data-gp-world="b2b"] .gp-tk-tile:focus-visible { outline-color: var(--accent-ink); } /* G1: cream on dark, olive on a light page (the cream ring is 1.06:1 there) */
.gp-tk-tile__icon { display: grid; flex: none; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--accent); color: var(--on-accent); }
.gp-tk-tile__icon .gp-i { width: 24px; height: 24px; }
.gp-tk-tile__text { flex: 1; min-width: 0; }
.gp-tk-tile__label { display: block; font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.gp-tk-tile__value { display: block; margin-top: 3px; color: var(--ink-2); font-size: .9rem; }
.gp-tk-tile > .gp-i { flex: none; width: 20px; height: 20px; opacity: .7; }
@media (min-width: 900px) { .gp-tk-ask__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; } }

.gp-tk-extra { padding-bottom: clamp(50px, 7vw, 100px); }

/* ---------- Motion (only when the visitor accepts it) ---------- */
@media (prefers-reduced-motion: no-preference) {
	/* Van and road: travel between stations; is-jump repositions without a transition. */
	.gp-tk-van { transition: translate var(--tk-move) var(--tk-ease), opacity .45s ease; }
	.gp-tk-road__fill { transition: transform var(--tk-move) var(--tk-ease); }
	.gp-tk-journey.is-jump .gp-tk-van, .gp-tk-journey.is-jump .gp-tk-road__fill { transition: none; }
	.gp-tk-journey.is-hidden .gp-tk-van { opacity: 0; }
	.gp-tk-van__speed { transition: opacity .3s ease; }
	.gp-tk-journey.is-moving .gp-tk-van__speed { opacity: 1; }
	.gp-tk-journey.is-moving .gp-tk-van__speed i { animation: gp-tk-speed .5s linear infinite; }
	.gp-tk-journey.is-moving .gp-tk-van__speed i:nth-child(2) { animation-delay: -.17s; }
	.gp-tk-journey.is-moving .gp-tk-van__speed i:nth-child(3) { animation-delay: -.33s; }
	.gp-tk-journey.is-moving .gp-tk-van__wheel { animation: gp-tk-spin .45s linear infinite; }
	.gp-tk-journey.is-moving .gp-tk-van__body { animation: gp-tk-bob .26s ease-in-out infinite alternate; }

	.gp-tk-station::before, .gp-tk-station__disc { transition: background-color .45s ease, border-color .45s ease, color .45s ease, transform .55s var(--ease-out); }
	.gp-tk-station__tick { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
	.gp-tk-station__disc::after { transition: opacity .4s ease; }
	.gp-tk-journey.is-playing .gp-tk-station.is-on .gp-tk-station__disc::after { animation: gp-tk-ring 1.7s ease-out infinite; }
	.gp-tk-journey[data-tk-mode="status"] .gp-tk-station.is-on .gp-tk-station__disc::after { animation: gp-tk-ring 1.7s ease-out 1.2s 3 both; }
	.gp-tk-journey__eyebrow::before { transition: background-color .3s ease; }
	.gp-tk-journey.is-playing .gp-tk-journey__eyebrow::before { animation: gp-tk-blink 1.6s ease-in-out infinite; }

	/* Map: a light runs along the route and the last pin pings, only while the band plays. */
	.gp-tk-live .gp-tk-map__glow { opacity: .9; transition: opacity .6s ease; animation: gp-tk-route 7s linear infinite; }
	.gp-tk-live .gp-tk-map__ping { animation: gp-tk-ping 2.6s ease-out infinite; }
	.gp-tk-live:not(.gp-tk-play) .gp-tk-map__glow, .gp-tk-live:not(.gp-tk-play) .gp-tk-map__ping { animation-play-state: paused; }

	/* Card and its states */
	.gp-tk-card .gp-track__form .gp-btn::after { transition: transform .35s var(--ease-out); }
	.gp-tk-card .gp-track__form .gp-btn:hover::after { transform: translateX(4px); }
	.gp-tk-card .gp-track__error { animation: gp-tk-shake .5s ease-out .25s both; }
	.gp-tk-card .gp-track__result { animation: gp-tk-rise .7s var(--ease-out) .15s both; }
	.gp-tk-card .gp-track__step.is-current::after { animation: gp-tk-glow 1.8s ease-in-out 3; }

	/* Drawn e-mail: the notification drops in, the order number is marked, the lens points at it. */
	.gp-tk-mail.is-in .gp-tk-mail__note { animation: gp-tk-drop .7s var(--ease-out) .35s both; }
	.gp-tk-mail.is-in .gp-tk-mail__order mark { animation: gp-tk-mark .8s var(--ease-out) 1s both; }
	.gp-tk-mail.is-in .gp-tk-mail__lens { animation: gp-tk-pop .6s cubic-bezier(.34, 1.56, .64, 1) 1.6s both; }

	.gp-tk-tile > .gp-i { transition: transform .35s var(--ease-out), opacity .2s ease; }
	.gp-tk-tile:hover > .gp-i, .gp-tk-tile:focus-visible > .gp-i { opacity: 1; transform: translateX(4px); }
	.gp-tk-tile__icon { transition: transform .4s var(--ease-out); }
	.gp-tk-tile:hover .gp-tk-tile__icon { transform: rotate(-8deg) scale(1.06); }

	@keyframes gp-tk-speed { from { transform: translateX(10px); opacity: 0; } 40% { opacity: 1; } to { transform: translateX(-12px); opacity: 0; } }
	@keyframes gp-tk-spin { to { transform: rotate(360deg); } }
	@keyframes gp-tk-bob { to { transform: translateY(-1.5px); } }
	@keyframes gp-tk-ring { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.45); opacity: 0; } }
	@keyframes gp-tk-blink { 50% { opacity: .35; } }
	@keyframes gp-tk-route { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
	@keyframes gp-tk-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(6); opacity: 0; } }
	@keyframes gp-tk-shake { 0% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } 100% { transform: translateX(0); } }
	@keyframes gp-tk-rise { from { opacity: 0; transform: translateY(18px); } }
	@keyframes gp-tk-glow { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 10%, transparent); } }
	@keyframes gp-tk-drop { from { opacity: 0; transform: translateY(-18px) scale(.96); } }
	@keyframes gp-tk-mark { from { background-size: 0% 100%; } }
	@keyframes gp-tk-pop { from { opacity: 0; transform: scale(.3) rotate(-30deg); } }
}
