/* ============================================================
   Public pages — the footer line, the language switch, the cookie
   banner (assets/js/site.js) and the order summary (2026-10-18)
   ------------------------------------------------------------
   Same tokens as the rest of the site, so light and dark follow.
   Everything wraps: nothing here may push a 390 px screen sideways.
   ============================================================ */

.fm-sitefoot { font-size: 13px; line-height: 1.6; color: var(--on-surface-variant); text-align: center; overflow-wrap: anywhere; }
.fm-sitefoot p { margin: 0 0 6px; }
.fm-sitefoot a { color: var(--primary); text-decoration: none; }
.fm-sitefoot a:hover { text-decoration: underline; }
.fm-sitefoot__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; }
.fm-sitefoot__lang { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--outline); border-radius: 999px; }
.fm-sitefoot__lang button {
  font: inherit; font-size: 12px; border: 0; background: transparent; color: var(--on-surface-variant);
  padding: 3px 10px; border-radius: 999px; cursor: pointer;
}
.fm-sitefoot__lang button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary, #fff); }

/* ---------- (2026-11-11) EN | FR at the top of public pages ----------
   site.js fills every [data-lang-switch]. Small, never wraps — the French
   page is longer everywhere else, this stays two letters. */
[data-lang-switch] { display: inline-flex; flex: none; }
.fm-langswitch {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px;
  border: 1px solid var(--outline, #DAE6F7); border-radius: 999px;
  background: var(--surface, #fff); white-space: nowrap;
}
.fm-langswitch button {
  font: 600 12px/1 var(--fm-font, inherit); letter-spacing: .04em;
  min-inline-size: 34px; block-size: 26px; padding: 0 8px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--on-surface-variant, #51627F); cursor: pointer;
}
.fm-langswitch button:hover { color: var(--on-surface, #0A1A33); }
.fm-langswitch button:focus-visible { outline: 2px solid var(--primary, #0B63F6); outline-offset: 1px; }
.fm-langswitch button[aria-pressed="true"] { background: var(--primary, #0B63F6); color: var(--on-primary, #fff); }
.fm-langswitch__bar { inline-size: 1px; block-size: 14px; background: var(--outline, #DAE6F7); }
/* login · verify · reset: top corner of the card column */
.fm-auth__lang { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; z-index: 2; }
@media (max-width: 940px) {
  .fm-auth__main:has(> .fm-auth__lang) { padding-block-start: 60px; }
}

/* ---------- the cookie question ---------- */
.fm-consent {
  position: fixed; z-index: 1000;
  inset-inline: 12px; inset-block-end: 12px;
  max-inline-size: 560px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 12px 14px;
  background: var(--surface, #fff); color: var(--on-surface, #0A1A33);
  border: 1px solid var(--outline, #DAE6F7); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(10, 26, 51, .18);
  font-size: 13px; line-height: 1.5;
}
.fm-consent__text { flex: 1 1 260px; margin: 0; }
.fm-consent__text a { color: var(--primary); }
.fm-consent__actions { display: flex; gap: 8px; margin-inline-start: auto; }
.fm-consent__btn {
  font: inherit; font-weight: 600; border-radius: 999px; padding: 7px 14px; cursor: pointer;
  border: 1px solid var(--outline, #C7DBFB); background: transparent; color: var(--on-surface, #0A1A33);
}
.fm-consent__btn--yes { background: var(--primary, #0B63F6); border-color: var(--primary, #0B63F6); color: var(--on-primary, #fff); }

/* ---------- the sign-in notice ---------- */
.fm-consent-line { font-size: 13px; line-height: 1.5; color: var(--on-surface-variant); margin: 12px 0 0; text-align: center; }
.fm-consent-line a { color: var(--primary); }
