/* V24.13: public tracking background and customer sign-in invitation. */
.track-modern-page {
    position: relative;
    isolation: isolate
}

.track-modern-page::before {
    content: "";
    position: fixed;
    inset: -12px;
    z-index: -1;
    pointer-events: none;
    background: url("assets/customer-boxes.jpg") center / cover no-repeat;
    filter: blur(5px);
    opacity: .16
}

.tracking-sign-in {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    margin-bottom: 22px;
    padding: 26px 30px;
    border: 1px solid #dce4ef;
    border-radius: 20px;
    background: linear-gradient(115deg, #fff 48%, #f0f5fc);
    box-shadow: 0 8px 24px rgba(23, 52, 93, .06);
    overflow: hidden
}

.tracking-sign-in::before {
    content: "";
    position: absolute;
    left: 0;
    top: 26px;
    bottom: 26px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #cc2540
}

.tracking-invitation-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid #dce6f3;
    border-radius: 16px;
    background: #edf3fb;
    color: #234673
}

.tracking-invitation-icon svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round
}

.tracking-invitation-copy {
    min-width: 0
}

.tracking-sign-in strong {
    display: block;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -.025em;
    color: #17345d;
    text-wrap: balance
}

.tracking-sign-in p {
    margin: 7px 0 0;
    color: #526580;
    font-size: 15px;
    line-height: 1.5
}

.tracking-sign-in .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 13px 20px;
    border: 1px solid #17345d;
    border-radius: 12px;
    background: #17345d;
    color: #fff;
    box-shadow: 0 4px 10px rgba(23, 52, 93, .12);
    font-size: 15px;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    transition: background .15s ease, box-shadow .15s ease
}

.tracking-sign-in .btn svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

@media(hover:hover) {
    .tracking-sign-in .btn:hover {
        background: #244b7b;
        border-color: #244b7b;
        box-shadow: 0 6px 14px rgba(23, 52, 93, .18)
    }
}

.tracking-sign-in .btn:focus-visible {
    outline: 3px solid #3978c6;
    outline-offset: 4px
}

.tracking-sign-in .btn:active {
    background: #102844
}

@media(max-width:700px) {
    .tracking-sign-in {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 16px;
        padding: 22px
    }

    .tracking-invitation-icon {
        width: 46px;
        height: 46px;
        border-radius: 13px
    }

    .tracking-invitation-icon svg {
        width: 26px;
        height: 26px
    }

    .tracking-sign-in strong {
        font-size: 20px
    }

    .tracking-sign-in .btn {
        grid-column: 1/-1;
        width: 100%;
        margin-top: 2px
    }

    .tracking-sign-in p {
        font-size: 14px
    }

    .tracking-sign-in::before {
        top: 22px;
        bottom: 22px
    }
}

@media(prefers-reduced-motion:reduce) {
    .tracking-sign-in .btn {
        transition: none
    }
}

@media print {

    .track-modern-page::before,
    .tracking-sign-in {
        display: none !important
    }
}

/* Match the customer portal's original emblem and wordmark. */
.track-modern-page .track-modern-header {
    align-items: center;
    gap: 16px;
    flex-wrap: wrap
}

.track-modern-page .track-modern-brand {
    gap: 14px
}

.track-emblem-frame {
    display: block;
    position: relative;
    overflow: hidden;
    width: 110px;
    height: 74px;
    flex-shrink: 0
}

.track-emblem-frame img {
    position: absolute;
    width: 157px;
    height: auto;
    max-width: none;
    left: -35px;
    top: -6px
}

.track-brand-copy {
    display: block
}

.track-brand-name {
    display: block;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -1px;
    font-weight: 800;
    color: #17345d
}

.track-brand-shipping {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 5px;
    font-weight: 600;
    text-align: center;
    color: #c8102e
}

.track-modern-brand:focus-visible {
    outline: 3px solid #3978c6;
    outline-offset: 5px;
    border-radius: 6px
}

.track-modern-header .track-lang-toggle {
    margin-left: auto;
    flex-shrink: 0
}

@media(max-width:560px) {
    .track-modern-page .track-modern-brand {
        gap: 8px
    }

    .track-emblem-frame {
        width: 72px;
        height: 49px
    }

    .track-emblem-frame img {
        width: 103px;
        left: -23px;
        top: -4px
    }

    .track-brand-name {
        font-size: 24px;
        letter-spacing: -.7px
    }

    .track-brand-shipping {
        font-size: 9px;
        letter-spacing: 4px;
        margin-top: 4px
    }
}