/* AffRadioButtons — list of radio buttons (donut + two-line label per row).
   Linked from App.razor like the other _content/AFFApp.Shared/CSS/Components/*.css
   files (this RCL doesn't emit Blazor scoped-CSS bundles, so the project ships
   plain global CSS; the .aff-radio-* BEM classnames are collision-safe).
   Consumer-agnostic: no card chassis, no margins, no shadows, no radius — whatever
   the consumer wraps these rows in provides the spacing/chassis/shadow. */

.aff-radio-buttons {
    display: flex;
    flex-direction: column;
}

.aff-radio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    cursor: pointer;
    transition: background-color 120ms ease;
    outline: 2px solid transparent;  /* reserve focus-ring space, no shift on focus */
    outline-offset: -2px;
    box-sizing: border-box;
}

.aff-radio-row:hover {
    background: var(--color-grey-10, #F7F7F7);
}

.aff-radio-row:active {
    background: var(--color-grey-10, #F7F7F7);
}

.aff-radio-row:focus-visible {
    outline: 2px solid #000;
    outline-offset: -2px;
}

.aff-radio-row__content {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

.aff-radio-row__leading {
    flex-shrink: 0;
}

.aff-radio-row__labels {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    flex: 1;
}

.aff-radio-row__primary {
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-black, #000);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aff-radio-row__secondary {
    font-family: Roboto, sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.2px;
    color: var(--color-black, #000);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aff-radio-dot {
    width: 22px;
    height: 22px;
    border: 2px solid #A2A0A3;
    border-radius: 50%;
    background: transparent;
    box-sizing: border-box;
    flex-shrink: 0;
}

.aff-radio-dot--selected {
    border: 2px solid #F91D71;
    background: #F91D71;
    box-shadow: inset 0 0 0 3px #fff;  /* white inner ring = donut */
}

/* ── Variants (Phase 9) ──────────────────────────────────────────────────────
   Additive modifiers; the default Trailing/Subtle rendering above is unchanged. */

/* Leading indicator — reorder the (source-order trailing) donut to the row's
   leading edge. Markup order stays content → trailing → dot; only paint order
   moves, so the donut lands left while the optional trailing slot stays right. */
.aff-radio-row--leading .aff-radio-dot,
.aff-radio-row--leading .aff-radio-icon {
    order: -1;
}

/* Icon-indicator mode (opt-in via CheckedIcon/UncheckedIcon). Replaces the donut
   with a FontAwesome glyph in the SAME 22px slot — selected renders the brand-pink
   circle-check, unselected a grey hollow circle — matching the selectPaymentDate
   date-card check (#F91D71, 18px glyph). Width stays 22px so the label's left edge
   is identical to the donut version (no alignment shift). */
.aff-radio-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    font-size: 18px;
    line-height: 1;
    color: #A2A0A3;  /* unselected: grey (same grey as the donut's ring) */
    flex-shrink: 0;
}

.aff-radio-icon.aff-radio-icon--selected {
    color: #F91D71;  /* selected: brand pink, matching the date-card check */
}

/* Primary selected tint — brand-pink wash + border, mirroring Make a Payment's
   .payment-card.selected (MakePayment.razor:1628). The transparent 1.5px border on
   the unselected Primary row reserves the space (box-sizing:border-box, set above)
   so selecting causes NO layout shift — a deliberate improvement over MakePayment,
   whose unselected rows have no border and so jump 1.5px on select. */
.aff-radio-row--tint-primary {
    border: 1.5px solid transparent;
    border-radius: var(--radius-8, 8px);
}

.aff-radio-row--tint-primary.aff-radio-row--selected {
    border-color: var(--color-brand-pink, #F91D71);
    background: rgba(249, 29, 113, 0.06);
}

/* Trailing content slot (e.g. a right-aligned amount). The row's content block
   carries flex:1, so this is pushed to the trailing edge; margin-left:auto keeps
   it hard-right even when the content is narrow. */
.aff-radio-trailing {
    margin-left: auto;
    text-align: right;
    font-family: var(--font-body, Roboto, sans-serif);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-black, #000);
    flex-shrink: 0;
}
