details.locale-switches { position: relative; display: block; flex: none; z-index: 5; }
.locale-switches summary {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 10px; cursor: pointer; list-style: none;
  border: 1px solid #641f3233; border-radius: 8px; color: #641f32;
  font-size: 12px; font-weight: 700;
}
.locale-switches summary::-webkit-details-marker { display: none; }
.locale-switches summary svg { width: 19px; height: 19px; }
.locale-switches .locale-options {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px);
  width: min(304px, calc(100vw - 40px)); padding: 5px; background: #fffdfa;
  border: 1px solid #d8d4cc; border-radius: 8px; box-shadow: 0 8px 24px #29272320;
}
.locale-switches[open] .locale-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 4px;
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
}
.locale-switches .locale-options a {
  display: flex; align-items: center; min-height: 44px; padding: 0 10px;
  border-radius: 5px; color: #292723; font-size: 14px; font-weight: 500;
}
.locale-switches .locale-options a:hover,
.locale-switches .locale-options a:focus-visible { background: #641f320d; color: #641f32; }
details.locale-switches .locale-options a[aria-current] { background: #f2e5e8; color: #641f32; font-weight: 700; }
.locale-switches .locale-options a:focus-visible { outline: 2px solid #641f32; outline-offset: -2px; }
.locale-switches .locale-options a[aria-current]::after { content: none; }

