.gocargo-track-page {
	padding: 40px 15px 60px;
	background: linear-gradient(180deg, #eef3f9 0%, #e3ebf3 100%);
}

.gocargo-track-form {
	display: flex;
	gap: 10px;
	max-width: 520px;
	margin: 25px auto 10px;
}

.gocargo-track-form input[type="text"] {
	flex: 1;
	padding: 12px 16px;
	border: 0;
	border-bottom: 2px solid #c7d2dc;
	border-radius: 0;
	font-size: 15px;
	background: transparent;
	color: #24313f;
}

.gocargo-track-form input[type="text"]:focus {
	outline: none;
	border-bottom-color: #2e86de;
}

.gocargo-track-form input[type="text"]::placeholder {
	color: #8b96a3;
}

.gocargo-track-form button {
	padding: 12px 26px;
	border: 0;
	border-radius: 4px;
	background: #2e86de;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.gocargo-track-form button:disabled {
	opacity: .6;
	cursor: default;
}

.gocargo-track-message {
	min-height: 22px;
	margin-bottom: 10px;
	font-size: 14px;
}

.gocargo-track-message.is-error {
	color: #c0392b;
}

.gocargo-track-message.is-info {
	color: #7f8c8d;
}

.gocargo-track-result {
	margin: 10px 0 30px;
}

/* The plugin's own results markup was built with near-white text, meant
   to sit on a dark section — give it that dark backdrop as a flat color
   fill (no border-radius/shadow/border lines, just a color block, not a
   floating "card"). */
.gocargo-track-result > .container {
	background: #1a1e24;
	padding: 30px 15px 40px;
}

.gocargo-track-result,
.gocargo-track-result * {
	border: 0 !important;
	box-shadow: none !important;
}

.gocargo-track-result h1,
.gocargo-track-result h2,
.gocargo-track-result h3,
.gocargo-track-result h4,
.gocargo-track-result p,
.gocargo-track-result li,
.gocargo-track-result span,
.gocargo-track-result td,
.gocargo-track-result th {
	color: #e8ecf1 !important;
}

.gocargo-track-result .grey {
	color: #8b96a3 !important;
}

.gocargo-track-result a.popup-gmaps {
	color: #6fb1ff !important;
}

.gocargo-track-result table.shipment-table tr:nth-child(even) {
	background-color: #161a1f !important;
}

.gocargo-track-result h3 {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.gocargo-view-on-map {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 600;
	color: #fff !important;
	background: #2e86de;
	padding: 4px 14px;
	border-radius: 20px;
	text-decoration: none !important;
}

.gocargo-view-on-map:hover {
	background: #4098ee;
}

/* Vertical status-history list — badge on the left with a connecting
   line running top-to-bottom, text to the right of each badge. */
.gocargo-h-timeline {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 10px;
	margin: 10px 0;
}

.gocargo-h-timeline::before {
	content: '';
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 27px;
	width: 2px;
	background: rgba(232, 236, 241, .15);
}

.gocargo-h-timeline-item {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	text-align: left;
}

.gocargo-h-timeline-item.is-current .gocargo-h-timeline-badge {
	box-shadow: 0 0 0 4px rgba(46, 134, 222, .3) !important;
}

.gocargo-h-timeline-badge {
	width: 34px;
	height: 34px;
	line-height: 34px;
	text-align: center;
	flex-shrink: 0;
	border-radius: 50%;
	background: #5a6b7a;
	color: #fff !important;
	font-size: 14px;
}

.gocargo-h-timeline-badge.primary { background: #2e6da4; }
.gocargo-h-timeline-badge.success { background: #3f903f; }
.gocargo-h-timeline-badge.warning { background: #f0ad4e; }
.gocargo-h-timeline-badge.intransit { background: #3498db; }
.gocargo-h-timeline-badge.attemptfail { background: #9b59b6; }
.gocargo-h-timeline-badge.expired { background: #7f8c8d; }
.gocargo-h-timeline-badge.pending { background: #bdc3c7; }
.gocargo-h-timeline-badge.outfordelivery { background: #f39c12; }
.gocargo-h-timeline-badge.inforeceived { background: #35495e; }

.gocargo-h-timeline-content {
	flex: 1;
	min-width: 0;
	padding-top: 6px;
}

.gocargo-h-timeline-date {
	font-size: 12px;
	color: #8b96a3 !important;
	margin-bottom: 6px;
}

.gocargo-h-timeline-remarks {
	font-size: 13px;
	color: #e8ecf1 !important;
	margin-bottom: 6px;
}

.gocargo-h-timeline-address {
	font-size: 13px;
	color: #c3cad2 !important;
}

.gocargo-view-on-map-inline {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	color: #6fb1ff !important;
	text-decoration: none !important;
	margin-top: 2px;
}

.gocargo-view-on-map-inline:hover {
	text-decoration: underline !important;
}

.gocargo-track-map-title {
	margin-top: 10px;
	color: #24313f;
}

.gocargo-track-eta {
	font-size: 14px;
	color: #24313f;
	margin-bottom: 14px;
}

.gocargo-track-eta:empty {
	margin-bottom: 0;
}

.gocargo-track-eta strong {
	color: #2e86de;
}

.gocargo-track-eta-clock {
	color: #7f8c8d;
}

/* Floating time/distance pill placed directly on the route line, mirroring
   how Google Maps labels a route's duration on the map itself. */
.gocargo-track-eta-badge span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	background: #fff;
	color: #1a2733;
	font-size: 13px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
	transform: translate(-50%, -50%);
}

.gocargo-track-eta-badge span small {
	font-size: 11px;
	font-weight: 500;
	color: #7f8c8d;
}

.gocargo-track-map {
	width: 100%;
	height: 480px;
	border-radius: 8px;
	background: #eef1f4;
}

/* Big, hard-to-miss "recenter" button — snaps the map back to the route
   after the user has panned or zoomed away from it. */
.gocargo-track-focus-control {
	margin: 10px !important;
}

.gocargo-track-focus-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: #fff;
	color: #2e86de;
	font-size: 22px;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
	text-decoration: none !important;
	cursor: pointer;
}

.gocargo-track-focus-btn:hover {
	background: #2e86de;
	color: #fff;
}

.gocargo-track-marker-dot span {
	display: block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

.gocargo-track-marker-pin span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

.gocargo-track-marker-pin span i {
	transform: rotate(45deg);
	font-style: normal;
	color: #fff;
	font: 700 12px/1 Arial, sans-serif;
}

.gocargo-track-marker-pulse {
	position: relative;
}

.gocargo-track-marker-pulse .pulse-dot {
	position: absolute;
	top: 6px;
	left: 6px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

.gocargo-track-marker-pulse .pulse-ring {
	position: absolute;
	top: 0;
	left: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid;
	opacity: .6;
	animation: gocargo-pulse 1.6s ease-out infinite;
}

@keyframes gocargo-pulse {
	0% { transform: scale(.4); opacity: .8; }
	100% { transform: scale(1.6); opacity: 0; }
}

.gocargo-track-marker-transport span {
	display: block;
	font-size: 22px;
	line-height: 1;
}

.gocargo-track-marker-transport span i {
	display: inline-block;
	font-style: normal;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6));
	animation: gocargo-vibrate .35s ease-in-out infinite;
}

/* Small in-place jitter — reads as "still moving" without the icon
   actually changing position on the map. */
@keyframes gocargo-vibrate {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	25%      { transform: translate(-1px, 1px) rotate(-4deg); }
	50%      { transform: translate(1px, -1px) rotate(4deg); }
	75%      { transform: translate(-1px, -1px) rotate(-2deg); }
}

.gocargo-track-tooltip {
	background: rgba(20, 30, 40, .9);
	border: 0;
	border-radius: 4px;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 8px;
	box-shadow: none;
	white-space: nowrap;
}

.gocargo-track-tooltip::before {
	border-top-color: rgba(20, 30, 40, .9);
}

.gocargo-track-map-legend {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 14px 0 0;
	padding: 0;
	font-size: 13px;
	color: #555;
}

.gocargo-track-map-legend .dot {
	display: inline-block;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	margin-right: 6px;
	vertical-align: middle;
}

.gocargo-track-map-legend .dot-origin { background: #2e86de; }
.gocargo-track-map-legend .dot-history { background: #f5a623; }
.gocargo-track-map-legend .dot-current { background: #e74c3c; }
.gocargo-track-map-legend .dot-destination { background: #27ae60; }

@media (max-width: 600px) {
	.gocargo-track-form {
		flex-direction: column;
	}

	.gocargo-track-map {
		height: 340px;
	}
}
