details.locale-picker {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  z-index: 120;
}

.locale-picker > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 88px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #36516b;
  border-radius: 10px;
  background: #0b1c2c;
  color: #edf5fc;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}

.locale-picker > summary::-webkit-details-marker { display: none; }
.locale-picker > summary::marker { content: ""; }
.locale-picker > summary::after,
.locale-picker[open] > summary::after,
.nav-more > summary::after,
.nav-more[open] > summary::after,
.mobile-more > summary::after,
.mobile-more[open] > summary::after {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border: solid #a4bdd3;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  transition: transform .16s ease;
}
.locale-picker[open] > summary::after,
.nav-more[open] > summary::after,
.mobile-more[open] > summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}
.locale-picker > summary:hover,
.locale-picker[open] > summary {
  background: #12283c;
  border-color: #567b9b;
}
.locale-picker > summary:focus-visible,
.locale-picker .locale-options a:focus-visible {
  outline: 2px solid #87c8ff;
  outline-offset: 3px;
}

.locale-picker .locale-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 184px;
  max-width: calc(100vw - 32px);
  min-width: 0;
  padding: 6px;
  border: 1px solid #35516a;
  border-radius: 14px;
  background: #102338;
  box-shadow: 0 16px 40px #0006;
}
.locale-picker .locale-options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 10px;
  border-radius: 8px;
  color: #d4e3f0;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.locale-picker .locale-options a + a { margin-top: 2px; }
.locale-picker .locale-options a:hover {
  background: #1b354e;
  color: #fff;
}
.locale-picker .locale-options a[aria-current="page"] {
  background: #193b59;
  color: #a7d7ff;
  font-weight: 600;
}
.locale-picker .locale-options a[aria-current="page"]::after {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 9px;
  margin: -3px 3px 0 0;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.nav-more > summary {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 360px) {
  .locale-picker > summary {
    min-width: 72px;
    padding-inline: 10px;
  }
  .locale-picker .locale-options {
    left: 0;
    right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .locale-picker > summary,
  .locale-picker > summary::after,
  .locale-picker[open] > summary::after,
  .nav-more > summary::after,
  .nav-more[open] > summary::after,
  .mobile-more > summary::after,
  .mobile-more[open] > summary::after,
  .locale-picker .locale-options a { transition: none; }
}
