/* ── CashRecycler Payment – Public Styles ── */
:root {
    --crp-primary:   #1a73e8;
    --crp-success:   #27ae60;
    --crp-danger:    #e74c3c;
    --crp-warning:   #f39c12;
    --crp-info:      #2980b9;
    --crp-secondary: #7f8c8d;
    --crp-bg:        #f8fafc;
    --crp-border:    #dde3ea;
    --crp-radius:    10px;
    --crp-shadow:    0 2px 12px rgba(0,0,0,.08);
}

.crp-wrapper { max-width: 720px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

/* Card */
.crp-card { background: #fff; border: 1px solid var(--crp-border); border-radius: var(--crp-radius); padding: 28px; margin-bottom: 24px; box-shadow: var(--crp-shadow); }
.crp-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.crp-card-header h3 { margin: 0; font-size: 1.2rem; color: #1a1a2e; }
.crp-balance { background: var(--crp-bg); border: 1px solid var(--crp-border); border-radius: 20px; padding: 6px 14px; font-size: .875rem; }

/* Wallet balance shortcode */
.crp-wallet-balance { display: inline-flex; gap: 10px; align-items: center; background: linear-gradient(135deg, #1a73e8, #0d47a1); color: #fff; border-radius: 12px; padding: 12px 24px; font-size: 1rem; }
.crp-balance-label { opacity: .85; }
.crp-balance-amount { font-size: 1.4rem; font-weight: 700; }

/* Notices */
.crp-notice { border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: .9rem; }
.crp-notice-info    { background: #e8f4fd; border-left: 4px solid var(--crp-info);    color: #1a4a6b; }
.crp-notice-success { background: #eafaf1; border-left: 4px solid var(--crp-success); color: #1a5c32; }
.crp-notice-error   { background: #fdecea; border-left: 4px solid var(--crp-danger);  color: #7b1a1a; }
.crp-notice-warning { background: #fef9e7; border-left: 4px solid var(--crp-warning); color: #6e4c00; }

/* Form */
.crp-form { display: flex; flex-direction: column; gap: 18px; }
.crp-field-group { display: flex; flex-direction: column; gap: 6px; }
.crp-field-group label { font-weight: 600; font-size: .875rem; color: #333; }
.crp-field-group input[type="text"],
.crp-field-group input[type="number"],
.crp-field-group input[type="email"],
.crp-field-group select { border: 1px solid var(--crp-border); border-radius: 8px; padding: 10px 14px; font-size: .95rem; width: 100%; box-sizing: border-box; transition: border-color .2s; }
.crp-field-group input:focus { border-color: var(--crp-primary); outline: none; box-shadow: 0 0 0 3px rgba(26,115,232,.15); }

/* Radio group */
.crp-radio-group { display: flex; gap: 14px; flex-wrap: wrap; }
.crp-radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; border: 2px solid var(--crp-border); border-radius: 8px; padding: 10px 18px; transition: all .2s; }
.crp-radio-label:has(input:checked) { border-color: var(--crp-primary); background: #e8f0fe; }
.crp-radio-label input { accent-color: var(--crp-primary); }
.crp-radio-label span { font-size: .95rem; font-weight: 500; }

/* Payment fields */
.crp-payment-fields { border: 1px solid var(--crp-border); border-radius: 8px; padding: 16px; background: var(--crp-bg); display: flex; flex-direction: column; gap: 14px; }

/* Buttons */
.crp-btn { display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 8px; padding: 12px 24px; font-size: .95rem; font-weight: 600; cursor: pointer; transition: all .2s; text-decoration: none; }
.crp-btn:disabled { opacity: .6; cursor: not-allowed; }
.crp-btn-primary   { background: var(--crp-primary); color: #fff; }
.crp-btn-primary:hover   { background: #1557b0; }
.crp-btn-success   { background: var(--crp-success); color: #fff; }
.crp-btn-success:hover   { background: #1e8449; }
.crp-btn-danger    { background: var(--crp-danger); color: #fff; }
.crp-btn-danger:hover    { background: #c0392b; }
.crp-btn-secondary { background: #ecf0f1; color: #555; }
.crp-btn-secondary:hover { background: #d5dbdb; }

/* Badges */
.crp-badge { display: inline-block; border-radius: 20px; padding: 3px 10px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.crp-badge-success   { background: #eafaf1; color: #1e8449; }
.crp-badge-danger    { background: #fdecea; color: #c0392b; }
.crp-badge-warning   { background: #fef9e7; color: #d68910; }
.crp-badge-info      { background: #e8f4fd; color: #1a5276; }
.crp-badge-secondary { background: #f2f3f4; color: #666; }

/* Tables */
.crp-table-wrap { overflow-x: auto; }
.crp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.crp-table th { background: #f8fafc; color: #333; font-weight: 700; padding: 12px 14px; text-align: left; border-bottom: 2px solid var(--crp-border); }
.crp-table td { padding: 12px 14px; border-bottom: 1px solid var(--crp-border); }
.crp-table tr:hover td { background: #f8fafc; }

/* Tabs */
.crp-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 2px solid var(--crp-border); }
.crp-tab-btn { background: transparent; border: none; padding: 10px 20px; font-size: .95rem; font-weight: 600; cursor: pointer; color: #666; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .2s; }
.crp-tab-btn.active, .crp-tab-btn:hover { color: var(--crp-primary); border-bottom-color: var(--crp-primary); }

/* Connection cards */
.crp-connection-card { border: 1px solid var(--crp-border); border-radius: 10px; padding: 18px; margin-bottom: 16px; background: var(--crp-bg); }
.crp-connection-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 700; }
.crp-connection-card p { margin: 4px 0; font-size: .9rem; }

/* Proof display */
.crp-proof-display { margin-top: 14px; padding: 14px; background: #fff; border-radius: 8px; border: 1px solid var(--crp-border); }
.crp-proof-form { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }

/* Action group */
.crp-action-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* Empty state */
.crp-empty { color: #888; text-align: center; padding: 30px; font-style: italic; }

/* Responsive */
@media (max-width: 600px) {
    .crp-card { padding: 18px; }
    .crp-radio-group { flex-direction: column; }
    .crp-action-group { flex-direction: column; }
    .crp-card-header { flex-direction: column; gap: 8px; align-items: flex-start; }
}


/* Payment details box shown to the depositor */
.crp-payment-details-box {
    background: #f0f7ff;
    border: 1px solid #bcd6f5;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 12px 0;
}
.crp-payment-details-box h4 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #1a4a7a;
}
.crp-detail-row {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 4px 0;
    border-bottom: 1px solid #dce8f7;
    font-size: 0.9rem;
}
.crp-detail-row:last-child { border-bottom: none; }
.crp-detail-label {
    min-width: 130px;
    font-weight: 600;
    color: #555;
}
.crp-detail-value code {
    background: #e8f0fb;
    padding: 2px 6px;
    border-radius: 4px;
    word-break: break-all;
}
.crp-copy-btn {
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 0.78rem;
    cursor: pointer;
    border: 1px solid #90b8e8;
    border-radius: 4px;
    background: #fff;
}
.crp-copy-btn:hover { background: #ddeeff; }