/**
 * Wallet Styles
 * @package demopo
 */

/* Wallet Page Styles */
.demopo-wallet-page {
    max-width: 100%;
}

/* Balance Card Gradient */
.demopo-wallet-page .bg-gradient-to-br {
    background: linear-gradient(to bottom right, #B79C86, #967B63);
}

/* Price in balance card */
.demopo-wallet-page .text-4xl .woocommerce-Price-amount,
.demopo-wallet-page .text-5xl .woocommerce-Price-amount {
    color: inherit !important;
}

.demopo-wallet-page .text-4xl .woocommerce-Price-currencySymbol,
.demopo-wallet-page .text-5xl .woocommerce-Price-currencySymbol {
    font-size: 0.6em;
    margin-right: 4px;
    opacity: 0.9;
}

/* Transaction Item */
.demopo-wallet-page .transaction-item {
    transition: background-color 0.15s ease;
}

.demopo-wallet-page .transaction-item:hover {
    background-color: #f9fafb;
}

/* Topup Modal */
#topupModal {
    backdrop-filter: blur(4px);
}

/* Preset Amount Buttons */
.topup-preset-btn {
    transition: all 0.2s ease;
}

.topup-preset-btn:hover {
    transform: translateY(-2px);
}

.topup-preset-btn.selected,
.topup-preset-btn:focus {
    border-color: #B79C86 !important;
    background-color: rgba(183, 156, 134, 0.05);
    outline: none;
}

/* Custom Amount Input */
#custom-amount:focus {
    border-color: #B79C86;
    box-shadow: 0 0 0 3px rgba(183, 156, 134, 0.1);
}

/* Submit Button Loading State */
#topup-submit-btn {
    min-height: 56px;
}

#topup-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Transaction Type Colors */
.transaction-credit {
    color: #059669;
    background-color: #ecfdf5;
}

.transaction-debit {
    color: #dc2626;
    background-color: #fef2f2;
}

.transaction-refund {
    color: #2563eb;
    background-color: #eff6ff;
}

/* Empty State */
.wallet-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}

/* Stats Cards */
.wallet-stats-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wallet-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Animation Keyframes */
@keyframes wallet-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.wallet-loading {
    animation: wallet-pulse 1.5s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .demopo-wallet-page .text-4xl,
    .demopo-wallet-page .text-5xl {
        font-size: 2rem !important;
    }

    .demopo-wallet-page .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    #topupModal .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* RTL Support */
[dir="rtl"] .demopo-wallet-page .text-right {
    text-align: left;
}

[dir="rtl"] .demopo-wallet-page .ml-auto {
    margin-left: 0;
    margin-right: auto;
}

/* Checkout Wallet Gateway Styles */
.demopo-wallet-payment-info {
    padding: 0;
}

.demopo-wallet-payment-info .bg-gray-50 {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Payment Method Selection */
.woocommerce-checkout #payment ul.payment_methods li label[for="payment_method_demopo_wallet"] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Wallet Gateway Icon in Checkout */
.wc_payment_method.payment_method_demopo_wallet label img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
}

/* Wallet balance indicator */
.payment_method_demopo_wallet .payment_method_title {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Wallet payment box styling */
.payment_method_demopo_wallet .payment_box {
    background: #f9fafb !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-top: 12px !important;
}
