/* Custom language surface, shared by navigation, mobile header and footer. */
.language-trigger,.language-menu-link { display:none; }
.has-i18n .language-trigger { display:inline-flex; align-items:center; justify-content:center; gap:9px; color:inherit; min-height:44px; padding:8px 12px; border:1px solid #dbe2d8; border-radius:12px; background:transparent; font:inherit; cursor:pointer; }
.language-trigger svg,.language-menu-link svg,.language-dialog svg { fill:none; stroke:currentColor; stroke-width:1.5; flex:none; }
.has-i18n .language-menu-link { display:inline-flex; align-items:center; gap:12px; padding:0; border:0; background:transparent; color:inherit; font-family:inherit; font-size:27px; line-height:1.15; letter-spacing:-.045em; font-weight:650; text-align:start; cursor:pointer; }
.language-menu-link svg { width:16px; height:16px; stroke-width:1.6; }
html[dir="rtl"] .language-menu-link svg { transform:rotate(180deg); }
.language-trigger:focus-visible,.language-menu-link:focus-visible { outline:2px solid #4f6654; outline-offset:4px; }
.closing-footer-bottom { flex-wrap:wrap; }
html.language-dialog-open { overflow:hidden; }
.language-dialog { position:fixed; inset:0; width:100%; height:100%; height:100dvh; max-width:none; max-height:none; margin:0; padding:24px; border:0; background:rgba(33,46,36,.18); backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px); color:#29382d; }
.language-dialog[open] { display:grid; place-items:center; }
.language-dialog::backdrop { background:transparent; }
.language-panel { position:relative; width:min(100%,540px); max-height:calc(100dvh - 48px); min-height:0; display:flex; flex-direction:column; padding:24px; gap:20px; border:1px solid #fff; border-radius:28px; background:#fff; box-shadow:0 28px 90px rgba(28,42,31,.18),0 4px 16px rgba(28,42,31,.06); }
.language-panel-header { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.language-panel-header h2 { margin:0; font-size:26px; line-height:1.2; letter-spacing:-.04em; font-weight:600; }
.language-close { display:grid; place-items:center; width:44px; height:44px; min-width:44px; padding:0; border:0; border-radius:50%; background:#f2f4f1; color:#657266; cursor:pointer; }
.language-options { display:flex; flex-direction:column; gap:4px; min-height:0; max-height:min(62dvh,420px); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#ccd6c9 transparent; padding:2px; margin:-2px; }
.language-option { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; min-height:57px; padding:11px 13px; border:0; border-radius:13px; background:transparent; color:#29382d; text-align:start; font:inherit; cursor:pointer; transition:background 120ms ease; }
.language-option-auto { background:#f6f8f4; margin-bottom:6px; }
.language-option[aria-pressed="true"] { background:#edf3eb; box-shadow:inset 0 0 0 1px #d7e3d2; }
.language-option-text { display:flex; flex-direction:column; gap:3px; min-width:0; }
.language-option-name { font-size:15px; font-weight:500; line-height:1.35; overflow-wrap:anywhere; }
.language-option-detail { font-size:12px; font-weight:400; line-height:1.35; color:#8a9487; overflow-wrap:anywhere; }
.language-option-check { width:19px; height:19px; color:#4f7653; opacity:0; stroke-width:2!important; }
.language-option[aria-pressed="true"] .language-option-check { opacity:1; }
.language-option:focus-visible,.language-close:focus-visible { outline:2px solid #738d73; outline-offset:1px; }
html[dir="rtl"] .xp-copy,html[dir="rtl"] .faq-list,html[dir="rtl"] .privacy .cell,html[dir="rtl"] .desktop-menu-content,html[dir="rtl"] .feedback .review { text-align:start; }
html[dir="rtl"] .faq-list details p { padding-right:0; padding-left:36px; }
.mobile-story { direction:ltr; }
html[dir="rtl"] .ms-label { direction:rtl; }
html:is(:lang(ar),:lang(he),:lang(hi),:lang(ja),:lang(ko),:lang(zh)) :is(.headline,.xp-copy h3,.closing h2,.hero-subtitle,.desktop-menu-primary,.language-panel-header h2) { letter-spacing:normal; line-height:1.25; }
.desktop-menu-primary,.desktop-menu-secondary,.closing-links a,.privacy .cell h3 { overflow-wrap:anywhere; }
@media (hover:hover) and (pointer:fine) {
 .language-option:hover { background:#f2f6ef; }
 .language-close:hover { background:#e9eee6; }
 .language-menu-link:hover { color:#799273; }
}
@media (max-width:640px) {
 .has-i18n .mobile-language-trigger { flex:none; display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:44px; min-height:36px; margin:0; padding:0 10px; border:1px solid rgba(111,140,116,.16); border-radius:980px; background:rgba(247,249,246,.9); font-size:12px; font-weight:650; font-variant-numeric:tabular-nums; letter-spacing:.04em; color:#4f6654; transition:transform 120ms var(--ease-out,cubic-bezier(.23,1,.32,1)), background 180ms ease, border-color 180ms ease; }
 .has-i18n .mobile-language-trigger:active { transform:scale(.96); }
 .mobile-lang-code { min-width:1.6em; text-align:center; }
 .closing-footer-bottom { column-gap:16px; row-gap:12px; }
 .language-dialog { padding:12px; padding-bottom:max(12px,env(safe-area-inset-bottom)); }
 .language-dialog[open] { align-items:end; }
 .language-panel { padding:20px 16px; max-height:calc(100dvh - 24px - env(safe-area-inset-bottom)); gap:16px; border-radius:24px; }
 .language-panel-header h2 { font-size:24px; }
 .language-options { max-height:min(58dvh,420px); }
 .language-option { padding:10px; gap:6px; }
 .language-option-name { font-size:14px; }
}
@media (max-width:380px) {
 .mobile-nav-title { max-width:9.5em; }
}
@media (prefers-reduced-motion:reduce) { .language-option { transition:none; } }
@media (prefers-reduced-transparency:reduce) { .language-dialog { backdrop-filter:none; -webkit-backdrop-filter:none; background:rgba(238,243,238,.96); } }
