/* TASK-2433: language picker + right-to-left fixes for Arabic and Urdu. */
.i18n-wait #app { visibility: hidden; }
.lang-pick { position: fixed; inset: 0; z-index: 1100; background: rgba(10, 25, 45, .55); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lang-pick-card { background: #fff; color: var(--ink, #162a42); width: 100%; max-width: 380px; border-radius: 18px; padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); }
.lang-pick-card h2 { margin: 0 0 6px; font-size: 17px; line-height: 1.5; text-align: center; }
.lang-pick-btn { min-height: 52px; border-radius: 12px; border: 1px solid var(--line, #dce4ed); background: #f6f9fc; color: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.lang-pick-btn.on, .lang-pick-btn:focus-visible { border-color: var(--navy, #153f69); box-shadow: 0 0 0 2px var(--navy, #153f69) inset; }
html[dir="rtl"] body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, "Noto Naskh Arabic", "Noto Nastaliq Urdu", sans-serif; }
html[lang="ur"] body { line-height: 1.7; }
/* Prices, phone numbers and quantities stay left-to-right inside right-to-left text. */
html[dir="rtl"] .price, html[dir="rtl"] .pr, html[dir="rtl"] .qty, html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="number"] { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="number"] { text-align: right; }
html[dir="rtl"] .pwwrap .eye { right: auto; left: 8px; }
html[dir="rtl"] .pwwrap input { padding-left: 48px; padding-right: 12px; }
html[dir="rtl"] .ctile, html[dir="rtl"] .dept, html[dir="rtl"] .chip { word-break: normal; overflow-wrap: normal; hyphens: none; }
/* A word longer than the whole chip still breaks (anywhere only splits a word that cannot fit on its own line, and lets the flex chip shrink). */
html[dir="rtl"] .chip { overflow-wrap: anywhere; }
html[dir="rtl"] .chip b, html[dir="rtl"] .chip span { margin-inline-start: 4px; }
html[dir="rtl"] .ctile b { margin-inline-end: 4px; }
html[dir="rtl"] #a_pin { direction: ltr; text-align: right; }
html[dir="rtl"] #shop-brands .ctile span { margin-left: 0; margin-inline-start: 7px; }
html[dir="rtl"] #shop-brands .ctile { text-align: right; }
html[dir="rtl"] #shop-brands .ctile span { unicode-bidi: isolate; display: inline-block; }
