/**
 * WooCommerce Wallet Styles
 */

.wc-wallet-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* Wallet Balance Section */
.wallet-balance-section {
    margin-bottom: 30px;
}

.wallet-balance-card {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6a00 100%);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.wallet-balance-card h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
    color: #fff;
}

.wallet-balance-amount {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
}

.wallet-cashback-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 16px;
    opacity: 0.95;
}

.wallet-cashback-info .cashback-icon {
    margin-right: 5px;
    font-size: 18px;
}

/* Top-up Section */
.wallet-topup-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e5e5e5;
}

.wallet-topup-section h3 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 20px;
}

.wallet-topup-form .form-row {
    margin-bottom: 20px;
}

.wallet-topup-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.wallet-topup-form input[type="number"] {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wallet-topup-form button {
    background: #ff8c00;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wallet-topup-form button:hover {
    background: #ff6a00;
}

.wallet-topup-note {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* Transaction Section */
.wallet-transactions-section {
    margin-top: 30px;
}

.wallet-transactions-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.wallet-transactions-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wallet-transactions-table thead {
    background: #f5f5f5;
}

.wallet-transactions-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e5e5e5;
}

.wallet-transactions-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.wallet-transactions-table tr:last-child td {
    border-bottom: none;
}

.wallet-transactions-table tr:hover {
    background: #fafafa;
}

.transaction-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.transaction-type-credit {
    background: #d4edda;
    color: #155724;
}

.transaction-type-debit {
    background: #f8d7da;
    color: #721c24;
}

.credit-amount {
    color: #28a745;
    font-weight: 600;
}

.debit-amount {
    color: #dc3545;
    font-weight: 600;
}

.no-transactions {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

.wallet-transaction-note {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
    text-align: center;
}

/* Wallet Payment Gateway */
.wallet-payment-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

.wallet-payment-info p {
    margin: 8px 0;
}

.wallet-insufficient-balance {
    padding: 10px;
    background: #f8d7da;
    border-radius: 4px;
}

.wallet-sufficient-balance {
    padding: 10px;
    background: #d4edda;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .wallet-balance-amount {
        font-size: 32px;
    }

    .wallet-topup-form input[type="number"] {
        max-width: 100%;
    }

    .wallet-transactions-table {
        display: block;
        overflow-x: auto;
    }

    .wallet-transactions-table thead {
        display: none;
    }

    .wallet-transactions-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        padding: 10px;
    }

    .wallet-transactions-table td {
        display: block;
        text-align: right;
        padding: 8px;
        border-bottom: none;
    }

    .wallet-transactions-table td:before {
        content: attr(data-title);
        float: left;
        font-weight: 600;
        color: #333;
    }
}
