.customer-orders {
    background: var(--color-gray);
}

.customer-orders .co-stat,
.customer-orders .co-card,
.customer-orders .co-table-wrap,
.customer-orders .co-side,
.co-receipt {
    background: var(--color-white);
    border: 1px solid #e6e6e6;
    border-radius: 0;
}

.customer-orders .co-table-wrap {
    overflow-x: auto;
    margin-bottom: 18px;
}

.customer-orders .co-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.customer-orders .co-orders-table th,
.customer-orders .co-orders-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    color: var(--color-heading);
}

.customer-orders .co-orders-table th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-default);
    background: #fafafa;
    border-bottom: 1px solid #e6e6e6;
    white-space: nowrap;
}

.customer-orders .co-orders-table tbody tr:last-child td {
    border-bottom: 0;
}

.customer-orders .co-table-ref {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 4px;
}

.customer-orders .co-table-meta,
.customer-orders .co-table-muted {
    display: block;
    font-size: 12px;
    color: var(--color-default);
}

.customer-orders .co-table-item {
    display: block;
    margin-bottom: 4px;
}

.customer-orders .co-table-item:last-child {
    margin-bottom: 0;
}

.customer-orders .co-table-num {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
}

.customer-orders .co-table-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 180px;
}

.customer-orders .co-table-actions .xb-btn,
.customer-orders .co-table-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
}

.customer-orders .co-orders-table th:last-child,
.customer-orders .co-orders-table td[data-label="Actions"] {
    width: 180px;
    vertical-align: middle;
}

.customer-orders .co-stat {
    padding: 22px 24px;
    height: 100%;
}

.customer-orders .co-stat span {
    display: block;
    color: var(--color-default);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.customer-orders .co-stat strong {
    display: block;
    color: var(--color-heading);
    font-size: 28px;
    line-height: 1;
}

.customer-orders .co-card {
    padding: 24px 26px;
    margin-bottom: 18px;
}

.customer-orders .co-card__top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.customer-orders .co-card__ref {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 4px;
}

.customer-orders .co-card__meta {
    color: var(--color-default);
    font-size: 14px;
    margin: 0;
}

.customer-orders .co-chip {
    display: inline-block;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 0;
    line-height: 1;
}

.customer-orders .co-chip.paid,
.customer-orders .co-chip.completed {
    background: #e8f8ef;
    color: #0f7b45;
}

.customer-orders .co-chip.pending_payment,
.customer-orders .co-chip.pending {
    background: #fff4d6;
    color: #8a6a00;
}

.customer-orders .co-chip.failed,
.customer-orders .co-chip.fail {
    background: #fde8eb;
    color: var(--color-primary);
}

.customer-orders .co-chip.in_process {
    background: #eef2ff;
    color: #1d4ed8;
}

.customer-orders .xb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: center;
    box-sizing: border-box;
}

.customer-orders .co-lines {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.customer-orders .co-lines li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    color: var(--color-heading);
}

.customer-orders .co-lines li:last-child {
    border-bottom: 1px solid #eee;
}

.customer-orders .co-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.customer-orders .co-actions .xb-btn,
.customer-orders .co-actions .btn,
.co-receipt-actions .xb-btn,
.co-receipt-actions .btn {
    flex: 1 1 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
    box-sizing: border-box;
}

.customer-orders .co-side {
    padding: 24px;
    margin-bottom: 18px;
}

.customer-orders .co-side .widget__title,
.customer-orders .widget__title {
    margin-bottom: 16px;
}

.customer-orders .user-meta {
    list-style: none;
    padding: 0;
    margin: 0;
}

.customer-orders .user-meta li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: var(--color-heading);
}

.customer-orders .user-meta li:last-child {
    border-bottom: 0;
}

.customer-orders .co-empty {
    padding: 36px 24px;
    text-align: center;
    background: var(--color-white);
    border: 1px solid #e6e6e6;
}

.co-status-page {
    background: var(--color-gray);
    min-height: 85vh;
}

.co-receipt {
    padding: 36px 32px;
}

.co-receipt h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.co-receipt__rows {
    text-align: left;
    margin: 24px 0 0;
}

.co-receipt__rows div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #eee;
    color: var(--color-heading);
}

.co-receipt__rows div:last-child {
    border-bottom: 1px solid #eee;
    font-weight: 700;
}

.co-receipt-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.customer-orders .co-pagination {
    margin-top: 8px;
}

.customer-orders .co-pagination__summary {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--color-default);
}

.customer-orders .co-pagination .pagination {
    margin-bottom: 0;
    gap: 6px;
}

.customer-orders .co-pagination .page-link {
    border-radius: 0;
    color: var(--color-heading);
    border-color: #e6e6e6;
    font-size: 13px;
    padding: 8px 14px;
}

.customer-orders .co-pagination .page-item.active .page-link {
    background: var(--color-heading);
    border-color: var(--color-heading);
}

.customer-orders .co-pagination .page-item.disabled .page-link {
    color: #aaa;
}

@media (max-width: 767px) {
    .customer-orders .co-card__top {
        flex-direction: column;
    }

    .customer-orders .co-orders-table thead {
        display: none;
    }

    .customer-orders .co-orders-table tbody tr {
        display: block;
        border-bottom: 1px solid #e6e6e6;
        padding: 12px 0;
    }

    .customer-orders .co-orders-table tbody td {
        display: block;
        border: 0;
        padding: 8px 16px;
    }

    .customer-orders .co-orders-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--color-default);
        margin-bottom: 4px;
    }

    .customer-orders .co-table-num {
        text-align: left;
    }

    .customer-orders .co-table-actions {
        min-width: 0;
    }

    .customer-orders .co-pagination .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}
