/* Language button and menu (03/12/2026). Works on the home page (--ink, --line, --surface) and on /pay and /pass (--av-*). */
.lang { position: relative; flex: none; --lg-ink: var(--ink, var(--av-ink)); --lg-line: var(--line, var(--av-line)); --lg-surface: var(--surface, var(--av-surface)); --lg-hover: var(--surface-2, var(--av-line)); }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px 0 11px; border-radius: 999px; border: 1px solid var(--lg-line); background: transparent; color: var(--lg-ink);
  font: 600 13px/1 var(--font-body); letter-spacing: .04em; cursor: pointer; transition: border-color .2s ease; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--lg-ink); }
.lang-btn img, .lang-menu img { display: block; width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(128, 128, 128, .4); flex: none; }
.lang-btn svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: rotate .2s ease; }
.lang-btn[aria-expanded="true"] svg { rotate: 180deg; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 184px; margin: 0; padding: 6px; list-style: none;
  background: var(--lg-surface); border: 1px solid var(--lg-line); border-radius: 14px; box-shadow: 0 18px 48px -18px rgba(0, 0, 0, .55); }
.lang-menu li { margin: 0; padding: 0; }
.lang-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--lg-ink);
  font: 500 15px/1.2 var(--font-body); text-align: left; cursor: pointer; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--lg-hover); outline: none; }
.lang-menu button:focus-visible { box-shadow: inset 0 0 0 2px var(--lg-ink); }
.lang-menu button[aria-checked="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-left: auto; }
/* the checkout pages: the button sits at the top right of the form column */
.lang-bar { display: flex; justify-content: flex-end; margin: 0 0 24px; }
/* home page: the nav is crowded on a phone, so the buttons get smaller and the code goes away */
@media (max-width: 440px) {
  .top .wrap { gap: 10px; }
  .mark { font-size: 17px; gap: 8px; }
  .mark svg { width: 24px; height: 24px; }
  .nav { gap: 8px; }
  .nav a.btn-ink { padding: 0 12px !important; }
  .nav .theme, .nav .lang-btn { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .nav .lang-btn .lang-code, .nav .lang-btn svg { display: none; }
  .top.slim .mark { font-size: 16px; }
}
.legal-note { color: var(--muted, var(--av-muted)); font-size: 14px; }
h1, h2, h3 { overflow-wrap: break-word; }
