.mcp-st-track-page,
.mcp-st-delivery-checker {
	--mcp-ink: #12313b;
	--mcp-teal: #007d87;
	--mcp-deep: #005b64;
	--mcp-aqua: #a8e2de;
	--mcp-mist: #f1f8f7;
	--mcp-cream: #fbf8f2;
	--mcp-coral: #e46d58;
	--mcp-white: #fff;
	color: var(--mcp-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mcp-st-track-page *,
.mcp-st-track-page *::before,
.mcp-st-track-page *::after,
.mcp-st-delivery-checker *,
.mcp-st-delivery-checker *::before,
.mcp-st-delivery-checker *::after {
	box-sizing: border-box;
}

.mcp-st-track-page {
	width: min(1040px, calc(100% - 32px));
	margin: 28px auto 48px;
}

.mcp-st-track-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 16px;
	padding: 30px 32px;
	border: 1px solid #d8e9e7;
	border-radius: 18px;
	background: linear-gradient(135deg, #f7fcfb 0%, #fff 65%, #fff8f1 100%);
	box-shadow: 0 12px 30px rgba(18, 49, 59, .06);
}

.mcp-st-track-hero h1 {
	margin: 5px 0 8px;
	color: var(--mcp-ink);
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.05;
	letter-spacing: -.045em;
}

.mcp-st-track-hero p:not(.mcp-st-eyebrow) {
	margin: 0;
	color: #536c73;
	font-size: 14px;
}

.mcp-st-eyebrow,
.mcp-st-section-kicker {
	margin: 0;
	color: var(--mcp-teal);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .16em;
	line-height: 1.3;
	text-transform: uppercase;
}

.mcp-st-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 31px;
	padding: 0 11px;
	border-radius: 999px;
	background: #edf3f2;
	color: #52676d;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.mcp-st-status-shipped {
	background: #e5f2f7;
	color: #1c6072;
}

.mcp-st-status-out_for_delivery {
	background: #fff1d8;
	color: #8b5b00;
}

.mcp-st-status-return_initiated,
.mcp-st-status-return_received {
	background: #fff0ec;
	color: #a34d3f;
}

.mcp-st-status-delivered {
	background: #e2f4eb;
	color: #17673b;
}

.mcp-st-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.mcp-st-track-grid {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: 16px;
}

.mcp-st-scan-card {
	margin-top: 16px;
}

.mcp-st-scan-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.mcp-st-scan-heading h2 {
	margin-bottom: 18px;
}

.mcp-st-scan-heading > .dashicons {
	width: 24px;
	height: 24px;
	color: var(--mcp-teal);
	font-size: 24px;
}

.mcp-st-scan-list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	border-top: 1px solid #e5efee;
	list-style: none;
}

.mcp-st-scan-list li {
	display: grid;
	grid-template-columns: minmax(110px, .35fr) minmax(0, 1fr);
	gap: 18px;
	padding: 12px 0;
	border-bottom: 1px solid #e5efee;
}

.mcp-st-scan-list time {
	color: #718389;
	font-size: 11px;
	line-height: 1.45;
}

.mcp-st-scan-list div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.mcp-st-scan-list strong {
	color: var(--mcp-ink);
	font-size: 12px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.mcp-st-scan-list div span {
	color: #718389;
	font-size: 11px;
}

.mcp-st-track-card {
	min-width: 0;
	padding: 25px;
	border: 1px solid #d8e9e7;
	border-radius: 14px;
	background: var(--mcp-white);
	box-shadow: 0 8px 24px rgba(18, 49, 59, .04);
}

.mcp-st-track-card h2 {
	margin: 5px 0 21px;
	color: var(--mcp-ink);
	font-size: 20px;
	letter-spacing: -.025em;
}

.mcp-st-facts {
	display: grid;
	grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr);
	margin: 0;
	border-top: 1px solid #e5efee;
}

.mcp-st-facts dt,
.mcp-st-facts dd {
	margin: 0;
	padding: 11px 0;
	border-bottom: 1px solid #e5efee;
	font-size: 13px;
	line-height: 1.4;
}

.mcp-st-facts dt {
	color: #61767c;
	font-weight: 700;
}

.mcp-st-facts dd {
	color: var(--mcp-ink);
	font-weight: 800;
	text-align: right;
	overflow-wrap: anywhere;
}

.mcp-st-facts code {
	padding: 3px 6px;
	border-radius: 5px;
	background: var(--mcp-mist);
	color: var(--mcp-deep);
	font-size: 12px;
}

.mcp-st-track-cta {
	margin: 22px 0 0;
}

.mcp-st-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.mcp-st-button-primary {
	border-color: var(--mcp-deep);
	background: var(--mcp-deep);
	color: #fff;
}

.mcp-st-button-primary:hover {
	border-color: #00444b;
	background: #00444b;
	color: #fff;
	transform: translateY(-1px);
}

.mcp-st-button:focus-visible,
.mcp-st-customer-button:focus-visible {
	outline: 3px solid rgba(0, 125, 135, .28);
	outline-offset: 2px;
}

.mcp-st-button .dashicons {
	width: 17px;
	height: 17px;
	font-size: 17px;
}

.mcp-st-note {
	margin-top: 18px;
	padding: 12px 14px;
	border-left: 3px solid var(--mcp-aqua);
	border-radius: 7px;
	background: var(--mcp-mist);
	color: var(--mcp-ink);
	font-size: 12px;
	line-height: 1.5;
}

.mcp-st-note p {
	margin: 4px 0 0;
}

.mcp-st-timeline {
	position: relative;
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mcp-st-timeline::before {
	position: absolute;
	top: 16px;
	bottom: 16px;
	left: 15px;
	width: 2px;
	background: #d8e9e7;
	content: "";
}

.mcp-st-timeline-item {
	position: relative;
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	gap: 13px;
	min-height: 62px;
	align-items: start;
}

.mcp-st-timeline-marker {
	position: relative;
	z-index: 1;
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border: 2px solid #c8dcda;
	border-radius: 50%;
	background: #fff;
	color: #718389;
	font-size: 11px;
	font-weight: 800;
}

.mcp-st-timeline-item > div {
	display: flex;
	min-height: 32px;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	padding-bottom: 14px;
}

.mcp-st-timeline-item strong {
	color: var(--mcp-ink);
	font-size: 13px;
}

.mcp-st-timeline-item div span {
	color: #718389;
	font-size: 11px;
}

.mcp-st-timeline-complete .mcp-st-timeline-marker,
.mcp-st-timeline-current .mcp-st-timeline-marker {
	border-color: var(--mcp-teal);
	background: var(--mcp-teal);
	color: #fff;
}

.mcp-st-timeline-current strong {
	color: var(--mcp-deep);
}

.mcp-st-updated {
	margin: 8px 0 0 45px;
	color: #718389;
	font-size: 11px;
}

.mcp-st-public-message {
	display: flex;
	width: min(640px, calc(100% - 32px));
	flex-direction: column;
	gap: 6px;
	margin: 48px auto;
	padding: 20px;
	border: 1px solid #d8e9e7;
	border-left: 4px solid var(--mcp-teal);
	border-radius: 12px;
	background: #fff;
	color: var(--mcp-ink);
	box-shadow: 0 8px 24px rgba(18, 49, 59, .04);
	font-size: 13px;
	line-height: 1.5;
}

.mcp-st-public-error {
	border-left-color: var(--mcp-coral);
}

.mcp-st-delivery-checker {
	width: 100%;
	max-width: 680px;
	margin: 20px 0 0;
	padding: 19px;
	border: 1px solid #d8e9e7;
	border-radius: 12px;
	background: linear-gradient(135deg, #fbfdfd 0%, #fff 100%);
}

.mcp-st-delivery-checker-heading {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.mcp-st-delivery-checker-heading > .dashicons {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	margin-top: 2px;
	color: var(--mcp-teal);
	font-size: 24px;
}

.mcp-st-delivery-checker h2 {
	margin: 4px 0 0;
	color: var(--mcp-ink);
	font-size: 18px;
}

.mcp-st-delivery-copy {
	margin: 12px 0 14px;
	color: #61767c;
	font-size: 13px;
	line-height: 1.5;
}

.mcp-st-delivery-form {
	margin: 0;
}

.mcp-st-delivery-form > label {
	display: block;
	margin-bottom: 6px;
	color: var(--mcp-ink);
	font-size: 12px;
	font-weight: 800;
}

.mcp-st-delivery-controls {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.mcp-st-delivery-controls input {
	flex: 1 1 160px;
	min-width: 0;
	min-height: 42px;
	padding: 0 11px;
	border: 1px solid #bdd6d5;
	border-radius: 8px;
	background: #fff;
	color: var(--mcp-ink);
	font-size: 14px;
	letter-spacing: .08em;
}

.mcp-st-delivery-controls input:focus {
	border-color: var(--mcp-teal);
	box-shadow: 0 0 0 3px rgba(0, 125, 135, .14);
	outline: 0;
}

.mcp-st-delivery-controls .mcp-st-button {
	flex: 0 0 auto;
}

.mcp-st-help {
	margin: 6px 0 0;
	color: #718389;
	font-size: 11px;
	line-height: 1.45;
}

.mcp-st-delivery-result {
	min-height: 24px;
	margin-top: 10px;
	color: var(--mcp-deep);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
}

.mcp-st-delivery-result.is-error {
	color: #a34d3f;
}

.mcp-st-delivery-result.is-success {
	padding: 10px 11px;
	border-left: 3px solid var(--mcp-teal);
	border-radius: 6px;
	background: var(--mcp-mist);
}

.mcp-st-customer-action {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	clear: both;
	margin: 18px 0 0;
}

.mcp-st-customer-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 10px 16px;
	border: 1px solid var(--mcp-teal);
	border-radius: 10px;
	background: var(--mcp-teal);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

.mcp-st-customer-button:hover {
	border-color: var(--mcp-deep);
	background: var(--mcp-deep);
	color: #fff;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions a.mcp_track_shipment,
.woocommerce-account a.mcp_track_shipment {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 15px;
	border: 1px solid var(--mcp-teal);
	border-radius: 9px;
	background: var(--mcp-teal);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions a.mcp_track_shipment:hover,
.woocommerce-account a.mcp_track_shipment:hover {
	border-color: var(--mcp-deep);
	background: var(--mcp-deep);
	color: #fff;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions a.mcp_track_shipment:focus-visible,
.woocommerce-account a.mcp_track_shipment:focus-visible {
	outline: 3px solid rgba(0, 125, 135, .28);
	outline-offset: 2px;
}

.mcp-st-customer-button .dashicons {
	width: 17px;
	height: 17px;
	font-size: 17px;
}

@media (max-width: 760px) {
	.mcp-st-track-page {
		width: min(100% - 24px, 640px);
		margin-top: 18px;
	}

	.mcp-st-track-hero {
		align-items: flex-start;
		flex-direction: column;
		padding: 23px 20px;
	}

	.mcp-st-track-hero h1 {
		font-size: 31px;
	}

	.mcp-st-track-grid {
		grid-template-columns: 1fr;
	}

	.mcp-st-track-card {
		padding: 20px;
	}

	.mcp-st-scan-list li {
		grid-template-columns: 1fr;
		gap: 3px;
	}

	.mcp-st-delivery-checker {
		padding: 16px;
	}

	.mcp-st-delivery-controls {
		flex-direction: column;
	}

	.mcp-st-delivery-controls input,
	.mcp-st-delivery-controls .mcp-st-button {
		width: 100%;
	}

	.mcp-st-delivery-controls input {
		flex: 0 0 42px;
		height: 42px;
		min-height: 42px;
	}
}

@media (hover: hover) and (pointer: fine) {
	.mcp-st-track-card {
		transition: border-color .16s ease, box-shadow .16s ease;
	}

	.mcp-st-track-card:hover {
		border-color: #b9dcd9;
		box-shadow: 0 11px 28px rgba(18, 49, 59, .07);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mcp-st-button,
	.mcp-st-track-card {
		transition: none;
	}

	.mcp-st-button-primary:hover {
		transform: none;
	}
}

@media (forced-colors: active) {
	.mcp-st-button-primary,
	.mcp-st-customer-button,
	.mcp-st-timeline-marker {
		border: 1px solid ButtonText;
	}
}
