/* One shared language selector for the four LALILL stories. */
.header .lalill-language-picker {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  z-index: 90;
  color: #652346;
  font-family: Arial, sans-serif;
}
.header .lalill-language-picker > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  min-width: 164px;
  margin: 0;
  padding: 5px 12px 5px 7px;
  border: 1.5px solid #cf77a2;
  border-radius: 999px;
  background: linear-gradient(115deg, #fff 40%, #fce8f2);
  box-shadow:
    0 3px 12px #94305d12,
    inset 0 0 0 2px #fff;
  cursor: pointer;
  list-style: none;
  text-align: left;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.header .lalill-language-picker > summary::marker,
.header .lalill-language-picker > summary::-webkit-details-marker {
  display: none;
  content: '';
}
.header .lalill-language-picker > summary:hover,
.header .lalill-language-picker[open] > summary {
  border-color: #b61d70;
  box-shadow:
    0 3px 15px #94305d21,
    inset 0 0 0 2px #fff;
}
.header .lalill-language-picker summary:focus-visible,
.header .lalill-language-picker a:focus-visible {
  outline: 3px solid #b61d70;
  outline-offset: 3px;
}
.lalill-language-globe {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}
.lalill-language-globe svg {
  display: block;
}
.lalill-language-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}
.lalill-language-copy small {
  color: #7d4a65;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.lalill-language-copy strong {
  color: #652346;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}
.lalill-language-chevron {
  flex: 0 0 12px;
  margin-left: auto;
  transition: transform 0.18s;
}
.lalill-language-picker[open] .lalill-language-chevron {
  transform: rotate(180deg);
}
.header .lalill-language-picker .lalill-language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  display: block;
  width: min(244px, calc(100vw - 32px));
  max-height: min(380px, 75vh);
  overflow-y: auto;
  margin: 0;
  padding: 9px;
  border: 1px solid #e9c2d5;
  border-radius: 20px;
  background: #fffafb;
  box-shadow: 0 14px 40px #67234426;
}
.lalill-language-title {
  margin: 5px 10px 9px;
  color: #855069;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.header .lalill-language-picker .lalill-language-option {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 45px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #50343f;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.25;
}
.header .lalill-language-picker .lalill-language-option:hover,
.header .lalill-language-picker .lalill-language-option[aria-current='page'] {
  border-color: #edc1d6;
  background: #f9e5ee;
  color: #8e1e54;
}
.lalill-language-code {
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  height: 29px;
  border-radius: 50%;
  background: #fff;
  color: #9b2760;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.lalill-language-check {
  margin-left: auto;
  color: #a92365;
  font-size: 16px;
}
@media (max-width: 760px) {
  .header .lalill-language-picker > summary {
    min-width: 143px;
    min-height: 44px;
    padding: 4px 9px 4px 5px;
    gap: 6px;
  }
  .lalill-language-copy strong {
    font-size: 12px;
  }
  .lalill-language-copy small {
    font-size: 8px;
  }
  .lalill-language-globe {
    flex-basis: 29px;
    width: 29px;
    height: 29px;
  }
  .lalill-language-globe svg {
    width: 29px;
    height: 29px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lalill-language-picker summary,
  .lalill-language-chevron {
    transition: none;
  }
}
