/* ===================== LANGUAGE SWITCHER (shared across all pages) =====================
   Self-contained: values are hardcoded rather than reading each page's own CSS
   variables, since page stylesheets don't share a consistent design-token naming
   scheme (e.g. index.css's --border-green vs deposit.css's --border-color). */

.lang-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: #ffffff;
  border: 1px solid rgba(9, 72, 42, 0.12);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, background 0.2s;
  z-index: 400;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.lang-dropdown:hover,
.lang-dropdown.open {
  border-color: #007337;
  background: #fafffe;
}

.lang-flag {
  flex-shrink: 0;
  width: 22px;
  height: 15px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.lang-label {
  color: #151817;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.lang-arrow {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background: url(../images/cGZjuOPY1O.svg) no-repeat center;
  background-size: cover;
  transition: transform 0.2s;
}

.lang-dropdown.open .lang-arrow {
  transform: rotate(180deg);
}

/* Panel opens upward since the switcher lives in the footer */
.lang-panel {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border: 1px solid rgba(9, 72, 42, 0.12);
  border-radius: 12px;
  box-shadow: 0 -8px 24px rgba(14, 40, 22, 0.12);
  z-index: 9999;
  overflow: hidden;
  box-sizing: border-box;
}

.lang-panel.open {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.lang-option:hover {
  background: #ecfdf5;
}

.lang-option.selected {
  background: rgba(0, 115, 55, 0.06);
}

.lang-opt-flag {
  flex-shrink: 0;
  width: 22px;
  height: 15px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.lang-opt-name {
  font-size: 13px;
  font-weight: 600;
  color: #151817;
}
