.wc-wallet-container,
.wc-loyalty-container {
    max-width: 100%;
}

/* --- THE MAIN WALLET CARD --- */
.wallet-balance-card,
.loyalty-balance-card {
    background: #000000; /* UrbanToes Black */
    color: white;
    padding: 20px 10px;
    border-radius: 8px; /* Sharper app-like corners */
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Deeper, softer elevation */
    border: none;
}

.balance-info,
.points-info {
    text-align: center;
}

.balance-info h3,
.points-info h3 {
    color: white;
    margin-top: 0;
    font-size: 1.1em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-amount,
.points-amount {
    font-size: 3em;
    font-weight: 700;
    margin: 15px 0;
    text-shadow: none; /* Removed heavy text shadow for cleaner look */
}

.balance-note,
.points-value {
    opacity: 0.7;
    font-size: 0.95em;
}

/* --- TRANSACTION HISTORY TABLES --- */
.wallet-transactions,
.loyalty-history {
    background: transparent; /* Blends better with the app dashboard */
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.wallet-transactions h3,
.loyalty-history h3 {
    margin-top: 0;
    border-bottom: 1px solid #eaeaea; /* Very subtle line */
    padding-bottom: 10px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    color: #333;
}

.transaction-type {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cleaned up status colors to be more elegant */
.transaction-type-credit,
.transaction-type-return_credit,
.transaction-type-loyalty_credit {
    background: #f0fdf4;
    color: #166534;
}

.transaction-type-debit {
    background: #fef2f2;
    color: #991b1b;
}

.transaction-type-admin_credit {
    background: #f8fafc;
    color: #0f172a;
}

.credit {
    color: #166534;
    font-weight: 600;
}

.debit {
    color: #991b1b;
    font-weight: 600;
}

.expiry-warning {
    color: #ea580c;
    font-weight: 500;
}

.expired {
    color: #991b1b;
    font-weight: 500;
}

/* --- CONVERT POINTS SECTION --- */
.convert-points-section {
    background: rgba(255,255,255,0.05); /* Subtle contrast against the black card */
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.convert-points-section h4 {
    margin-top: 0;
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.convert-points-section p {
    font-size: 0.85em;
    opacity: 0.7;
}

#convert-points-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

#convert-points-form input {
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: transparent;
    color: white;
    width: 150px;
}

#convert-points-form input:focus {
    outline: none;
    border-color: white;
}

#convert-points-form button {
    background: white;
    color: #000; /* Changed from purple to black */
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#convert-points-form button:hover {
    background: #f0f0f0;
}

#convert-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    display: none;
}

#convert-message.success {
    background: rgba(22, 101, 52, 0.2);
    border: 1px solid #166534;
    color: #4ade80;
    display: block;
}

#convert-message.error {
    background: rgba(153, 27, 27, 0.2);
    border: 1px solid #991b1b;
    color: #f87171;
    display: block;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .balance-amount,
    .points-amount {
        font-size: 2.5em;
    }
    
    #convert-points-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    #convert-points-form input,
    #convert-points-form button {
        width: 100%;
    }
}
