/* Maniflood language picker + RTL support.
 * The picker is mounted by i18n.js as <select id="lang-select"> inside #lang-picker. */

.lang-picker {
  display: inline-flex;
  align-items: center;
  margin-inline-start: auto;
}

#lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(11, 17, 32, 0.85)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%238497bd' d='M3 4.5L6 7.5L9 4.5'/></svg>")
    no-repeat;
  background-position: right 0.55rem center;
  border: 1px solid #1e2c46;
  color: #eaf0fb;
  border-radius: 9px;
  padding: 0.4rem 1.7rem 0.4rem 0.65rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.1;
}

#lang-select:hover {
  border-color: #3ad6c5;
}

#lang-select:focus {
  outline: none;
  border-color: #3ad6c5;
  box-shadow: 0 0 0 2px rgba(58, 214, 197, 0.18);
}

#lang-select option {
  background: #0e1626;
  color: #eaf0fb;
}

/* Right-to-left locales (ar, he): flip flow + move the picker chevron. */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] #lang-select {
  background-position: left 0.55rem center;
  padding: 0.4rem 0.65rem 0.4rem 1.7rem;
}

html[dir="rtl"] .flood-nav .spacer {
  margin-inline-start: 0;
  margin-inline-end: auto;
}
