/**
 * B2B Public Styles
 */

/* ─── Registration Tabs ─────────────────────────────── */
.b2b-reg-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #e0e0e0;
}
.b2b-reg-tab {
    padding: 12px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.b2b-reg-tab:hover {
    color: #333;
    background: #f9f9f9;
}
.b2b-reg-tab.active {
    color: #7eb934;
    border-bottom-color: #7eb934;
}
.b2b-tab-icon {
    font-size: 16px;
}
.b2b-reg-panel {
    display: none;
}
.b2b-reg-panel.active {
    display: block;
}
.b2b-extra-fields {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.b2b-section-title {
    font-size: 15px;
    font-weight: 600;
    margin: 16px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    color: #333;
}
.b2b-file-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* ─── Dashboard Cards ───────────────────────────────── */
.b2b-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.b2b-dash-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}
.b2b-dash-card h3 {
    margin: 0 0 4px;
    font-size: 28px;
    color: #2271b1;
}
.b2b-dash-card p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

/* ─── Referral Link Box ─────────────────────────────── */
.b2b-ref-box {
    background: #f0f6fc;
    border: 1px solid #c3d9ed;
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
}
.b2b-ref-box code {
    display: block;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    margin: 8px 0;
    word-break: break-all;
}
.b2b-copy-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}
.b2b-copy-btn:hover {
    background: #135e96;
}
.b2b-copy-btn.copied {
    background: #00a32a;
}

/* ─── Commissions Table ─────────────────────────────── */
.b2b-commission-table {
    width: 100%;
    border-collapse: collapse;
}
.b2b-commission-table th,
.b2b-commission-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.b2b-commission-table th {
    background: #f5f5f5;
    font-weight: 600;
}
.b2b-status-pending  { color: #d63638; }
.b2b-status-approved { color: #00a32a; }
.b2b-status-paid     { color: #2271b1; }

/* ─── Pending Notice ────────────────────────────────── */
.b2b-pending-notice {
    background: #fef7f1;
    border: 1px solid #f0c36d;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}
.b2b-pending-notice h3 {
    color: #d63638;
    margin: 0 0 8px;
}

/* ─── Bulk Pricing Table (Product Page) ─────────────── */
.b2b-bulk-pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.b2b-bulk-pricing-table th,
.b2b-bulk-pricing-table td {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    text-align: center;
}
.b2b-bulk-pricing-table th {
    background: #2271b1;
    color: #fff;
}
.b2b-bulk-pricing-table tr:nth-child(even) td {
    background: #f9f9f9;
}
