/* ========================================
   ORDERS PAGE
======================================== */

.orders-page {
    min-height: 100vh;

    background:
        linear-gradient(180deg,
            var(--color-ivory) 0%,
            #f6f1e8 100%);
}

.orders-shell {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;

    padding: 92px 0 120px;
}


/* ========================================
   PAGE INTRO
======================================== */

.orders-intro {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 50px;

    margin-bottom: 48px;
}

.orders-intro-copy {
    max-width: 650px;
}

.orders-eyebrow {
    margin: 0 0 15px;

    color: var(--color-gold);

    font-size: 0.68rem;
    font-weight: 600;

    letter-spacing: 0.16em;

    line-height: 1.4;

    text-transform: uppercase;
}

.orders-title {
    margin: 0;

    color: var(--color-espresso);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(2.8rem, 5vw, 4.5rem);

    font-weight: 400;

    line-height: 1.02;

    letter-spacing: -0.035em;
}

.orders-subtitle {
    max-width: 520px;

    margin: 22px 0 0;

    color: var(--color-muted);

    font-size: 0.94rem;

    line-height: 1.9;
}


/* ========================================
   CONTINUE SHOPPING
======================================== */

.orders-continue-shopping {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;

    padding-bottom: 8px;

    border-bottom:
        1px solid rgba(184, 155, 94, 0.65);

    color: var(--color-espresso);

    font-size: 0.7rem;

    font-weight: 600;

    letter-spacing: 0.1em;

    text-decoration: none;

    text-transform: uppercase;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        gap 0.25s ease;
}

.orders-continue-shopping:hover {
    color: var(--color-gold);

    border-color: var(--color-gold);

    gap: 16px;
}

.orders-continue-shopping i {
    font-size: 0.68rem;
}


/* ========================================
   ACCOUNT CONTEXT
======================================== */

.orders-context {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 1px minmax(0, 1fr);

    align-items: center;

    gap: 38px;

    margin-bottom: 65px;

    padding: 22px 28px;

    border:
        1px solid rgba(43, 37, 32, 0.09);

    background-color:
        rgba(255, 255, 255, 0.48);
}

.orders-context-item {
    display: flex;

    align-items: center;

    gap: 15px;
}

.orders-context-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    width: 38px;
    height: 38px;

    border:
        1px solid rgba(184, 155, 94, 0.45);

    color: var(--color-gold);

    font-size: 0.85rem;
}

.orders-context-label {
    display: block;

    margin-bottom: 3px;

    color: var(--color-espresso);

    font-size: 0.7rem;

    font-weight: 600;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.orders-context-text {
    display: block;

    color: var(--color-muted);

    font-size: 0.75rem;

    line-height: 1.5;
}

.orders-context-divider {
    width: 1px;

    height: 42px;

    background-color:
        rgba(43, 37, 32, 0.12);
}


/* ========================================
   ORDERS LIST
======================================== */

.orders-list {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


/* ========================================
   ORDER CARD
======================================== */

.order-card {
    position: relative;

    overflow: hidden;

    border:
        1px solid rgba(43, 37, 32, 0.09);

    background-color:
        rgba(255, 255, 255, 0.78);

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.order-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 3px;
    height: 100%;

    background-color: var(--color-gold);

    opacity: 0;

    transition: opacity 0.3s ease;
}

.order-card:hover {
    border-color:
        rgba(184, 155, 94, 0.35);

    box-shadow:
        0 16px 40px rgba(43, 37, 32, 0.07);

    transform: translateY(-2px);
}

.order-card:hover::before {
    opacity: 1;
}

.order-card-inner {
    padding: 34px 38px 30px;
}


/* ========================================
   ORDER CARD HEADER
======================================== */

.order-card-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 30px;

    padding-bottom: 25px;

    border-bottom:
        1px solid rgba(43, 37, 32, 0.08);
}

.order-card-heading {
    min-width: 0;
}

.order-label {
    margin: 0 0 7px;

    color: var(--color-gold);

    font-size: 0.62rem;

    font-weight: 600;

    letter-spacing: 0.15em;

    line-height: 1.4;

    text-transform: uppercase;
}

.order-number {
    margin: 0;

    color: var(--color-espresso);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.45rem;

    font-weight: 400;

    line-height: 1.3;

    letter-spacing: -0.01em;
}

.order-date {
    margin: 6px 0 0;

    color: var(--color-muted);

    font-size: 0.76rem;

    line-height: 1.5;
}


/* ========================================
   STATUS
======================================== */

.order-status {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    min-height: 32px;

    padding: 7px 13px;

    border:
        1px solid rgba(184, 155, 94, 0.38);

    background-color:
        rgba(184, 155, 94, 0.08);

    color: var(--color-espresso);

    font-size: 0.61rem;

    font-weight: 600;

    letter-spacing: 0.1em;

    line-height: 1;

    text-transform: uppercase;

    white-space: nowrap;
}

.order-status::before {
    content: "";

    width: 5px;
    height: 5px;

    margin-right: 8px;

    border-radius: 50%;

    background-color: var(--color-gold);
}


/* Status variations */

.order-status.status-delivered {
    border-color:
        rgba(91, 122, 82, 0.25);

    background-color:
        rgba(91, 122, 82, 0.06);
}

.order-status.status-delivered::before {
    background-color: #5b7a52;
}

.order-status.status-cancelled {
    border-color:
        rgba(159, 61, 61, 0.22);

    background-color:
        rgba(159, 61, 61, 0.05);
}

.order-status.status-cancelled::before {
    background-color: #9f3d3d;
}


/* ========================================
   ITEMS
======================================== */

.order-card-items {
    padding: 24px 0 22px;
}

.order-items-label {
    margin: 0 0 13px;

    color: var(--color-muted);

    font-size: 0.62rem;

    font-weight: 600;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.order-items-list {
    display: flex;

    flex-direction: column;

    gap: 0;
}

.order-item-preview {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding: 11px 0;

    border-bottom:
        1px solid rgba(43, 37, 32, 0.055);
}

.order-item-preview:last-child {
    border-bottom: 0;
}

.order-item-preview-info {
    display: flex;

    align-items: baseline;

    flex-wrap: wrap;

    gap: 6px;

    min-width: 0;
}

.order-item-name {
    overflow: hidden;

    color: var(--color-espresso);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.94rem;

    line-height: 1.5;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.order-item-variant {
    color: var(--color-muted);

    font-size: 0.72rem;

    line-height: 1.5;
}

.order-item-quantity {
    flex-shrink: 0;

    color: var(--color-muted);

    font-size: 0.75rem;

    white-space: nowrap;
}

.order-more-items {
    margin: 11px 0 0;

    color: var(--color-gold);

    font-size: 0.68rem;

    font-weight: 600;

    letter-spacing: 0.05em;
}

.order-no-items {
    margin: 0;

    color: var(--color-muted);

    font-size: 0.78rem;
}


/* ========================================
   ORDER FOOTER
======================================== */

.order-card-footer {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    padding-top: 24px;

    border-top:
        1px solid rgba(43, 37, 32, 0.08);
}

.order-total-wrapper {
    min-width: 0;
}

.order-total {
    margin: 0;

    color: var(--color-espresso);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.35rem;

    font-weight: 400;

    line-height: 1.3;
}


/* ========================================
   VIEW ORDER BUTTON
======================================== */

.order-details-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    min-height: 44px;

    padding: 11px 18px;

    border:
        1px solid var(--color-espresso);

    background-color:
        var(--color-espresso);

    color: var(--color-white);

    font-size: 0.65rem;

    font-weight: 600;

    letter-spacing: 0.1em;

    line-height: 1;

    text-decoration: none;

    text-transform: uppercase;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        gap 0.25s ease;
}

.order-details-button:hover {
    border-color: var(--color-gold);

    background-color: var(--color-gold);

    color: var(--color-white);

    gap: 16px;
}

.order-details-button i {
    font-size: 0.62rem;
}


/* ========================================
   GENERAL STATES
======================================== */

.orders-state {
    width: 100%;
}

.orders-loading-card,
.orders-state-card,
.orders-empty-card {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    min-height: 360px;

    padding: 50px 30px;

    border:
        1px solid rgba(43, 37, 32, 0.09);

    background-color:
        rgba(255, 255, 255, 0.62);

    text-align: center;
}


/* ========================================
   LOADING
======================================== */

.orders-loading-card {
    flex-direction: row;

    justify-content: center;

    gap: 18px;

    text-align: left;
}

.orders-loading-symbol {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 44px;
    height: 44px;

    border:
        1px solid rgba(184, 155, 94, 0.4);

    color: var(--color-gold);

    font-size: 0.9rem;
}

.orders-loading-text {
    margin: 4px 0 0;

    color: var(--color-espresso);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1rem;
}


/* ========================================
   STATE CONTENT
======================================== */

.orders-state-eyebrow {
    margin: 0 0 12px;

    color: var(--color-gold);

    font-size: 0.62rem;

    font-weight: 600;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}

.orders-state-icon,
.orders-empty-symbol {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 62px;
    height: 62px;

    margin-bottom: 25px;

    border:
        1px solid rgba(184, 155, 94, 0.4);

    color: var(--color-gold);

    font-size: 1.25rem;
}

.orders-state-card h2,
.orders-empty-card h2 {
    margin: 0;

    color: var(--color-espresso);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.9rem;

    font-weight: 400;

    line-height: 1.25;
}

.orders-state-description {
    max-width: 430px;

    margin: 13px auto 25px;

    color: var(--color-muted);

    font-size: 0.84rem;

    line-height: 1.8;
}


/* ========================================
   STATE BUTTON
======================================== */

.orders-state-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    min-height: 46px;

    padding: 12px 20px;

    border:
        1px solid var(--color-espresso);

    background-color:
        var(--color-espresso);

    color: var(--color-white);

    font-size: 0.65rem;

    font-weight: 600;

    letter-spacing: 0.09em;

    text-decoration: none;

    text-transform: uppercase;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        gap 0.25s ease;
}

.orders-state-button:hover {
    border-color: var(--color-gold);

    background-color: var(--color-gold);

    color: var(--color-white);

    gap: 16px;
}

.orders-state-button i {
    font-size: 0.6rem;
}


/* ========================================
   ERROR
======================================== */

.orders-error .orders-state-icon {
    border-color:
        rgba(159, 61, 61, 0.25);

    color: #9f3d3d;
}


/* ========================================
   EMPTY STATE
======================================== */

.orders-empty-symbol {
    margin-bottom: 25px;
}

.orders-empty-ring {
    position: absolute;

    width: 34px;
    height: 34px;

    border:
        1px solid rgba(184, 155, 94, 0.3);

    border-radius: 50%;
}

.orders-empty-symbol i {
    position: relative;

    z-index: 1;

    font-size: 1.05rem;
}


/* ========================================
   RESPONSIVE — TABLET
======================================== */

@media (max-width: 992px) {

    .orders-shell {
        width: min(100% - 40px,
                900px);

        padding-top: 75px;
    }

    .orders-intro {
        align-items: flex-start;

        flex-direction: column;

        gap: 25px;
    }

    .orders-context {
        gap: 25px;

        margin-bottom: 50px;
    }

}


/* ========================================
   RESPONSIVE — MOBILE
======================================== */

@media (max-width: 768px) {

    .orders-shell {
        width: calc(100% - 32px);

        padding: 58px 0 80px;
    }


    .orders-intro {
        margin-bottom: 35px;
    }

    .orders-title {
        font-size: 2.65rem;
    }

    .orders-subtitle {
        margin-top: 16px;

        font-size: 0.88rem;
    }


    .orders-context {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 18px;

        margin-bottom: 40px;

        padding: 20px;
    }

    .orders-context-divider {
        width: 100%;
        height: 1px;
    }


    .orders-list {
        gap: 14px;
    }


    .order-card-inner {
        padding: 25px 22px 23px;
    }

    .order-card-header {
        flex-direction: column;

        gap: 17px;
    }

    .order-status {
        align-self: flex-start;
    }


    .order-card-footer {
        align-items: stretch;

        flex-direction: column;

        gap: 20px;
    }

    .order-details-button {
        width: 100%;
    }


    .orders-loading-card,
    .orders-state-card,
    .orders-empty-card {
        min-height: 320px;

        padding: 40px 22px;
    }

}


/* ========================================
   RESPONSIVE — SMALL MOBILE
======================================== */

@media (max-width: 480px) {

    .orders-shell {
        width: calc(100% - 24px);

        padding-top: 48px;
    }

    .orders-title {
        font-size: 2.25rem;
    }

    .orders-subtitle {
        font-size: 0.84rem;
    }

    .orders-continue-shopping {
        font-size: 0.63rem;
    }

    .orders-context-text {
        font-size: 0.7rem;
    }

    .order-number {
        font-size: 1.3rem;
    }

    .order-item-name {
        max-width: 210px;

        font-size: 0.88rem;
    }

    .order-total {
        font-size: 1.25rem;
    }

    .orders-state-card h2,
    .orders-empty-card h2 {
        font-size: 1.65rem;
    }

}


/* =========================================================
   ELANORA — LUXURY ORDER DETAILS
   ========================================================= */

.order-detail-page {
    --order-ivory: #f8f5ef;
    --order-champagne: #efe8dc;
    --order-gold: #b89b5e;
    --order-espresso: #2b2520;
    --order-muted: #756b61;
    --order-white: #fffefa;
    --order-green: #627c60;
    --order-red: #a9584f;

    min-height: 75vh;
    padding: 38px 0 88px;
    background:
        radial-gradient(ellipse at 92% 4%, rgba(184, 155, 94, .10), transparent 28%),
        var(--order-ivory);
    color: var(--order-espresso);
    font-family: inherit;
}

.order-detail-page *,
.order-detail-page *::before,
.order-detail-page *::after {
    box-sizing: border-box;
}

.order-detail-page [hidden] {
    display: none !important;
}

.order-detail-container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

.order-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    color: var(--order-muted);
    font-size: .83rem;
    text-decoration: none;
    transition: color .2s ease, gap .2s ease;
}

.order-back-link:hover {
    color: var(--order-gold);
    gap: 14px;
}

/* Header */

.order-detail-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    padding: 36px 42px;
    margin-bottom: 26px;
    border-radius: 8px;
    background: linear-gradient(115deg, #fffefa 0%, #f4ede1 100%);
    box-shadow: 0 10px 34px rgba(58, 43, 26, .055);
}

.order-detail-hero-copy {
    position: relative;
    z-index: 1;
}

.order-detail-eyebrow,
.section-kicker {
    display: block;
    color: var(--order-gold);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.6;
    text-transform: uppercase;
}

.order-detail-hero h1,
.panel-heading h2 {
    margin: 8px 0 0;
    color: var(--order-espresso);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.order-detail-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.order-detail-date {
    margin: 12px 0 0;
    color: var(--order-muted);
    font-size: .88rem;
}

.order-hero-decoration {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-right: 4px;
    color: rgba(184, 155, 94, .6);
    font-size: 2.5rem;
}

.order-hero-decoration-line {
    width: 70px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--order-gold));
}

/* Main customer update */

.order-update-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 25px 28px;
    margin-bottom: 26px;
    border-radius: 8px;
    background: #fffefa;
    box-shadow: 0 8px 28px rgba(58, 43, 26, .055);
}

/* ELANORA – Order Update Icon */
.order-update-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;

    border: 1px solid rgba(184, 155, 94, 0.30);
    border-radius: 50%;

    background: #F8F5EF;
    color: #B89B5E;

    font-size: 1.1rem;
}

.order-update-copy {
    min-width: 0;
}

.order-update-copy h2 {
    margin: 5px 0 7px;
    color: var(--order-espresso);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.4;
}

.order-update-copy p {
    margin: 0;
    color: var(--order-muted);
    font-size: .88rem;
    line-height: 1.75;
}

.order-update-card.is-success .order-update-icon {
    background: #edf2e9;
    color: var(--order-green);
}

.order-update-card.is-warning .order-update-icon {
    background: #f7efe1;
    color: #a77931;
}

.order-update-card.is-danger .order-update-icon {
    background: #f7eae7;
    color: var(--order-red);
}

/* Layout */

.order-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr);
    align-items: start;
    gap: 26px;
}

.order-detail-main,
.order-detail-sidebar {
    display: grid;
    min-width: 0;
    gap: 26px;
}

.order-detail-panel {
    min-width: 0;
    padding: 28px;
    border-radius: 8px;
    background: var(--order-white);
    box-shadow: 0 8px 30px rgba(58, 43, 26, .055);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.panel-heading h2 {
    font-size: 1.45rem;
    line-height: 1.35;
}

.panel-heading-gem {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(184, 155, 94, 0.3);
    border-radius: 50%;
    background: #f8f5ef;
    color: #b89b5e;
    font-size: 1rem;
}

.order-item-count {
    padding: 7px 11px;
    border-radius: 30px;
    background: var(--order-ivory);
    color: var(--order-muted);
    font-size: .75rem;
    white-space: nowrap;
}

/* Product rows */

.order-detail-items {
    display: grid;
    gap: 14px;
}

.order-detail-item {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 6px;
    background: #faf7f1;
    transition: background .2s ease, transform .2s ease;
}

.order-detail-item:hover {
    background: #f6f0e5;
}

.order-item-preview {
    display: block;
    width: 94px;
    height: 106px;
    overflow: hidden;
    border-radius: 4px;
    background: #eee6d8;
    text-decoration: none;
}

.order-item-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

a.order-item-preview:hover .order-item-image {
    transform: scale(1.05);
}

.order-item-preview-empty {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--order-gold);
    font-size: 1.6rem;
}

.order-item-info {
    min-width: 0;
}

.order-item-name {
    display: inline-block;
    margin: 0 0 7px;
    color: var(--order-espresso);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
}

a.order-item-name:hover {
    color: #987941;
}

.order-item-variant {
    margin: 0 0 8px;
    color: var(--order-muted);
    font-size: .8rem;
}

.order-item-quantity {
    margin: 0;
    color: var(--order-muted);
    font-size: .8rem;
}

.order-item-price {
    align-self: center;
    color: var(--order-espresso);
    font-size: .91rem;
    font-weight: 600;
    white-space: nowrap;
}

.order-item-price-label {
    display: block;
    margin-bottom: 5px;
    color: var(--order-muted);
    font-size: .68rem;
    font-weight: 400;
    letter-spacing: .04em;
}

/* Total */

.order-purchase-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 23px 2px 0;
    margin-top: 22px;
    border-top: 1px solid rgba(184, 155, 94, .24);
}

.total-label {
    display: block;
    color: var(--order-espresso);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
}

.total-caption {
    display: block;
    margin-top: 5px;
    color: var(--order-muted);
    font-size: .76rem;
}

.order-purchase-total strong {
    color: var(--order-espresso);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 400;
    white-space: nowrap;
}

/* Delivery address */

.shipping-address-content {
    color: var(--order-muted);
    font-size: .86rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.shipping-address-name {
    margin: 0 0 5px;
    color: var(--order-espresso);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
}

.shipping-address-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--order-muted);
    font-size: .82rem;
}

.shipping-address-phone i {
    color: var(--order-gold);
}

.shipping-address-lines {
    margin: 0;
    line-height: 1.85;
}

/* Order progress */

.order-status-timeline {
    display: grid;
    gap: 0;
}

.order-timeline-step {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 13px;
    min-height: 70px;
}

.order-timeline-step:last-child {
    min-height: 0;
}

.order-timeline-marker-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.order-timeline-marker {
    position: relative;
    z-index: 1;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid #e5ddcf;
    border-radius: 50%;
    background: #f5f0e7;
    color: #a79a83;
    font-size: .66rem;
}

.order-timeline-step:not(:last-child) .order-timeline-marker-wrap::after {
    position: absolute;
    top: 27px;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #e8e0d3;
    content: "";
    transform: translateX(-50%);
}

.order-timeline-step.is-complete .order-timeline-marker {
    border-color: var(--order-gold);
    background: var(--order-gold);
    color: white;
}

.order-timeline-step.is-complete:not(:last-child) .order-timeline-marker-wrap::after {
    background: rgba(184, 155, 94, .65);
}

.order-timeline-step.is-current .order-timeline-marker {
    width: 29px;
    height: 29px;
    margin-top: -2px;
    outline: 4px solid rgba(184, 155, 94, .16);
    border: 1px solid var(--order-gold);
    background: var(--order-gold);
    color: #ffffff;
    font-size: .8rem;
}

.order-timeline-copy {
    padding: 2px 0 21px;
}

.order-timeline-title {
    margin: 0;
    color: #a49a8d;
    font-size: .87rem;
    font-weight: 500;
}

.order-timeline-step.is-complete .order-timeline-title,
.order-timeline-step.is-current .order-timeline-title {
    color: var(--order-espresso);
}

.order-timeline-description {
    margin: 5px 0 0;
    color: var(--order-muted);
    font-size: .76rem;
    line-height: 1.6;
}

.order-cancelled-message {
    padding: 17px;
    border-radius: 5px;
    background: #f7ece8;
    color: var(--order-red);
    font-size: .88rem;
    line-height: 1.7;
}

/* Cancellation action — shown only when eligible */

.order-actions-panel {
    padding: 24px;
    border-radius: 8px;
    background: #f0e9dd;
}

.order-action-copy h3 {
    margin: 0 0 8px;
    color: var(--order-espresso);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 400;
}

.order-action-copy p {
    margin: 0 0 18px;
    color: var(--order-muted);
    font-size: .82rem;
    line-height: 1.7;
}

.order-cancel-button {
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border: 1px solid rgba(169, 88, 79, .35);
    border-radius: 3px;
    background: transparent;
    color: var(--order-red);
    font: inherit;
    font-size: .82rem;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.order-cancel-button:hover {
    background: var(--order-red);
    color: white;
}

/* Loading and error */

.order-detail-state {
    padding: 64px 24px;
    text-align: center;
    border-radius: 8px;
    background: var(--order-white);
    box-shadow: 0 8px 30px rgba(58, 43, 26, .055);
}

.order-detail-state p {
    color: var(--order-muted);
    font-size: .9rem;
    line-height: 1.7;
}

.order-detail-state h2 {
    margin: 14px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
    font-weight: 400;
}

.order-loader {
    display: inline-block;
    width: 34px;
    height: 34px;
    border: 2px solid #e9dfcd;
    border-top-color: var(--order-gold);
    border-radius: 50%;
    animation: order-spin .8s linear infinite;
}

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

.order-state-icon {
    color: var(--order-gold);
    font-size: 2rem;
}

.luxury-button {
    min-height: 44px;
    padding: 12px 24px;
    border: 1px solid var(--order-espresso);
    border-radius: 3px;
    background: var(--order-espresso);
    color: white;
    font: inherit;
    font-size: .84rem;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.luxury-button:hover {
    background: transparent;
    color: var(--order-espresso);
}

/* Feedback */

.order-feedback {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    max-width: min(380px, calc(100vw - 32px));
    padding: 16px 20px;
    border-radius: 6px;
    background: var(--order-espresso);
    color: white;
    font-size: .88rem;
    line-height: 1.6;
    box-shadow: 0 8px 26px rgba(43, 37, 32, .18);
}

.order-feedback.is-error {
    background: #8d3f38;
}

/* Cancellation dialog */

.order-cancel-dialog {
    width: min(460px, calc(100% - 32px));
    padding: 0;
    border: none;
    border-radius: 8px;
    background: var(--order-white);
    color: var(--order-espresso);
    box-shadow: 0 22px 70px rgba(43, 37, 32, .22);
}

.order-cancel-dialog::backdrop {
    background: rgba(35, 29, 24, .5);
    backdrop-filter: blur(3px);
}

.order-cancel-dialog-content {
    padding: 32px;
}

.order-cancel-dialog h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 400;
}

.order-cancel-dialog p {
    margin: 0;
    color: var(--order-muted);
    font-size: .88rem;
    line-height: 1.8;
}

.order-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.order-dialog-button {
    flex: 1;
    min-height: 44px;
    padding: 11px 15px;
    border: 1px solid #d9cebd;
    border-radius: 3px;
    background: transparent;
    color: var(--order-espresso);
    font: inherit;
    font-size: .82rem;
    cursor: pointer;
}

.order-dialog-button.is-primary {
    border-color: var(--order-espresso);
    background: var(--order-espresso);
    color: white;
}

.order-dialog-button:disabled {
    opacity: .55;
    cursor: wait;
}

/* Responsive */

@media (max-width: 900px) {
    .order-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .order-detail-sidebar {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }
}

@media (max-width: 600px) {
    .order-detail-page {
        padding: 24px 0 56px;
    }

    .order-detail-container {
        width: calc(100% - 28px);
    }

    .order-back-link {
        margin-bottom: 22px;
    }

    .order-detail-hero {
        padding: 27px 23px;
        margin-bottom: 17px;
    }

    .order-detail-hero h1 {
        font-size: 1.8rem;
    }

    .order-hero-decoration {
        gap: 8px;
        font-size: 1.8rem;
    }

    .order-hero-decoration-line {
        width: 24px;
    }

    .order-update-card {
        gap: 13px;
        padding: 20px;
        margin-bottom: 17px;
    }

    .order-update-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: .95rem;
    }

    .order-update-copy h2 {
        font-size: 1.15rem;
    }

    .order-detail-layout,
    .order-detail-main,
    .order-detail-sidebar {
        gap: 17px;
    }

    .order-detail-panel {
        padding: 21px 17px;
    }

    .panel-heading {
        margin-bottom: 18px;
    }

    .panel-heading h2 {
        font-size: 1.25rem;
    }

    .order-detail-item {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 13px;
        padding: 10px;
    }

    .order-item-preview {
        grid-row: span 2;
        width: 76px;
        height: 90px;
    }

    .order-item-info {
        align-self: end;
    }

    .order-item-name {
        font-size: .98rem;
    }

    .order-item-price {
        grid-column: 2;
        align-self: start;
        font-size: .87rem;
    }

    .order-item-price-label {
        display: inline;
        margin-right: 6px;
    }

    .order-purchase-total {
        padding-top: 19px;
        margin-top: 18px;
    }

    .order-purchase-total strong {
        font-size: 1.45rem;
    }

    .order-detail-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .order-actions-panel {
        padding: 21px;
    }

    .order-cancel-dialog-content {
        padding: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .order-detail-page *,
    .order-detail-page *::before,
    .order-detail-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ELANORA – Consistent luxury order update styling */

.order-update-card {
    background: #ffffff;
    border-color: #EFE8DC;
}

.order-update-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid rgba(184, 155, 94, 0.30);
    border-radius: 50%;
    background: #F8F5EF;
    color: #B89B5E;
    font-size: 1.1rem;
}

/* Prevent status colours from changing the icon appearance */
.order-update-card.is-success .order-update-icon,
.order-update-card.is-warning .order-update-icon,
.order-update-card.is-danger .order-update-icon {
    background: #F8F5EF;
    border-color: rgba(184, 155, 94, 0.30);
    color: #B89B5E;
}