/* Wallet Balance Display on Checkout */
.wc-comp-wallet-checkout-balance {
    background: #000000;
    border: 3px solid #e1c513;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(225, 197, 19, 0.3);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.wc-comp-wallet-checkout-balance::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(225, 197, 19, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.wc-comp-wallet-checkout-balance .wallet-balance-text {
    font-size: 18px;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    color: #fff;
}

.wc-comp-wallet-checkout-balance .wallet-balance-text::before {
    content: '💳';
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.wc-comp-wallet-checkout-balance .wallet-balance-text strong {
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #e1c513;
}

.wc-comp-wallet-checkout-balance .wallet-balance-note {
    font-size: 14px;
    margin: 0;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    color: #fff;
}

/* Payment Gateway Fields */
.wc-comp-wallet-payment-info {
    background: #000000;
    border: 2px solid #e1c513;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
    color: #fff;
}

.wallet-apply-option {
    margin-top: 15px;
}

.wallet-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.wallet-checkbox-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.wallet-checkbox-label input[type="checkbox"]:checked + .wallet-checkbox-text {
    font-weight: 600;
    color: #667eea;
}

.wallet-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.wallet-checkbox-text {
    flex: 1;
    font-size: 15px;
    color: #495057;
}

.wallet-partial-note {
    font-size: 13px;
    color: #856404;
    margin-top: 10px;
    padding: 10px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 3px;
}

.wallet-full-note {
    font-size: 13px;
    color: #155724;
    margin-top: 10px;
    padding: 10px;
    background: #d4edda;
    border-left: 3px solid #28a745;
    border-radius: 3px;
}

.wallet-loading {
    padding: 10px;
    background: #f0f7ff;
    border-radius: 4px;
    margin-top: 10px;
    text-align: center;
    color: #667eea;
    font-weight: 500;
}

/* Wallet sufficient funds message */
.wallet-sufficient-funds {
    margin-top: 15px;
    padding: 15px;
    background: rgba(225, 197, 19, 0.15);
    border-left: 4px solid #e1c513;
    border-radius: 4px;
}

.wallet-sufficient-funds .wallet-balance-note {
    color: #e1c513;
    margin: 0;
    font-weight: 500;
}

/* Wallet insufficient funds section */
.wallet-insufficient-funds {
    margin-top: 15px;
    padding: 15px;
    background: rgba(225, 197, 19, 0.1);
    border-left: 4px solid #e1c513;
    border-radius: 4px;
}

.wallet-insufficient-funds .wallet-balance-note {
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.wallet-convert-button {
    background: #e1c513;
    color: #000000;
    border: 2px solid #e1c513;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-convert-button:hover {
    background: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(225, 197, 19, 0.5);
}

.wallet-convert-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.wallet-convert-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    font-style: italic;
}

/* Payment gateway messages */
.wallet-payment-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
}

.wallet-sufficient-message {
    background: rgba(225, 197, 19, 0.15);
    border-left: 4px solid #e1c513;
    color: #e1c513;
    padding: 15px;
    margin: 0;
    border-radius: 4px;
    line-height: 1.6;
}

.wallet-insufficient-message {
    background: rgba(225, 197, 19, 0.1);
    border-left: 4px solid #e1c513;
    color: #fff;
    padding: 15px;
    margin: 0;
    border-radius: 4px;
    line-height: 1.6;
}

.wallet-coupon-applied {
    color: #28a745 !important;
    font-weight: 500;
}

.wc-comp-wallet-payment-info::before {
    content: '💼';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    opacity: 0.2;
}

.wc-comp-wallet-payment-info .wallet-balance {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.wc-comp-wallet-payment-info .wallet-balance::before {
    content: '💰';
    font-size: 24px;
}

.wc-comp-wallet-payment-info .wallet-balance strong {
    color: #e1c513;
    font-size: 20px;
}

.wc-comp-wallet-payment-info .wallet-sufficient {
    color: #e1c513;
    margin: 0;
    padding: 10px;
    background: rgba(225, 197, 19, 0.15);
    border-radius: 6px;
    border-left: 4px solid #e1c513;
    font-weight: 500;
}

.wc-comp-wallet-payment-info .wallet-insufficient {
    color: #fff;
    margin: 0;
    padding: 10px;
    background: rgba(225, 197, 19, 0.1);
    border-radius: 6px;
    border-left: 4px solid #e1c513;
    font-weight: 500;
}

/* Payment Method Radio Button Styling */
.woocommerce-checkout-payment .payment_method_wc_comp_wallet {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.woocommerce-checkout-payment .payment_method_wc_comp_wallet:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.woocommerce-checkout-payment .payment_method_wc_comp_wallet label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    color: #495057;
    cursor: pointer;
}

.woocommerce-checkout-payment .payment_method_wc_comp_wallet label::before {
    content: '💳';
    font-size: 24px;
}

/* My Account Wallet */
.wc-comp-wallet-account {
    max-width: 1200px;
}

.wallet-balance-section {
    background: #000000;
    border: 3px solid #e1c513;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(225, 197, 19, 0.3);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.wallet-balance-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(225, 197, 19, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.wallet-balance-section h2 {
    margin-top: 0;
    color: #fff;
    position: relative;
    z-index: 1;
}

.wallet-balance-amount {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.wallet-balance-amount .balance-label {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.wallet-balance-amount .balance-value {
    font-size: 42px;
    font-weight: bold;
    color: #e1c513;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.wallet-transactions-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wallet-transactions-section h2 {
    margin-top: 0;
    color: #495057;
}

.wallet-transactions-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}

.wallet-transactions-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.wallet-transactions-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
}

.wallet-transactions-table tr:hover {
    background: #f8f9fa;
}

.transaction-type {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.transaction-type-credit {
    background: #d4edda;
    color: #155724;
}

.transaction-type-debit {
    background: #f8d7da;
    color: #721c24;
}

.amount-credit {
    color: #28a745;
    font-weight: bold;
}

.amount-debit {
    color: #dc3545;
    font-weight: bold;
}

.wallet-pagination {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.pagination-info {
    color: #666;
}

/* Dashboard Wallet Card */
.wc-comp-wallet-dashboard {
    margin: 20px 0;
}

.wallet-balance-card {
    background: #000000;
    border: 3px solid #e1c513;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(225, 197, 19, 0.3);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.wallet-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(225, 197, 19, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.wallet-balance-card h3 {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.wallet-balance-card .wallet-balance {
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.wallet-balance-card .balance-amount {
    font-size: 48px;
    font-weight: bold;
    color: #e1c513;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.view-wallet-button {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.view-wallet-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wallet-balance-amount .balance-value {
        font-size: 32px;
    }
    
    .wallet-balance-card .balance-amount {
        font-size: 36px;
    }
    
    .wc-comp-wallet-checkout-balance {
        padding: 15px;
    }
}
