.mts-tracking-wrap {
	max-width: 640px;
	margin: 0 auto;
	font-family: inherit;
}

.mts-tracking-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	background: #f9f7f3;
	border: 1px solid #e6e2d6;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 24px;
}

.mts-tracking-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mts-tracking-row label {
	font-size: 14px;
	font-weight: 600;
	color: #2e2e2e;
}

.mts-tracking-row input {
	padding: 10px 12px;
	border: 1px solid #cdc7b6;
	border-radius: 4px;
	font-size: 15px;
	background: #fff;
}

.mts-tracking-row input:focus {
	outline: none;
	border-color: #1d6f42;
	box-shadow: 0 0 0 2px rgba(29, 111, 66, 0.2);
}

.mts-tracking-submit {
	background: #1d6f42;
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.mts-tracking-submit:hover { background: #155632; }

.mts-tracking-hint {
	font-size: 13px;
	color: #7a7568;
	margin: 0;
}

.mts-tracking-result { margin-top: 16px; }

.mts-tracking-loading,
.mts-tracking-error,
.mts-tracking-empty {
	padding: 16px;
	border-radius: 6px;
	background: #f4f4f4;
	color: #444;
	text-align: center;
}

.mts-tracking-error {
	background: #fcebea;
	color: #8a1f1c;
	border: 1px solid #f0c9c7;
}

.mts-tracking-card {
	background: #fff;
	border: 1px solid #e6e2d6;
	border-radius: 8px;
	padding: 20px;
}

.mts-tracking-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0ece0;
	margin-bottom: 12px;
}

.mts-tracking-orderstatus {
	font-size: 13px;
	background: #efe8d4;
	color: #5b4a1f;
	padding: 4px 10px;
	border-radius: 999px;
}

.mts-tracking-info {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
	font-size: 14px;
}

.mts-tracking-info code {
	background: #f4f1e8;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 13px;
}

.mts-tracking-label {
	color: #7a7568;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	display: block;
	margin-bottom: 2px;
}

.mts-tracking-status {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 16px;
	background: #e7f1ec;
	color: #1d6f42;
}

.mts-tracking-status--delivered { background: #d6efd6; color: #1f6b1f; }
.mts-tracking-status--outfordelivery { background: #ffe7c2; color: #8a4f00; }
.mts-tracking-status--intransit { background: #d8e9f7; color: #154d80; }
.mts-tracking-status--exception,
.mts-tracking-status--attemptfail { background: #fcebea; color: #8a1f1c; }

.mts-tracking-events-title {
	margin: 24px 0 12px;
	font-size: 16px;
	font-weight: 600;
	color: #2e2e2e;
}

.mts-tracking-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid #e6e2d6;
}

.mts-tracking-event {
	position: relative;
	padding: 0 0 18px 20px;
	margin-left: 8px;
}

.mts-tracking-event::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 4px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #cdc7b6;
	border: 2px solid #fff;
}

.mts-tracking-event.is-latest::before {
	background: #1d6f42;
	box-shadow: 0 0 0 4px rgba(29, 111, 66, 0.15);
}

.mts-tracking-event-time {
	font-size: 12px;
	color: #7a7568;
	margin-bottom: 2px;
}

.mts-tracking-event-msg {
	font-size: 14px;
	color: #2e2e2e;
	line-height: 1.4;
}

.mts-tracking-event-loc {
	font-size: 13px;
	color: #7a7568;
	margin-top: 2px;
}

.mts-tracking-cta {
	display: inline-block;
	margin-top: 16px;
	padding: 10px 18px;
	background: #fff;
	color: #1d6f42;
	border: 1px solid #1d6f42;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.mts-tracking-cta:hover { background: #1d6f42; color: #fff; }

.mts-tracking-fallback-note {
	font-size: 14px;
	color: #555;
	margin: 8px 0 0;
}

@media (min-width: 480px) {
	.mts-tracking-form { grid-template-columns: 1fr 1fr; }
	.mts-tracking-form .mts-tracking-submit,
	.mts-tracking-form .mts-tracking-hint { grid-column: 1 / -1; }
}
