/* TMSA affiliate pages: /affiliate-programme/ (page 2370) and /affiliate-terms/ (page 2372). Added 2026-11-16.
   The page styles themselves live inside the page content, so every rule here is prefixed "body" to win over them at equal specificity. */

/* Long unbroken link text (the terms page) pushed the content past the right edge on phones. */
body .tmsa-aff a,body .tmsa-terms a{overflow-wrap:anywhere}

/* Step cards: the 260px minimum column was wider than a 320px phone's content area. */
body .tmsa-aff-steps{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}

/* Earnings table: stacked cards up to 600px (the 5-column table was 560px wide and forced sideways scrolling).
   The header row is replaced by a label (generated from the column heading) on each card row. */
@media(max-width:600px){
body .tmsa-aff-tablewrap{overflow:visible;background:transparent;border:0;border-radius:0}
body .tmsa-aff table{min-width:0;display:block}
body .tmsa-aff thead{display:none}
body .tmsa-aff tbody,body .tmsa-aff tbody tr{display:block}
body .tmsa-aff tbody tr{background:#fff;border:2px solid #e2e8f0;border-radius:14px;padding:var(--tm-card-pad);margin:0 0 12px}
body .tmsa-aff td{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:16px;padding:8px 0;border-top:1px solid #f1f5f9;text-align:right}
body .tmsa-aff td::before{font-weight:400;color:#64748b;text-align:left;flex:0 1 auto}
body .tmsa-aff td:first-child{display:block;border-top:0;padding:0 0 8px;font-size:18px;font-weight:800;color:#0f172a;text-align:left}
body .tmsa-aff td:first-child::before{content:none}
body .tmsa-aff td:nth-child(2)::before{content:"Monthly price"}
body .tmsa-aff td:nth-child(3)::before{content:"You earn each month"}
body .tmsa-aff td:nth-child(4)::before{content:"Total over 24 months"}
body .tmsa-aff td:nth-child(5)::before{content:"10 website referrals \00d7  24 months"}
}
