/* GT Merch – order tracking */
.gtm-trk {
	--gtm-ink: #12303a; --gtm-ink-2: #164b4f; --gtm-teal: #1f8a78; --gtm-teal-d: #146b5d; --gtm-teal-soft: #dcf1ec; --gtm-sun: #fcc55e;
	--gtm-coral: #f7845c; --gtm-coral-d: #d4553a; --gtm-cream: #fff7ea; --gtm-line: #f0dcc0; --gtm-muted: #5c6e72;
	--gtm-pixel: "Press Start 2P", ui-monospace, monospace;
	color: var(--gtm-ink); width: 100%; max-width: none; margin: 0;
}
.gtm-trk__result:empty { display: none; }
.gtm-trk__form:has(+ .gtm-trk__result:empty) { margin-bottom: 0; }
.gtm-trk *, .gtm-trk *::before, .gtm-trk *::after { box-sizing: border-box; }

/* form */
.gtm-trk__form { position: relative; overflow: hidden; border-radius: 22px; padding: 30px; color: var(--gtm-cream); margin: 0 0 24px;
	background: linear-gradient(135deg, var(--gtm-ink) 0%, var(--gtm-ink-2) 60%, var(--gtm-teal-d) 100%); }
.gtm-trk__form::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
	background-image: linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px); background-size: 16px 16px;
	-webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%); mask-image: linear-gradient(90deg, transparent 35%, #000 100%); }
.gtm-trk__intro { position: relative; z-index: 1; margin-bottom: 18px; }
.gtm-trk__intro h2 { font-family: var(--gtm-pixel); font-weight: 400; font-size: clamp(16px, 2.4vw, 22px); line-height: 1.5; color: var(--gtm-sun); margin: 0 0 8px; text-shadow: 3px 3px 0 rgba(0,0,0,.25); }
.gtm-trk__intro p { margin: 0; font-size: 15px; color: rgba(255,247,234,.9); }
.gtm-trk__fields { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.gtm-trk__fields label { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.gtm-trk__fields label span { font-size: 12.5px; font-weight: 700; color: rgba(255,247,234,.85); }
.gtm-trk__fields input {
	width: 100%; height: 50px; margin: 0; padding: 0 16px; border-radius: 14px; border: 2px solid transparent; background: #fff; color: var(--gtm-ink);
	font-size: 16px; box-shadow: none; -webkit-appearance: none; appearance: none;
}
.gtm-trk__fields input:focus { outline: 0; border-color: var(--gtm-sun); box-shadow: 0 0 0 4px rgba(252,197,94,.3); }
.gtm-trk__go {
	height: 50px; margin: 0; padding: 0 28px; border-radius: 14px; border: 2px solid var(--gtm-ink); background: var(--gtm-coral); color: var(--gtm-ink);
	font-size: 16px; font-weight: 800; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: 0 4px 0 #0b1f26;
}
.gtm-trk__go:hover, .gtm-trk__go:focus { background: #ff9672; color: var(--gtm-ink); }
.gtm-trk__go[disabled] { opacity: .6; cursor: wait; }

.gtm-trk__msg { padding: 16px 18px; border-radius: 14px; border: 2px dashed var(--gtm-line); background: var(--gtm-cream); font-size: 15px; }
.gtm-trk__result.is-loading { opacity: .5; transition: opacity .15s; }

/* card */
.gtm-trk__card { border: 2px solid var(--gtm-line); border-radius: 22px; background: #fff; padding: 24px; }
.gtm-trk__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.gtm-trk__no { margin: 0 0 4px; font-size: 13.5px; color: var(--gtm-muted); font-weight: 600; }
.gtm-trk__status { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; font-weight: 800; color: var(--gtm-ink); }
.is-step-4 .gtm-trk__status { color: var(--gtm-teal-d); }
.is-cancelled .gtm-trk__status { color: var(--gtm-coral-d); }
.gtm-trk__eta { text-align: right; background: var(--gtm-cream); border: 2px solid var(--gtm-line); border-radius: 14px; padding: 8px 14px; }
.gtm-trk__eta span { display: block; font-size: 12px; color: var(--gtm-muted); font-weight: 600; }
.gtm-trk__eta b { font-size: 17px; }

/* stepper */
.gtm-trk__steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.gtm-trk__steps::before, .gtm-trk__steps::after { content: ""; position: absolute; top: 13px; left: 10%; height: 4px; border-radius: 4px; }
.gtm-trk__steps::before { right: 10%; background: var(--gtm-line); }
.gtm-trk__steps::after { width: calc(80% * var(--gtm-step) / 4); background: var(--gtm-teal); transition: width .4s; }
.gtm-trk__steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin: 0; }
.gtm-trk__steps i { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--gtm-line); display: grid; place-items: center; }
.gtm-trk__steps li.is-done i { background: var(--gtm-teal); border-color: var(--gtm-teal); }
.gtm-trk__steps li.is-done i::after { content: "✓"; color: #fff; font-style: normal; font-weight: 800; font-size: 14px; }
.gtm-trk__steps li.is-now i { background: var(--gtm-sun); border-color: var(--gtm-ink); box-shadow: 0 0 0 5px rgba(252,197,94,.35); }
.is-step-4 .gtm-trk__steps li.is-now i { background: var(--gtm-teal); border-color: var(--gtm-teal); }
.is-step-4 .gtm-trk__steps li.is-now i::after { content: "✓"; color: #fff; font-style: normal; font-weight: 800; font-size: 14px; }
.gtm-trk__steps span { font-size: 13px; font-weight: 700; color: var(--gtm-muted); }
.gtm-trk__steps li.is-done span, .gtm-trk__steps li.is-now span { color: var(--gtm-ink); }
.gtm-trk__steps small { font-size: 12px; color: var(--gtm-muted); }

/* layout */
.gtm-trk__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.gtm-trk__main, .gtm-trk__side { display: grid; gap: 16px; }
.gtm-trk__box { border: 2px solid var(--gtm-line); border-radius: 18px; padding: 16px 18px; background: #fff; }
.gtm-trk__box h3 { font-family: var(--gtm-pixel); font-weight: 400; font-size: 10px; line-height: 1.6; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 12px; color: var(--gtm-ink); }
.gtm-trk__muted { color: var(--gtm-muted); font-size: 14px; margin: 0; }

.gtm-trk__ship { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; align-items: end; }
.gtm-trk__ship span { display: block; font-size: 12px; color: var(--gtm-muted); font-weight: 600; }
.gtm-trk__ship b { font-size: 15px; }
.gtm-trk__code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gtm-trk__code code { background: var(--gtm-cream); padding: 3px 8px; border-radius: 8px; font-size: 14px; color: var(--gtm-ink); word-break: break-all; }
.gtm-trk__copy { margin: 0; padding: 3px 10px; border-radius: 8px; border: 1.5px solid var(--gtm-ink); background: #fff; color: var(--gtm-ink); font-size: 12px; font-weight: 800; cursor: pointer; text-transform: none; }
.gtm-trk__copy:hover, .gtm-trk__copy:focus { background: var(--gtm-sun); color: var(--gtm-ink); }
.gtm-trk__ext { grid-column: 1 / -1; justify-self: start; font-size: 14px; font-weight: 700; color: var(--gtm-teal-d); text-decoration: underline; }

/* journey */
.gtm-trk__events { list-style: none; margin: 0; padding: 0; position: relative; }
.gtm-trk__events li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; margin: 0; padding: 0 0 16px; }
.gtm-trk__events li::before { content: ""; position: absolute; left: 10px; top: 16px; bottom: -2px; width: 2px; background: var(--gtm-line); }
.gtm-trk__events li:last-child::before { display: none; }
.gtm-trk__events i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--gtm-line); background: #fff; margin-top: 1px; }
.gtm-trk__events li.is-latest i { border-color: var(--gtm-ink); background: var(--gtm-sun); box-shadow: 0 0 0 4px rgba(252,197,94,.35); }
.gtm-trk__events b { display: block; font-size: 14.5px; line-height: 1.4; }
.gtm-trk__events small { display: block; font-size: 12.5px; color: var(--gtm-muted); margin-top: 2px; }
.gtm-trk__events--ours { margin-top: 4px; padding-top: 14px; border-top: 1.5px dashed var(--gtm-line); }
.gtm-trk__events--ours i { background: var(--gtm-teal-soft); border-color: var(--gtm-teal); }
.gtm-trk__events--ours li:last-child { padding-bottom: 0; }

/* items */
.gtm-trk__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gtm-trk__items li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0; }
.gtm-trk__pic { position: relative; }
.gtm-trk__pic img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; margin: 0; border: 1.5px solid var(--gtm-line); display: block; }
.gtm-trk__pic em { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--gtm-ink); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.gtm-trk__items b { display: block; font-size: 14px; line-height: 1.3; }
.gtm-trk__items small { font-size: 12.5px; color: var(--gtm-muted); }
.gtm-trk__lp { font-weight: 700; font-size: 14px; }
.gtm-trk__total { display: flex; justify-content: space-between; margin: 12px 0 0; padding-top: 12px; border-top: 2px solid var(--gtm-line); font-size: 16px; }
.gtm-trk__addr { margin: 0; font-size: 14.5px; line-height: 1.6; font-style: normal; }
.gtm-trk__help { background: var(--gtm-cream); }
.gtm-trk__help p { margin: 0 0 8px; font-size: 14px; }
.gtm-trk__mail { font-weight: 800; color: var(--gtm-teal-d); word-break: break-all; }
.gtm-trk--account { margin: 0 0 28px; }

@media (max-width: 860px) {
	.gtm-trk__grid { grid-template-columns: minmax(0, 1fr); }
	.gtm-trk__fields { grid-template-columns: minmax(0, 1fr); }
	.gtm-trk__go { width: 100%; }
}
@media (max-width: 560px) {
	.gtm-trk__form { padding: 22px 18px; border-radius: 18px; }
	.gtm-trk__card { padding: 16px; border-radius: 18px; }
	.gtm-trk__eta { text-align: left; width: 100%; }
	.gtm-trk__steps span { font-size: 11px; }
	.gtm-trk__steps small { font-size: 10.5px; }
	.gtm-trk__steps i { width: 26px; height: 26px; }
	.gtm-trk__steps::before, .gtm-trk__steps::after { top: 11px; }
	.gtm-trk__ship { grid-template-columns: minmax(0, 1fr); }
}
