﻿.customer-orders-container, .customer-order-detail {
    width: min(1280px,94vw);
    margin: 28px auto 70px
}

.customer-orders-heading, .customer-order-detail-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px
}

    .customer-orders-heading span, .customer-order-detail-heading span {
        color: #987066;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .16em
    }

    .customer-orders-heading h1, .customer-order-detail-heading h1 {
        margin: 5px 0 3px;
        font: 700 36px 'Manrope',sans-serif
    }

    .customer-orders-heading p, .customer-order-detail-heading p {
        margin: 0;
        color: var(--cs-muted)
    }

    .customer-orders-heading > a, .customer-order-detail-heading > a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 15px;
        border: 1px solid #d8c6c0;
        border-radius: 12px;
        background: #fff;
        color: #815f57;
        text-decoration: none;
        font-weight: 700
    }

.customer-order-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 15px
}

.customer-order-card {
    padding: 19px;
    background: #fff;
    border: 1px solid var(--cs-line);
    border-radius: 18px;
    box-shadow: 0 9px 28px rgba(55,42,40,.055)
}

.customer-order-card-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px
}

    .customer-order-card-main > div > span {
        color: #987066;
        font-size: 8px;
        font-weight: 700;
        letter-spacing: .13em
    }

.customer-order-card h2 {
    margin: 4px 0 2px;
    font: 700 18px 'Manrope',sans-serif
}

.customer-order-card p {
    margin: 0;
    color: var(--cs-muted);
    font-size: 11px
}

.customer-order-status {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff2d4;
    color: #805d12;
    font-size: 9px;
    font-weight: 700
}

.customer-order-card dl {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 8px;
    margin: 17px 0
}

    .customer-order-card dl div {
        padding: 10px;
        border-radius: 11px;
        background: #faf7f5
    }

.customer-order-card dt {
    color: #8b8180;
    font-size: 9px
}

.customer-order-card dd {
    margin: 3px 0 0;
    font-weight: 700
}

.customer-order-detail-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    border-radius: 11px;
    background: var(--cs-ink);
    color: #fff;
    text-decoration: none;
    font-weight: 700
}

.customer-orders-empty {
    padding: 70px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--cs-line);
    border-radius: 20px
}

    .customer-orders-empty > div {
        width: 55px;
        height: 55px;
        display: grid;
        place-items: center;
        margin: 0 auto 15px;
        border-radius: 17px;
        background: #d3ab9e;
        color: #fff;
        font-weight: 800
    }

    .customer-orders-empty h2 {
        font: 700 25px 'Manrope',sans-serif
    }

    .customer-orders-empty p {
        color: var(--cs-muted)
    }

    .customer-orders-empty a {
        display: inline-flex;
        padding: 11px 17px;
        border-radius: 11px;
        background: var(--cs-ink);
        color: #fff;
        text-decoration: none;
        font-weight: 700
    }

.customer-order-state-card {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin-bottom: 18px
}

    .customer-order-state-card > div {
        padding: 14px 16px;
        background: #fff;
        border: 1px solid var(--cs-line);
        border-radius: 14px
    }

    .customer-order-state-card span {
        display: block;
        color: #8b8180;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .12em
    }

    .customer-order-state-card strong {
        display: block;
        margin-top: 4px;
        font: 700 17px 'Manrope',sans-serif
    }

.customer-order-detail-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 340px;
    gap: 18px;
    align-items: start
}

.customer-order-detail-stack, .customer-order-sidebar {
    display: grid;
    gap: 16px
}

.customer-order-sidebar {
    position: sticky;
    top: 18px
}

.customer-order-section {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cs-line);
    border-radius: 18px;
    box-shadow: 0 9px 28px rgba(55,42,40,.055)
}

    .customer-order-section.products {
        border-top: 4px solid #b98678
    }

    .customer-order-section.delivery {
        border-top: 4px solid #7e947f
    }

    .customer-order-section.history {
        border-top: 4px solid #7d89a0
    }

    .customer-order-section.tracking {
        border-top: 4px solid #63899a
    }

    .customer-order-section.summary {
        border-top: 4px solid #393436
    }

    .customer-order-section.payment {
        border-top: 4px solid #d59a43
    }

    .customer-order-section > header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 18px;
        border-bottom: 1px solid #eee5e2;
        background: #fdfbfa
    }

        .customer-order-section > header > span {
            width: 36px;
            height: 36px;
            display: grid;
            place-items: center;
            flex: none;
            border-radius: 11px;
            background: #f6e9e5;
            color: #8a6259;
            font-weight: 800
        }

    .customer-order-section h2 {
        margin: 0;
        font: 700 17px 'Manrope',sans-serif
    }

    .customer-order-section header p {
        margin: 2px 0 0;
        color: var(--cs-muted);
        font-size: 11px
    }

    .customer-order-section .body {
        padding: 18px
    }

    .customer-order-section table {
        width: 100%;
        border-collapse: collapse
    }

    .customer-order-section th {
        padding: 0 8px 10px;
        color: #8b8180;
        font-size: 9px;
        text-align: left
    }

    .customer-order-section td {
        padding: 12px 8px;
        border-top: 1px solid #eee6e3;
        font-size: 12px
    }

        .customer-order-section td small {
            display: block;
            color: var(--cs-muted)
        }

    .customer-order-section .number {
        text-align: right
    }

.customer-delivery-box p {
    margin: 4px 0;
    color: #665f5d
}

.customer-order-timeline article {
    position: relative;
    margin-left: 8px;
    padding: 0 0 18px 24px;
    border-left: 2px solid #ded5d2
}

    .customer-order-timeline article:before {
        content: '';
        position: absolute;
        left: -6px;
        top: 3px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #7d89a0;
        box-shadow: 0 0 0 4px #edf0f5
    }

    .customer-order-timeline article:last-child {
        padding-bottom: 0
    }

    .customer-order-timeline article > div {
        display: flex;
        justify-content: space-between;
        gap: 12px
    }

.customer-order-timeline time {
    color: #8c8583;
    font-size: 10px
}

.customer-order-timeline p {
    margin: 4px 0 0;
    color: var(--cs-muted);
    font-size: 11px
}

.customer-order-data {
    margin: 0
}

    .customer-order-data div {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        padding: 9px 0;
        border-bottom: 1px solid #eee5e2;
        font-size: 12px
    }

    .customer-order-data dd {
        margin: 0;
        text-align: right;
        font-weight: 700;
        overflow-wrap: anywhere
    }

.customer-order-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 15px
}

    .customer-order-total strong {
        font: 700 23px 'Manrope',sans-serif
    }

.customer-order-note {
    margin: 14px 0 0;
    padding: 11px;
    border-radius: 11px;
    background: #fff2d4;
    color: #805d12;
    font-size: 11px
}

.customer-tracking-button {
    display: flex;
    justify-content: center;
    margin-top: 13px;
    padding: 11px;
    border-radius: 11px;
    background: var(--cs-ink);
    color: #fff;
    text-decoration: none;
    font-weight: 700
}

@media(max-width:900px) {
    .customer-order-list {
        grid-template-columns: 1fr
    }

    .customer-order-detail-grid {
        grid-template-columns: 1fr
    }

    .customer-order-sidebar {
        position: static
    }
}

@media(max-width:620px) {
    .customer-orders-container, .customer-order-detail {
        width: calc(100% - 24px)
    }

    .customer-orders-heading, .customer-order-detail-heading {
        flex-direction: column
    }

    .customer-order-state-card {
        grid-template-columns: 1fr
    }

    .customer-order-card dl {
        grid-template-columns: 1fr
    }

    .customer-order-section .body {
        padding: 14px
    }
    .customer-order-image-column,
    .customer-order-image-cell {
        width: 58px;
    }

    .customer-order-product-image {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }
}

.customer-order-image-column {
    width: 76px;
}

.customer-order-image-cell {
    width: 76px;
}

.customer-order-product-image {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #eaded9;
    border-radius: 12px;
    background: #f8f1ef;
    color: #a3796f;
    font-size: 11px;
    font-weight: 800;
}

    .customer-order-product-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }