body.pd-tracker-page {
    min-height: 100vh;
}

.pd-parcel-page {
    min-height: 70vh;
    padding-bottom: clamp(46px, 7vw, 86px);
}

.pd-parcel-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(44px, 7vw, 82px) 0 clamp(34px, 5vw, 56px);
    text-align: center;
}

.pd-parcel-hero::before {
    position: absolute;
    top: -210px;
    left: 50%;
    width: min(920px, 120vw);
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(40, 235, 217, .12), rgba(70, 78, 190, .09) 42%, transparent 70%);
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
}

.pd-parcel-hero .pd-container {
    position: relative;
    z-index: 1;
}

.pd-parcel-kicker {
    margin: 0 0 5px;
    color: #7ef6eb;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pd-parcel-title {
    margin: 0;
    color: var(--pd-accent);
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    line-height: 1.14;
    letter-spacing: -.02em;
    text-shadow: 0 8px 34px rgba(255, 223, 0, .13);
}

.pd-parcel-subtitle {
    max-width: 680px;
    margin: 13px auto 0;
    color: #c6d8e4;
    font-size: clamp(.94rem, 1.7vw, 1.08rem);
}

.pd-parcel-search {
    width: min(920px, 100%);
    margin: clamp(27px, 4vw, 42px) auto 0;
}

.pd-parcel-search__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    padding: 7px;
    border: 1px solid rgba(99, 203, 214, .29);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(10, 27, 49, .94), rgba(6, 18, 34, .97));
    box-shadow: 0 18px 55px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .025);
}

.pd-parcel-search__bar:focus-within {
    border-color: rgba(79, 236, 221, .66);
    box-shadow: 0 0 0 4px rgba(40, 235, 217, .08), 0 20px 55px rgba(0, 0, 0, .28);
}

.pd-parcel-search input {
    width: 100%;
    min-width: 0;
    height: 58px;
    padding: 0 19px;
    border: 0;
    border-radius: 11px;
    outline: 0;
    color: var(--pd-ink);
    background: transparent;
    font-size: 1.03rem;
    letter-spacing: .015em;
}

.pd-parcel-search input::placeholder {
    color: #7390a4;
    opacity: 1;
}

.pd-parcel-search input.is-invalid {
    background: rgba(156, 34, 45, .13);
    box-shadow: inset 0 0 0 1px rgba(255, 104, 116, .48);
    animation: pd-parcel-shake .3s ease;
}

.pd-parcel-search button {
    position: relative;
    min-width: 176px;
    min-height: 58px;
    padding: 0 27px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #2f8cff, #5bcfff);
    box-shadow: 0 10px 28px rgba(47, 140, 255, .24), inset 0 1px rgba(255, 255, 255, .28);
    font-size: 1.02rem;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.pd-parcel-search button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 13px 32px rgba(47, 140, 255, .3), inset 0 1px rgba(255, 255, 255, .3);
}

.pd-parcel-search button:active {
    transform: translateY(0);
}

.pd-parcel-search button:disabled {
    cursor: wait;
    filter: saturate(.75);
    opacity: .72;
}

.pd-parcel-search button.is-loading::after {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: 9px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    content: "";
    vertical-align: -2px;
    animation: pd-parcel-spin .7s linear infinite;
}

.pd-parcel-search__error {
    margin: 11px 5px 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 113, 126, .35);
    border-radius: 9px;
    color: #ffd8dc;
    background: rgba(132, 26, 34, .2);
    font-size: .84rem;
    text-align: left;
}

.pd-parcel-initial,
.pd-parcel-empty {
    width: min(820px, 100%);
    margin: 12px auto 0;
    padding: clamp(30px, 5vw, 48px) 24px;
    border: 1px dashed rgba(107, 205, 211, .28);
    border-radius: 17px;
    text-align: center;
    background: rgba(7, 23, 40, .48);
}

.pd-parcel-empty__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border: 1px solid rgba(40, 235, 217, .22);
    border-radius: 18px;
    color: #7cf4e8;
    background: rgba(40, 235, 217, .07);
}

.pd-parcel-empty__icon svg {
    width: 30px;
    height: 30px;
}

.pd-parcel-initial h2,
.pd-parcel-empty h2 {
    margin: 0 0 6px;
    color: var(--pd-ink);
    font-size: 1.28rem;
}

.pd-parcel-initial p,
.pd-parcel-empty p {
    max-width: 590px;
    margin: 0 auto;
    color: var(--pd-muted);
    font-size: .9rem;
}

.pd-parcel-results {
    display: grid;
    gap: 22px;
    max-width: 1040px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .32s ease, transform .32s ease;
}

.pd-parcel-results.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.pd-parcel-results__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 3px 2px 0;
}

.pd-parcel-results__head h2 {
    margin: 0;
    color: var(--pd-ink);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.pd-parcel-results__head > span {
    padding: 6px 11px;
    border: 1px solid rgba(40, 235, 217, .23);
    border-radius: 999px;
    color: #9af8ef;
    background: rgba(40, 235, 217, .06);
    font-size: .74rem;
    font-weight: 800;
    white-space: nowrap;
}

.pd-parcel-record {
    display: grid;
    gap: 20px;
}

.pd-parcel-card {
    overflow: hidden;
    border: 1px solid rgba(93, 192, 204, .28);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(10, 33, 57, .94), rgba(6, 20, 37, .97));
    box-shadow: var(--pd-shadow-sm);
    animation: pd-parcel-record-in .35s cubic-bezier(.2, .75, .2, 1) both;
}

.pd-parcel-record:nth-of-type(2) .pd-parcel-card {
    animation-delay: .05s;
}

.pd-parcel-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 24px 18px;
    border-bottom: 1px solid rgba(107, 205, 211, .16);
}

.pd-parcel-card__head--tracking {
    align-items: flex-start;
    padding: 19px 25px 14px 17px;
    border-bottom: 0;
}

.pd-parcel-track-title {
    color: var(--pd-accent) !important;
    font-size: clamp(1.28rem, 2.6vw, 1.62rem) !important;
    font-weight: 800;
    letter-spacing: -.015em;
}

.pd-parcel-order-id {
    margin: 4px 0 0;
    color: #c2d0df;
    font-size: .91rem;
    line-height: 1.45;
}

.pd-parcel-card__head--details {
    padding-bottom: 15px;
}

.pd-parcel-card__head h2 {
    margin: 0;
    color: var(--pd-ink);
    font-size: clamp(1.05rem, 2.4vw, 1.32rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.pd-parcel-meta {
    margin: 5px 0 0;
    color: var(--pd-muted);
    font-size: .8rem;
}

.pd-parcel-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(40, 235, 217, .3);
    border-radius: 999px;
    color: #a9fff6;
    background: rgba(40, 235, 217, .08);
    font-size: .75rem;
    font-weight: 800;
    white-space: nowrap;
}

.pd-parcel-status::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(40, 235, 217, .09);
    content: "";
}

.pd-parcel-status--success { color: #8ff0b0; border-color: rgba(80, 220, 128, .3); background: rgba(48, 177, 92, .1); }
.pd-parcel-status--warning { color: #ffd777; border-color: rgba(255, 205, 77, .3); background: rgba(204, 151, 20, .1); }
.pd-parcel-status--info { color: #8fdcff; border-color: rgba(83, 184, 255, .3); background: rgba(40, 131, 204, .11); }
.pd-parcel-status--danger { color: #ffadb5; border-color: rgba(255, 105, 118, .3); background: rgba(187, 49, 61, .12); }
.pd-parcel-status--progress { color: #9af8ef; }

.pd-parcel-timeline-wrap {
    padding: 21px 31px 34px 13px;
}

.pd-parcel-timeline {
    --pd-step-date-width: 127px;
    --pd-step-marker-column: 38px;
    --pd-step-marker-width: 24px;
    --pd-step-marker-offset: 12px;
    --pd-step-content-offset: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pd-parcel-step {
    position: relative;
    display: grid;
    grid-template-columns: var(--pd-step-date-width) var(--pd-step-marker-column) minmax(0, 1fr);
    gap: 0;
    min-height: 66px;
    padding: 0 0 19px;
}

.pd-parcel-step::before {
    position: absolute;
    top: calc(var(--pd-step-marker-width) - 1px);
    bottom: 0;
    left: calc(var(--pd-step-date-width) + var(--pd-step-marker-offset) + (var(--pd-step-marker-width) / 2));
    border-left: 2px dotted rgba(92, 115, 141, .72);
    content: "";
    pointer-events: none;
}

.pd-parcel-step:last-child,
.pd-parcel-step:last-child::before {
    min-height: 0;
    padding-bottom: 0;
    border-left-color: transparent;
}

.pd-parcel-step__date {
    align-self: start;
    padding-top: 3px;
    color: #bbc9d7;
    font-size: .82rem;
    font-style: normal;
    line-height: 1.35;
    white-space: nowrap;
}

.pd-parcel-step__date span {
    display: block;
    margin-top: 2px;
    color: #9eb1c3;
}

.pd-parcel-step__marker {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: var(--pd-step-marker-width);
    height: var(--pd-step-marker-width);
    margin-left: var(--pd-step-marker-offset);
    border: 2px solid #7b8da0;
    border-radius: 50%;
    color: transparent;
    background: #10253a;
    font-size: .82rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 0 4px #10253a;
}

.pd-parcel-step.is-complete .pd-parcel-step__marker {
    border-color: #3be4d2;
    color: #fff;
    background: #3be4d2;
    box-shadow: 0 0 0 4px #10253a, 0 0 15px rgba(59, 228, 210, .24);
}

.pd-parcel-step__body {
    grid-column: 3;
    min-width: 0;
    padding-top: 1px;
    margin-left: var(--pd-step-content-offset);
}

.pd-parcel-step__body strong {
    display: block;
    color: var(--pd-ink);
    font-size: .94rem;
    line-height: 1.45;
}

.pd-parcel-step__note {
    margin: 5px 0 0;
    color: #adbfce;
    font-size: .82rem;
    line-height: 1.58;
}

.pd-parcel-items {
    margin: 0;
    padding: 5px 24px 8px;
    list-style: none;
}

.pd-parcel-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(107, 205, 211, .12);
}

.pd-parcel-item:last-child {
    border-bottom: 0;
}

.pd-parcel-item__cover {
    display: grid;
    place-items: center;
    width: 62px;
    height: 74px;
    overflow: hidden;
    border: 1px solid rgba(107, 205, 211, .18);
    border-radius: 9px;
    background: rgba(3, 16, 29, .65);
}

.pd-parcel-item__cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pd-parcel-item__fallback {
    color: #7cf5e8;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -.05em;
}

.pd-parcel-item__copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.pd-parcel-item__copy strong {
    color: var(--pd-ink);
    font-size: .92rem;
    line-height: 1.45;
}

.pd-parcel-item__copy small {
    color: var(--pd-muted);
    font-size: .76rem;
}

.pd-parcel-item > b {
    color: #c7e8e8;
    font-size: .88rem;
    white-space: nowrap;
}

.pd-parcel-order-table-wrap {
    padding: 0 24px 24px;
    overflow-x: auto;
    scrollbar-color: rgba(94, 215, 208, .38) rgba(4, 17, 31, .45);
    scrollbar-width: thin;
}

.pd-parcel-order-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    color: var(--pd-text);
    font-size: .86rem;
}

.pd-parcel-order-table thead th {
    padding: 16px 18px;
    border: 1px solid rgba(107, 205, 211, .14);
    color: #bdcfdb;
    background: rgba(3, 14, 26, .72);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .075em;
    text-align: left;
    text-transform: uppercase;
}

.pd-parcel-order-table tbody td,
.pd-parcel-order-table tfoot th,
.pd-parcel-order-table tfoot td {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(107, 205, 211, .12);
    line-height: 1.5;
    vertical-align: middle;
}

.pd-parcel-order-table tbody td:first-child {
    width: 34%;
}

.pd-parcel-order-table tbody td:nth-child(2) {
    width: 22%;
    color: #c0d8e2;
}

.pd-parcel-order-table tbody td:nth-child(3),
.pd-parcel-order-table thead th:nth-child(3) {
    text-align: right;
    white-space: nowrap;
}

.pd-parcel-order-table tbody td:nth-child(4),
.pd-parcel-order-table thead th:nth-child(4) {
    text-align: center;
    white-space: nowrap;
}

.pd-parcel-order-table tbody td:nth-child(5),
.pd-parcel-order-table thead th:nth-child(5) {
    text-align: right;
    white-space: nowrap;
}

.pd-parcel-order-table tbody td strong {
    color: var(--pd-ink);
    font-weight: 700;
}

.pd-parcel-order-table tbody tr:last-child td {
    border-bottom: 0;
}

.pd-parcel-order-table__empty {
    color: var(--pd-muted);
    text-align: center !important;
}

.pd-parcel-order-table tfoot th,
.pd-parcel-order-table tfoot td {
    border-bottom: 0;
    color: #b6cbd7;
    font-size: .82rem;
    font-weight: 500;
    text-align: right;
}

.pd-parcel-order-table tfoot td:last-child {
    color: #e0edf2;
    font-weight: 700;
    white-space: nowrap;
}

.pd-parcel-order-table tfoot tr.is-total th,
.pd-parcel-order-table tfoot tr.is-total td {
    padding-top: 16px;
    padding-bottom: 16px;
    border-top: 1px solid rgba(107, 205, 211, .18);
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
}

.pd-parcel-order-table tfoot tr.is-total td:last-child {
    color: var(--pd-accent);
    font-size: 1rem;
}

.pd-parcel-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 18px;
    padding: 18px 24px 21px;
    border-top: 1px solid rgba(107, 205, 211, .12);
}

.pd-parcel-detail-grid h3 {
    margin: 0 0 8px;
    color: #8ff8ee;
    font-size: .79rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.pd-parcel-address,
.pd-parcel-payment {
    padding: 16px;
    border: 1px solid rgba(107, 205, 211, .16);
    border-radius: 12px;
    background: rgba(3, 16, 29, .34);
}

.pd-parcel-address > p {
    margin: 0;
    color: var(--pd-text);
    font-size: .87rem;
    line-height: 1.65;
}

.pd-parcel-customer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 12px;
    color: var(--pd-muted);
    font-size: .77rem;
}

.pd-parcel-customer strong {
    color: var(--pd-ink);
}

.pd-parcel-payment dl {
    display: grid;
    gap: 7px;
    margin: 0;
}

.pd-parcel-payment dl > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: .8rem;
}

.pd-parcel-payment dt {
    color: var(--pd-muted);
}

.pd-parcel-payment dd {
    margin: 0;
    color: var(--pd-text);
    text-align: right;
    overflow-wrap: anywhere;
}

.pd-parcel-tracking-link {
    display: inline-flex;
    margin-top: 11px;
    color: #7ef4e9;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
}

.pd-parcel-totals {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 19px 24px 23px;
    border-top: 1px solid rgba(107, 205, 211, .12);
    background: rgba(2, 12, 23, .2);
}

.pd-parcel-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--pd-muted);
    font-size: .84rem;
}

.pd-parcel-totals dt,
.pd-parcel-totals dd {
    margin: 0;
}

.pd-parcel-totals dd {
    color: var(--pd-text);
}

.pd-parcel-totals .is-total {
    margin-top: 3px;
    padding-top: 10px;
    border-top: 1px solid rgba(107, 205, 211, .14);
    color: var(--pd-ink);
    font-size: 1rem;
    font-weight: 800;
}

.pd-parcel-totals .is-total dd {
    color: var(--pd-accent);
    font-size: 1.12rem;
}

.pd-parcel-loading {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 8, 18, .74);
    opacity: 0;
    backdrop-filter: blur(7px);
    transition: opacity .24s ease;
}

.pd-parcel-loading.is-visible {
    opacity: 1;
}

.pd-parcel-loading__card {
    width: min(360px, 100%);
    padding: 30px 24px 27px;
    border: 1px solid rgba(83, 224, 214, .3);
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(150deg, rgba(12, 42, 67, .98), rgba(5, 18, 34, .99));
    box-shadow: 0 32px 80px rgba(0, 0, 0, .55), inset 0 1px rgba(255, 255, 255, .04);
    transform: translateY(10px) scale(.96);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}

.pd-parcel-loading.is-visible .pd-parcel-loading__card {
    transform: translateY(0) scale(1);
}

.pd-parcel-loading__card h2 {
    margin: 20px 0 6px;
    color: var(--pd-ink);
    font-size: 1.18rem;
}

.pd-parcel-loading__card p {
    margin: 0;
    color: var(--pd-muted);
    font-size: .87rem;
}

body.pd-parcel-busy {
    overflow: hidden;
}

.pd-parcel-loader {
    position: relative;
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin: 0 auto;
}

.pd-parcel-loader__orbit {
    position: absolute;
    border: 1px solid rgba(69, 229, 215, .24);
    border-radius: 50%;
}

.pd-parcel-loader__orbit:nth-child(1) {
    width: 108px;
    height: 108px;
    border-top-color: #44ead9;
    animation: pd-parcel-spin 1.8s linear infinite;
}

.pd-parcel-loader__orbit:nth-child(2) {
    width: 82px;
    height: 82px;
    border-right-color: #62cfff;
    animation: pd-parcel-spin 1.25s linear infinite reverse;
}

.pd-parcel-loader__box {
    position: relative;
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    color: #05261f;
    background: linear-gradient(145deg, #8affef, #28d6c4);
    box-shadow: 0 12px 30px rgba(40, 235, 217, .22);
    animation: pd-parcel-bob 1.15s ease-in-out infinite;
}

.pd-parcel-loader__box svg {
    width: 25px;
    height: 25px;
}

@keyframes pd-parcel-spin { to { transform: rotate(360deg); } }
@keyframes pd-parcel-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pd-parcel-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes pd-parcel-record-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 720px) {
    .pd-parcel-search__bar {
        grid-template-columns: 1fr;
    }

    .pd-parcel-search button {
        width: 100%;
        min-height: 52px;
    }

    .pd-parcel-card__head,
    .pd-parcel-timeline-wrap,
    .pd-parcel-order-table-wrap,
    .pd-parcel-items,
    .pd-parcel-detail-grid,
    .pd-parcel-totals {
        padding-left: 18px;
        padding-right: 18px;
    }

    .pd-parcel-card__head {
        flex-direction: column;
        gap: 12px;
    }

    .pd-parcel-detail-grid {
        grid-template-columns: 1fr;
    }

    .pd-parcel-timeline-wrap {
        padding-left: 18px;
        padding-right: 18px;
    }

    .pd-parcel-timeline {
        --pd-step-date-width: 0px;
        --pd-step-marker-column: 24px;
        --pd-step-marker-width: 24px;
        --pd-step-marker-offset: 0px;
        --pd-step-content-offset: 10px;
    }

    .pd-parcel-step {
        grid-template-columns: var(--pd-step-marker-column) minmax(0, 1fr);
        min-height: 60px;
        padding-bottom: 17px;
    }

    .pd-parcel-step::before {
        top: 24px;
        left: calc(var(--pd-step-marker-width) / 2);
    }

    .pd-parcel-step__date {
        grid-column: 2;
        grid-row: 1;
        padding: 0 0 3px var(--pd-step-content-offset);
        white-space: normal;
    }

    .pd-parcel-step__date span {
        display: inline;
        margin: 0 0 0 5px;
    }

    .pd-parcel-step__marker {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .pd-parcel-step__body {
        grid-column: 2;
        grid-row: 2;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .pd-parcel-search input {
        height: 52px;
        padding: 0 13px;
        font-size: .95rem;
    }

    .pd-parcel-item {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 12px;
    }

    .pd-parcel-item__cover {
        width: 50px;
        height: 61px;
    }

    .pd-parcel-item > b {
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pd-parcel-loader__orbit,
    .pd-parcel-loader__box,
    .pd-parcel-card {
        animation: none !important;
    }
}
