/* Wallet Styles - Tema Format */

/* Variables del tema */
:root {
    --wallet-primary: #ff4528;
    --wallet-dark: #111111;
    --wallet-light: #f8f9fa;
    --wallet-border: #e0e0e0;
}

/* Fuente del tema */
.woocommerce-wallet,
.woocommerce-wallet * {
    font-family: Avantt, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Saldo del Monedero */
.wallet-balance-display {
    background: linear-gradient(135deg, var(--wallet-primary) 0%, #ff6347 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(255, 69, 40, 0.2);
}

.wallet-balance-display h2 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.wallet-balance-amount {
    font-size: 48px;
    font-weight: 700;
    margin: 10px 0;
    font-family: Avantt, sans-serif;
}

.wallet-balance-actions {
    margin-top: 25px;
}

.wallet-balance-actions .button {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 14px 35px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: Avantt, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.wallet-balance-actions .button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Recarga Rápida */
.wallet-quick-recharge {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--wallet-border);
}

.wallet-quick-recharge h3 {
    margin-top: 0;
    color: var(--wallet-dark);
    font-family: Avantt, sans-serif;
    font-size: 20px;
    margin-bottom: 10px;
}

.wallet-quick-recharge p {
    color: #666;
    margin-bottom: 20px;
}

.wallet-recharge-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.wallet-recharge-amount {
    background: #fff;
    border: 2px solid var(--wallet-border);
    padding: 18px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Avantt, sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--wallet-dark);
}

.wallet-recharge-amount:hover {
    border-color: var(--wallet-primary);
    background: rgba(255, 69, 40, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 69, 40, 0.15);
}

.wallet-recharge-amount.selected {
    border-color: var(--wallet-primary);
    background: var(--wallet-primary);
    color: #fff;
    box-shadow: 0 5px 20px rgba(255, 69, 40, 0.3);
}

.wallet-custom-recharge {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.wallet-custom-recharge input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--wallet-border);
    border-radius: 8px;
    font-family: Avantt, sans-serif;
    font-size: 16px;
    color: var(--wallet-dark);
    transition: border-color 0.3s ease;
}

.wallet-custom-recharge input:focus {
    outline: none;
    border-color: var(--wallet-primary);
}

.wallet-custom-recharge button {
    padding: 14px 35px;
    background: var(--wallet-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Avantt, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.wallet-custom-recharge button:hover {
    background: #e63d1f;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 69, 40, 0.3);
}

/* Historial de Transacciones */
.wallet-transactions {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--wallet-border);
}

.wallet-transactions h3 {
    background: var(--wallet-dark);
    color: #fff;
    padding: 20px 25px;
    margin: 0;
    font-family: Avantt, sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wallet-transaction-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wallet-transaction-item {
    padding: 20px 25px;
    border-bottom: 1px solid var(--wallet-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.wallet-transaction-item:hover {
    background: rgba(255, 69, 40, 0.02);
}

.wallet-transaction-item:last-child {
    border-bottom: none;
}

.wallet-transaction-info {
    flex: 1;
}

.wallet-transaction-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 10px;
    font-family: Avantt, sans-serif;
    letter-spacing: 0.5px;
}

.wallet-transaction-type.credit {
    background: rgba(255, 69, 40, 0.1);
    color: var(--wallet-primary);
}

.wallet-transaction-type.debit {
    background: rgba(17, 17, 17, 0.08);
    color: var(--wallet-dark);
}

.wallet-transaction-description {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
    font-family: Avantt, sans-serif;
}

.wallet-transaction-date {
    color: #999;
    font-size: 12px;
    font-family: Avantt, sans-serif;
}

.wallet-transaction-amount {
    font-size: 20px;
    font-weight: 700;
    font-family: Avantt, sans-serif;
}

.wallet-transaction-amount.positive {
    color: var(--wallet-primary);
}

.wallet-transaction-amount.negative {
    color: var(--wallet-dark);
}

/* Checkout */
.wallet-payment-info {
    background: rgba(255, 69, 40, 0.05);
    padding: 18px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid rgba(255, 69, 40, 0.15);
    font-family: Avantt, sans-serif;
}

.wallet-insufficient {
    color: var(--wallet-dark);
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffc107;
    font-family: Avantt, sans-serif;
}

.wallet-sufficient {
    color: var(--wallet-primary);
    padding: 15px;
    background: rgba(255, 69, 40, 0.08);
    border-radius: 8px;
    border: 1px solid var(--wallet-primary);
    font-family: Avantt, sans-serif;
}

.wallet-partial {
    color: var(--wallet-dark);
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #ffc107;
    font-family: Avantt, sans-serif;
}

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

    .wallet-recharge-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .wallet-transaction-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .wallet-transaction-amount {
        margin-top: 10px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wallet-transaction-item {
    animation: fadeIn 0.3s ease;
}

/* Loading */
.wallet-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.wallet-loading:before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Monto personalizado en producto */
.wallet-custom-amount {
    margin: 20px 0;
}

.wallet-custom-amount label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.wallet-custom-amount input {
    width: 100%;
    max-width: 200px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.wallet-custom-amount .description {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}

/* Empty state */
.wallet-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.wallet-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.wallet-empty p {
    font-size: 16px;
    margin-bottom: 20px;
}