/**
 * OGPSR Frontend Styles (My Account Hub)
 * Designed for a premium, clean aesthetic.
 */

.ogpsr-hub-container {
    margin: 20px 0;
    font-family: inherit;
}

.ogpsr-hub-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f1;
}

.ogpsr-hub-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
}

.ogpsr-hub-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.ogpsr-hub-table-wrapper {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.ogpsr-hub-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 !important;
}

.ogpsr-hub-table thead th {
    background: #f8fafc;
    padding: 15px 20px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.ogpsr-hub-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.ogpsr-hub-table tbody tr:last-child td {
    border-bottom: none;
}

.ogpsr-hub-table tbody tr:hover td {
    background-color: #fbfcfe;
}

.ogpsr-order-number {
    font-weight: 700;
    color: #1d2327;
}

.ogpsr-order-date {
    color: #64748b;
    font-size: 14px;
}

.ogpsr-order-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: capitalize;
    background: #f1f5f9;
    color: #475569;
}

.ogpsr-order-status--completed {
    background: #ecfdf5;
    color: #065f46;
}

.ogpsr-order-status--processing {
    background: #eff6ff;
    color: #1e40af;
}

.ogpsr-order-status--on-hold {
    background: #fffbeb;
    color: #92400e;
}

.ogpsr-order-status--pending {
    background: #fefce8;
    color: #854d0e;
}

.ogpsr-order-status--cancelled,
.ogpsr-order-status--failed {
    background: #fef2f2;
    color: #991b1b;
}

.ogpsr-order-status--refunded {
    background: #f3f4f6;
    color: #374151;
}

.ogpsr-actions-flex {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ogpsr-hub-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #334155;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    line-height: 1;
}

.ogpsr-hub-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #64748b;
}

.ogpsr-hub-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ogpsr-hub-btn:hover .dashicons {
    color: #2271b1;
}



.ogpsr-hub-empty {
    padding: 40px;
    text-align: center;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.ogpsr-hub-empty p {
    margin: 0;
    color: #64748b;
    font-style: italic;
}

/* Responsive Tweak */
@media (max-width: 600px) {
    .ogpsr-hub-table thead {
        display: none;
    }
    .ogpsr-hub-table tbody td {
        display: block;
        width: 100%;
        padding: 10px 20px;
        border: none;
        text-align: center;
    }
    .ogpsr-hub-table tbody tr {
        border-bottom: 1px solid #e2e8f0;
        padding: 15px 0;
        display: block;
    }
    .ogpsr-actions-flex {
        justify-content: center;
        margin-top: 10px;
    }
}





