/*
|--------------------------------------------------------------------------
| PPS Nutrition — Affiliate Dashboard
|--------------------------------------------------------------------------
| Scoped styles. Does not affect Customer Account.
|--------------------------------------------------------------------------
*/

.affiliate-dashboard-page .account-recent-orders {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.affiliate-dashboard-page .account-recent-order {
    display: grid;
    grid-template-columns: minmax(150px, 1.5fr) repeat(3, minmax(95px, 1fr));
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e6e8f2;
    border-radius: 16px;
    background: #f8f9fd;
}

.affiliate-dashboard-page .account-recent-order > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.affiliate-dashboard-page .account-recent-order strong {
    color: #201b55;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.affiliate-dashboard-page .account-recent-order small {
    display: block;
    color: #777f99;
    font-size: 12px;
    line-height: 1.5;
}

.affiliate-dashboard-page .account-recent-order > span {
    justify-self: end;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e8f5ee;
    color: #23734d;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

/*
|--------------------------------------------------------------------------
| Program Terms
|--------------------------------------------------------------------------
*/

.affiliate-dashboard-page .affiliate-program-terms {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.affiliate-dashboard-page .affiliate-program-terms h2 {
    margin: 0;
    line-height: 1.25;
}

.affiliate-dashboard-page .affiliate-program-terms p {
    margin: 0;
    line-height: 1.65;
    color: #65708a;
}

.affiliate-dashboard-page .affiliate-program-terms strong {
    color: #201b55;
}

.affiliate-dashboard-page .affiliate-program-terms__details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #f8f9fd;
    border: 1px solid #e6e8f2;
    border-radius: 14px;
}

.affiliate-dashboard-page .affiliate-program-terms__details p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {
    .affiliate-dashboard-page .account-recent-order {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .affiliate-dashboard-page .account-recent-order > span {
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .affiliate-dashboard-page .account-recent-order {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
