/* Language switcher — product nav, site nav, RTL */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.2;
}

.lang-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  cursor: pointer;
  color: inherit;
  white-space: nowrap;
}

.lang-switch-globe {
  font-size: 1.1em;
  line-height: 1;
}

.lang-switch-select {
  min-height: 44px;
  max-width: 100%;
  padding: 0.4rem 2rem 0.4rem 0.65rem;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 0.5rem;
  background-color: color-mix(in srgb, Canvas 92%, transparent);
  color: inherit;
  font: inherit;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) calc(50% - 0.15rem),
    calc(100% - 0.85rem) calc(50% - 0.15rem);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.lang-switch-select:focus-visible {
  outline: 2px solid color-mix(in srgb, currentColor 55%, transparent);
  outline-offset: 2px;
}

footer .lang-switch-select,
.wrap footer .lang-switch-select {
  min-width: 9.5rem;
}

@media (max-width: 720px) {
  footer .lang-switch-select,
  .wrap footer .lang-switch-select {
    flex: 1 1 auto;
    width: 100%;
    max-width: 16rem;
  }
}

[dir="rtl"] .lang-switch-select {
  padding: 0.4rem 0.65rem 0.4rem 2rem;
  background-position: 1.1rem calc(50% - 0.15rem), 0.85rem calc(50% - 0.15rem);
}

[dir="rtl"] .lang-switch-label {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer,
[dir="rtl"] .wrap footer {
  direction: rtl;
}

[dir="rtl"] .faq-list details summary {
  text-align: start;
}

[dir="rtl"] .format-layout {
  direction: rtl;
}
