/* Streetgarm Order Tracking — matches streetgarm.com (Inter, near-black, #4D4BFF accent, pill buttons) */
.pot {
	--pot-brand: #4D4BFF;
	--pot-ink: #0d0d0d;
	--pot-text: #444;
	--pot-muted: #7a7a85;
	--pot-line: #ececef;
	--pot-good: #3bb54a;
	box-sizing: border-box;
	width: 100%;
	max-width: 880px;
	margin: 0 auto;
	padding: 8px 0 56px;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--pot-text);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.pot *, .pot *::before, .pot *::after { box-sizing: border-box; }

/* ---------- Hero (mirrors the homepage hero) ---------- */
.pot-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: #0d0d0d;
	color: #fff;
	border-radius: 22px;
	padding: 44px 40px 40px;
	margin: 0 0 18px;
}
.pot-hero::before {
	content: "";
	position: absolute; z-index: -1;
	width: 620px; height: 620px; right: -220px; top: -260px;
	background: radial-gradient(circle, color-mix(in srgb, var(--pot-brand) 55%, transparent) 0%, transparent 65%);
	opacity: .75;
}
.pot-hero::after {
	content: "STREETGARM";
	position: absolute; z-index: -1; left: -6px; bottom: -34px;
	font-size: 128px; font-weight: 900; letter-spacing: -.04em; line-height: 1;
	color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07);
	white-space: nowrap; pointer-events: none;
}
.pot-eyebrow {
	display: block;
	font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: var(--pot-brand);
	margin: 0 0 14px;
}
.pot .pot-hero-title {
	margin: 0 0 14px;
	font-family: inherit;
	font-size: clamp(34px, 6.4vw, 60px);
	font-weight: 900; line-height: .98; letter-spacing: -.035em; text-transform: uppercase;
	color: #fff;
}
.pot .pot-hero-title span { color: var(--pot-brand); }
.pot-hero-sub { margin: 0; max-width: 560px; font-size: 16px; color: #b9b9c6; }
.pot-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pot-chips span {
	font-size: 13px; font-weight: 600; color: #fff;
	padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04);
}

/* ---------- Form (inside hero) ---------- */
.pot-tabs { margin-top: 28px; }
.pot-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.pot-tabs > label {
	display: inline-block; cursor: pointer; margin: 0 6px 14px 0; padding: 8px 18px;
	border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
	font-size: 14px; font-weight: 700; color: #d6d6e0; transition: background .15s, color .15s;
}
#pot-tab-order:checked + label,
#pot-tab-num:checked + label { background: #fff; border-color: #fff; color: var(--pot-ink); }
.pot-form { display: none; }
#pot-tab-order:checked ~ .pot-form-order,
#pot-tab-num:checked ~ .pot-form-num { display: flex; flex-wrap: wrap; gap: 10px; }
.pot .pot-form input {
	flex: 1 1 220px; min-width: 0; height: 52px; margin: 0;
	padding: 0 22px; font: inherit; font-size: 16px; color: var(--pot-ink);
	background: #fff; border: 2px solid transparent; border-radius: 999px; box-shadow: none;
}
.pot .pot-form input::placeholder { color: #9a9aa5; }
.pot .pot-form input:focus { outline: none; border-color: var(--pot-brand); }
.pot .pot-form button,
.pot .pot-btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 52px; padding: 0 30px; margin: 0;
	font: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; text-decoration: none;
	color: #fff; background: var(--pot-brand); border: 0; border-radius: 999px; cursor: pointer;
	transition: transform .15s, filter .15s;
}
.pot .pot-form button { flex: 0 0 auto; }
.pot .pot-form button:hover, .pot .pot-btn:hover { filter: brightness(1.1); color: #fff; }
.pot .pot-btn-ghost { background: transparent; color: var(--pot-ink); border: 1.5px solid var(--pot-ink); }
.pot .pot-btn-ghost:hover { background: var(--pot-ink); color: #fff; filter: none; }

.pot-alert {
	margin: 22px 0 0; padding: 12px 18px; border-radius: 14px;
	background: rgba(255, 86, 86, .12); border: 1px solid rgba(255, 86, 86, .35); color: #ffb4b4; font-size: 14px;
}

/* ---------- Cards ---------- */
.pot-body { display: grid; gap: 14px; }
.pot-card {
	background: #fff; border: 1px solid var(--pot-line); border-radius: 18px; padding: 26px 28px;
}
.pot-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pot-eyebrow-sm { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pot-muted); }
.pot-latest { margin: 14px 0 0; font-size: 17px; font-weight: 700; color: var(--pot-ink); line-height: 1.35; }

.pot-badge {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 6px 14px; border-radius: 999px;
	font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	background: color-mix(in srgb, var(--pot-brand) 12%, #fff); color: var(--pot-brand);
}
.pot-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pot-tone-good  { background: #eaf7ec; color: #2a9a38; }
.pot-tone-warn  { background: #fff5e6; color: #c26a00; }
.pot-tone-bad   { background: #fdecec; color: #d12c2c; }
.pot-tone-muted { background: #f2f2f4; color: #5c5c66; }

/* ---------- Progress ---------- */
.pot-progress {
	list-style: none; margin: 26px 0 24px; padding: 0;
	display: grid; grid-template-columns: repeat(5, 1fr);
}
.pot-progress li { position: relative; text-align: center; margin: 0; padding: 0; }
.pot-progress li::before {
	content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 4px; border-radius: 4px;
	background: var(--pot-line);
}
.pot-progress li:first-child::before { display: none; }
.pot-progress li.is-done::before,
.pot-progress li.is-current::before { background: var(--pot-brand); }
.pot-progress__dot {
	position: relative; z-index: 1; display: block; width: 20px; height: 20px; margin: 0 auto;
	border-radius: 50%; background: #fff; border: 4px solid var(--pot-line);
}
.pot-progress li.is-done .pot-progress__dot { background: var(--pot-brand); border-color: var(--pot-brand); }
.pot-progress li.is-current .pot-progress__dot {
	border-color: var(--pot-brand);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--pot-brand) 18%, transparent);
}
.pot-progress__label {
	display: block; margin-top: 10px;
	font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.25;
	color: #a5a5ae;
}
.pot-progress li.is-done .pot-progress__label,
.pot-progress li.is-current .pot-progress__label { color: var(--pot-ink); }
/* Delivered = Streetgarm green */
.pot-progress li:last-child.is-current .pot-progress__dot { background: var(--pot-good); border-color: var(--pot-good); box-shadow: 0 0 0 6px rgba(59,181,74,.18); }
.pot-progress li:last-child.is-current::before { background: var(--pot-brand); }

.pot-progress__date { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; color: var(--pot-muted); }

/* ---------- Map ---------- */
.pot .pot-card.pot-map { position: relative; padding: 0; overflow: hidden; }
.pot-map iframe { display: block; width: 100%; height: 300px; border: 0; filter: grayscale(.35) contrast(1.05); }
.pot-map-card {
	position: absolute; left: 16px; top: 16px; max-width: calc(100% - 32px);
	background: #0d0d0d; color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.pot-map-card .pot-eyebrow-sm { color: var(--pot-brand); }
.pot-map-addr { margin-top: 2px; font-size: 14px; font-weight: 600; line-height: 1.4; }

/* Progress inside the dark hero */
.pot-hero .pot-progress { margin: 30px 0 0; }
.pot-hero .pot-progress li::before { background: rgba(255,255,255,.14); }
.pot-hero .pot-progress__dot { background: #0d0d0d; border-color: rgba(255,255,255,.22); }
.pot-hero .pot-progress li.is-current .pot-progress__dot { border-color: var(--pot-brand); }
.pot-hero .pot-progress__label { color: rgba(255,255,255,.4); }
.pot-hero .pot-progress li.is-current .pot-progress__label { color: #fff; }
.pot-hero .pot-progress__date { color: rgba(255,255,255,.55); }

/* ---------- Meta ---------- */
.pot-meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--pot-line); }
.pot-meta div { min-width: 0; }
.pot-meta dt { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pot-muted); }
.pot-meta dd { margin: 3px 0 0; font-size: 15px; font-weight: 700; color: var(--pot-ink); word-break: break-all; }
.pot-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .02em; }

/* ---------- Timeline ---------- */
.pot-timeline { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--pot-line); }
.pot-timeline summary { cursor: pointer; list-style: none; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pot-ink); }
.pot-timeline summary::-webkit-details-marker { display: none; }
.pot-timeline summary::after { content: "+"; margin-left: 8px; color: var(--pot-brand); }
.pot-timeline[open] summary::after { content: "–"; }
.pot-timeline ol { list-style: none; margin: 18px 0 0; padding: 0; }
.pot-timeline li { position: relative; display: flex; gap: 16px; margin: 0; padding: 0 0 20px; }
.pot-timeline li::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--pot-line); }
.pot-timeline li:last-child { padding-bottom: 0; }
.pot-timeline li:last-child::before { display: none; }
.pot-dot { position: relative; z-index: 1; flex: 0 0 12px; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: #d4d4da; }
.pot-timeline li.is-latest .pot-dot { background: var(--pot-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pot-brand) 18%, transparent); }
.pot-ev-d { color: var(--pot-text); font-weight: 500; }
.pot-timeline li.is-latest .pot-ev-d { color: var(--pot-ink); font-weight: 700; }
.pot-ev-m { font-size: 13px; color: var(--pot-muted); }

/* ---------- Items ---------- */
.pot-items h3 { margin: 0 0 6px; font-family: inherit; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pot-ink); }
.pot-items ul { list-style: none; margin: 0; padding: 0; }
.pot-items li { display: flex; align-items: center; gap: 14px; margin: 0; padding: 12px 0; border-top: 1px solid var(--pot-line); }
.pot-items li:first-child { border-top: 0; }
.pot-thumb { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #f4f4f6; }
.pot-thumb img { width: 56px !important; height: 56px !important; object-fit: cover; margin: 0 !important; display: block; }
.pot-item-name { flex: 1; font-weight: 600; color: var(--pot-ink); }
.pot-item-qty { color: var(--pot-muted); font-weight: 600; }

/* ---------- Footer actions ---------- */
.pot-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.pot-help { text-align: center; color: var(--pot-muted); font-size: 14px; margin: 6px 0 0; }
.pot-help a, .pot-link { color: var(--pot-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pot-link { display: inline-block; margin-top: 16px; }

/* My Account → order view */
.pot-od { margin: 0 0 2em; }
.pot-od ul { list-style: none; margin: 0 0 1em; padding: 0; }
.pot-od li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.pot-od__num { font-family: ui-monospace, Menlo, Consolas, monospace; }
.pot-od .pot-badge { --pot-brand: #4D4BFF; }

@media (max-width: 640px) {
	.pot { padding-top: 0; }
	.pot-hero { padding: 32px 22px 28px; border-radius: 18px; }
	.pot-hero::after { font-size: 84px; bottom: -22px; }
	.pot-hero-sub { font-size: 15px; }
	.pot-card { padding: 22px 20px; border-radius: 16px; }
	.pot .pot-form button { flex: 1 1 100%; }
	.pot-progress__label { font-size: 9.5px; letter-spacing: .02em; }
	.pot-actions .pot-btn { flex: 1 1 100%; }
	.pot-map iframe { height: 240px; }
	.pot-progress__date { font-size: 9.5px; }
}
