/* WooCommerce User Wallet - Frontend Styles */

.woo-wallet-container {
    margin: 20px 0;
}

.wallet-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wallet-balance,
.wallet-status,
.wallet-actions {
 
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #e5e5e5;
}

.wallet-balance h3,
.wallet-status h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

.balance-amount {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.status-active {
    color: #27ae60;
    font-weight: bold;
}

.status-locked {
    color: #e74c3c;
    font-weight: bold;
}

.wallet-transactions {
    margin-top: 30px;
}

.wallet-transactions h3 {
    margin-bottom: 15px;
}

.amount-positive {
    color: #27ae60;
}

.amount-negative {
    color: #e74c3c;
}

/* Deposit Form */
.woo-wallet-deposit-container {
    margin: 20px 0;
}

.deposit-info {

    padding: 20px;
    border-radius: 5px;
    border: 1px solid #e5e5e5;
}

.qr-code-container {
    text-align: center;
    margin: 20px 0;
}

.qr-code-container img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.bank-info {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.bank-info th,
.bank-info td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.bank-info th {
    width: 30%;
    font-weight: normal;
    color: #fff;
}

form#woo-wallet-deposit-form button {
    background-color: var(--fs-color-secondary);
    border-radius: 8px;
    text-transform: math-auto;
}

.wallet-actions .button {
    background-color: var(--fs-color-secondary);
    border-radius: 8px;
    text-transform: math-auto;
}

input#deposit_amount {
    box-shadow: unset;
    border: 1px solid;
    border-radius: 8px;
    height: 46px;
    background-color: #1d2327;
}

.bank-info td {
    font-weight: bold;
}

.deposit-instructions {
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #5ec4ff;
    margin: 20px 0;
    font-size: 14px;
}

.deposit-instructions h4 {
    margin-top: 0;
}

.deposit-instructions ol {
    margin: 10px 0;
    padding-left: 20px;
}

.deposit-instructions li {
    margin-bottom: 8px;
}

/* Wallet Payment at Checkout */
.wallet-payment-info {
    border-radius: 5px;
    margin: 10px 0;
}

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

/* Responsive */
@media (max-width: 768px) {
    .wallet-summary {
        grid-template-columns: 1fr;
    }
    
    .balance-amount {
        font-size: 24px;
    }
    
    .bank-info th {
        width: 40%;
    }
}


.wallet-payment-info p.woocommerce-error {
    display: block;
    margin-top: 10px !important;
}

input#payment_method_webplazapay, input#payment_method_wallet {
    display: none;
}






/* Container chính */
.woo-wallet-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden;
}

/* Header */
.woo-wallet-container .woo-wallet-container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woo-wallet-container .woo-wallet-container-header h2 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.woo-wallet-container .wallet-icon {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.woo-wallet-container .woo-wallet-container-header .button {
    background: linear-gradient(135deg, #f4c430 0%, #f0a500 100%);
    color: #1a1a1a;
    padding: 2px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
    border: none;
    cursor: pointer;
    display: inline-block;
    width: auto;
    flex: none !important;
    margin: 0px;
}

.woo-wallet-container .woo-wallet-container-header .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 196, 48, 0.5);
    background: linear-gradient(135deg, #f0a500 0%, #f4c430 100%);
}

/* Wallet Summary */
.woo-wallet-container .wallet-summary {
    display: grid;
   grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px 40px;
}

.woo-wallet-container .wallet-balance,
.woo-wallet-container .wallet-status,
.woo-wallet-container .wallet-actions {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 15px 25px;
    transition: all 0.3s ease;
}

.woo-wallet-container .wallet-balance:hover,
.woo-wallet-container .wallet-status:hover,
.woo-wallet-container .wallet-actions:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.woo-wallet-container .wallet-summary h3 {
    font-size: 14px;
    font-weight: 500;
    color: #a0a0a0;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woo-wallet-container .balance-amount {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.woo-wallet-container .balance-amount .woocommerce-Price-amount {
    color: #f4c430;
}

.woo-wallet-container .status-active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #4ade80;
    margin: 0;
}

.woo-wallet-container .status-active::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}



/* Transactions */
.woo-wallet-container .wallet-transactions {
    padding: 30px 40px 40px 40px;
}

.woo-wallet-container .wallet-transactions h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.woo-wallet-container .woocommerce-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.woo-wallet-container .woocommerce-table thead {
    background: rgba(255, 255, 255, 0.08);
}

.woo-wallet-container .woocommerce-table th {
    padding: 18px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woo-wallet-container .woocommerce-table td {
    padding: 18px 20px;
    font-size: 14px;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.woo-wallet-container .woocommerce-table tbody tr {
    transition: all 0.3s ease;
}

.woo-wallet-container .woocommerce-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.woo-wallet-container .woocommerce-table tbody tr:last-child td {
    border-bottom: none;
}

.woo-wallet-container .amount-positive {
    color: #4ade80 !important;
    font-weight: 600;
}

.woo-wallet-container .amount-positive .woocommerce-Price-amount {
    color: #4ade80 !important;
}

.woo-wallet-container .amount-negative {
    color: #f87171 !important;
    font-weight: 600;
}

.woo-wallet-container .amount-negative .woocommerce-Price-amount {
    color: #f87171 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .woo-wallet-container .woo-wallet-container-header {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
    }
    
    .woo-wallet-container .woo-wallet-container-header h2 {
        font-size: 24px;
    }
    
    .woo-wallet-container .wallet-summary {
        grid-template-columns: 1fr;
        padding: 20px 25px;
        gap: 15px;
    }
    
    .woo-wallet-container .wallet-transactions {
        padding: 20px 25px 30px 25px;
        overflow-x: auto;
    }
    
    .woo-wallet-container .woocommerce-table {
        min-width: 600px;
    }
    
    .woo-wallet-container .woocommerce-table th,
    .woo-wallet-container .woocommerce-table td {
        padding: 12px 15px;
        font-size: 13px;
    }
}
