/* Matching CSS reserve keeps lower controls scrollable above the banner. */
body.referral-banner-open { padding-bottom:35vh; padding-bottom:35dvh; }
.referral-choice {position:fixed; z-index:100; inset:auto 0 0; box-sizing:border-box; margin:0; padding:.75rem max(1rem, calc((100vw - 72rem)/2)); max-height:35vh; max-height:35dvh; overflow-y:auto; border-top:1px solid #cbd5da; background:#edf4f6; color:#23333f; font:400 1rem/1.5 Arial,sans-serif;}
.referral-choice[hidden] { display: none; }
.referral-choice-revisit { text-align: center; margin: 1rem; font: 400 1rem/1.6 Arial, sans-serif; }
.referral-choice-revisit a { color: #12334b; text-decoration: underline; }
.referral-choice h2 { margin: 0 0 .5rem; font: 700 1.25rem/1.3 Arial, sans-serif; color: #12334b; }
.referral-choice p { margin: .5rem 0; max-width: 75ch; font: inherit; }
.referral-choice a { color: #12334b; text-decoration: underline; }
.referral-choice-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.referral-choice button { padding: .7rem 1rem; border: 1px solid #12334b; border-radius: .25rem; background: white; color: #12334b; font: 700 1rem/1.4 Arial, sans-serif; cursor: pointer; }
.referral-choice button:disabled { cursor: default; opacity: .65; }
.referral-choice button:focus-visible, .referral-choice a:focus-visible { outline: 3px solid #b85016; outline-offset: 3px; }
@media(max-width:700px){
  body.referral-banner-open{padding-bottom:min(230px,50dvh)}
  .referral-choice{display:flex;flex-direction:column;padding:.4rem .75rem;max-height:min(230px,50dvh);overflow:hidden;gap:.25rem}
  .referral-choice h2{font-size:1rem;line-height:1.2;margin:0;flex-shrink:0}
  .referral-choice p{font-size:.875rem;line-height:1.3;margin:0}
  .referral-choice h2 + p{min-height:0;overflow-y:auto}
  .referral-choice [data-referral-status]{flex-shrink:0;font-size:.8125rem;line-height:1.3}
  .referral-choice-actions{gap:.375rem;margin-top:0;flex-shrink:0}
  .referral-choice button{padding:.4rem .6rem;min-height:44px;font-size:.875rem}
}

/* Compact approved banner; consent controller and live feedback unchanged. */
.referral-choice{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;background:#fbfaf7;color:#23333f;padding:1rem max(1rem,calc((100vw - 72rem)/2));}
.analytics-choice-copy{flex:1;min-width:0;max-width:70ch}
.referral-choice h2{font-size:1.125rem;margin:0 0 .35rem;color:#102d48}
.referral-choice p{margin:0;font-size:.9375rem;line-height:1.45}
.referral-choice-actions{flex-shrink:0;margin:0;gap:.5rem}
.referral-choice [role="status"]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.referral-choice button[data-choice="accepted"]{background:#102d48;color:#fff}
@media(max-width:800px){.referral-choice{flex-direction:column;align-items:stretch;gap:.75rem;padding:.85rem 1rem;max-height:50dvh;overflow-y:auto}.referral-choice-actions{flex-wrap:wrap}.referral-choice button{min-height:44px}.analytics-choice-copy{flex:none}.referral-choice p{font-size:.875rem}body.referral-banner-open{padding-bottom:50dvh}}

/* Reserve only the visible banner height, including wrapped/mobile controls. */
body.referral-banner-open{padding-bottom:var(--analytics-banner-height,0px)}

.site-disclosure-links{display:flex;flex-wrap:wrap;gap:0 1.25rem;flex-shrink:0}
