/* VendorReach – Frontend Styles v1.0.0 */

/* ── Stats row ─────────────────────────────────────────────────────── */
.vr-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
.vr-stat-card {
    flex: 1;
    min-width: 130px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 16px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vr-stat-num {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
}
.vr-stat-label {
    font-size: 12px;
    color: #888;
}

/* ── Section cards ─────────────────────────────────────────────────── */
.vr-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 20px;
}
.vr-section h2 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* ── Status badges ──────────────────────────────────────────────────── */
.vr-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.6;
}
.vr-badge--approved  { background: #d4edda; color: #155724; }
.vr-badge--pending   { background: #fff3cd; color: #856404; }
.vr-badge--rejected,
.vr-badge--banned    { background: #f8d7da; color: #721c24; }

/* ── Tier badges ────────────────────────────────────────────────────── */
.vr-tier {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
}
.vr-tier--bronze { background: #f5e6d3; color: #7d4e24; }
.vr-tier--silver { background: #e9e9e9; color: #555; }
.vr-tier--gold   { background: #fff4cc; color: #8a6800; }

/* ── Copy row / link box ────────────────────────────────────────────── */
.vr-copy-box,
.vr-link-box,
.vr-copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.vr-copy-box input[type="text"],
.vr-link-input {
    flex: 1;
    min-width: 200px;
    max-width: 480px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    background: #fafafa;
    color: #333;
    font-family: monospace;
}

/* ── Affiliate actions cell ─────────────────────────────────────────── */
.vr-actions-cell {
    white-space: nowrap;
}
.vr-actions-cell .dokan-btn + .dokan-btn {
    margin-left: 4px;
}

/* ── Rate input ─────────────────────────────────────────────────────── */
.vr-rate-input {
    text-align: right;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 3px 5px;
}

/* ── Portal: program card ───────────────────────────────────────────── */
.vr-portal-section {
    margin-bottom: 32px;
}
.vr-portal-section h2 {
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 600;
}
.vr-program-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.vr-program-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 600;
}
.vr-program-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 12px 0;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
}
.vr-mini-stat {
    text-align: center;
    min-width: 72px;
    font-size: 12px;
    color: #777;
}
.vr-mini-stat span {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

/* ── Product link list ──────────────────────────────────────────────── */
.vr-product-links ul,
.vr-product-link-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}
.vr-product-link-list li {
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* ── Pending / info messages ────────────────────────────────────────── */
.vr-pending-msg {
    margin: 10px 0 0;
    font-size: 13px;
    color: #777;
    font-style: italic;
}
.vr-save-msg {
    font-size: 13px;
}

/* ── Payout box ─────────────────────────────────────────────────────── */
.vr-payout-box {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.vr-payout-msg {
    font-size: 13px;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media ( max-width: 600px ) {
    .vr-stats-row { gap: 10px; }
    .vr-stat-card { min-width: 100%; }
    .vr-program-stats { gap: 12px; }
    .vr-copy-row { flex-direction: column; align-items: stretch; }
    .vr-link-input { max-width: 100%; }
}
