/* Imperial Parcel Services Public Tracking */

.track-page {
    background: var(--loomis-bg, #fafafa);
}

.track-hero-block {
    background: var(--loomis-charcoal, #121212);
    padding-bottom: 40px;
    margin-bottom: 32px;
}

.track-page .track-hero-block {
    padding-top: 150px !important;
}

.track-hero {
    background: transparent;
    color: #fff;
    padding: 16px 0 24px;
}

.track-hero h1 {
    color: #fff;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 400;
    margin-bottom: 8px;
}

.track-hero p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.track-search-bar {
    background: #fff;
    border: 1px solid var(--loomis-border, #e7e7e7);
    padding: 24px;
    margin-top: 0;
    position: relative;
    z-index: 2;
    box-shadow: var(--loomis-shadow-sm, 0 4px 20px rgba(18, 18, 18, 0.06));
}

.track-search-bar form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.track-search-bar input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid var(--loomis-border, #e7e7e7);
    font-size: 16px;
}

.track-search-bar button {
    padding: 12px 28px;
    background: var(--lt-color-theme-primary, #146EB4);
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.track-search-bar button:hover {
    background: var(--loomis-red-dark, #0A0D12);
}

.track-content {
    padding: 40px 0 80px;
    max-width: 100%;
    overflow-x: clip;
}

#track-results {
    max-width: 100%;
    min-width: 0;
}

.track-results-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: trackFadeIn 0.45s ease both;
    max-width: 100%;
    min-width: 0;
}

@keyframes trackFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.track-loading,
.track-error {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid var(--loomis-border, #e7e7e7);
    box-shadow: var(--loomis-shadow-sm, 0 4px 20px rgba(18, 18, 18, 0.06));
}

.track-loading {
    color: var(--loomis-muted, #888);
}

.track-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid #ececec;
    border-top-color: var(--lt-color-theme-primary, #146EB4);
    border-radius: 50%;
    animation: trackSpin 0.8s linear infinite;
}

@keyframes trackSpin {
    to {
        transform: rotate(360deg);
    }
}

.track-error {
    color: var(--lt-color-theme-primary, #146EB4);
}

.track-error i {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
}

.track-empty-note {
    color: var(--loomis-muted, #888);
    margin: 0;
}

/* Premium status card */
.track-status-card--premium {
    position: relative;
    background: #fff;
    border: 1px solid var(--loomis-border, #e7e7e7);
    box-shadow: var(--loomis-shadow-md, 0 12px 40px rgba(18, 18, 18, 0.08));
    overflow: hidden;
    max-width: 100%;
    min-width: 0;
}

.track-status-accent {
    height: 4px;
    background: linear-gradient(90deg, #121212 0%, #F2C230 50%, #146EB4 100%);
}

.track-status-body {
    padding: 28px 28px 24px;
}

.track-status-main {
    min-width: 0;
}

.track-status-aside {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
}

.track-package-photo {
    margin: 0;
    width: 76px;
    flex-shrink: 0;
    border: 1px solid var(--loomis-border, #e7e7e7);
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(18, 18, 18, 0.05);
}

.track-package-photo img {
    display: block;
    width: 76px;
    height: 64px;
    object-fit: cover;
}

.track-package-photo figcaption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--loomis-muted, #888);
    background: #fff;
    border-top: 1px solid #eee;
    line-height: 1.2;
}

.track-package-photo figcaption i {
    color: var(--lt-color-theme-primary, #146EB4);
    font-size: 8px;
}

.track-status-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}

.track-status-ident {
    min-width: 0;
}

.track-number-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--loomis-muted, #888);
    margin-bottom: 6px;
}

.track-number-value {
    display: block;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--loomis-heading, #393939);
    letter-spacing: 0.03em;
    line-height: 1.2;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.track-service-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    background: #f4f5f7;
    border-radius: 999px;
}

.track-service-pill i {
    color: var(--lt-color-theme-primary, #146EB4);
    font-size: 11px;
}

.track-status-badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.35;
}

.track-route--premium {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%);
    border: 1px solid var(--loomis-border, #e7e7e7);
}

.track-route-point {
    flex: 1;
    min-width: 140px;
}

.track-route-point .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--loomis-muted, #888);
    margin-bottom: 4px;
}

.track-route-point .value {
    font-size: 16px;
    font-weight: 700;
    color: var(--loomis-heading, #393939);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.track-route-arrow {
    color: var(--lt-color-theme-primary, #146EB4);
    font-size: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    border: 1px solid var(--loomis-border, #e7e7e7);
    flex-shrink: 0;
}

.track-summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.track-summary-card {
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #eee;
}

.track-summary-card span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--loomis-muted, #888);
    margin-bottom: 4px;
}

.track-summary-card strong {
    font-size: 15px;
    color: var(--loomis-heading, #393939);
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.track-progress-bar {
    height: 6px;
    background: #ececec;
    border-radius: 999px;
    overflow: hidden;
}

.track-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #F2C230 0%, #146EB4 100%);
    border-radius: 999px;
    transition: width 0.8s ease;
}

/* Progress stepper */
.track-stepper {
    background: #fff;
    border: 1px solid var(--loomis-border, #e7e7e7);
    padding: 28px 20px;
    overflow-x: auto;
    box-shadow: var(--loomis-shadow-sm, 0 4px 20px rgba(18, 18, 18, 0.06));
}

.track-stepper-inner {
    display: flex;
    justify-content: space-between;
    min-width: 560px;
    position: relative;
}

.track-stepper-rail {
    position: absolute;
    height: 4px;
    background: #e4e4e4;
    border-radius: 999px;
    z-index: 0;
    overflow: hidden;
    transform: translateY(-50%);
    pointer-events: none;
}

.track-stepper-rail-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #F2C230 0%, #146EB4 100%);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(34, 120, 201, 0.22);
}

.track-stepper-inner.is-animated .track-stepper-rail-fill {
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.track-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.track-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--loomis-border, #e7e7e7);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--loomis-muted, #888);
    position: relative;
    z-index: 2;
}

.track-step-dot i {
    font-size: 13px;
    line-height: 1;
}

.track-step.done .track-step-dot {
    background: var(--lt-color-theme-primary, #146EB4);
    border-color: var(--lt-color-theme-primary, #146EB4);
    color: #fff;
}

.track-step.done .track-step-dot i {
    font-size: 12px;
}

.track-step.active .track-step-dot {
    border-color: #F2C230;
    color: #F2C230;
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.2);
}

.track-step-label {
    font-size: 11px;
    color: var(--loomis-muted, #888);
    line-height: 1.35;
    padding: 0 4px;
}

.track-step.done .track-step-label,
.track-step.active .track-step-label {
    color: var(--loomis-heading, #393939);
    font-weight: 700;
}

/* Dark map card */
.track-map-card {
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.track-map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-bottom: 1px solid #2a2a2a;
    background: linear-gradient(180deg, #1e1e1e 0%, #161616 100%);
}

.track-map-head h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.track-map-head p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.track-map-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #8fd4a0;
    padding: 6px 12px;
    background: rgba(47, 106, 79, 0.2);
    border: 1px solid rgba(47, 106, 79, 0.35);
    border-radius: 999px;
}

.track-map-live i {
    font-size: 8px;
    animation: trackPulse 1.8s ease infinite;
}

@keyframes trackPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.track-map-canvas {
    height: 420px;
    width: 100%;
    background: #0d0d0d;
}

.track-map-canvas .leaflet-container {
    background: #121212;
    font-family: "Lato", Arial, sans-serif;
}

.track-map-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
}

.track-map-empty i {
    font-size: 32px;
    opacity: 0.5;
}

.track-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 14px 22px 18px;
    background: #121212;
    border-top: 1px solid #2a2a2a;
}

.track-map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.track-map-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.track-map-legend-dot--origin { background: #3B82F6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); }
.track-map-legend-dot--current { background: #F2C230; box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25); }
.track-map-legend-dot--destination { background: #146EB4; box-shadow: 0 0 0 3px rgba(34, 120, 201, 0.25); }

.track-map-pin-wrap {
    background: transparent;
    border: none;
}

.track-map-pin {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.track-map-pin--origin { background: #3B82F6; }
.track-map-pin--destination { background: #146EB4; }
.track-map-pin--current {
    background: #F2C230;
    animation: trackPinPulse 2s ease infinite;
}

@keyframes trackPinPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.55), 0 2px 10px rgba(0, 0, 0, 0.45); }
    50% { box-shadow: 0 0 0 10px rgba(201, 162, 39, 0), 0 2px 10px rgba(0, 0, 0, 0.45); }
}

.leaflet-popup.track-map-popup .leaflet-popup-content-wrapper {
    background: #1e1e1e;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.leaflet-popup.track-map-popup .leaflet-popup-content {
    margin: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.leaflet-popup.track-map-popup .leaflet-popup-tip {
    background: #1e1e1e;
}

.leaflet-container .leaflet-control-zoom a {
    background: #1e1e1e;
    color: #fff;
    border-color: #333;
}

.leaflet-container .leaflet-control-zoom a:hover {
    background: #2a2a2a;
}

.leaflet-container .leaflet-control-attribution {
    background: rgba(18, 18, 18, 0.82);
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
}

.leaflet-container .leaflet-control-attribution a {
    color: rgba(255, 255, 255, 0.65);
}

/* Timeline + details grid */
.track-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: 24px;
    min-width: 0;
}

/* ── Tablet ── */
@media (max-width: 991px) {
    .track-page .track-hero-block {
        padding-top: 100px !important;
        padding-bottom: 28px;
        margin-bottom: 24px;
    }

    .track-content {
        padding: 28px 0 60px;
    }

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

    .track-map-canvas {
        height: 320px;
    }

    .track-status-body {
        padding: 20px 18px;
    }

    .track-status-aside {
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: 100%;
    }

    .track-package-photo {
        width: 68px;
    }

    .track-package-photo img {
        width: 68px;
        height: 56px;
    }

    .track-stepper {
        padding: 22px 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .track-stepper-inner {
        min-width: 520px;
    }

    .track-timeline-card,
    .track-details-card {
        padding: 22px 18px;
    }
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .track-hero {
        padding: 12px 0 18px;
    }

    .track-hero h1 {
        font-size: 24px;
    }

    .track-hero p {
        font-size: 14px;
        line-height: 1.5;
    }

    .track-search-bar {
        padding: 16px;
        margin-left: 0;
        margin-right: 0;
    }

    .track-search-bar form {
        flex-direction: column;
        align-items: stretch;
    }

    .track-search-bar input {
        min-width: 0;
        width: 100%;
    }

    .track-search-bar button {
        width: 100%;
        padding: 14px 20px;
    }

    .track-results-wrap {
        gap: 18px;
    }

    .track-status-top {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 18px;
    }

    .track-status-aside {
        width: 100%;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .track-status-badge {
        flex: 1 1 auto;
        font-size: 11px;
        padding: 8px 12px;
    }

    .track-route--premium {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .track-route-point {
        min-width: 0;
        flex: none;
        width: 100%;
    }

    .track-route-arrow {
        align-self: center;
        transform: rotate(90deg);
    }

    .track-summary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .track-summary-card {
        padding: 12px 14px;
    }

    .track-summary-card strong {
        font-size: 14px;
    }

    .track-stepper {
        overflow-x: visible;
        padding: 18px 14px;
    }

    .track-stepper-inner {
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
        gap: 0;
        padding-left: 4px;
    }

    .track-stepper-rail {
        display: none !important;
    }

    .track-step {
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
        padding: 10px 0;
    }

    .track-step + .track-step {
        border-top: 1px solid #f0f0f0;
    }

    .track-step-dot {
        margin: 0;
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    .track-step-label {
        padding: 0;
        flex: 1;
        min-width: 0;
        font-size: 12px;
    }

    .track-map-head {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .track-map-live {
        width: 100%;
        justify-content: center;
    }

    .track-map-canvas {
        height: 260px;
    }

    .track-map-legend {
        padding: 12px 16px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .track-timeline-card,
    .track-details-card {
        padding: 18px 16px;
    }

    .track-timeline-card h3,
    .track-details-card h3 {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .track-timeline li {
        padding: 0 0 22px 40px;
    }

    .track-timeline-node {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

    .track-timeline .event-title {
        font-size: 14px;
    }

    .track-timeline .event-desc {
        font-size: 13px;
    }

    .track-details-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }

    .track-details-list .detail-value {
        text-align: left;
        width: 100%;
    }

    .track-customs-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .track-customs-modal-dialog {
        max-height: calc(100vh - 24px);
        border-radius: 14px 14px 0 0;
    }

    .track-customs-modal-head {
        padding: 20px 18px 0;
        flex-direction: column;
    }

    .track-customs-modal-head h2 {
        font-size: 20px;
    }

    .track-customs-modal-body,
    .track-customs-modal-foot {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ── Small phones ── */
@media (max-width: 480px) {
    .track-page .track-hero-block {
        padding-top: 88px !important;
    }

    .track-content {
        padding: 20px 0 48px;
    }

    .track-number-value {
        font-size: 20px;
    }

    .track-summary-row {
        grid-template-columns: 1fr;
    }

    .track-status-aside {
        flex-direction: column;
        align-items: flex-start;
    }

    .track-status-badge {
        width: 100%;
    }

    .track-map-canvas {
        height: 220px;
    }
}

.track-timeline-card,
.track-details-card {
    background: #fff;
    border: 1px solid var(--loomis-border, #e7e7e7);
    padding: 26px;
    box-shadow: var(--loomis-shadow-sm, 0 4px 20px rgba(18, 18, 18, 0.06));
}

.track-timeline-card h3,
.track-details-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 22px;
    color: var(--loomis-heading, #393939);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.track-timeline-card h3 i,
.track-details-card h3 i {
    color: var(--lt-color-theme-primary, #146EB4);
    font-size: 13px;
}

/* Shipment Activity - Recent updates timeline */
.track-activity-events-title {
    margin: -8px 0 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--loomis-muted, #888);
}

.track-timeline-wrap {
    position: relative;
    padding-left: 4px;
}

.track-timeline-rail {
    position: absolute;
    top: 0;
    width: 3px;
    height: 0;
    background: #e4e4e4;
    border-radius: 999px;
    z-index: 0;
    overflow: hidden;
    transform: translateX(-50%);
    pointer-events: none;
}

.track-timeline-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, #2e7d32 0%, #43a047 100%);
    border-radius: 999px;
    transition: height 1s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 10px rgba(46, 125, 50, 0.3);
}

.track-timeline-wrap.is-animated .track-timeline-fill {
    transition: height 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.track-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.track-timeline li {
    position: relative;
    padding: 0 0 26px 44px;
    margin: 0;
}

.track-timeline li:last-child {
    padding-bottom: 0;
}

.track-timeline-node {
    position: absolute;
    left: 5px;
    top: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d5d5d5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a9a9a;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    z-index: 2;
}

.track-timeline li.is-done .track-timeline-node {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}

.track-timeline li.is-active .track-timeline-node,
.track-timeline li.is-latest .track-timeline-node {
    border-color: #F2C230;
    color: #F2C230;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.track-timeline li.is-done .event-title {
    color: #2e7d32;
}

.track-timeline .event-date {
    font-size: 12px;
    color: var(--loomis-muted, #888);
    margin-bottom: 4px;
}

.track-timeline .event-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--loomis-heading, #393939);
    margin-bottom: 4px;
}

.track-timeline li.is-latest .event-title {
    color: var(--loomis-charcoal, #121212);
}

.track-timeline .event-location {
    font-size: 13px;
    color: var(--loomis-muted, #888);
    margin-bottom: 6px;
}

.track-timeline .event-location i {
    margin-right: 4px;
    color: var(--lt-color-theme-primary, #146EB4);
}

.track-timeline .event-desc {
    font-size: 14px;
    color: var(--loomis-charcoal, #121212);
    line-height: 1.6;
}

.track-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.track-details-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--loomis-border, #e7e7e7);
    font-size: 14px;
}

.track-details-list li:last-child {
    border-bottom: none;
}

.track-details-list .detail-label {
    color: var(--loomis-muted, #888);
    flex-shrink: 0;
}

.track-details-list .detail-value {
    font-weight: 700;
    color: var(--loomis-heading, #393939);
    text-align: right;
    overflow-wrap: anywhere;
}

/* Badge colors */
.badge-delivered { background: #e8f5e9; color: #2e7d32; }
.badge-transit { background: #e3f2fd; color: #1565c0; }
.badge-customs { background: #fff3e0; color: #e65100; }
.badge-exception { background: #EDF6FD; color: #146EB4; }
.badge-default { background: #f4f5f7; color: #666; }

/* Customs hold banner + modal */
.track-customs-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 18px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #0A0D12 0%, #082A4A 100%);
    border: 1px solid #F2C230;
    border-radius: 10px;
    color: #fff;
}

@media (min-width: 768px) {
    .track-customs-banner {
        border-radius: 0;
    }
}

.track-customs-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 110, 180, 0.28);
    color: #F2C230;
    font-size: 18px;
    flex-shrink: 0;
}

.track-customs-banner-body {
    flex: 1;
    min-width: 200px;
}

.track-customs-banner-body strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.track-customs-banner-body span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

.track-customs-banner-btn {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
}

.track-customs-banner-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

body.track-customs-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    inset: 0;
}

html.track-customs-open {
    overflow: hidden;
}

.track-customs-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overscroll-behavior: contain;
}

.track-customs-modal[hidden] {
    display: none !important;
}

.track-customs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.track-customs-modal-dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0A0D12 0%, #082A4A 100%);
    border: 1px solid rgba(242, 194, 48, 0.6);
    border-radius: 14px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
    color: #fff;
}

.track-customs-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
}

.track-customs-modal-head {
    display: flex;
    gap: 16px;
    padding: 24px 56px 0 24px;
    flex-shrink: 0;
}

.track-customs-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 110, 180, 0.28);
    color: #F2C230;
    font-size: 22px;
    flex-shrink: 0;
}

.track-customs-modal-eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #F2C230;
    font-weight: 700;
}

.track-customs-modal-head h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.track-customs-modal-tracking {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.track-customs-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1 1 auto;
    min-height: 0;
}

.track-customs-reason,
.track-customs-message {
    margin-bottom: 16px;
}

.track-customs-reason span,
.track-customs-message span,
.track-customs-amount span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 6px;
}

.track-customs-reason strong {
    font-size: 16px;
    color: #fff;
}

.track-customs-amount {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(242, 194, 48, 0.12);
    border: 1px solid rgba(242, 194, 48, 0.4);
}

.track-customs-amount strong {
    font-size: 22px;
    color: #F2C230;
}

.track-customs-message p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.track-customs-modal-foot {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
}

.track-customs-modal-foot p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.track-customs-contact-btn,
.track-customs-dismiss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}

.track-customs-contact-btn {
    background: var(--lt-color-theme-primary, #146EB4);
    color: #fff;
}

.track-customs-contact-btn:hover {
    color: #fff;
    background: var(--loomis-red-dark, #0A0D12);
}

.track-customs-dismiss-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 767px) {
    .track-customs-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .track-customs-banner-btn {
        width: 100%;
        min-height: 44px;
    }

    .track-customs-modal {
        padding: 0;
        align-items: flex-end;
    }

    .track-customs-modal-dialog {
        width: 100%;
        max-height: min(92dvh, 100%);
        border-radius: 16px 16px 0 0;
        border-bottom: none;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
    }

    .track-customs-modal-head {
        padding: 18px 52px 0 18px;
        gap: 12px;
        align-items: flex-start;
    }

    .track-customs-modal-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .track-customs-modal-head h2 {
        font-size: 20px;
        line-height: 1.25;
    }

    .track-customs-modal-tracking {
        font-size: 12px;
        word-break: break-word;
    }

    .track-customs-modal-body {
        padding: 16px 18px;
    }

    .track-customs-message p {
        font-size: 14px;
        line-height: 1.65;
    }

    .track-customs-amount strong {
        font-size: 20px;
    }

    .track-customs-modal-foot {
        padding: 12px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .track-customs-modal-close {
        top: 10px;
        right: 10px;
        z-index: 2;
    }
}

/* Map-led tracking results */
.track-page .track-content {
    width: 100%;
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 12px;
    padding-left: 12px;
}

.track-page .track-content:has(.track-results-map-led) {
    padding-top: 0;
}

.track-results-map-led {
    gap: 20px;
}

.track-map-stage {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 430px;
    background: #0b477a;
    overflow: hidden;
}

.track-map-card--hero {
    position: relative;
    height: 430px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #0b477a;
    overflow: hidden;
}

.track-map-card--hero .track-map-canvas {
    height: 430px;
    border: 0;
    border-radius: 0;
    background: #0b477a;
}

.track-map-card--hero .leaflet-tile-pane {
    filter: grayscale(0.85) sepia(0.2) hue-rotate(165deg) saturate(1.25) brightness(0.78) contrast(1.08);
}

.track-map-card--hero .leaflet-control-zoom a {
    color: #0A0D12;
}

.track-map-title {
    position: absolute;
    z-index: 500;
    top: 24px;
    left: max(24px, calc((100vw - 1296px) / 2));
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 360px;
    padding: 12px 15px;
    background: rgba(4, 37, 73, 0.88);
    color: #fff;
    border-left: 3px solid #5ca5e5;
}

.track-map-title span {
    color: #b8d7f0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.track-map-title strong {
    font-size: 15px;
    line-height: 1.35;
}

.track-map-card--hero .track-map-legend {
    position: absolute;
    z-index: 500;
    left: max(24px, calc((100vw - 1296px) / 2));
    bottom: 22px;
    display: flex;
    max-width: calc(100% - 48px);
    margin: 0;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    background: rgba(4, 37, 73, 0.9);
    color: #fff;
    box-shadow: none;
}

.track-map-card--hero .track-map-legend-item {
    color: #fff;
    font-size: 12px;
}

.track-map-status-panel {
    position: absolute;
    z-index: 600;
    top: 28px;
    right: max(24px, calc((100vw - 1296px) / 2));
    width: min(360px, calc(100% - 48px));
    padding: 25px;
    border: 1px solid rgba(7, 53, 121, 0.16);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(0, 24, 60, 0.22);
}

.track-map-status-panel .track-number-label {
    display: block;
    margin-bottom: 4px;
    color: #718092;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.track-map-status-panel .track-number-value {
    display: block;
    margin-bottom: 10px;
    color: #172333;
    font-size: 23px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.track-map-status-panel .track-service-pill {
    display: inline-flex;
    margin: 0 0 21px;
    padding: 0;
    gap: 7px;
    background: transparent;
    color: #556475;
}

.track-map-status-current {
    padding: 17px 0;
    border-top: 1px solid #e1e7ee;
    border-bottom: 1px solid #e1e7ee;
}

.track-map-status-current .track-status-badge {
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 0;
    background: transparent;
    color: #a76a00;
    font-size: 15px;
    text-align: left;
}

.track-map-status-current small {
    display: block;
    margin-top: 5px;
    color: #6d7b89;
    font-size: 12px;
}

.track-map-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 9px;
    color: #6d7b89;
    font-size: 12px;
}

.track-map-progress-head strong {
    color: #146EB4;
    font-size: 20px;
}

.track-map-status-panel .track-progress-bar {
    height: 5px;
    margin: 0;
    border-radius: 6px;
    background: #e6ecf2;
}

.track-map-status-panel .track-progress-fill {
    border-radius: 6px;
    background: #146EB4;
}

.track-map-hold-btn {
    width: 100%;
    margin-top: 19px;
    padding: 11px 14px;
    border: 1px solid #d39a2f;
    border-radius: 4px;
    background: #fffaf0;
    color: #8b5b00;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.track-map-hold-btn:hover {
    background: #fff3d6;
}

.track-stepper--map-led {
    margin: 0;
    padding: 25px 26px 20px;
    border: 1px solid #dce5ef;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
}

.track-stepper--map-led .track-step-label {
    color: #3e4c5b;
    font-size: 12px;
    font-weight: 600;
}

.track-stepper--map-led .track-step-dot {
    border-color: #cad5e0;
    background: #f4f7fa;
    color: #768595;
}

.track-stepper--map-led .track-step.done .track-step-dot {
    border-color: #146EB4;
    background: #146EB4;
    color: #fff;
}

.track-stepper--map-led .track-step.active .track-step-dot {
    border-color: #bd7a00;
    background: #fff6df;
    color: #a76a00;
    box-shadow: 0 0 0 5px rgba(189, 122, 0, 0.1);
}

.track-map-led-grid {
    display: grid;
    grid-template-columns: 1.18fr 1.35fr 0.82fr 0.95fr 0.9fr;
    gap: 14px;
}

.track-result-panel {
    min-width: 0;
    min-height: 260px;
    padding: 20px;
    border: 1px solid #dce5ef;
    border-radius: 4px;
    background: #fff;
}

.track-result-panel h3 {
    margin: 0 0 18px;
    color: #172333;
    font-size: 14px;
    font-weight: 700;
}

.track-latest-status {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #a76a00;
}

.track-latest-status > i {
    margin-top: 2px;
}

.track-latest-status div {
    min-width: 0;
}

.track-latest-status strong,
.track-latest-status span {
    display: block;
}

.track-latest-status strong {
    font-size: 14px;
    line-height: 1.35;
}

.track-latest-status span {
    margin-top: 4px;
    color: #687786;
    font-size: 11px;
    line-height: 1.4;
}

.track-latest-panel time {
    display: block;
    margin: 13px 0;
    color: #687786;
    font-size: 11px;
}

.track-latest-panel p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #4f5e6d;
    font-size: 12px;
    line-height: 1.55;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.track-recent-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.track-recent-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #edf1f5;
}

.track-recent-list li:first-child {
    padding-top: 0;
}

.track-recent-list div {
    min-width: 0;
}

.track-recent-list strong,
.track-recent-list span {
    display: block;
}

.track-recent-list strong {
    color: #263746;
    font-size: 11px;
    line-height: 1.3;
}

.track-recent-list span,
.track-recent-list time {
    margin-top: 3px;
    color: #7a8794;
    font-size: 9px;
    line-height: 1.35;
}

.track-recent-list time {
    flex: 0 0 78px;
    text-align: right;
}

.track-view-activity {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin-top: 14px;
    color: #146EB4;
    font-size: 11px;
    font-weight: 700;
}

.track-metric {
    display: flex;
    gap: 11px;
    padding: 13px 0;
    border-bottom: 1px solid #edf1f5;
}

.track-metric:last-child {
    border-bottom: 0;
}

.track-metric > i {
    width: 18px;
    color: #146EB4;
    text-align: center;
}

.track-metric span,
.track-metric strong {
    display: block;
}

.track-metric span {
    color: #7a8794;
    font-size: 10px;
}

.track-metric strong {
    margin-top: 5px;
    color: #172333;
    font-size: 13px;
    line-height: 1.3;
}

.track-reference-panel dl,
.track-reference-panel dt,
.track-reference-panel dd {
    margin: 0;
}

.track-reference-panel dl > div {
    padding: 10px 0;
    border-bottom: 1px solid #edf1f5;
}

.track-reference-panel dl > div:first-child {
    padding-top: 0;
}

.track-reference-panel dt {
    color: #7a8794;
    font-size: 10px;
    font-weight: 500;
}

.track-reference-panel dd {
    margin-top: 4px;
    color: #263746;
    font-size: 11px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.track-delivery-panel {
    position: relative;
    display: flex;
    flex-direction: column;
}

.track-delivery-icon {
    margin-bottom: 14px;
    color: #146EB4;
    font-size: 26px;
}

.track-delivery-panel > strong {
    color: #172333;
    font-size: 17px;
    line-height: 1.3;
}

.track-delivery-panel > span {
    margin-top: 7px;
    color: #7a8794;
    font-size: 10px;
    line-height: 1.4;
}

.track-support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: auto;
    border: 1px solid #146EB4;
    border-radius: 3px;
    color: #146EB4;
    font-size: 12px;
    font-weight: 700;
}

.track-support-btn:hover {
    background: #146EB4;
    color: #fff;
}

.track-receiver-strip {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
    border: 1px solid #dce5ef;
    background: #fff;
}

.track-receiver-strip span {
    color: #7a8794;
    font-size: 12px;
}

.track-receiver-strip strong {
    color: #263746;
    font-size: 13px;
    text-align: right;
}

.track-full-activity {
    border: 1px solid #dce5ef;
    border-radius: 4px;
    background: #fff;
}

.track-full-activity summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    color: #172333;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.track-full-activity summary::-webkit-details-marker {
    display: none;
}

.track-full-activity summary::after {
    content: "+";
    color: #146EB4;
    font-size: 20px;
}

.track-full-activity[open] summary::after {
    content: "−";
}

.track-full-activity summary span {
    margin-left: auto;
    margin-right: 16px;
    color: #7a8794;
    font-size: 11px;
    font-weight: 500;
}

.track-full-activity-body {
    padding: 4px 22px 24px;
    border-top: 1px solid #edf1f5;
}

.track-timeline-wrap.is-collapsed .track-timeline li:nth-child(n + 5) {
    display: none;
}

.track-activity-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    margin-top: 20px;
    border: 1px solid #d6e1ec;
    border-radius: 3px;
    background: #f7faff;
    color: #146EB4;
    font-size: 12px;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.track-activity-more:hover {
    border-color: #146EB4;
    background: #eef5fc;
}

.track-activity-more i {
    font-size: 10px;
}

@media (max-width: 1199px) {
    .track-map-led-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .track-latest-panel,
    .track-recent-panel {
        grid-column: span 3;
    }

    .track-metrics-panel,
    .track-reference-panel,
    .track-delivery-panel {
        grid-column: span 2;
    }
}

@media (max-width: 991px) {
    .track-map-stage,
    .track-map-card--hero {
        min-height: 720px;
        height: 720px;
    }

    .track-map-card--hero .track-map-canvas {
        height: 350px;
    }

    .track-map-status-panel {
        top: auto;
        right: 24px;
        bottom: 20px;
        left: 24px;
        width: auto;
        padding: 18px 20px;
    }

    .track-map-status-panel .track-service-pill {
        margin-bottom: 12px;
    }

    .track-map-title {
        top: 18px;
        left: 18px;
    }

    .track-map-card--hero .track-map-legend {
        top: 290px;
        bottom: auto;
        left: 18px;
        max-width: calc(100% - 36px);
    }
}

@media (max-width: 767px) {
    .track-map-stage,
    .track-map-card--hero {
        min-height: 670px;
        height: 670px;
    }

    .track-map-card--hero .track-map-canvas {
        height: 300px;
    }

    .track-map-title {
        top: 12px;
        left: 64px;
        right: 12px;
        max-width: none;
    }

    .track-map-card--hero .track-map-legend {
        display: none;
    }

    .track-map-status-panel {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .track-map-status-panel .track-number-value {
        font-size: 19px;
    }

    .track-stepper--map-led {
        overflow-x: hidden;
        padding: 16px;
    }

    .track-stepper--map-led .track-stepper-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
        gap: 0;
    }

    .track-stepper--map-led .track-step {
        width: 100%;
        min-width: 0;
    }

    .track-map-led-grid {
        grid-template-columns: 1fr;
    }

    .track-latest-panel,
    .track-recent-panel,
    .track-metrics-panel,
    .track-reference-panel,
    .track-delivery-panel {
        grid-column: auto;
        min-height: 0;
    }

    .track-receiver-strip {
        flex-direction: column;
    }

    .track-receiver-strip strong {
        text-align: left;
    }
}

/* Modern bento shipment summary */
.track-bento-grid {
    display: grid;
    grid-template-columns: minmax(270px, 1.05fr) minmax(390px, 1.65fr) minmax(250px, 0.9fr);
    grid-template-areas:
        "status activity metrics"
        "status bottom bottom";
    gap: 18px;
    align-items: stretch;
}

.track-bento-grid .track-result-panel {
    min-height: 0;
    padding: 24px;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(8, 42, 74, 0.08);
}

.track-bento-grid .track-result-panel h3 {
    margin-bottom: 20px;
    color: #082a4a;
    font-size: 20px;
    line-height: 1.25;
}

.track-bento-status {
    grid-area: status;
    display: flex;
    flex-direction: column;
    min-height: 470px !important;
    padding: 30px 28px !important;
    border: 0 !important;
    background: linear-gradient(155deg, #082a4a 0%, #031c34 100%) !important;
    color: #fff;
    box-shadow: 0 16px 38px rgba(3, 28, 52, 0.22) !important;
}

.track-bento-status .track-latest-status {
    gap: 15px;
    color: #fff;
}

.track-bento-status .track-latest-status > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    margin: 0;
    border-radius: 12px;
    background: #f2c230;
    color: #082a4a;
    font-size: 21px;
}

.track-bento-status .track-latest-status strong {
    color: #fff;
    font-size: 21px;
    line-height: 1.35;
}

.track-bento-status .track-latest-status span {
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.45;
}

.track-bento-status time {
    margin: 25px 0 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
}

.track-bento-status p {
    display: block;
    margin: 0 0 26px;
    overflow: visible;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.65;
    -webkit-line-clamp: unset;
}

.track-bento-status .track-support-btn {
    min-height: 50px;
    margin-top: auto;
    border: 0;
    border-radius: 7px;
    background: #146eb4;
    color: #fff;
    font-size: 15px;
}

.track-bento-status .track-support-btn:hover {
    background: #2384d1;
}

.track-bento-activity {
    grid-area: activity;
    overflow: hidden;
}

.track-bento-activity .track-recent-list li {
    gap: 18px;
    padding: 13px 0;
}

.track-bento-activity .track-recent-list strong {
    color: #172333;
    font-size: 15px;
    line-height: 1.35;
}

.track-bento-activity .track-recent-list span {
    margin-top: 5px;
    color: #687786;
    font-size: 13px;
    line-height: 1.4;
}

.track-bento-activity .track-recent-list time {
    flex: 0 0 126px;
    margin-top: 0;
    color: #687786;
    font-size: 12px;
    line-height: 1.45;
}

.track-bento-activity .track-view-activity {
    margin-top: 18px;
    color: #146eb4;
    font-size: 14px;
}

.track-bento-metrics {
    grid-area: metrics;
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.track-bento-metric,
.track-bento-fact {
    display: flex;
    align-items: center;
    gap: 18px;
}

.track-bento-metric > i,
.track-bento-fact > i {
    flex: 0 0 auto;
    color: #146eb4;
    font-size: 34px;
}

.track-bento-metric span,
.track-bento-metric strong,
.track-bento-fact span,
.track-bento-fact strong,
.track-bento-fact small {
    display: block;
}

.track-bento-metric span,
.track-bento-fact span {
    color: #4f5e6d;
    font-size: 14px;
    font-weight: 600;
}

.track-bento-metric strong {
    margin-top: 7px;
    color: #0b4f90;
    font-size: clamp(21px, 2vw, 28px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.track-bento-bottom {
    grid-area: bottom;
    display: grid;
    grid-template-columns: 1.1fr 0.85fr 1.35fr;
    gap: 18px;
}

.track-bento-fact {
    min-width: 0;
}

.track-bento-fact > div {
    min-width: 0;
}

.track-bento-fact strong {
    margin-top: 7px;
    color: #0b4f90;
    font-size: 18px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.track-bento-fact small {
    margin-top: 6px;
    color: #687786;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.track-bento-delivery > i {
    color: #d69b08;
}

@media (max-width: 1199px) {
    .track-bento-grid {
        grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.35fr);
        grid-template-areas:
            "status activity"
            "metrics metrics"
            "bottom bottom";
    }

    .track-bento-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }
}

@media (max-width: 767px) {
    .track-bento-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "status"
            "activity"
            "metrics"
            "bottom";
        gap: 14px;
    }

    .track-bento-status {
        min-height: 420px !important;
        padding: 25px 22px !important;
    }

    .track-bento-status .track-latest-status strong {
        font-size: 19px;
    }

    .track-bento-activity .track-recent-list li {
        flex-direction: column;
        gap: 6px;
    }

    .track-bento-activity .track-recent-list time {
        flex-basis: auto;
        text-align: left;
    }

    .track-bento-metrics,
    .track-bento-bottom {
        grid-template-columns: 1fr;
    }

    .track-bento-grid .track-result-panel {
        padding: 21px;
    }

    .track-bento-metric {
        min-height: 130px !important;
    }
}
