/* Language switcher (installbox-lang-switch-001) */
.ibx-lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 11px;
  border: 1px solid rgba(11, 42, 46, .22); border-radius: 999px; background: transparent;
  color: inherit; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: .04em; cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.ibx-lang-btn:hover, .ibx-lang-btn[aria-expanded="true"] { background: rgba(11, 42, 46, .06); border-color: rgba(11, 42, 46, .4); }
.ibx-lang-btn:focus-visible { outline: 2px solid #12a3a8; outline-offset: 2px; }
.ibx-lang-btn svg:last-child { transition: transform .3s ease; }
.ibx-lang-btn[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }

/* Over dark homepage sections the nav switches to light text; follow it. */
body.ibx-nav-on-dark .ibx-lang-btn { border-color: rgba(255, 255, 255, .45); }
body.ibx-nav-on-dark .ibx-lang-btn:hover { background: rgba(255, 255, 255, .12); }

.ibx-lang-panel {
  position: fixed; z-index: 10060; min-width: 196px; padding: 6px; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .6);
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .74));
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 40px rgba(11, 42, 46, .16);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .22s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}
.ibx-lang-panel.is-open { opacity: 1; transform: none; }
.ibx-lang-panel[hidden] { display: none !important; }
.ibx-lang-panel a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px;
  border-radius: 12px; color: #0b2a2e !important; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none !important;
}
.ibx-lang-panel a b { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #52646a; }
.ibx-lang-panel a:hover, .ibx-lang-panel a:focus-visible { background: rgba(11, 42, 46, .06); outline: none; }
.ibx-lang-panel a.is-current { background: rgba(18, 163, 168, .12); }
.ibx-lang-panel a.is-current b { color: #0b7a75; }
.ibx-lang-panel a.is-current b::before { content: "✓ "; }

@media (max-width: 767px) {
  .ibx-lang-btn { height: 36px; padding: 0 9px; gap: 4px; }
  .ibx-lang-btn svg:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ibx-lang-panel, .ibx-lang-btn svg:last-child { transition: none; }
}
