/**
 * Elecpromo Points Rewards - Account Styles
 */

/* Dashboard Badge - Clean style with text */
.epr-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}
nav.woocommerce-MyAccount-navigation ul li a {
    justify-content: left !important;
    padding-left: 32px !important;
}
.epr-badge:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    color: #78350f;
    text-decoration: none;
}

.epr-badge-icon {
    font-size: 18px;
    color: #f59e0b;
}

.epr-badge-text {
    flex: 1;
}
a.epr-badge span.woocommerce-Price-amount.amount {
    font-size: 14px !important;
}
.epr-badge-text strong {
    color: #b45309;
}

.epr-badge-value {
    color: #78716c;
    font-size: 13px;
    margin-left: 4px;
}

.epr-badge-expiry {
    display: block;
    font-size: 11px;
    color: #dc2626;
    margin-top: 4px;
}

/* Account Page */
.epr-account-page {
    max-width: 960px;
}

/* =====================================================
   AMAZON-STYLE SUMMARY CARDS GRID
   ===================================================== */
.epr-summary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.epr-card {
    background: #fff;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.15s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.epr-card:hover {
    border-color: #c7c7c7;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.epr-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 8px 0 0 8px;
}

/* Card Colors - Amazon Style */
.epr-card-balance {
    background: linear-gradient(to right, #fffbf0 0%, #fff 100%);
}
.epr-card-balance::before {
    background: linear-gradient(to bottom, #ff9900, #e88800);
}

.epr-card-value {
    background: linear-gradient(to right, #f0fff4 0%, #fff 100%);
}
.epr-card-value::before {
    background: linear-gradient(to bottom, #067d62, #048a6a);
}

.epr-card-lifetime {
    background: linear-gradient(to right, #f0f4ff 0%, #fff 100%);
}
.epr-card-lifetime::before {
    background: linear-gradient(to bottom, #232f3e, #37475a);
}

.epr-card-expiry {
    background: linear-gradient(to right, #fff5f5 0%, #fff 100%);
}
.epr-card-expiry::before {
    background: linear-gradient(to bottom, #c7302b, #e03a35);
}

/* Card Icons - Amazon Style */
.epr-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.epr-card-balance .epr-card-icon {
    background: linear-gradient(135deg, #ff9900 0%, #ffac31 100%);
    color: #fff;
}

.epr-card-value .epr-card-icon {
    background: linear-gradient(135deg, #067d62 0%, #00a884 100%);
    color: #fff;
}

.epr-card-lifetime .epr-card-icon {
    background: linear-gradient(135deg, #232f3e 0%, #37475a 100%);
    color: #fff;
}

.epr-card-expiry .epr-card-icon {
    background: linear-gradient(135deg, #c7302b 0%, #e74c3c 100%);
    color: #fff;
}

.epr-card-icon svg {
    width: 22px;
    height: 22px;
}

/* Card Content */
.epr-card-content {
    flex: 1;
    min-width: 0;
}

.epr-card-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #565959;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.epr-card-number {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #0f1111;
    line-height: 1.2;
    font-family: "Amazon Ember", Arial, sans-serif;
}

.epr-card-balance .epr-card-number {
    color: #c45500;
}

.epr-card-value .epr-card-number {
    color: #067d62;
}

.epr-card-lifetime .epr-card-number {
    color: #232f3e;
}

.epr-card-expiry .epr-card-number {
    color: #c7302b;
}

.epr-card-sub {
    display: block;
    font-size: 12px;
    color: #565959;
    margin-top: 2px;
}

.epr-card-expiry .epr-expiry-value {
    color: #c7302b;
    font-weight: 600;
}

.epr-card-expiry .epr-expiry-date {
    color: #c7302b;
    font-weight: 600;
}

.epr-bonus-badge {
    display: inline-block;
    background: linear-gradient(135deg, #232f3e 0%, #37475a 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Responsive - Stack on mobile */
@media (max-width: 600px) {
    .epr-summary-cards {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    
    .epr-card {
        padding: 14px;
    }
    
    .epr-card-number {
        font-size: 22px;
    }
}
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

/* Info Box */
.epr-info-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.epr-info-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.epr-info-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.epr-info-box li {
    padding: 8px 0;
    font-size: 14px;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
}

.epr-info-box li:last-child {
    border-bottom: none;
}

.epr-info-box li strong {
    color: #111827;
    margin-right: 8px;
}

.epr-highlight {
    color: #7c3aed;
    font-weight: 600;
}

/* Expiration Warning */
.epr-expiry-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.epr-expiry-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.epr-expiry-text {
    color: #92400e;
    font-size: 14px;
    font-weight: 500;
}

/* History */
.epr-history h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.epr-no-history {
    text-align: center;
    color: #9ca3af;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.epr-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.epr-history-table thead {
    background: #f3f4f6;
}

.epr-history-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.epr-history-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.epr-history-table tbody tr:hover {
    background: #f9fafb;
}

.epr-date {
    color: #6b7280;
    font-size: 13px;
}

.epr-description {
    color: #111827;
}

.epr-order-link {
    display: inline-block;
    margin-left: 8px;
    color: #2563eb;
    font-weight: 500;
}

/* Status Badges */
.epr-status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 4px;
}

.epr-status-cancelled {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.epr-status-refunded {
    background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%);
    color: #a16207;
    border: 1px solid #fcd34d;
}

.epr-status-restored {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    border: 1px solid #6ee7b7;
}

.epr-status-removed {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #b91c1c;
    border: 1px solid #f87171;
}

.epr-status-used {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.epr-points {
    font-weight: 700;
    font-size: 15px;
}

.epr-positive {
    color: #16a34a;
}

.epr-negative {
    color: #dc2626;
}

/* Expiration in table */
.epr-expires {
    font-size: 13px;
}

.epr-expires .epr-expired {
    color: #dc2626;
    text-decoration: line-through;
}

.epr-expires .epr-expiring-soon {
    color: #f59e0b;
    font-weight: 600;
}

.epr-expires .epr-na {
    color: #d1d5db;
}

.epr-row-expired {
    background: #fef2f2 !important;
    opacity: 0.7;
}

/* Pagination */
.epr-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.epr-page-link,
.epr-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
}

.epr-page-link {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.epr-page-link:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.epr-page-current {
    background: #f59e0b;
    color: #fff;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .epr-summary-cards {
        grid-template-columns: 1fr;
    }
    
    .epr-history-table {
        font-size: 12px;
    }
    
    .epr-history-table th,
    .epr-history-table td {
        padding: 8px;
    }
}
