/* ══ Order Tracking page ══════════════════════════════════════════════════ */
.sm-track-page { padding: 26px 0 60px; background: #f7f8fa; }
.sm-track { color: var(--singair-secondary, #111827); }

.sm-track__crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--singair-muted, #6b7280); margin-bottom: 18px; }
.sm-track__crumb a { color: var(--singair-muted, #6b7280); }
.sm-track__crumb a:hover { color: var(--singair-primary, #ff6a21); }
.sm-track__crumb span { color: #c4c9d2; }
.sm-track__crumb [aria-current] { color: var(--singair-secondary, #111827); font-weight: 600; }

/* Heading */
.sm-track__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.sm-track__head h1 { margin: 0; font-size: 30px; line-height: 1.2; }
.sm-track__head p { margin: 6px 0 0; color: var(--singair-muted, #6b7280); font-size: 14.5px; }
.sm-track__id { font-size: 14px; color: var(--singair-muted, #6b7280); white-space: nowrap; }
.sm-track__id strong { color: var(--singair-secondary, #111827); }
.sm-track__copy { border: 0; background: transparent; cursor: pointer; color: var(--singair-muted, #6b7280); padding: 4px; font-size: 14px; }
.sm-track__copy:hover { color: var(--singair-primary, #ff6a21); }

/* Cards */
.sm-track__card { background: #fff; border: 1px solid #eef0f3; border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }

/* Summary strip */
.sm-track__summary {
	display: grid; grid-template-columns: repeat(5, 1fr);
	background: #fff; border: 1px solid #eef0f3; border-radius: 14px;
	box-shadow: 0 1px 2px rgba(16,24,40,.04); margin-bottom: 20px; overflow: hidden;
}
.sm-sm-tile { display: flex; gap: 12px; padding: 22px 20px; border-left: 1px solid #f0f2f5; }
.sm-sm-tile:first-child { border-left: 0; }
.sm-sm-tile__ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff5ef; color: var(--singair-primary, #ff6a21); font-size: 16px; }
.sm-sm-tile > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sm-sm-tile__label { font-size: 12.5px; color: var(--singair-muted, #6b7280); }
.sm-sm-tile strong { font-size: 15px; font-weight: 700; }
.sm-sm-tile small { font-size: 12.5px; color: var(--singair-muted, #6b7280); }
.sm-sm-tile__status { color: #16a34a; }
.sm-track__link { color: var(--singair-primary, #ff6a21); font-size: 12.5px; font-weight: 600; }
.sm-track__addr { font-size: 12.5px; }
.sm-track__addr summary { color: var(--singair-primary, #ff6a21); font-weight: 600; cursor: pointer; list-style: none; }
.sm-track__addr summary::-webkit-details-marker { display: none; }
.sm-track__addr span { display: block; margin-top: 6px; color: var(--singair-muted, #6b7280); line-height: 1.5; }

/* Timeline */
.sm-track__timeline { display: flex; padding: 40px 30px 34px; margin-bottom: 20px; }
.sm-step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.sm-step__bar { position: absolute; top: 24px; right: 50%; width: 100%; height: 4px; background: #e5e7eb; transform: translateY(-50%); z-index: 0; }
.sm-step.is-completed .sm-step__bar, .sm-step.is-current .sm-step__bar { background: #16a34a; }
.sm-step__dot {
	position: relative; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center;
	border-radius: 50%; background: #fff; border: 2px solid #d1d5db; color: #9aa2af; font-size: 17px; margin-bottom: 8px;
}
.sm-step.is-completed .sm-step__dot { background: #16a34a; border-color: #16a34a; color: #fff; }
.sm-step.is-current .sm-step__dot { background: #16a34a; border-color: #16a34a; color: #fff; box-shadow: 0 0 0 6px rgba(22,163,74,.15); }
.sm-step__label { font-size: 14px; font-weight: 700; }
.sm-step.is-upcoming .sm-step__label { color: #9aa2af; font-weight: 600; }
.sm-step.is-current .sm-step__label { color: #16a34a; }
.sm-step__date { font-size: 12.5px; color: var(--singair-muted, #6b7280); }
.sm-step__time { font-size: 12px; color: #9aa2af; }

/* Banner */
.sm-track__banner { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 14px; margin-bottom: 20px; border: 1px solid; }
.sm-track__banner.is-success { background: #f0fdf4; border-color: #dcfce7; }
.sm-track__banner.is-info { background: #eff6ff; border-color: #dbeafe; }
.sm-track__banner.is-danger { background: #fef2f2; border-color: #fee2e2; }
.sm-track__banner-ic { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-size: 18px; }
.is-success .sm-track__banner-ic { color: #16a34a; }
.is-info .sm-track__banner-ic { color: #2563eb; }
.is-danger .sm-track__banner-ic { color: #dc2626; }
.sm-track__banner-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sm-track__banner-txt strong { font-size: 15px; }
.is-success .sm-track__banner-txt strong { color: #16a34a; }
.sm-track__banner-txt span { font-size: 13.5px; color: var(--singair-muted, #6b7280); }

/* Two-column grid */
.sm-track__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.sm-track__delivery, .sm-track__location { padding: 22px 24px; }
.sm-track__card h2 { margin: 0 0 18px; font-size: 16px; }
.sm-track__muted { color: var(--singair-muted, #6b7280); font-size: 14px; }

.sm-deliv { display: flex; gap: 18px; justify-content: space-between; }
.sm-deliv__list { margin: 0; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.sm-deliv__list > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: baseline; }
.sm-deliv__list dt { margin: 0; color: var(--singair-muted, #6b7280); font-size: 13px; }
.sm-deliv__list dd { margin: 0; font-size: 13.5px; font-weight: 600; }
.sm-deliv__rider { flex: none; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sm-deliv__rider img, .sm-deliv__avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(16,24,40,.14); }
.sm-deliv__avatar { display: grid; place-items: center; background: #fff5ef; color: var(--singair-primary, #ff6a21); font-size: 30px; }

/* Map */
.sm-map { position: relative; height: 210px; border-radius: 12px; overflow: hidden; background: #eef2f6; }
.sm-map__svg { width: 100%; height: 100%; display: block; }
.sm-map__route-live { stroke-dasharray: 1000; stroke-dashoffset: 1000; opacity: 0; }
.sm-map.is-active .sm-map__route-live { opacity: 1; animation: sm-route 3s ease forwards; }
.sm-map.is-active .sm-map__ping { animation: sm-ping 2s ease-out infinite; }
@keyframes sm-route { to { stroke-dashoffset: 0; } }
@keyframes sm-ping { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.4); opacity: 0; } }
.sm-map__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; font-size: 13px; }
.sm-map__live { display: inline-flex; align-items: center; gap: 8px; color: #16a34a; font-weight: 600; }
.sm-map__live--off { color: var(--singair-muted, #6b7280); font-weight: 500; }
.sm-map__pulse { width: 9px; height: 9px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: sm-pulse 1.8s infinite; }
@keyframes sm-pulse { 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.sm-map__updated { display: inline-flex; align-items: center; gap: 8px; color: var(--singair-muted, #6b7280); }
.sm-map__refresh { border: 0; background: transparent; cursor: pointer; color: var(--singair-muted, #6b7280); padding: 2px; }
.sm-map__refresh:hover { color: var(--singair-primary, #ff6a21); }
.sm-map__refresh.is-spinning i { animation: sm-spin .8s linear infinite; }
@keyframes sm-spin { to { transform: rotate(360deg); } }

/* Help */
.sm-track__help { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.sm-track__help-ic { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #fff5ef; color: var(--singair-primary, #ff6a21); font-size: 18px; }
.sm-track__help-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sm-track__help-txt strong { font-size: 15px; }
.sm-track__help-txt span { font-size: 13.5px; color: var(--singair-muted, #6b7280); }

/* Buttons */
.sm-track .sm-btn--ghost, a.sm-btn--ghost {
	background: #fff; color: var(--singair-secondary, #111827);
	border: 1px solid #e5e7eb; box-shadow: none;
}
.sm-track .sm-btn--ghost:hover { border-color: var(--singair-primary, #ff6a21); color: var(--singair-primary, #ff6a21); }
.sm-btn--sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.sm-track__banner .sm-btn, .sm-track__help .sm-btn { white-space: nowrap; }

/* Guest lookup page */
.sm-track-lookup { display: grid; place-items: center; padding: 40px 0 20px; }
.sm-track-lookup__card {
	width: min(480px, 100%); text-align: center; background: #fff;
	border: 1px solid #eef0f3; border-radius: 16px; padding: 40px 36px;
	box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.sm-track-lookup__ic {
	display: inline-grid; place-items: center; width: 62px; height: 62px;
	border-radius: 50%; background: #fff5ef; color: var(--singair-primary, #ff6a21);
	font-size: 24px; margin-bottom: 16px;
}
.sm-track-lookup__card h1 { margin: 0 0 8px; font-size: 26px; }
.sm-track-lookup__card > p { margin: 0 0 22px; color: var(--singair-muted, #6b7280); font-size: 14px; line-height: 1.6; }
.sm-track-lookup__error {
	display: flex; align-items: center; gap: 8px; text-align: left;
	background: #fef2f2; border: 1px solid #fee2e2; color: #b42318;
	font-size: 13.5px; font-weight: 600; border-radius: 10px; padding: 12px 14px; margin-bottom: 18px;
}
.sm-track-lookup form { display: grid; gap: 14px; text-align: left; }
.sm-track-lookup form label { display: grid; gap: 6px; }
.sm-track-lookup form label span { font-size: 13px; font-weight: 700; }
.sm-track-lookup form input {
	height: 46px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 0 14px; font-size: 14.5px;
}
.sm-track-lookup form input:focus { outline: none; border-color: var(--singair-primary, #ff6a21); box-shadow: 0 0 0 3px rgba(255,106,33,.12); }
.sm-track-lookup form .sm-btn { border: 0; cursor: pointer; margin-top: 4px; gap: 8px; }
.sm-track-lookup__alt { margin: 18px 0 0; font-size: 13px; }
.sm-track-lookup__alt a { color: var(--singair-primary, #ff6a21); font-weight: 600; }

/* Message (404 / denied) */
.sm-track-msg { text-align: center; padding: 80px 20px; }
.sm-track-msg h1 { margin: 0 0 10px; }
.sm-track-msg p { color: var(--singair-muted, #6b7280); margin-bottom: 22px; }

/* Responsive */
@media (max-width: 1000px) {
	.sm-track__summary { grid-template-columns: repeat(2, 1fr); }
	.sm-sm-tile:nth-child(odd) { border-left: 0; }
	.sm-sm-tile { border-top: 1px solid #f0f2f5; }
	.sm-sm-tile:nth-child(1), .sm-sm-tile:nth-child(2) { border-top: 0; }
	.sm-track__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.sm-track__head { flex-direction: column; }
	.sm-track__timeline { padding: 30px 8px 24px; overflow-x: auto; }
	.sm-step { min-width: 92px; }
	.sm-step__label { font-size: 12.5px; }
	.sm-track__banner, .sm-track__help { flex-direction: column; align-items: flex-start; }
	.sm-deliv { flex-direction: column-reverse; align-items: flex-start; }
	.sm-deliv__rider { flex-direction: row; align-self: stretch; justify-content: space-between; }
}
@media (max-width: 480px) {
	.sm-track__summary { grid-template-columns: 1fr; }
	.sm-sm-tile { border-left: 0 !important; }
}
