.lang-picker { position: absolute; top: 0.6rem; right: 0.75rem; z-index: 30; display: flex; align-items: center; gap: 0.7rem; }
/* Header buttons live in the picker row: filters, basket, account, language. */
.lang-picker > .bih-wrap, .lang-picker > .fpill-wrap { position: static; transform: none; right: auto; left: auto; top: auto; bottom: auto; z-index: auto; display: flex; }
.lang-picker > .fpill-wrap[hidden] { display: none; }
/* "My Account" icon button. */
.acct-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.08rem; height: 2.08rem; padding: 0;
  border-radius: 999px; background: var(--panel, #f2e7d6); border: 1px solid #e3d3bd; color: #0f4c4f; text-decoration: none;
  box-shadow: 0 1px 4px rgba(15, 76, 79, 0.1); backdrop-filter: blur(4px); transition: background-color 0.15s ease;
}
.acct-link::after { content: ""; position: absolute; inset: -6.5px; }
.acct-link:hover { background: rgba(240, 228, 210, 0.95); }
.acct-link:focus-visible { outline: 2px solid #b5533c; outline-offset: 1px; }
.acct-link svg { flex: none; }
.acct-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-pill {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px;
  background: var(--panel, #f2e7d6); border: 1px solid #e3d3bd;
  box-shadow: 0 1px 4px rgba(15, 76, 79, 0.1); backdrop-filter: blur(4px);
}
.lang-pill button {
  font: inherit; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.04em; line-height: 1;
  min-width: 2.1rem; padding: 0.42rem 0.6rem; border: 0; border-radius: 999px;
  background: transparent; color: #0f4c4f; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease;
}
.lang-pill button:hover { background: rgba(15, 76, 79, 0.08); }
.lang-pill button[aria-pressed="true"] { background: #0f4c4f; color: #f9f0e4; }
.lang-pill button:focus-visible { outline: 2px solid #b5533c; outline-offset: 1px; }
header .lang-picker { top: 50%; transform: translateY(-50%); }
@media (max-width: 26rem) {
  .lang-pill button { font-size: 0.7rem; min-width: 1.8rem; padding: 0.42rem 0.45rem; }
}
@media (max-width: 40rem) {
  header.has-lang { padding-bottom: 3.9rem; }
  header .lang-picker { top: auto; bottom: 0.5rem; transform: none; }
}

/* Sections wait for their translation behind a soft shimmer instead of showing English text. */
@keyframes trshim { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.tr-pending,
html.i18n-wait :is(.eyebrow,.tile,.grid > li,details.section > summary,details.section .desc,header h1,#detail > div:last-child,#qv .qbody) {
  color: transparent !important;
  background-image: linear-gradient(90deg, rgba(15,76,79,.06) 25%, rgba(15,76,79,.14) 50%, rgba(15,76,79,.06) 75%);
  background-size: 200% 100%; animation: trshim 1.4s linear infinite; border-radius: 6px;
}
.tr-pending *,
html.i18n-wait :is(.eyebrow,.tile,.grid > li,details.section > summary,details.section .desc,header h1,#detail > div:last-child,#qv .qbody) * { visibility: hidden !important; }
@media (prefers-reduced-motion: reduce) { .tr-pending, html.i18n-wait :is(.eyebrow,.tile,.grid > li,details.section > summary,details.section .desc,header h1,#detail > div:last-child,#qv .qbody) { animation: none; } }

/* Phones: language buttons get a 44px tap area (wider buttons, taller invisible extension). */
@media (max-width: 47.9rem) {
  /* Compact language buttons on phones, to leave room for the Search and My Favorites icons in the header row. */
  .lang-pill button { position: relative; min-width: 2rem; padding: 0.42rem 0.3rem; }
  .lang-pill button::after { content: ""; position: absolute; inset: -10px -1px; }
}
