.global-language-picker {
  position: relative;
  flex: 0 0 auto;
  margin-inline-start: auto;
  color: var(--ink);
  font-size: .86rem;
}

.global-language-picker summary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(23, 33, 27, .2);
  border-radius: 999px;
  background: rgba(255, 253, 247, .9);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.global-language-picker summary::-webkit-details-marker { display: none; }
.global-language-picker summary::after { content: "⌄"; color: var(--green); font-size: 1rem; line-height: 1; }
.global-language-picker[open] summary::after { transform: rotate(180deg); }
.global-language-picker summary span { color: var(--muted); font-size: .76rem; font-weight: 720; }
.global-language-picker summary strong { font-size: .84rem; }

.global-language-picker-options {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 40;
  display: grid;
  min-width: 190px;
  gap: 3px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 18px 48px rgba(23, 33, 27, .16);
}

.global-language-picker-options a {
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 740;
  text-decoration: none;
}

.global-language-picker-options a:hover,
.global-language-picker-options a:focus-visible { background: var(--green-2); color: var(--green); }
.global-language-picker-options a[aria-current="true"] { background: var(--green); color: #fff; }

@media (max-width: 800px) {
  .global-language-picker summary span { display: none; }
}

@media (max-width: 480px) {
  .global-language-picker summary { min-height: 38px; padding-inline: 10px; }
  .global-language-picker summary strong { max-width: 88px; overflow: hidden; text-overflow: ellipsis; }
  .global-language-picker-options { min-width: min(190px, calc(100vw - 32px)); }
}
