/* Shared Google-style language switcher — Desktop + Website */
.bb-lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  z-index: 80;
}

.bb-lang-switch__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2rem;
  padding: 0 0.7rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #fff;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.bb-lang-switch__trigger:hover {
  background: #f8fafc;
  border-color: #93c5fd;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.bb-lang-switch__trigger[aria-expanded='true'] {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.bb-lang-switch__panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(20rem, calc(100vw - 1.5rem));
  max-height: min(26rem, 70vh);
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.bb-lang-switch__panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

[dir='rtl'] .bb-lang-switch__panel {
  right: auto;
  left: 0;
}

.bb-lang-switch__search {
  padding: 0.75rem 0.75rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.bb-lang-switch__search input {
  width: 100%;
  height: 2.25rem;
  border-radius: 0.65rem;
  border: 1px solid #e2e8f0;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  outline: none;
  background: #f8fafc;
}

.bb-lang-switch__search input:focus {
  border-color: #93c5fd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.bb-lang-switch__section {
  padding: 0.35rem 0.5rem 0.15rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.bb-lang-switch__list {
  overflow: auto;
  padding: 0.25rem 0.4rem 0.55rem;
  flex: 1;
}

.bb-lang-switch__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  border-radius: 0.65rem;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  text-align: start;
  transition: background 0.12s ease, transform 0.1s ease;
}

.bb-lang-switch__item:hover,
.bb-lang-switch__item.is-active {
  background: #eff6ff;
}

.bb-lang-switch__item:hover {
  transform: translateX(1px);
}

[dir='rtl'] .bb-lang-switch__item:hover {
  transform: translateX(-1px);
}

.bb-lang-switch__native {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
}

.bb-lang-switch__english {
  display: block;
  font-size: 0.6875rem;
  color: #64748b;
  margin-top: 0.1rem;
}

.bb-lang-switch__check {
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 700;
}
