.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.7rem;
    border-radius: 2rem;
    background: rgba(160, 141, 95, 0.14);
    color: var(--gold-700);
    font: 600 0.66rem/1.2 var(--font-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-badge[hidden] {
    display: none;
}

.status-badge::before {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: currentColor;
}

.status-badge--success {
    background: rgba(29, 39, 72, 0.08);
    color: var(--navy-700);
}

.status-badge--muted {
    background: var(--cream-deep);
    color: var(--ink-mute);
}

.status-badge--attention {
    background: rgba(142, 45, 57, 0.08);
    color: var(--ruby);
}

.order-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.order-thumbs__item,
.order-thumbs__more {
    position: relative;
    width: 4.5rem;
    aspect-ratio: 4 / 5;
    background: var(--cream);
}

.order-thumbs__picture,
.order-thumbs__picture img {
    width: 100%;
    height: 100%;
}

.order-thumbs__picture img {
    object-fit: cover;
}

.order-thumbs__quantity {
    position: absolute;
    top: -0.45rem;
    right: -0.45rem;
    display: grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.3rem;
    border-radius: 1rem;
    background: var(--navy-700);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
}

.order-thumbs__more {
    display: grid;
    place-items: center;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.order-progress {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    margin: 0 0 1.5rem;
    list-style: none;
}

.order-progress__step {
    position: relative;
    display: grid;
    align-content: start;
    gap: 0.15rem;
    padding: 1.55rem 0.75rem 0 0;
}

.order-progress__step::before {
    content: "";
    position: absolute;
    top: 0.2rem;
    left: 0;
    z-index: 1;
    width: 0.75rem;
    height: 0.75rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--page);
}

.order-progress__step::after {
    content: "";
    position: absolute;
    top: 0.57rem;
    left: 0.75rem;
    right: 0;
    height: 1px;
    background: var(--line-strong);
}

.order-progress__step:last-child::after {
    display: none;
}

.order-progress__step.is-done::before {
    border-color: var(--gold-600);
    background: var(--gold-600);
}

.order-progress__step.is-done:has(+ .is-done)::after {
    background: var(--gold-600);
}

.order-progress__step.is-current::before {
    box-shadow: 0 0 0 4px rgba(160, 141, 95, 0.22);
}

.order-progress__label {
    color: var(--ink-mute);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

.order-progress__step.is-done .order-progress__label {
    color: var(--ink);
}

.order-progress__date {
    color: var(--ink-mute);
    font-size: 0.74rem;
}

.order-progress--compact {
    margin: 0;
}

.order-progress--compact .order-progress__label {
    font-size: 0.76rem;
}

.order-note {
    margin: 0 0 2rem;
    padding: 1rem 1.15rem;
    border-left: 2px solid var(--gold-600);
    background: rgba(160, 141, 95, 0.07);
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.6;
}

.shipment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 1.25rem;
    padding: 1rem 1.15rem;
    background: var(--cream);
}

.shipment-head__carrier {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
}

.shipment-head__number {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-variant-numeric: lining-nums tabular-nums;
}

.shipment-head__copy {
    margin-left: auto;
    padding: 0.2rem 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 0.82rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.shipment-events {
    display: grid;
    list-style: none;
}

.shipment-events__item {
    position: relative;
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0.1rem 1.25rem;
    padding: 0 0 1.25rem 1.75rem;
}

.shipment-events__item:last-child {
    padding-bottom: 0;
}

.shipment-events__item::before {
    content: "";
    position: absolute;
    top: 0.35rem;
    left: 0.25rem;
    width: 0.65rem;
    height: 0.65rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--page);
}

.shipment-events__item::after {
    content: "";
    position: absolute;
    top: 1.15rem;
    bottom: 0.15rem;
    left: calc(0.575rem - 0.5px);
    width: 1px;
    background: var(--line-strong);
}

.shipment-events__item:last-child::after {
    display: none;
}

.shipment-events__item.is-latest::before {
    border-color: var(--gold-600);
    background: var(--gold-600);
}

.shipment-events__time {
    display: grid;
    grid-row: span 2;
    margin: 0;
    color: var(--ink-mute);
    font-size: 0.8rem;
    line-height: 1.5;
    font-variant-numeric: lining-nums tabular-nums;
}

.shipment-events__title {
    margin: 0;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.shipment-events__location {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.order-detail {
    display: grid;
    gap: 2rem;
}

.order-detail__main {
    display: grid;
    min-width: 0;
}

.order-detail__aside {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.detail-section {
    display: grid;
    gap: 1.1rem;
    min-width: 0;
    padding-block: 1.75rem;
    border-top: 1px solid var(--line);
}

.order-detail__main > .detail-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.detail-section__title {
    float: left;
    margin: 0;
    padding: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.15;
}

.order-detail__aside .panel {
    border: 0;
    background: var(--cream);
}

.order-lines {
    display: grid;
    list-style: none;
}

.order-line {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) auto;
    gap: 1.1rem;
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--line);
}

.order-line:first-child {
    border-top: 1px solid var(--line);
}

.order-line__media {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--cream);
}

.order-line__picture,
.order-line__picture img {
    width: 100%;
    height: 100%;
}

.order-line__picture img {
    object-fit: cover;
}

.order-line__body {
    min-width: 0;
}

.order-line__brand {
    margin: 0 0 0.3rem;
    color: var(--gold-700);
    font: 500 0.625rem/1.2 var(--font-sans);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.order-line__name {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
}

.order-line__name:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.order-line__options,
.order-line__quantity {
    margin: 0.3rem 0 0;
    color: var(--ink-mute);
    font-size: 0.82rem;
}

.order-line__again {
    margin-top: 0.6rem;
    padding: 0.2rem 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 0.82rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.order-line__total {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: lining-nums tabular-nums;
}

@media (min-width: 48em) {
    .order-line {
        grid-template-columns: 6.5rem minmax(0, 1fr) auto;
        gap: 1.5rem;
    }
}

@media (min-width: 64em) {
    .order-detail {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 21rem);
        gap: 2.5rem;
        align-items: start;
    }

    .order-detail__aside {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
    }
}
