/* ============================================================
   CUSTOMER ORDERS
   ============================================================ */


.customer-orders-section {
    width: 100%;
    margin-top: 20px;
}


.customer-orders-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}


.customer-orders-heading-left {
    min-width: 0;
}


.customer-orders-heading h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-color);
}


.customer-orders-subtitle {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.72rem;
}


.customer-orders-refresh-btn {
    flex: 0 0 auto;
    padding: 7px 10px !important;
    font-size: 0.76rem !important;
    white-space: nowrap;
}


.customer-orders-message {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 8px;
}


.customer-orders-message.error {
    color: #dc2626;
}


.customer-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.customer-orders-empty {
    padding: 24px 16px;
    border: 1px dashed var(--border-color);
    border-radius: 14px;
    background: var(--bg-color);
    color: var(--text-muted);
    text-align: center;
    font-size: 0.84rem;
}


/* ============================================================
   CUSTOMER ORDERS PAGINATION
   ============================================================ */

.customer-orders-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding-top: 4px;
}


.customer-orders-page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        opacity 0.18s ease;
}


.customer-orders-page-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}


.customer-orders-page-btn:active {
    transform: translateY(1px);
}


.customer-orders-page-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
    cursor: default;
}


.customer-orders-page-prev,
.customer-orders-page-next {
    font-size: 0.95rem;
}


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


.customer-order-card {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.045);
    overflow: hidden;
}


.customer-order-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}


.customer-order-header > div:first-child {
    min-width: 0;
}


.customer-order-header strong {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-color);
}


.customer-order-date {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.72rem;
}


.customer-order-total {
    flex: 0 0 auto;
    color: var(--primary-color) !important;
    font-size: 0.98rem !important;
    white-space: nowrap;
}


.customer-order-items {
    display: flex;
    flex-direction: column;
    margin-top: 2px;
}


.customer-order-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.78rem;
    line-height: 1.35;
}


.customer-order-item:last-child {
    border-bottom: none;
}


.customer-order-item > div:first-child {
    min-width: 0;
    flex: 1;
}


.customer-order-item > div:first-child strong {
    display: block;
    color: var(--text-color);
    font-size: 0.79rem;
    font-weight: 650;
    word-break: break-word;
}


.customer-order-item > div:last-child {
    flex: 0 0 auto;
    color: var(--text-muted);
    text-align: right;
    white-space: nowrap;
}


.customer-order-comment {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.45;
}


.customer-order-comment strong {
    color: var(--text-color);
    font-weight: 700;
}


.customer-repeat-order-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--customer-accent-border);
    border-radius: 10px;
    background: var(--customer-accent-soft);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 750;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        opacity 0.18s ease;
}


.customer-repeat-order-btn:hover {
    background: rgba(0, 166, 81, 0.16);
}


.customer-repeat-order-btn:active {
    transform: translateY(1px);
}


.customer-repeat-order-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}