/* OneVoice: selettore lingua con bandiere (assets/lang-picker.js) */
.lpick-native { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; opacity: 0 !important; pointer-events: none !important; }
.lpick { position: relative; display: inline-flex; flex: none; font-family: inherit; }
.lpick__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 12px 0 10px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 999px; background: transparent; color: inherit;
  font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1; cursor: pointer; white-space: nowrap;
}
.lpick__btn:hover { border-color: color-mix(in srgb, currentColor 40%, transparent); }
.lpick__btn:focus-visible, .lpick__list:focus-visible { outline: 2px solid #1a4be0; outline-offset: 2px; }
.lpick__flag { width: 20px; height: 15px; flex: none; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
.lpick-flagged::before { content: ""; display: inline-block; flex: none; width: 20px; height: 15px; margin-inline-end: 8px; vertical-align: -2px; border-radius: 2px; background: var(--lp-flag) center / cover no-repeat; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
.lpick__code { display: none; }
.lpick__chev { width: 12px; height: 12px; flex: none; opacity: .7; transition: transform .15s ease; }
.lpick.is-open .lpick__chev { transform: rotate(180deg); }
.lpick__list {
  position: absolute; z-index: 1200; inset-block-start: calc(100% + 6px); inset-inline-end: 0;
  width: 240px; max-height: min(420px, 70vh); overflow-y: auto; margin: 0; padding: 6px;
  list-style: none; background: #fff; color: #111;
  border: 1px solid rgb(17 17 17 / .14); border-radius: 14px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 16px 32px -16px rgb(0 0 0 / .25);
  overscroll-behavior: contain;
}
.lpick__list [role=option] {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px;
  border-radius: 8px; font-family: inherit; font-size: 15px; line-height: 1.2; cursor: pointer; color: #111;
}
.lpick__list [role=option]:hover, .lpick__list [role=option].is-active { background: #f1f3f8; }
.lpick__list [role=option][aria-selected="true"] { font-weight: 500; }
.lpick__list [role=option][aria-selected="true"]::after {
  content: ""; margin-inline-start: auto; width: 14px; height: 14px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.4 2.8 2.8 6.2-6.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.4 2.8 2.8 6.2-6.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 1100px) {
  .lpick__name { display: none; }
  .lpick__code { display: inline; }
}
@media (max-width: 639px) {
  .lpick__btn { padding: 0 10px; gap: 6px; }
  .lpick__list { position: fixed; inset: auto 12px 12px 12px; width: auto; max-height: 70vh; }
}
