
/* Language switch + LTR support — keeps existing look */
.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  margin-inline-end: 0.75rem;
  flex-shrink: 0;
}
.lang-switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(15, 92, 50, 0.28);
  background: #fff;
  color: var(--green-900, #0f5c32);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1.2;
}
.lang-switch-toggle:hover,
.lang-switch-toggle:focus-visible {
  border-color: var(--green-900, #0f5c32);
  outline: 2px solid rgba(15, 92, 50, 0.25);
  outline-offset: 2px;
}
.lang-switch-label { opacity: 0.7; font-weight: 300; }
.lang-switch-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  inset-inline-end: 0;
  min-width: 9.5rem;
  background: #fff;
  border: 1px solid rgba(15, 92, 50, 0.2);
  border-radius: 0.75rem;
  box-shadow: 0 10px 28px rgba(15, 40, 20, 0.14);
  padding: 0.35rem;
  z-index: 40;
}
.lang-option {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 300;
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  cursor: pointer;
}
.lang-option:hover,
.lang-option:focus-visible { background: rgba(15, 92, 50, 0.08); outline: none; }
.lang-option.is-active { background: rgba(15, 92, 50, 0.14); color: var(--green-900, #0f5c32); }

html[dir="ltr"] body {
  direction: ltr;
  text-align: start;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
}
html[dir="ltr"] .price-amount,
html[dir="ltr"] .pricing-amount .num,
html[dir="ltr"] .num { font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .lang-switch { margin-inline: 0.25rem 0.5rem; }
  .lang-switch-toggle { padding: 0.3rem 0.55rem; font-size: 0.8rem; }
  .lang-switch-label { display: none; }
}

/* Small flags, same marks as the app preview. Scoped so the account text switch stays a pill. */
.lang-switch-toggle:has(.flag) {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  gap: 0;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-weight: 300;
}
.lang-switch-toggle:has(.flag):hover,
.lang-switch-toggle:has(.flag):focus-visible {
  border-color: transparent;
  outline: 2px solid rgba(15, 92, 50, 0.25);
  outline-offset: 2px;
}
.flag {
  width: 22px;
  height: 15px;
  display: block;
  flex: 0 0 auto;
}
.flag svg {
  display: block;
  width: 22px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 0.5px var(--line, rgba(15, 92, 50, 0.35));
}
.lang-option:has(.flag) {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 300;
}
