/* WC Affiliate Pro – Frontend Styles */

/* ── Reset & base ────────────────────────────────────────────────────────── */
.wcap-wrap { font-family: inherit; color: var(--navy); }
.wcap-wrap *, .wcap-wrap *::before, .wcap-wrap *::after { box-sizing: border-box; }

/* ── Notices ──────────────────────────────────────────────────────────────── */
.wcap-notice {
    padding: 12px 18px;
    border-radius: 6px;
    background: #f0f4ff;
    border-left: 4px solid #6366f1;
    margin-bottom: 20px;
}



/* ── Badges ───────────────────────────────────────────────────────────────── */
.wcap-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
   /* text-transform: uppercase;*/
    letter-spacing: .5px;
}

.wcap-notice--info { 
    color: #004085;
    background-color: #cce5ff;
    border: 3px solid #b8daff;
	
}
/*.wcap-badge--pending  { background: #fef3c7; color: #92400e; }
.wcap-badge--paused   { background: #e0e7ff; color: #3730a3; }*/
.wcap-badge--rejected, .wcap-badge--paused, .wcap-notice--error { 

    color: #721c24;
    background-color: #f8d7da;
	border: 3px solid #f5c6cb;

}
.wcap-badge--paid, .wcap-badge--approved, .wcap-badge--active, .wcap-notice--success { 
    background-color: rgb(209, 231, 221);
    color: rgba(0, 54, 34, 1);
    border: 3px solid rgb(163, 207, 187);
    border-top-color: rgb(163, 207, 187);
    list-style: none outside;

}
.wcap-badge--reversed { background: #fce7f3; color: #9d174d; }
.wcap-badge--requested, .wcap-badge--pending, .wcap-notice--warning   { 
	color: #856404;
    background-color: #fff3cd;
    border: 3px solid #ffeeba;

}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.wcap-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .15s, transform .1s;
    text-decoration: none;
}
.wcap-btn--primary  { background: #6366f1; color: #fff; }
.wcap-btn--primary:hover { background: #4f46e5; }
.wcap-btn--sm       { padding: 6px 12px; font-size: 13px; }
.wcap-btn:active    { transform: translateY(1px); }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.wcap-form { max-width: 600px; }
.wcap-form-row { margin-bottom: 18px; }
.wcap-form-row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wcap-field label   { display: block; margin-bottom: 6px; }
.wcap-field input,
.wcap-field textarea,
.wcap-field select  {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid hsla(0, 0%, 7%, .8);
    transition: border-color .15s;
	border-radius: 4px;
    line-height: 25px;
    padding: 16px 12px;
	    line-height: 25px;
}
.wcap-field input:focus,
.wcap-field textarea:focus,
.wcap-field select:focus   { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.wcap-field-hint { font-size: 12px; color: #6b7280; margin-top: 4px; display: block; }
.wcap-field .required { color: #ef4444; }
.wcap-field input[readonly] { background: #f9fafb; cursor: default; }

/* ── Register page ────────────────────────────────────────────────────────── */
.wcap-register-wrap { max-width: 640px; margin: 0 auto; }
.wcap-register-wrap h2 { margin-top: 0; }
.wcap-intro { color: #6b7280; margin-bottom: 24px; }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.wcap-dashboard-wrap { max-width: 100%; margin: 0 auto; }

.wcap-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 3rem;
}
.wcap-dashboard-header__info h2 { margin: 0 0 6px; font-size: 22px; }

.wcap-referral-link-box { flex: 0 0 380px; }
.wcap-referral-link-box label { font-weight: 600; font-size: 13px; color: #6b7280; margin-bottom: 6px; display: block; }
.wcap-referral-link-row { display: flex; gap: 8px; }
.wcap-referral-link-row input {
    flex: 1;
     padding: 16px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #f9fafb;
}
.wcap-coupon-code { margin-top: 10px; font-size: 13px; color: #374151; }
.wcap-coupon-code strong { color: var(--coral); letter-spacing: 1px; }

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.wcap-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    background: var(--white);
    padding: 8px;
    border-radius: 999px;
    width: fit-content;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.wcap-tab {
	background: transparent;
    border: none;
    font-family: 'DM Sans';
    font-weight: 700;
    font-size: 13px;
    color: var(--slate);
    padding: 12px 22px;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background .2s, color .2s;
	text-decoration: none;
}
.wcap-tab:hover { color: var(--coral);; background: #f5f3ff; }
.wcap-tab--active {
    background: var(--coral);
    color: var(--white);
}

/* ── Stat cards ───────────────────────────────────────────────────────────── */
.wcap-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.wcap-stats-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .wcap-stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .wcap-stats-grid { grid-template-columns: 1fr; } }

.wcap-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}
.wcap-stat-card--highlight { border-color: #6366f1; background: #faf5ff; }
.wcap-stat-card__value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.wcap-stat-card--highlight .wcap-stat-card__value { color: #6366f1; }
.wcap-stat-card__label { font-size: 13px; color: #6b7280; }

/* ── Tab content ──────────────────────────────────────────────────────────── */
.wcap-tab-content { /*background: #fff; border: 1px solid #e5e7eb;*/ border-radius:16px; padding: 0; }
.wcap-tab-content h3 { margin-top: 0; font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 1rem; padding-top:0!important; }
.wcap-info-row { display: flex; gap: 32px; flex-wrap: wrap; font-size: 14px; color: var(--navy); }
.wcap-info-row p { margin: 0; font-size: 16px;color: var(--navy);}

/* ── Tables ───────────────────────────────────────────────────────────────── */
.wcap-table-wrap { overflow-x: auto; }
.wcap-table, .wcap-table-wrap {
    width: 100%;
    border-collapse: collapse;
     background: var(--white);
   /* border: 1px solid var(--border);*/
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
	


}

.wcap-table thead{
	border-bottom: 1px solid var(--border);
}

.wcap-table-wrap {

    border: none;
	    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
   
}



.wcap-table th, .wcap-table td {
    padding: 22px 20px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}


.wcap-table td{
	color: var(--slate);
    line-height: 1.55;
    font-size: 14.5px;
}

.wcap-table thead{
	background: var(--bg);
    color: var(--navy);
}

.wcap-table th {  
	padding: 16px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
	border-bottom: 1px solid var(--border);
}
.wcap-table tr:last-child td { border-bottom: none; padding: 22px 20px; }
.wcap-empty { color: #9ca3af; font-style: italic; }

/* ── Payout request box ───────────────────────────────────────────────────── */
.wcap-payout-request-box {
   /* background: #f9fafb;
    border: 1px solid #e5e7eb;*/
    border-radius: 8px;
    /*padding: 20px;*/
    margin-bottom: 4rem;
}

/* ── Message area ─────────────────────────────────────────────────────────── */
.wcap-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.wcap-message.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.wcap-message.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.wcap-dashboard-wrap .woocommerce-Price-amount {
	font-family: 'DM Sans';
    font-weight: 700;
    font-size: 16px;
    color: var(--navy);
}

@media (max-width: 620px) {
    .wcap-dashboard-header { flex-direction: column; }
    .wcap-referral-link-box { flex: unset; width: 100%; }
    .wcap-form-row--half { grid-template-columns: 1fr; }
}
