/* =====================================================
   TET2Pay Wallet — Interface Membre
   ===================================================== */

.tet2pay-wallet-wrap { max-width: 760px; margin: 0 auto; font-family: inherit; }

/* ── Header solde ── */
.tet2pay-wallet-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: linear-gradient(135deg, #0A2D8F, #534AB7);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    color: #fff;
}

.tet2pay-wallet-balance-block { flex: 1; }

.tet2pay-wallet-greeting { font-size: 14px; opacity: .8; margin-bottom: 4px; }

.tet2pay-wallet-kit-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    margin-bottom: 16px;
}

.tet2pay-wallet-balance-label { font-size: 13px; opacity: .75; margin-bottom: 4px; }

.tet2pay-wallet-balance-amount {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}
.tet2pay-wallet-balance-amount span { font-size: 20px; opacity: .75; font-weight: 400; }

.tet2pay-wallet-escrow-line {
    font-size: 12px;
    opacity: .75;
    background: rgba(255,255,255,.1);
    border-radius: 6px;
    padding: 4px 10px;
    margin-bottom: 14px;
    display: inline-block;
}

.tet2pay-wallet-identifier {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 12px;
}
.tet2pay-id-label { font-size: 11px; opacity: .7; }
.tet2pay-id-value { font-size: 16px; font-weight: 700; font-family: monospace; letter-spacing: 1px; }
.tet2pay-copy-id-btn {
    background: none;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    padding: 2px 8px;
    font-size: 14px;
}
.tet2pay-copy-id-btn:hover { background: rgba(255,255,255,.15); }

/* ── QR Code ── */
.tet2pay-wallet-qr-block { text-align: center; flex-shrink: 0; }
.tet2pay-qr-img { width: 140px; height: 140px; border-radius: 10px; background: #fff; padding: 8px; display: block; margin: 0 auto 8px; }
.tet2pay-qr-caption { font-size: 11px; opacity: .7; margin-bottom: 6px; }
.tet2pay-qr-download { font-size: 12px; color: rgba(255,255,255,.8); text-decoration: underline; }
.tet2pay-qr-download:hover { color: #fff; }
.tet2pay-qr-placeholder { width: 140px; height: 140px; background: rgba(255,255,255,.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 12px; opacity: .6; text-align: center; padding: 10px; }

/* ── Actions rapides ── */
.tet2pay-wallet-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tet2pay-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    transition: all .2s;
    flex: 1;
    min-width: 100px;
}
.tet2pay-action-btn:hover { border-color: #534AB7; color: #534AB7; background: #EEEDFE; }
.tet2pay-action-btn.tet2pay-action-alert { border-color: #ffc107; color: #856404; }
.tet2pay-action-btn.tet2pay-action-alert:hover { background: #fff8e1; }
.tet2pay-action-icon { font-size: 20px; }

/* ── Messages ── */
.tet2pay-alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; }
.tet2pay-alert.success { background: #e6f4ea; color: #1a6e3c; border: 1px solid #4caf50; }
.tet2pay-alert.error   { background: #fdecea; color: #c62828; border: 1px solid #f44336; }
.tet2pay-alert.warning { background: #fff8e1; color: #856404; border: 1px solid #ffc107; }

/* ── Panneaux ── */
.tet2pay-wallet-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 16px;
}
.tet2pay-wallet-panel h3 { margin: 0 0 14px; font-size: 16px; color: #333; }
.tet2pay-panel-note { font-size: 13px; color: #666; background: #f5f5f7; border-radius: 6px; padding: 8px 12px; margin-bottom: 16px; }

/* ── Formulaire transfert ── */
.tet2pay-field { margin-bottom: 16px; }
.tet2pay-field label { display: block; font-size: 13px; font-weight: 500; color: #444; margin-bottom: 6px; }
.tet2pay-field input.input-text { width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 7px; font-size: 15px; box-sizing: border-box; }
.tet2pay-field input.valid   { border-color: #4caf50; }
.tet2pay-field input.invalid { border-color: #f44336; }
.tet2pay-field small { display: block; font-size: 11px; color: #888; margin-top: 4px; }
.tet2pay-id-feedback { display: block; font-size: 12px; margin-top: 4px; }
.tet2pay-id-feedback.valid   { color: #1a6e3c; }
.tet2pay-id-feedback.invalid { color: #c62828; }

.tet2pay-btn-primary { background: #0A2D8F !important; color: #fff !important; border: none !important; padding: 11px 28px !important; border-radius: 7px !important; font-size: 14px !important; font-weight: 500 !important; cursor: pointer !important; }
.tet2pay-btn-primary:hover { background: #0d3ab3 !important; }
.tet2pay-btn-cancel { background: none !important; border: 1px solid #ccc !important; color: #666 !important; padding: 11px 20px !important; border-radius: 7px !important; font-size: 14px !important; cursor: pointer !important; margin-left: 8px !important; }

/* ── Escrow cards ── */
.tet2pay-escrow-card { border: 1px solid #ffc107; border-radius: 10px; padding: 16px; margin-bottom: 12px; background: #fffdf0; }
.tet2pay-escrow-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.tet2pay-escrow-order { font-weight: 500; color: #333; }
.tet2pay-escrow-amount { font-size: 16px; font-weight: 700; color: #0A2D8F; }
.tet2pay-escrow-badge { background: #fff8e1; color: #856404; border: 1px solid #ffc107; border-radius: 20px; padding: 2px 10px; font-size: 12px; }
.tet2pay-escrow-date { font-size: 12px; color: #888; margin-bottom: 12px; }
.tet2pay-escrow-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Historique ── */
.tet2pay-history-panel { display: block; }
.tet2pay-history-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tet2pay-history-table th { background: #f5f5f7; padding: 10px 12px; text-align: left; font-weight: 500; color: #555; border-bottom: 1px solid #e0e0e0; }
.tet2pay-history-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.tet2pay-credit { color: #1a6e3c; }
.tet2pay-debit  { color: #c62828; }
.tet2pay-ref    { font-size: 11px; color: #888; font-family: monospace; }
.tet2pay-empty  { color: #888; font-size: 14px; text-align: center; padding: 20px 0; }

/* ── Sans wallet ── */
.tet2pay-no-wallet { text-align: center; padding: 60px 20px; }
.tet2pay-no-wallet-icon { font-size: 60px; margin-bottom: 16px; }
.tet2pay-no-wallet h3 { font-size: 20px; color: #333; margin-bottom: 10px; }
.tet2pay-no-wallet p { color: #666; max-width: 420px; margin: 0 auto 20px; }

/* Responsive */
@media (max-width: 580px) {
    .tet2pay-wallet-header { flex-direction: column; }
    .tet2pay-wallet-balance-amount { font-size: 32px; }
    .tet2pay-wallet-qr-block { width: 100%; }
    .tet2pay-qr-img { margin: 0 auto; }
}
