/* Language switch (D-069). */
/* Right-to-left pages (Arabic). Flex and grid mirror by themselves; these rules turn the
   few places that name a side explicitly. */
html[dir="rtl"] body.sector-shell { text-align: right; }
html[dir="rtl"] body.sector-shell[data-theme] :is(.card, .commerce-head .brand, .sector-search input, .header-search-wide input, th, td, .site-foot, .account-menu-panel a, .account-menu-panel button) { text-align: right; }
html[dir="rtl"] body.sector-shell :is(.nav-arrow, .crumb-sep) { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] body.sector-shell :is(input[type="email"], input[type="tel"], input[name="email"], input[name="phone"]) { direction: ltr; text-align: right; }
html[dir="rtl"] body.sector-shell .chrome-announce, html[dir="rtl"] body.sector-shell .stack-section[data-align="center"] { text-align: center; }

/* Language drop-down (T-230). */
body.sector-shell .lang-switch { position: relative; font-size: 13px; }
body.sector-shell .lang-switch summary { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .3rem .65rem; border: 1px solid var(--line, #e5e7eb); border-radius: 999px; cursor: pointer; list-style: none; font-weight: 600; }
body.sector-shell .lang-switch summary::-webkit-details-marker { display: none; }
body.sector-shell .lang-switch summary::after { content: "▾"; font-size: 10px; opacity: .6; }
body.sector-shell .lang-switch nav { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 70; display: grid; min-width: 150px; padding: .35rem; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; background: var(--card, #fff); box-shadow: 0 14px 34px rgb(15 23 42 / 14%); }
body.sector-shell .lang-switch nav a { padding: .5rem .7rem; border-radius: 8px; color: inherit; text-decoration: none; }
body.sector-shell .lang-switch nav a:hover { background: var(--te-color-surface-2, #f3f4f6); }
body.sector-shell .lang-switch nav a[aria-current] { font-weight: 700; }
body.sector-shell .site-foot .lang-switch { display: flex; justify-content: center; margin: .75rem 0; }
body.sector-shell .site-foot .lang-switch nav { top: auto; bottom: calc(100% + 6px); inset-inline-end: auto; }
@media (max-width: 900px) { body.sector-shell .sector-actions .lang-switch summary span { display: none; } }
