/* Custosvia 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, #DD052B);
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

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

.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, #DD052B);
    border-radius: 50%;
    animation: trackSpin 0.8s linear infinite;
}

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

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

.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%, #C9A227 50%, #DD052B 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, #DD052B);
    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, #DD052B);
    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, #DD052B);
    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, #C9A227 0%, #DD052B 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, #C9A227 0%, #DD052B 100%);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(221, 5, 43, 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, #DD052B);
    border-color: var(--lt-color-theme-primary, #DD052B);
    color: #fff;
}

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

.track-step.active .track-step-dot {
    border-color: #C9A227;
    color: #C9A227;
    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: #C9A227; box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25); }
.track-map-legend-dot--destination { background: #DD052B; box-shadow: 0 0 0 3px rgba(221, 5, 43, 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: #DD052B; }
.track-map-pin--current {
    background: #C9A227;
    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, #DD052B);
    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: #C9A227;
    color: #C9A227;
    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, #DD052B);
}

.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: #F8E8EB; color: #DD052B; }
.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, #2a1f08 0%, #1a1408 100%);
    border: 1px solid #6b4f12;
    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(201, 162, 39, 0.18);
    color: #f0d27a;
    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, #1f1a14 0%, #121212 100%);
    border: 1px solid #4a3a18;
    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(221, 5, 43, 0.18);
    color: #ff8da0;
    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: #f0d27a;
    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(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.28);
}

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

.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, #DD052B);
    color: #fff;
}

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

.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;
    }
}
