/* Refer & Earn pages: the main website's red-orange-amber colours (css/04-core-theme.css --grad), with Montserrat.
   Shared by the public page, the referrer portal (portal/) and the staff console (console/). */
:root {
  --font-refer: 'Montserrat', Arial, sans-serif;
  --grad: linear-gradient(110deg, #F0322A 0%, #FF6B1A 50%, #FFAA1A 100%);
  --brand-red: #F0322A; --brand-red-dark: #D4261F; --brand-orange: #FF6B1A; --brand-orange-text: #E8411E; --brand-amber: #FFAA1A; --brand-amber-text: #B5650A;
  --ink: #1C1C1E; --ink-soft: #3D3936; --grey: #5F5955; --cream: #FFF8EB; --page: #FAF8F4; --line: #E6DDD1;
  --ok: #1E7B4F; --warn: #B5650A; --bad: #B3261E; --red-tint: #FBE9E9;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); }
.refer-root { font-family: var(--font-refer); color: var(--ink); font-variant-numeric: tabular-nums; font-size: 16px; line-height: 1.5; min-height: 100vh; -webkit-font-smoothing: antialiased; }
:where(.refer-root) :where(h1, h2, h3, p, ol, ul, dl, dd) { margin: 0; padding: 0; }
:where(.refer-root) :where(ol, ul) { list-style: none; }
:where(.refer-root) a { color: inherit; text-decoration: none; }
:where(.refer-root) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.refer-root) button { cursor: pointer; background: none; border: 0; padding: 0; }
:where(.refer-root) img { max-width: 100%; }
.refer-root :focus-visible { outline: 2px solid var(--brand-red); outline-offset: 2px; }
.refer-stripe { height: 8px; background: var(--grad); }
[dir='rtl'] .refer-stripe { background: linear-gradient(250deg, #F0322A 0%, #FF6B1A 50%, #FFAA1A 100%); }
.refer-wrap { margin-inline: auto; width: 100%; max-width: 1120px; padding-inline: 16px; }
@media (min-width: 768px) { .refer-wrap { padding-inline: 24px; } }
@media (min-width: 1024px) { .refer-wrap { padding-inline: 48px; } }

.refer-input { height: 48px; width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding-inline: 14px; font-size: 16px; color: var(--ink); }
.refer-input:focus { outline: 2px solid var(--brand-red); outline-offset: 2px; }
.refer-input[aria-invalid='true'] { border-color: var(--bad); }
textarea.refer-input { height: auto; min-height: 96px; padding-block: 12px; }
select.refer-input { appearance: auto; }
.refer-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding-inline: 20px; border-radius: 10px; font-weight: 700; font-size: 15px;
  transition: background-color .15s, color .15s; text-align: center; }
.refer-root .refer-btn:disabled { opacity: .4; cursor: not-allowed; }
.refer-root .refer-btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(255, 90, 31, .28); }
.refer-root .refer-btn-primary:not(:disabled):hover { box-shadow: 0 12px 28px rgba(255, 90, 31, .42); }
.refer-root .refer-btn-secondary { background: #fff; color: var(--brand-red); border: 1.5px solid var(--brand-red); }
.refer-root .refer-btn-secondary:not(:disabled):hover { background: var(--cream); }
.refer-root .refer-btn-plain { color: var(--brand-red); }
.refer-root .refer-btn-plain:hover { text-decoration: underline; }
.refer-btn-sm { min-height: 36px; padding-inline: 12px; font-size: 13px; }
.refer-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.refer-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.refer-help { font-size: 13px; color: var(--grey); margin-top: 4px; }
.refer-error { font-size: 13px; color: var(--bad); margin-top: 4px; }
.refer-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--brand-red); }
.refer-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.refer-table th { position: sticky; top: 0; background: #fff; text-align: start; font-weight: 600; color: var(--grey); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.refer-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.refer-table tbody tr:hover { background: var(--cream); }
.refer-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.refer-chip-grey { background: #F4EFE6; color: var(--grey); }
.refer-chip-orange { background: var(--cream); color: var(--brand-orange-text); }
.refer-chip-red { background: var(--red-tint); color: var(--brand-red); }
.refer-chip-success { background: #E6F2EC; color: var(--ok); }
.refer-chip-warning { background: #FBF0E1; color: var(--warn); }
.refer-chip-error { background: #F9E4E2; color: var(--bad); }
.refer-icon { display: inline-flex; flex: none; vertical-align: middle; }
.refer-alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.refer-alert-error { background: #F9E4E2; color: var(--bad); }
.refer-alert-warning { background: #FBF0E1; color: var(--warn); }
.refer-alert-ok { background: #E6F2EC; color: var(--ok); }
.refer-alert-info { background: var(--cream); color: var(--ink-soft); }
.refer-skeleton { border-radius: 6px; background: rgba(230, 221, 209, .6); animation: refer-pulse 1.4s ease-in-out infinite; }
@keyframes refer-pulse { 50% { opacity: .5; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { .refer-root * { animation: none !important; transition: none !important; } }
