.pst-wrap {
    --pst-navy: #10233f;
    --pst-blue: #315ff4;
    --pst-cyan: #19a9c6;
    --pst-ink: #14213a;
    --pst-muted: #66758d;
    --pst-surface: #f3f7fb;
    --pst-line: rgba(16, 35, 63, .1);
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px;
    color: var(--pst-ink);
    font-family: 'Jost', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pst-intro {
    text-align: center;
    margin-bottom: 32px;
}

.pst-intro h1 {
    margin: 0 0 8px;
    color: var(--pst-navy);
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 900;
    letter-spacing: -.6px;
}

.pst-intro p {
    margin: 0;
    color: var(--pst-muted);
    font-size: 15px;
    line-height: 1.6;
}

.pst-search-row {
    display: flex;
    gap: 12px;
}

.pst-search input[type="text"] {
    flex: 1;
    min-height: 56px;
    padding: 0 20px;
    border: 1px solid var(--pst-line);
    border-radius: 14px;
    background: #fff;
    color: var(--pst-ink);
    font-size: 16px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.pst-search input[type="text"]:focus {
    border-color: var(--pst-blue);
    box-shadow: 0 0 0 3px rgba(49, 95, 244, .1);
}

.pst-search-btn {
    min-height: 56px;
    padding: 0 28px;
    border: 0;
    border-radius: 14px;
    background: var(--pst-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.pst-search-btn:hover {
    background: var(--pst-blue);
}

.pst-search-btn:active {
    transform: translateY(1px);
}

.pst-response {
    margin-top: 12px;
}

.pst-error {
    margin: 0;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fdf0f0;
    color: #b3261e;
    font-size: 14px;
    border: 1px solid rgba(179, 38, 30, .15);
}

.pst-result {
    margin-top: 24px;
}

.pst-result-card {
    border: 1px solid var(--pst-line);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.pst-summary {
    padding: 28px 28px 20px;
    background: var(--pst-surface);
    border-bottom: 1px solid var(--pst-line);
}

.pst-status {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    background: var(--pst-muted);
}

.pst-status-pending { background: #8a97a8; }
.pst-status-picked_up { background: #315ff4; }
.pst-status-in_transit { background: #315ff4; }
.pst-status-arrived { background: #19a9c6; }
.pst-status-customs { background: #d9901f; }
.pst-status-out_for_delivery { background: #7c5cd6; }
.pst-status-delivered { background: #2e8b57; }
.pst-status-exception { background: #b3261e; }
.pst-status-cancelled { background: #8a97a8; }

.pst-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
    margin-top: 20px;
}

.pst-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pst-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--pst-muted);
}

.pst-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--pst-ink);
}

.pst-note {
    margin: 18px 0 0;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--pst-line);
    font-size: 14px;
    line-height: 1.6;
    color: var(--pst-ink);
}

.pst-carrier-link {
    margin: 16px 0 0;
}

.pst-carrier-link a {
    color: var(--pst-blue);
    font-weight: 600;
    text-decoration: none;
}

.pst-carrier-link a:hover {
    text-decoration: underline;
}

.pst-timeline {
    padding: 28px;
}

.pst-timeline-item {
    position: relative;
    padding: 0 0 28px 36px;
}

.pst-timeline-item:last-child {
    padding-bottom: 0;
}

.pst-timeline-item::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 22px;
    bottom: -2px;
    width: 2px;
    background: var(--pst-line);
}

.pst-timeline-item:last-child::before {
    display: none;
}

.pst-timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--pst-muted);
    box-sizing: border-box;
}

.pst-timeline-item.pst-latest .pst-timeline-dot {
    border-color: var(--pst-blue);
    background: var(--pst-blue);
    box-shadow: 0 0 0 4px rgba(49, 95, 244, .15);
}

.pst-timeline-item.pst-milestone .pst-timeline-dot {
    width: 24px;
    height: 24px;
    left: -2px;
    border-color: var(--pst-cyan);
    background: var(--pst-cyan);
}

.pst-timeline-content {
    background: #fff;
    border-radius: 12px;
}

.pst-timeline-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pst-timeline-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.pst-timeline-time {
    font-size: 12px;
    color: var(--pst-muted);
    font-weight: 500;
}

.pst-timeline-location {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--pst-navy);
}

.pst-timeline-desc {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--pst-ink);
}

.pst-no-events {
    padding: 20px 28px;
    margin: 0;
    color: var(--pst-muted);
    font-size: 14px;
}

.pst-disclaimer {
    margin: 28px 0 0;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--pst-surface);
    border: 1px solid var(--pst-line);
    font-size: 13px;
    line-height: 1.7;
    color: var(--pst-muted);
}

.pst-disclaimer a {
    color: var(--pst-blue);
    text-decoration: none;
}

.pst-disclaimer a:hover {
    text-decoration: underline;
}

.pst-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: var(--pst-muted);
    font-size: 14px;
}

.pst-loading::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid var(--pst-line);
    border-top-color: var(--pst-blue);
    border-radius: 50%;
    animation: pst-spin .8s linear infinite;
}

@keyframes pst-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
    .pst-search-row {
        flex-direction: column;
    }

    .pst-search-btn {
        width: 100%;
    }

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

    .pst-summary,
    .pst-timeline {
        padding-left: 18px;
        padding-right: 18px;
    }
}
