/* Language Switcher Button styles */

.lsb-switcher {
  position: relative;
  display: inline-block;
  font-family: inherit;
}

/* The trigger button */
.lsb-switcher .lsb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 6px 8px;
  font-size: 1.25rem;
  line-height: 1;
  color: white;
}

.lsb-switcher .lsb-button:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* The hover/focus panel */
.lsb-switcher .lsb-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  margin-top: 4px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 9999;

  /* Hidden by default; revealed on hover/focus. */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease;
}

/* Keep the panel reachable while the cursor travels from the button. */
.lsb-switcher .lsb-panel::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 6px;
}

/* Reveal on hover of the whole component, on keyboard focus,
   or when toggled open via JS (touch devices). */
.lsb-switcher:hover .lsb-panel,
.lsb-switcher:focus-within .lsb-panel,
.lsb-switcher.lsb-open .lsb-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Language options */
.lsb-switcher .lsb-option {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.95rem;
  color: #222222;
  cursor: pointer;
  white-space: nowrap;
}

.lsb-switcher .lsb-option:hover,
.lsb-switcher .lsb-option:focus {
  background: #f2f4f7;
  outline: none;
}

.lsb-switcher .lsb-option.lsb-active {
  font-weight: 600;
}
