.cosmobots-web-language-slot {
  display: flex;
  justify-content: flex-end;
  padding: 0.25rem 1rem;
}

.cosmobots-web-language-slot:not(:has(> .cosmobots-web-language)) {
  display: none;
}

#top-menu .profile-menu:has(> .cosmobots-web-language) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cosmobots-web-language {
  position: relative;
}

.cosmobots-web-language summary {
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  white-space: nowrap;
}

#top-menu .cosmobots-web-language summary:hover {
  background-color: rgb(255 255 255 / 12%);
}

.cosmobots-web-language form {
  position: absolute;
  z-index: 100;
  inset-inline-end: 0;
  min-width: 100%;
  padding: 0.25rem;
  background: Canvas;
  color: CanvasText;
  border: 1px solid currentColor;
  border-radius: 0.2rem;
}

.cosmobots-web-language button {
  display: block;
  width: 100%;
  padding: 0.25rem 0.5rem;
}

.cosmobots-web-language button[aria-pressed="true"] {
  font-weight: bold;
}

.flyout-menu .cosmobots-web-language summary {
  padding: 0.5rem 1rem;
}

.flyout-menu .cosmobots-web-language form {
  position: static;
  min-width: 0;
  margin-inline: 1rem;
}

.cosmobots-web-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cosmobots-web-plugin-notice {
  padding: 0.5rem 1rem;
  text-align: center;
}
