/* LHS Tracking - public page */
.lhs-tracking-wrap {
    --lhs-ink: #172033;
    --lhs-muted: #647083;
    --lhs-line: #dfe7f1;
    --lhs-brand: #0f9f6e;
    --lhs-brand-dark: #08724f;
    --lhs-blue: #2563eb;
    --lhs-red: #dc2626;
    --lhs-radius: 8px;
    max-width: 880px;
    margin: 42px auto;
    padding: 0 18px;
    color: var(--lhs-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.lhs-tracking-wrap * {
    box-sizing: border-box;
}

.lhs-tracking-card,
.lhs-tracking-form {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: var(--lhs-radius);
    padding: 30px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
}

.lhs-tracking-card::before,
.lhs-tracking-form::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    background: linear-gradient(90deg, var(--lhs-brand), #22c55e 42%, #38bdf8 100%);
}

.lhs-tracking-wrap-form {
    max-width: 580px;
}

.lhs-tracking-form-eyebrow,
.lhs-tracking-eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.lhs-tracking-form h2 {
    margin: 0;
    color: var(--lhs-ink);
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: 0;
}

.lhs-tracking-form-intro,
.lhs-tracking-form > p:not(.lhs-tracking-form-note) {
    max-width: 460px;
    margin: 12px 0 24px;
    color: var(--lhs-muted);
    font-size: 16px;
    line-height: 1.6;
}

.lhs-tracking-field {
    margin-top: 16px;
}

.lhs-tracking-form label {
    display: block;
    margin: 0 0 8px;
    color: #263243;
    font-size: 14px;
    font-weight: 800;
}

.lhs-tracking-form input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: var(--lhs-ink);
    padding: 15px 16px;
    font-size: 16px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.lhs-tracking-form input:focus {
    border-color: var(--lhs-brand);
    box-shadow: 0 0 0 4px rgba(15, 159, 110, .15);
}

.lhs-tracking-form-note {
    margin: 14px 0 0;
    color: #7a8798;
    font-size: 13px;
    line-height: 1.5;
}

.lhs-tracking-error {
    margin: 16px 0;
    padding: 13px 15px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
    font-weight: 800;
}

.lhs-tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.lhs-tracking-order-num {
    color: var(--lhs-ink);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
}

.lhs-tracking-provider {
    margin-top: 8px;
    color: var(--lhs-muted);
    font-size: 15px;
    font-weight: 650;
}

.lhs-tracking-status-pill {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

.lhs-tracking-status-pill.is-progress {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.lhs-tracking-status-pill.is-delivered {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #047857;
}

.lhs-tracking-status-pill.is-cancelled {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.lhs-tracking-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.lhs-tracking-meta span {
    min-width: 0;
    border-left: 1px solid var(--lhs-line);
    padding: 4px 13px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.35;
}

.lhs-tracking-meta span:first-child {
    border-left: 0;
    padding-left: 0;
}

.lhs-tracking-meta strong {
    display: block;
    margin-bottom: 3px;
    color: var(--lhs-ink);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.lhs-tracking-eta-box,
.lhs-tracking-next-step,
.lhs-tracking-delay-note {
    margin: 14px 0 18px;
    border-radius: 8px;
    padding: 15px 17px;
    line-height: 1.5;
}

.lhs-tracking-eta-box {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #14532d;
}

.lhs-tracking-eta-box strong {
    color: #052e16;
}

.lhs-tracking-eta-box small {
    display: block;
    margin-top: 5px;
    color: #166534;
}

.lhs-tracking-next-step {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

.lhs-tracking-next-step strong {
    display: block;
    margin-bottom: 5px;
    color: #0f172a;
}

.lhs-tracking-next-step span {
    display: block;
}

.lhs-tracking-next-step-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.lhs-tracking-next-step-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.lhs-tracking-delay-note {
    border: 1px solid #bfdbfe;
    border-left: 5px solid var(--lhs-blue);
    background: #f8fbff;
    color: #1e3a8a;
}

.lhs-tracking-timeline {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
}

.lhs-tracking-step {
    display: grid;
    grid-template-columns: 28px 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    position: relative;
    min-height: 68px;
    padding: 13px 0;
}

.lhs-tracking-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 44px;
    bottom: -28px;
    width: 2px;
    border-radius: 999px;
    background: #dbe3ee;
}

.lhs-tracking-step.is-reached:not(:last-child)::after {
    background: linear-gradient(180deg, var(--lhs-brand), #22c55e);
}

.lhs-tracking-step-dot {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #cbd5e1;
    box-shadow: 0 0 0 2px #cbd5e1, 0 6px 14px rgba(15, 23, 42, .08);
}

.lhs-tracking-step.is-reached .lhs-tracking-step-dot {
    background: var(--lhs-brand);
    box-shadow: 0 0 0 2px var(--lhs-brand), 0 8px 18px rgba(15, 159, 110, .22);
}

.lhs-tracking-step.is-exception .lhs-tracking-step-dot {
    background: var(--lhs-red);
    box-shadow: 0 0 0 2px var(--lhs-red), 0 8px 18px rgba(220, 38, 38, .18);
}

.lhs-tracking-step-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lhs-line);
    border-radius: 8px;
    background: #fff;
    font-size: 20px;
}

.lhs-tracking-step-label {
    min-width: 0;
    color: #8a96a8;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.3;
}

.lhs-tracking-step-title {
    display: block;
    font: inherit;
    color: inherit;
}

.lhs-tracking-step.is-reached .lhs-tracking-step-label {
    color: #075f46;
}

.lhs-tracking-step.is-exception .lhs-tracking-step-label {
    color: #991b1b;
}

.lhs-tracking-step-label .lhs-tracking-step-helper {
    display: block;
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.lhs-tracking-step.is-pending .lhs-tracking-step-label .lhs-tracking-step-helper {
    color: #9aa5b5;
}

.lhs-tracking-step-date {
    justify-self: end;
    color: #687386;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.lhs-tracking-proof {
    margin: 22px 0 0;
    border: 1px solid var(--lhs-line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 16px;
}

.lhs-tracking-proof h3 {
    margin: 0 0 12px;
    color: var(--lhs-ink);
    font-size: 16px;
}

.lhs-tracking-proof-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lhs-tracking-proof-grid img {
    width: 128px;
    max-height: 128px;
    object-fit: cover;
    border: 1px solid var(--lhs-line);
    border-radius: 8px;
    background: #fff;
}

.lhs-tracking-proof p {
    margin: 12px 0 0;
    color: var(--lhs-muted);
    font-size: 13px;
}

.lhs-tracking-cta {
    margin-top: 24px;
}

.lhs-tracking-btn,
.lhs-tracking-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.lhs-tracking-btn:hover,
.lhs-tracking-btn-outline:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.lhs-tracking-btn {
    width: 100%;
    margin-top: 20px;
    border: 0;
    background: linear-gradient(135deg, var(--lhs-brand), #16a34a);
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 159, 110, .22);
}

.lhs-tracking-btn:hover {
    box-shadow: 0 18px 34px rgba(15, 159, 110, .28);
}

.lhs-tracking-btn-outline {
    border: 1px solid #bbf7d0;
    background: #fff;
    color: #08724f;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.lhs-tracking-btn-outline:hover {
    border-color: var(--lhs-brand);
    background: #f0fdf4;
    color: #065f46;
}

.lhs-tracking-btn-outline.is-danger {
    border-color: #fecaca;
    color: #b91c1c;
}

.lhs-tracking-btn-outline.is-danger:hover {
    border-color: #f87171;
    background: #fef2f2;
    color: #991b1b;
}

.lhs-tracking-quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.lhs-tracking-quick-actions .lhs-tracking-btn-outline {
    flex: 1 1 190px;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.25;
}

@media (max-width: 720px) {
    .lhs-tracking-wrap {
        margin: 24px auto;
        padding: 0 12px;
    }

    .lhs-tracking-card,
    .lhs-tracking-form {
        border-radius: 8px;
        padding: 22px 18px;
    }

    .lhs-tracking-header {
        display: block;
    }

    .lhs-tracking-status-pill {
        width: 100%;
        margin-top: 16px;
    }

    .lhs-tracking-eta-box,
    .lhs-tracking-next-step {
        display: none !important;
    }

    .lhs-tracking-meta {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lhs-tracking-meta span,
    .lhs-tracking-meta span:first-child {
        border-left: 0;
        border-top: 1px solid var(--lhs-line);
        padding: 11px 0;
    }

    .lhs-tracking-meta span:first-child {
        border-top: 0;
    }

    .lhs-tracking-step {
        grid-template-columns: 24px 38px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 6px;
        align-items: start;
        min-height: 116px;
        padding: 18px 0 24px;
    }

    .lhs-tracking-step::after {
        left: 11px;
        top: 48px;
        bottom: -20px;
    }

    .lhs-tracking-step-icon {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }

    .lhs-tracking-form h2 {
        font-size: 28px;
    }

    .lhs-tracking-order-num {
        font-size: 27px;
    }

    .lhs-tracking-step-label {
        display: block;
        min-width: 0;
        padding-top: 1px;
        font-size: 17px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .lhs-tracking-step-title {
        display: block;
        margin-bottom: 8px;
    }

    .lhs-tracking-step-label .lhs-tracking-step-helper {
        display: block !important;
        margin-top: 0;
        color: inherit;
        font-size: 14px;
        font-weight: 650;
        line-height: 1.55;
        opacity: .88;
    }

    .lhs-tracking-step-date {
        grid-column: 3;
        justify-self: start;
        margin-top: 2px;
        font-size: 15px;
        line-height: 1.35;
        white-space: normal;
    }

    .lhs-tracking-quick-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .lhs-tracking-quick-actions .lhs-tracking-btn-outline {
        width: 100%;
    }
}

@media (hover: none) and (pointer: coarse) {
    .lhs-tracking-eta-box,
    .lhs-tracking-next-step {
        display: none !important;
    }
}