.cst-tracker-widget {
	max-width: 960px;
	margin: 0 auto;
	font-family: inherit;
	color: #1b2733;
}

.cst-search-form {
	display: flex;
	gap: 10px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}
.cst-input {
	flex: 1 1 320px;
	padding: 14px 16px;
	font-size: 16px;
	border: 1px solid #ccd3da;
	border-radius: 6px;
}
.cst-btn {
	padding: 14px 26px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: #0f3d63;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s ease;
}
.cst-btn:hover { background: #0c3050; }

.cst-message { padding: 14px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 15px; }
.cst-message-error { background: #fdecea; color: #9c2b2b; border: 1px solid #f4c6c2; }

.cst-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: #f4f7fa;
	border: 1px solid #e1e7ec;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 14px;
}
.cst-summary-main { display: flex; flex-direction: column; gap: 4px; }
.cst-summary-tracking { font-weight: 700; font-size: 17px; letter-spacing: .3px; }
.cst-summary-status { color: #0f9b8e; font-weight: 600; font-size: 14px; }
.cst-summary-route { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.cst-mode-icon { font-size: 18px; }
.cst-summary-eta { font-size: 13px; color: #55636f; }
.cst-awb-link {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #0f3d63;
	text-decoration: none;
	border: 1px solid #0f3d63;
	padding: 6px 12px;
	border-radius: 5px;
}
.cst-awb-link:hover { background: #0f3d63; color: #fff; }

.cst-map-wrap {
	position: relative;
	border: 1px solid #e1e7ec;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 20px;
	box-shadow: 0 4px 18px rgba(15,61,99,.12);
}
.cst-map { height: 520px; width: 100%; background: #eef2f5; }
.cst-map-empty { padding: 40px; text-align: center; color: #77828d; }

.cst-live-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 1000;
	background: rgba(4,32,60,.9);
	color: #fff;
	padding: 7px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	display: flex;
	align-items: center;
	gap: 7px;
	box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.cst-live-dot {
	width: 8px; height: 8px;
	background: #ff4d4d;
	border-radius: 50%;
	animation: cst-live-blink 1.4s ease-in-out infinite;
}
@keyframes cst-live-blink {
	0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,77,77,.6); }
	50% { opacity: .5; box-shadow: 0 0 0 5px rgba(255,77,77,0); }
}
.cst-live-updated { font-weight: 400; letter-spacing: 0; color: #a9c4dc; margin-left: 2px; }

.cst-marker {
	width: 30px; height: 30px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 15px;
	border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.cst-marker-reached { background: #d32f2f; }
.cst-marker-upcoming { background: #e79a9a; }

.leaflet-tooltip.cst-marker-label {
	background: #fff;
	color: #0f3d63;
	font-weight: 700;
	font-size: 12px;
	padding: 3px 9px;
	border: 1px solid #d6dee5;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.leaflet-tooltip.cst-marker-label::before { border-top-color: #fff; }

.cst-vehicle-wrap { position: relative; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; }
.cst-vehicle-glow {
	position: absolute;
	width: 46px; height: 46px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(43,125,224,.35) 0%, rgba(43,125,224,0) 70%);
	animation: cst-glow-pulse 1.6s ease-in-out infinite;
}
@keyframes cst-glow-pulse {
	0%, 100% { transform: scale(.85); opacity: .8; }
	50% { transform: scale(1.25); opacity: .3; }
}
.cst-vehicle {
	position: relative;
	width: 34px; height: 34px;
	display: flex; align-items: center; justify-content: center;
	font-size: 22px;
	background: #fff;
	border-radius: 50%;
	border: 2px solid #0f3d63;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
	animation: cst-pulse 1.6s ease-in-out infinite;
}
.cst-vehicle-static { animation: none; }
.cst-vehicle-glyph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; transition: transform .15s linear; }
@keyframes cst-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

/* Flowing "marching ants" effect on the planned (upcoming) route so it reads as live/active. */
.leaflet-overlay-pane path.cst-route-upcoming {
	animation: cst-dash-flow 1s linear infinite;
}
@keyframes cst-dash-flow {
	to { stroke-dashoffset: -22; }
}
.leaflet-overlay-pane path.cst-route-reached {
	filter: drop-shadow(0 0 2px rgba(15,61,99,.5));
}

.cst-timeline-wrap h4 { margin-bottom: 10px; }
.cst-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid #e1e7ec; }
.cst-timeline-item {
	display: flex;
	gap: 12px;
	padding: 10px 0 10px 18px;
	margin-left: -1px;
	border-left: 2px solid transparent;
	position: relative;
}
.cst-timeline-item.is-reached { border-left-color: #0f9b8e; }
.cst-timeline-item.is-upcoming { opacity: .55; }
.cst-timeline-icon { font-size: 18px; flex: 0 0 auto; }
.cst-timeline-body { display: flex; flex-direction: column; gap: 2px; }
.cst-timeline-label { font-weight: 600; }
.cst-timeline-status { font-size: 13px; color: #0f9b8e; }
.cst-timeline-item.is-upcoming .cst-timeline-status { color: #77828d; }
.cst-timeline-note { font-size: 13px; font-style: italic; color: #55636f; }
.cst-timeline-time { font-size: 12px; color: #90999f; }

@media (max-width: 600px) {
	.cst-map { height: 380px; }
	.cst-summary { flex-direction: column; align-items: flex-start; }
}
