.local-popover {
  position: fixed;
  z-index: 10000;
  max-height: calc(100vh - 88px);
  overflow: auto;
  padding: 8px;
  color: #f0f3fa;
  background: #1e222d;
  border: 1px solid #434651;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 32%);
}

.local-language-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(380px, calc(100vw - 24px));
  gap: 2px;
}

.local-installer-menu {
  width: 220px;
}

.local-popover-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.local-popover-item:hover,
.local-popover-item:focus-visible {
  background: #2a2e39;
  outline: 0;
}

.local-popover-item[aria-current="true"] {
  color: #2962ff;
  background: #2a2e39;
}

input[type="range"] {
  pointer-events: none;
}

@media (prefers-color-scheme: light) {
  html:not(.theme-dark) .local-popover {
    color: #131722;
    background: #fff;
    border-color: #e0e3eb;
    box-shadow: 0 8px 24px rgb(0 0 0 / 14%);
  }

  html:not(.theme-dark) .local-popover-item:hover,
  html:not(.theme-dark) .local-popover-item:focus-visible,
  html:not(.theme-dark) .local-popover-item[aria-current="true"] {
    background: #f0f3fa;
  }
}

@media (max-width: 767px) {
  .local-language-menu {
    grid-template-columns: 1fr;
    width: auto;
  }

  .local-installer-menu {
    width: auto;
  }
}
