/* ═══════════════════════════════════════════
   FUNDR KYC + WITHDRAWAL STYLES
   ═══════════════════════════════════════════ */

.fundr-kyc-wrapper *,
.fundr-withdrawals-list * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fundr-kyc-wrapper {
    max-width: 640px;
    margin: 40px auto;
    padding: 0 16px;
}

.fundr-kyc-header { margin-bottom: 28px; }
.fundr-kyc-header h2 { font-size: 24px; font-weight: 700; margin: 0 0 6px; color: #111827; }
.fundr-kyc-header p { margin: 0; color: #6b7280; font-size: 15px; }

.fundr-kyc-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.fundr-kyc-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #111827;
}

/* Resolved Name */
.fundr-kyc-resolved-name {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.fundr-kyc-resolved-name__text {
    font-weight: 600;
    color: #16a34a;
    font-size: 15px;
}
.fundr-kyc-resolved-name__placeholder {
    color: #9ca3af;
    font-size: 13px;
}
.fundr-kyc-resolved-name--loading {
    color: #4f46e5;
}

/* Bank Card */
.fundr-kyc-bank-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.fundr-kyc-bank-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #111827;
}
.fundr-kyc-bank-card__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}
.fundr-kyc-bank-card__details span { color: #6b7280; }
.fundr-kyc-bank-card__details strong { color: #111827; font-size: 16px; }

/* Wallet Status Row */
.fundr-wallet-status-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.fundr-wallet-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
}
.fundr-wallet-status-item span:first-child {
    color: #6b7280;
    font-weight: 500;
}

/* Wallet Primary Card */
.fundr-wallet-card--primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
    border: none !important;
}
.fundr-wallet-card--primary .fundr-wallet-card__label {
    color: rgba(255,255,255,.8) !important;
}
.fundr-wallet-card--primary .fundr-wallet-card__amount {
    color: #fff !important;
}

/* Wallet Actions */
.fundr-wallet-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Withdrawal List */
.fundr-withdrawals-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}
.fundr-withdrawal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.fundr-withdrawal-item__left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fundr-withdrawal-item__left strong {
    font-size: 16px;
    color: #111827;
}
.fundr-withdrawal-item__left small {
    font-size: 12px;
    color: #9ca3af;
}
.fundr-withdrawal-item__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.fundr-withdrawal-item__note {
    font-size: 11px;
    color: #dc2626;
    max-width: 200px;
    text-align: right;
}

/* KYC form fields (inherit from main) */
.fundr-kyc-wrapper .fundr-field { margin-bottom: 16px; }
.fundr-kyc-wrapper .fundr-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.fundr-kyc-wrapper .fundr-field input[type="text"],
.fundr-kyc-wrapper .fundr-field input[type="tel"],
.fundr-kyc-wrapper .fundr-field input[type="email"],
.fundr-kyc-wrapper .fundr-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    transition: all .2s ease;
    outline: none;
}
.fundr-kyc-wrapper .fundr-field input:focus,
.fundr-kyc-wrapper .fundr-field select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.fundr-kyc-wrapper .fundr-field input.has-error,
.fundr-kyc-wrapper .fundr-field select.has-error {
    border-color: #dc2626;
}

/* Upload area in KYC */
.fundr-kyc-wrapper .fundr-upload {
    position: relative;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    background: #f9fafb;
}
.fundr-kyc-wrapper .fundr-upload:hover {
    border-color: #4f46e5;
    background: #f5f3ff;
}
#fundr-kyc-upload-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}
#fundr-kyc-upload-filename {
    font-weight: 600;
    color: #16a34a;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .fundr-wallet-status-row { flex-direction: column; }
    .fundr-wallet-actions { flex-direction: column; }
    .fundr-withdrawal-item { flex-direction: column; align-items: flex-start; gap: 8px; }
}