/* SPORTLAB püsikliendiprogrammi leht (04.12.2026, Kristo): /pusikliendiprogramm (moodul autoloyalty, kontroller program).
   Mall themes/warehouse/modules/autoloyalty/views/templates/front/program.tpl, tekstid _partials/sl-loyalty-strings.tpl.
   Lähtefail: Fable'i makett tood/sportlab-pusikliendiprogramm/fable/ (style.css), sama süsteem mis klienditoe lehel (sl-help.css).
   Laetakse AINULT sellel lehel (mall, plokk head append) — eraldi fail, mitte custom.css plokk.
   Kõik reeglid .sl-loy all, tokenid .sl-loy peal (mitte :root), html/body reegleid pole (v.a kerimislukk dialoogi ajal).
   Maketi @container sl (min-width: 768px) → @media (min-width: 768px). Päis, menüü, leivapuru ja jalus tulevad teemast.
   Mooduli autoloyalty.css (.al-*) laeb edasi kõigil lehtedel; siin kasutatakse ainult .al-wallet-* (Walleti nupud) ja need
   kohandatakse allpool .sl-loy alt. Ikoonireegel on klassil .sl-loy__i, mitte kõigil svg-del: ribakood ja Walleti nupud
   on mooduli SVG-d ja peavad jääma muutmata (stroke rikuks ribakoodi).
   Teema lõksud (faili lõpus): ybc_blog H1 reegel, a:link:not(.nav-link):not(.btn) lingivärv, theme.css * { outline: none !important }. */

.sl-loy {
  color-scheme: light;

  /* Värvid: samad nimed ja väärtused mis avalehel, jaluses ja teistel infolehtedel */
  --sl-paper: #ffffff;
  --sl-paper-2: #f8f8f8;
  --sl-rule: #e5e5e5;
  --sl-rule-2: #dedede;
  --sl-field: #8c8c8c;
  --sl-ink: #212529;
  --sl-ink-2: #34495e;
  --sl-muted: #6b6b6b;
  --sl-red: #c32525;
  --sl-red-deep: #a31d1d;
  --sl-on-red: #ffffff;
  --sl-focus: #212529;
  --sl-barcode: #000000;

  /* Kolm taset: samad toonid mis hinnaploki tasememärgil, ainult krooni ja sildi peal */
  --sl-bronze-bg: #f4ebe2;
  --sl-bronze-edge: #d7b79d;
  --sl-bronze-ink: #7a4f2b;
  --sl-silver-bg: #eff1f4;
  --sl-silver-edge: #cbd3dc;
  --sl-silver-ink: #586271;
  --sl-gold-bg: #fff7d6;
  --sl-gold-edge: #e6cf70;
  --sl-gold-ink: #7d5b00;

  /* Kiri */
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 22px;
  --text-3xl: 26px;
  --text-5xl: 34px;
  --text-6xl: 44px;
  --lh-sm: 20px;
  --lh-md: 24px;
  --lh-lg: 28px;
  --lh-h1: 30px;
  --lh-h1-wide: 40px;
  --lh-fig: 48px;

  /* Vahed */
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 40px;
  --space-3xl: 56px;
  --sl-btn-pad-y: 14px;
  --sl-btn-pad-x: 21px;

  /* Kuju ja mõõdud */
  --sl-control: 48px;
  --sl-tap: 44px;
  --sl-icon: 20px;
  --sl-medal: 40px;
  --sl-track: 8px;
  --sl-code: 72px;
  --sl-code-tall: 144px;
  --sl-till-max: 560px;
  --sl-step: 24px;
  --sl-btn-min: 160px;
  --radius-card: 8px;
  --radius-btn: 4px;

  /* Liikumine */
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Alus */
.sl-loy {
  display: block;
  padding-block-end: var(--space-2xl);
  background: var(--sl-paper);
  color: var(--sl-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--lh-md);
  text-align: start;
}

.sl-loy *,
.sl-loy *::before,
.sl-loy *::after {
  box-sizing: border-box;
}

.sl-loy :where(h1, h2, h3, p, ul, ol, dl, dt, dd, figure) {
  margin: 0;
  padding: 0;
}

.sl-loy :where(ul, ol) {
  list-style: none;
}

.sl-loy :where(h1, h2, h3) {
  min-width: 0;
  color: var(--sl-ink);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.sl-loy :where(p, dd) {
  text-wrap: pretty;
}

/* Joonikonid (kroon, rist) — ainult see klass, mitte mooduli SVG-d */
.sl-loy .sl-loy__i {
  flex: none;
  width: var(--sl-icon);
  height: var(--sl-icon);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sl-loy__num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Fookus igal lingil ja nupul (teema * { outline: none !important } → !important) */
.sl-loy :is(a, button):focus-visible {
  outline: 2px solid var(--sl-focus) !important;
  outline-offset: 2px;
}

/* Tekstilink, nagu avalehel */
.sl-loy__link {
  --sll-link: var(--sl-ink);
  display: inline-block;
  padding: var(--space-sm) 0;
  font-size: var(--text-md);
  line-height: var(--lh-sm);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: color var(--dur-short) var(--ease-out);
}

@media (hover: hover) {
  .sl-loy .sl-loy__link:hover {
    --sll-link: var(--sl-red);
  }
}

.sl-loy .sl-loy__link:active {
  --sll-link: var(--sl-red-deep);
}

/* Põhinupp, nagu saidi .btn-primary */
.sl-loy__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 100%;
  min-height: var(--sl-control);
  margin: 0;
  padding: calc(var(--sl-btn-pad-y) - 1px) var(--sl-btn-pad-x);
  border: 1px solid var(--sl-red);
  border-radius: var(--radius-btn);
  background: var(--sl-red);
  color: var(--sl-on-red);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: var(--lh-sm);
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

@media (hover: hover) {
  .sl-loy__btn:hover {
    border-color: var(--sl-red-deep);
    background: var(--sl-red-deep);
    text-decoration: none;
  }
}

.sl-loy__btn:active {
  border-color: var(--sl-red-deep);
  background: var(--sl-red-deep);
  transform: translateY(1px);
}

/* Vaikne nupp: valge, hall äär; hiirega äär tumeneb */
.sl-loy__btn--quiet {
  border-color: var(--sl-field);
  background: var(--sl-paper);
  color: var(--sl-ink);
}

@media (hover: hover) {
  .sl-loy__btn--quiet:hover {
    border-color: var(--sl-ink);
    background: var(--sl-paper);
  }
}

.sl-loy__btn--quiet:active {
  border-color: var(--sl-ink);
  background: var(--sl-paper-2);
}

/* 1. Pealkiri, üks lause ja tegevus, ühe veeruna */
.sl-loy__head {
  padding-block: var(--space-2xs) var(--space-md);
}

.sl-loy__h1 {
  font-size: var(--text-3xl);
  line-height: var(--lh-h1);
  letter-spacing: -0.015em;
}

.sl-loy__lede {
  max-width: 52ch; /* telefonis; arvutis täislaius (Kristo 04.12: lause ühele reale) */
  margin-block-start: var(--space-xs);
}

.sl-loy__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2xs);
  margin-block-start: var(--space-md);
}

.sl-loy__actions .sl-loy__btn {
  align-self: stretch;
}

.sl-loy__h2 {
  font-size: var(--text-2xl);
  line-height: var(--lh-lg);
  letter-spacing: -0.01em;
}

/* Taseme värv elab kolmes muutujas, mille paneb taseme klass (bronze, silver, gold); neutral = hall */
.sl-loy__lvl {
  --sl-lvl-bg: var(--sl-paper);
  --sl-lvl-edge: var(--sl-rule-2);
  --sl-lvl-ink: var(--sl-muted);
}

.sl-loy__lvl--bronze {
  --sl-lvl-bg: var(--sl-bronze-bg);
  --sl-lvl-edge: var(--sl-bronze-edge);
  --sl-lvl-ink: var(--sl-bronze-ink);
}

.sl-loy__lvl--silver {
  --sl-lvl-bg: var(--sl-silver-bg);
  --sl-lvl-edge: var(--sl-silver-edge);
  --sl-lvl-ink: var(--sl-silver-ink);
}

.sl-loy__lvl--gold {
  --sl-lvl-bg: var(--sl-gold-bg);
  --sl-lvl-edge: var(--sl-gold-edge);
  --sl-lvl-ink: var(--sl-gold-ink);
}

/* Kroon: ainus koht, kus taseme värv on suurelt näha */
.sl-loy__medal {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--sl-medal);
  height: var(--sl-medal);
  border: 1px solid var(--sl-lvl-edge);
  border-radius: 50%;
  background: var(--sl-lvl-bg);
  color: var(--sl-lvl-ink);
}

/* Tase sildina kliendikaardil */
.sl-loy__tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3xs) var(--space-xs);
  border: 1px solid var(--sl-lvl-edge);
  border-radius: var(--radius-btn);
  background: var(--sl-lvl-bg);
  color: var(--sl-lvl-ink);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--lh-sm);
  white-space: nowrap;
}

/* 2. Tasemed: eraldi hallid kaardid, väike vahe, soodustus suurelt. Kaardid ei ole lingid → hiirega ei muutu. */
.sl-loy__tiers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-sm);
}

/* Telefonis üks rida: nimi ja summa vasakul, soodustus paremal */
.sl-loy__tier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "top pct"
    "sum pct";
  column-gap: var(--space-sm);
  row-gap: var(--space-xs);
  align-items: center;
  min-width: 0;
  padding: var(--space-md);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background: var(--sl-paper-2);
}

/* Kliendi enda tase: punane äär ja sõnad „Sinu tase”, mitte ainult värv */
.sl-loy__tier.is-active {
  border-color: var(--sl-red);
}

.sl-loy__tier-top {
  grid-area: top;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-sm);
  row-gap: var(--space-2xs);
  min-width: 0;
}

.sl-loy__tier-name {
  font-size: var(--text-xl);
  line-height: var(--lh-lg);
  letter-spacing: -0.01em;
}

.sl-loy__tier-state {
  color: var(--sl-muted);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  white-space: nowrap;
}

.sl-loy__tier-state--next {
  color: var(--sl-ink);
  font-weight: 500;
}

.sl-loy__tier.is-active .sl-loy__tier-state {
  color: var(--sl-red-deep);
  font-weight: 700;
}

.sl-loy__tier-pct {
  grid-area: pct;
  text-align: end;
}

.sl-loy__tier-fig {
  display: block;
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: var(--lh-h1-wide);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sl-loy__tier-unit {
  display: block;
  color: var(--sl-muted);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}

.sl-loy__tier-sum {
  grid-area: sum;
}

.sl-loy__tier-sum strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sl-loy__tiers-note {
  margin-block-start: var(--space-sm);
  color: var(--sl-muted);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}

/* 3. Sisse logitud: kliendi tase ja kliendikaart */
.sl-loy__member {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-sm);
  margin-block-end: var(--space-sm);
}

/* Olekukaart on oma sisu kõrgune (04.12, Kristo „liiga palju õhku”): ei venitu kõrval oleva kliendikaardi kõrguseks */
.sl-loy__status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: start;
  min-width: 0;
  padding: var(--space-md);
  border-radius: var(--radius-card);
  background: var(--sl-paper-2);
}

.sl-loy__status-top {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

/* Kaks võrreldavat arvu, nende vahel peen püstjoon */
.sl-loy__stats {
  display: flex;
  margin-block-start: var(--space-sm);
}

.sl-loy__stat + .sl-loy__stat {
  margin-inline-start: var(--space-lg);
  padding-inline-start: var(--space-lg);
  border-inline-start: 1px solid var(--sl-rule-2);
}

.sl-loy__stat dt {
  color: var(--sl-muted);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: var(--lh-sm);
  white-space: nowrap;
}

.sl-loy__stat dd {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--lh-h1);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Tee järgmise tasemeni: lause, riba, kaks otsa nimega */
.sl-loy__next {
  align-self: stretch;
  margin-block-start: var(--space-sm);
}

.sl-loy__next strong {
  font-weight: 700;
}

.sl-loy__bar {
  height: var(--sl-track);
  margin-block-start: var(--space-sm);
  border-radius: var(--radius-btn);
  background: var(--sl-rule-2);
  overflow: hidden;
}

/* Täidise pikkus tuleb mallist (--sl-loy-part); ei animeerita */
.sl-loy__bar-fill {
  display: block;
  width: var(--sl-loy-part, 0%);
  height: 100%;
  border-radius: var(--radius-btn);
  background: var(--sl-red);
}

.sl-loy__bar-ends {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-block-start: var(--space-xs);
  color: var(--sl-muted);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}

.sl-loy__bar-ends > span:last-child {
  text-align: end;
}

.sl-loy__status-more {
  display: flex;
  margin-block: var(--space-2xs) calc(-1 * var(--space-xs));
}

/* Kliendikaart: teist liiki asi, seega valge peene äärega; ribakood vajab valget */
.sl-loy__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-md);
  border: 1px solid var(--sl-rule);
  border-radius: var(--radius-card);
  background: var(--sl-paper);
}

.sl-loy__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.sl-loy__code {
  margin-block-start: var(--space-md);
  background: var(--sl-paper);
}

/* Mooduli ribakood: laius kaardi järgi, kõrgus kindel; stroke ära (pärilik stroke paksendaks triipe) */
.sl-loy .sl-loy__code svg {
  display: block;
  width: 100%;
  height: var(--sl-code);
  stroke: none;
  shape-rendering: crispEdges;
}

.sl-loy__code-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-block-start: var(--space-xs);
}

.sl-loy__code-num {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--lh-lg);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sl-loy__code-name {
  min-width: 0;
  color: var(--sl-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-loy__card-hint {
  margin-block-start: var(--space-xs);
  color: var(--sl-muted);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}

.sl-loy__card-act {
  display: flex;
  margin-block-start: auto;
  padding-block-start: var(--space-md);
}

/* Walleti nupud (04.12.2026): nupu sees Google'i ja Apple'i ametlik märk keele järgi (failid img/wallet/).
   Brändireeglid: märki ei värvita, ei tuhmita ega skaleerita vabalt (kõrgus 48 px = Google'i miinimum, laius proportsioonis),
   oma raami/tausta pole; mõlemad 48 px (Google ei tohi olla teistest väiksem); vaba ruum Google 8 dp, Apple 0,1 × kõrgus
   → märkide vahe 12 px. Kõrvuti, kui mahub (arvutis vt allpool @media 1200px), muidu üksteise all.
   Hover ei muuda midagi (mooduli autoloyalty.css hover = opacity + scale → tühistatud); klaviatuuril nähtav fookusrõngas. */
.sl-loy .sl-loy__wallet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-block-start: var(--space-md);
  padding-block-start: var(--space-md);
  border-top: 1px solid var(--sl-rule);
  text-align: start;
}

.sl-loy .sl-loy__wallet .al-wallet-label {
  flex-basis: 100%;
  margin: 0;
  color: var(--sl-muted);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  letter-spacing: normal;
  text-transform: none;
}

.sl-loy .sl-loy__wallet .al-wallet-btn {
  display: inline-flex;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: none;
  line-height: 0;
  cursor: pointer;
  transition: none;
}

.sl-loy .sl-loy__wallet .al-wallet-btn--apple {
  border-radius: 9px;
}

.sl-loy .sl-loy__wallet .al-wallet-btn :is(img, svg) {
  display: block;
  width: auto;
  height: 48px;
  max-width: none;
  border-radius: 0;
}

.sl-loy .sl-loy__wallet .al-wallet-btn:hover {
  opacity: 1;
  transform: none;
}

.sl-loy .sl-loy__wallet .al-wallet-btn:focus-visible {
  outline-offset: 3px;
}

/* 4. Kolm sammu: päris järjestatud loend valgel, peen joon iga kohal */
.sl-loy__section {
  margin-block-start: var(--space-xl);
}

.sl-loy__steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  margin-block-start: var(--space-sm);
  counter-reset: sl-step;
}

.sl-loy__step {
  display: grid;
  grid-template-columns: var(--sl-step) minmax(0, 1fr);
  column-gap: var(--space-sm);
  align-items: baseline;
  padding-block-start: var(--space-md);
  border-block-start: 1px solid var(--sl-rule);
  counter-increment: sl-step;
}

.sl-loy__step::before {
  content: counter(sl-step);
  color: var(--sl-ink-2);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--lh-lg);
  font-variant-numeric: tabular-nums;
}

.sl-loy__step-name {
  font-size: var(--text-xl);
  line-height: var(--lh-lg);
  letter-spacing: -0.01em;
}

.sl-loy__step-text {
  margin-block-start: var(--space-2xs);
}

/* 5. Millele soodustus kehtib, küsimused ja lõpusõna */
.sl-loy__lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  margin-block-start: var(--space-xl);
}

.sl-loy__rules {
  min-width: 0;
  padding: var(--space-md);
  border-radius: var(--radius-card);
  background: var(--sl-paper-2);
}

.sl-loy__rule-list {
  margin-block-start: var(--space-sm);
}

.sl-loy__rule + .sl-loy__rule {
  margin-block-start: var(--space-sm);
  padding-block-start: var(--space-sm);
  border-block-start: 1px solid var(--sl-rule-2);
}

.sl-loy__rule dt {
  font-weight: 700;
}

.sl-loy__rule dd {
  margin: 0;
}

/* Küsimused: lihtne loend valgel, küsimus vastuse kohal */
.sl-loy__faq {
  min-width: 0;
}

.sl-loy__qa-list {
  margin-block-start: var(--space-xs);
}

.sl-loy__qa {
  padding-block: var(--space-sm);
}

.sl-loy__qa + .sl-loy__qa {
  border-block-start: 1px solid var(--sl-rule);
}

.sl-loy__qa dt {
  font-weight: 700;
}

.sl-loy__qa dd {
  max-width: 68ch;
  margin: var(--space-3xs) 0 0;
}

.sl-loy__join {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: var(--space-md);
  border-radius: var(--radius-card);
  background: var(--sl-paper-2);
}

.sl-loy__join-text {
  margin-block-start: var(--space-2xs);
}

.sl-loy__join .sl-loy__actions {
  align-self: stretch;
  margin-block-end: calc(-1 * var(--space-xs));
}

/* 6. „Näita kassas”: päris <dialog> täisekraanil, ainult kaart valgel, nii suur kui telefon lubab */
.sl-loy__till {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--space-md) var(--space-md) var(--space-3xl);
  border: 0;
  background: var(--sl-paper);
  color: var(--sl-ink);
  overflow-y: auto;
}

.sl-loy__till[open] {
  display: flex;
  flex-direction: column;
}

.sl-loy__till::backdrop {
  background: var(--sl-paper);
}

.sl-loy__till-bar {
  display: flex;
  justify-content: flex-end;
}

.sl-loy .sl-loy__till-close {
  width: auto;
  min-width: 0;
  min-height: var(--sl-tap);
  padding-block: var(--space-sm);
}

.sl-loy__till-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--sl-till-max);
  margin: auto;
  text-align: center;
}

.sl-loy__till-body .sl-loy__tag {
  margin-block-start: var(--space-xs);
}

/* Ribakoodi ümber valge vaikne tsoon (Code 128 vajab ~10 mooduli laiust valget mõlemale poole), et kassa loeks kindlalt */
.sl-loy__till-body .sl-loy__code {
  align-self: stretch;
  margin-block-start: var(--space-lg);
  padding-inline: var(--space-sm);
}

.sl-loy .sl-loy__till-body .sl-loy__code svg {
  height: var(--sl-code-tall);
}

.sl-loy__till-num {
  margin-block-start: var(--space-md);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--lh-h1);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.sl-loy__till-name {
  margin-block-start: var(--space-2xs);
  font-size: var(--text-lg);
  line-height: var(--lh-md);
}

.sl-loy__till-hint {
  max-width: 30ch;
  margin-block-start: var(--space-lg);
  color: var(--sl-muted);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}

/* Leht dialoogi taga ei keri (klass pannakse mallis JS-iga) */
html.sl-loy-lock,
html.sl-loy-lock body {
  overflow: hidden;
}

/* Alates 768px: tasemed reas, tase kaardi kõrval, tingimused küsimuste kõrval */
@media (min-width: 768px) {
  .sl-loy {
    padding-block-end: var(--space-3xl);
  }

  .sl-loy__link {
    padding-block: var(--space-2xs);
  }

  .sl-loy__btn {
    width: auto;
    min-width: var(--sl-btn-min);
  }

  .sl-loy__head {
    padding-block: var(--space-xs) var(--space-lg);
  }

  .sl-loy__actions {
    flex-direction: row;
    align-items: center;
    gap: var(--space-lg);
  }

  .sl-loy__actions .sl-loy__btn {
    align-self: auto;
  }

  .sl-loy__medal {
    --sl-medal: var(--sl-tap);
  }

  .sl-loy__tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
  }

  .sl-loy__tier {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    row-gap: 0;
    padding: var(--space-lg) var(--space-xl);
  }

  .sl-loy__tier-top {
    flex-wrap: nowrap;
  }

  .sl-loy__tier-name {
    font-size: var(--text-2xl);
  }

  .sl-loy__tier-state {
    margin-inline-start: auto;
  }

  .sl-loy__tier-pct {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-block-start: var(--space-lg);
    text-align: start;
  }

  .sl-loy__tier-fig {
    font-size: var(--text-6xl);
    line-height: var(--lh-fig);
  }

  .sl-loy__tier-unit {
    font-size: var(--text-lg);
    line-height: var(--lh-md);
  }

  .sl-loy__tier-sum {
    margin-block-start: var(--space-md);
    padding-block-start: var(--space-md);
    border-block-start: 1px solid var(--sl-rule-2);
  }

  .sl-loy__member {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
    margin-block-end: var(--space-md);
  }

  .sl-loy__status {
    grid-column: span 2;
    padding: var(--space-lg) var(--space-xl);
  }

  .sl-loy__stats {
    margin-block-start: var(--space-md);
  }

  .sl-loy__stat + .sl-loy__stat {
    margin-inline-start: var(--space-xl);
    padding-inline-start: var(--space-xl);
  }

  .sl-loy__stat dd {
    font-size: var(--text-5xl);
    line-height: var(--lh-h1-wide);
  }

  .sl-loy__next {
    margin-block-start: var(--space-md);
  }

  .sl-loy__status-more {
    margin-block: var(--space-2xs) calc(-1 * var(--space-xs));
  }

  .sl-loy__card {
    padding: var(--space-lg) var(--space-xl);
  }

  /* Laua taga näidatakse kaarti kassale harva, seega nupp astub tagasi (vaikne) */
  .sl-loy__card-act .sl-loy__btn {
    border-color: var(--sl-field);
    background: var(--sl-paper);
    color: var(--sl-ink);
  }

  .sl-loy__card-act .sl-loy__btn:active {
    border-color: var(--sl-ink);
    background: var(--sl-paper-2);
  }

  .sl-loy__section {
    margin-block-start: var(--space-2xl);
  }

  .sl-loy__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-block-start: var(--space-md);
  }

  .sl-loy__step {
    padding-inline-end: var(--space-xl);
  }

  .sl-loy__lower {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "rules faq faq"
      "join faq faq";
    align-items: start;
    gap: var(--space-md);
    margin-block-start: var(--space-2xl);
  }

  .sl-loy__rules {
    grid-area: rules;
    padding: var(--space-lg) var(--space-xl);
  }

  .sl-loy__faq {
    grid-area: faq;
    padding: var(--space-lg) 0 0 var(--space-xl);
  }

  .sl-loy__join {
    grid-area: join;
    padding: var(--space-lg) var(--space-xl);
  }

  .sl-loy__join .sl-loy__actions {
    margin-block-end: 0;
  }

  .sl-loy__till {
    padding: var(--space-lg) var(--space-xl) var(--space-3xl);
  }
}

/* Walleti märgid kõrvuti arvutis: 48 px kõrgusel vajavad Google + Apple + vahe kuni 383 px (fi), kolmandiku veerus on 342 px.
   Ainult siis, kui märgid on näha (:has), on kliendikaart laiem (456 px) ja olekukaart võtab ülejäänu; tavakliendi paigutus ei muutu.
   Ilma :has toeta jäävad märgid üksteise alla. */
@media (min-width: 1200px) {
  .sl-loy__member:has(.sl-loy__wallet) {
    grid-template-columns: minmax(0, 1fr) 456px;
  }

  .sl-loy__member:has(.sl-loy__wallet) .sl-loy__status {
    grid-column: auto;
  }
}

@media (min-width: 768px) and (hover: hover) {
  .sl-loy__card-act .sl-loy__btn:hover {
    border-color: var(--sl-ink);
    background: var(--sl-paper);
  }
}

/* Liikumine: vajutus ei liiguta nuppu, kui liikumist ei soovita */
@media (prefers-reduced-motion: reduce) {
  .sl-loy__btn,
  .sl-loy__link {
    transition: none;
  }

  .sl-loy__btn:active {
    transform: none;
  }
}

/* --- Teema lõksud --- */

/* Moodul ybc_blog laeb igal lehel #content-wrapper h1 { color: #1a1a1a !important; font-size: 28px; margin-bottom: 15px }
   (kaal 1,0,1) → H1 mõõdud ID-ga ja värv !important-iga (nagu klienditoe, esinduste ja kohaletoimetamise lehel). */
#content-wrapper .sl-loy .sl-loy__h1 {
  margin: 0;
  color: var(--sl-ink) !important;
  font-size: var(--text-3xl);
  line-height: var(--lh-h1);
}

@media (min-width: 768px) {
  #content-wrapper .sl-loy .sl-loy__h1 {
    font-size: var(--text-5xl);
    line-height: var(--lh-h1-wide);
  }
}

/* Teema reegel a:link:not(.nav-link):not(.btn) (kaal 0,3,1) värviks lingi halliks → värv muutujast --sll-link. Kaal 0,4,1. */
.sl-loy a:is(:link, :visited):not(.nav-link):not(.btn) {
  color: var(--sll-link, inherit);
}

.sl-loy a.sl-loy__btn:is(:link, :visited) {
  --sll-link: var(--sl-on-red);
  color: var(--sl-on-red);
}

/* Kristo 04.12: arvutis mahub sissejuhatus ühele reale */
@media (min-width: 768px) {
  .sl-loy .sl-loy__lede {
    max-width: none;
  }
}

/* Kristo 04.12: tasemekaardi summa („Ostud kokku alates 150 €”) suuremaks */
.sl-loy .sl-loy__tier-sum strong {
  font-size: var(--text-xl);
  line-height: 1.2;
}
@media (min-width: 768px) {
  .sl-loy .sl-loy__tier-sum strong {
    font-size: 24px;
  }
}

/* Kristo 04.12: „Veel X €” (palju järgmise tasemeni puudu) suuremaks */
.sl-loy .sl-loy__tier-state--next {
  font-size: var(--text-md);
  line-height: 1.2;
}
.sl-loy .sl-loy__tier-state--next .sl-loy__num {
  font-size: var(--text-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) {
  .sl-loy .sl-loy__tier-state--next .sl-loy__num {
    font-size: 24px;
  }
}
