:root {
	--purple: #8d5aa8;
	--ink: #202020;
	--muted: #666;
	--bg: #f4f3f5;
	--green: #d9f2df;
	--yellow: #fff3c4;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	background: var(--bg);
	color: var(--ink);
}

[hidden] {
	display: none !important;
}

button {
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 700;
	padding: 11px 14px;
}

.primary {
	background: var(--purple);
	color: #fff;
}

.status-page {
	background: var(--bg);
}

.status-shell {
	align-items: center;
	display: grid;
	min-height: 100vh;
	padding: 24px;
}

.status-card {
	background: #fff;
	border-top: 5px solid var(--purple);
	border-radius: 14px;
	box-shadow: 0 18px 58px #0000001c;
	margin: auto;
	padding: 28px;
	width: min(560px, 100%);
}

.status-logo {
	display: block;
	margin: 0 auto 18px;
	max-height: 88px;
	object-fit: contain;
	width: 260px;
}

.status-head {
	border-bottom: 1px solid #eee;
	margin-bottom: 18px;
	padding-bottom: 14px;
	text-align: center;
}

.status-head h1 {
	font-size: 30px;
	margin: 0 0 8px;
}

.status-head p {
	color: var(--muted);
	line-height: 1.45;
	margin: 0;
}

.status-form {
	display: grid;
	gap: 14px;
}

.status-form label {
	display: grid;
	font-size: 13px;
	font-weight: 800;
	gap: 6px;
}

.status-form input {
	border: 1px solid #d5d5d5;
	border-radius: 10px;
	font-size: 18px;
	padding: 13px;
	text-align: center;
	width: 100%;
}

.status-form button:disabled {
	cursor: wait;
	opacity: .72;
}

.status-message {
	border-radius: 10px;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
	margin: 16px 0 0;
	padding: 11px 12px;
}

.status-message.loading {
	background: #f4f4f4;
	border: 1px solid #ddd;
	color: #333;
}

.status-message.error {
	background: #ffd7d7;
	border: 1px solid #efb8b8;
	color: #8a1f1f;
}

.status-result {
	border: 1px solid #e1e1e1;
	border-radius: 12px;
	margin-top: 18px;
	overflow: hidden;
}

.status-result-top {
	align-items: center;
	background: #111;
	color: #fff;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 14px;
}

.status-pill {
	border-radius: 999px;
	color: #111;
	display: inline-block;
	font-size: 12px;
	font-weight: 900;
	padding: 7px 10px;
	text-transform: uppercase;
}

.status-pill.received {
	background: var(--yellow);
}

.status-pill.in-progress {
	background: #dbe8ff;
}

.status-pill.completed {
	background: var(--green);
}

.order-progress {
	border-bottom: 1px solid #eee;
	display: grid;
	gap: 8px;
	padding: 16px 14px;
}

.order-progress-head {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

.order-progress-head span {
	color: var(--muted);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.order-progress-head strong {
	font-size: 16px;
}

.order-progress-track {
	background: #eee;
	border-radius: 999px;
	height: 12px;
	overflow: hidden;
}

.order-progress-track span {
	background: var(--purple);
	border-radius: inherit;
	display: block;
	height: 100%;
	min-width: 10px;
	transition: width .35s ease;
}

.order-progress p {
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
}

.status-details {
	display: grid;
	gap: 0;
	margin: 0;
}

.status-details div {
	border-top: 1px solid #eee;
	display: grid;
	gap: 6px;
	grid-template-columns: 130px 1fr;
	padding: 14px;
}

.status-details div:first-child {
	border-top: 0;
}

.status-details dt {
	color: var(--muted);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.status-details dd {
	font-size: 16px;
	font-weight: 800;
	margin: 0;
	overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
	.status-card {
		padding: 22px;
	}

	.status-head h1 {
		font-size: 26px;
	}

	.status-result-top {
		align-items: flex-start;
		flex-direction: column;
	}

	.status-details div {
		grid-template-columns: 1fr;
	}
}
