/* ─── Customer Order History ────────────────────────────────────────────────── */

.lms-customer-order-history h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #2c3e50;
}

.lms-customer-order-history h4:first-child {
    margin-top: 0;
}

.lms-oh-empty {
    text-align: center;
    color: #7f8c8d;
    padding: 40px 0;
    font-size: 15px;
}

/* ─── Table ────────────────────────────────────────────────────────────────── */

.lms-oh-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.lms-oh-table {
    width: 100%;
    font-size: 14px;
}

.lms-oh-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #7f8c8d;
    font-weight: 600;
}

.lms-oh-table td {
    vertical-align: middle;
}

.lms-oh-table a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.lms-oh-table a:hover {
    text-decoration: underline;
}

/* ─── Status Badges ────────────────────────────────────────────────────────── */

.lms-oh-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.lms-oh-status-scheduled,
.lms-oh-status-confirmed {
    background: #eaf4fe;
    color: #2271b1;
}

.lms-oh-status-picked_up,
.lms-oh-status-in_progress,
.lms-oh-status-processing {
    background: #fff3e0;
    color: #e67e22;
}

.lms-oh-status-delivered,
.lms-oh-status-completed {
    background: #e8f5e9;
    color: #27ae60;
}

.lms-oh-status-cancelled,
.lms-oh-status-failed {
    background: #fde8e8;
    color: #e74c3c;
}

.lms-oh-status-created {
    background: #eaf4fe;
    color: #2271b1;
}

/* ─── Pay Button ───────────────────────────────────────────────────────────── */

.lms-oh-pay-btn {
    white-space: nowrap;
}

.lms-oh-paid-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #e8f5e9;
    color: #27ae60;
}

/* ─── Pagination ───────────────────────────────────────────────────────────── */

.lms-oh-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.lms-oh-page-info {
    font-size: 13px;
    color: #7f8c8d;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .lms-oh-table thead {
        display: none;
    }

    .lms-oh-table,
    .lms-oh-table tbody,
    .lms-oh-table tr,
    .lms-oh-table td {
        display: block;
        width: 100%;
    }

    .lms-oh-table tr {
        margin-bottom: 12px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        padding: 10px;
    }

    .lms-oh-table td {
        text-align: right;
        padding: 6px 0;
        border: none;
    }

    .lms-oh-table td:before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #34495e;
    }

    .lms-oh-table td:last-child {
        text-align: center;
        padding-top: 10px;
    }
}
