/* Language picker (header menu, phone drawer, footer) and right-to-left
   layout for Arabic. Storefront only: the CRM never loads the storefront
   layout, so nothing here reaches it. */

/* ── header menu ─────────────────────────────────────────── */
html body .pn-lang{position:relative;flex:0 0 auto;order:-1}
html body .pn-lang>summary{display:inline-flex;align-items:center;gap:6px;height:var(--ctl-h,40px);padding:0 10px;border:1px solid rgba(226,218,255,.14);border-radius:12px;background:rgba(255,255,255,.03);color:#cfc8dc;font:600 11px/1 Inter,system-ui,sans-serif;letter-spacing:.04em;cursor:pointer;list-style:none;user-select:none}
html body .pn-lang>summary::-webkit-details-marker{display:none}
html body .pn-lang>summary:hover,html body .pn-lang[open]>summary{border-color:rgba(168,85,247,.55);color:#fff}
html body .pn-lang>summary:focus-visible{outline:2px solid #C084FC;outline-offset:2px}
html body .pn-lang__menu{position:absolute;top:calc(100% + 8px);inset-inline-end:0;z-index:90;display:grid;grid-template-columns:repeat(2,minmax(118px,1fr));gap:2px;padding:8px;border:1px solid rgba(226,218,255,.14);border-radius:14px;background:#141226;box-shadow:0 22px 40px rgba(0,0,0,.45)}
html body .pn-lang__menu a{display:block;padding:9px 11px;border-radius:9px;color:#d9d3e8;font:500 13px/1.25 Inter,system-ui,sans-serif;text-decoration:none;white-space:nowrap}
html body .pn-lang__menu a:hover,html body .pn-lang__menu a:focus-visible{background:rgba(168,85,247,.14);color:#fff;outline:none}
html body .pn-lang__menu a.is-on{background:rgba(168,85,247,.2);color:#fff;font-weight:700}

/* ── lists of every language (phone drawer and footer) ───── */
html body .pn-langs{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;color:#9a93b8}
html body .pn-langs>svg{flex:0 0 auto}
html body .pn-langs__label{font:700 10px/1 Orbitron,Inter,system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase}
html body .pn-langs__list{display:flex;flex-wrap:wrap;gap:4px 4px;min-width:0}
html body .pn-langs__list a{display:inline-flex;align-items:center;min-height:32px;padding:0 10px;border-radius:999px;color:#bdb5d1;font-size:12px;text-decoration:none;white-space:nowrap}
html body .pn-langs__list a:hover,html body .pn-langs__list a:focus-visible{background:rgba(255,255,255,.06);color:#fff}
html body .pn-langs__list a.is-on{background:rgba(168,85,247,.18);color:#fff;font-weight:600}
html body .pn-footer__langs{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:18px 0;border-top:1px solid rgba(226,218,255,.08)}
html body .pn-nav__langs{display:none}

@media (max-width:800px){
  html body .pn-lang{display:none}
  html body .pn-nav__langs{display:flex;margin-top:14px;padding-top:14px;border-top:1px solid rgba(226,218,255,.1)}
  html body .pn-nav .pn-nav__langs .pn-langs__list a{padding:0 10px;font-size:12px}
  html body .pn-footer__langs{width:calc(100% - 32px)}
}

/* legal pages kept in English */
.pn-i18n-note{width:min(760px,calc(100% - 32px));margin:24px auto 0;padding:12px 16px;border:1px solid rgba(168,85,247,.35);border-radius:12px;background:rgba(168,85,247,.08);color:#ddd6f3;font-size:13px;line-height:1.5}

/* ── right-to-left (Arabic) ──────────────────────────────── */
html[dir="rtl"] body{text-align:right}
html[dir="rtl"] body :is(input,textarea)[type="email"],html[dir="rtl"] body input[type="tel"],html[dir="rtl"] body input[type="url"]{direction:ltr;text-align:right}
html[dir="rtl"] body .pn-actions{margin:0 auto 0 0!important}
html[dir="rtl"] body .pn-footer__bottom span:nth-child(2){text-align:right}
html[dir="rtl"] body [translate="no"][lang="en"]{text-align:left}
/* arrows and chevrons point the reading direction */
html[dir="rtl"] body .pn-footer__go span[aria-hidden="true"],html[dir="rtl"] body .btn>span[aria-hidden="true"]{display:inline-block;transform:scaleX(-1)}
/* button sheen and brand glint start off the reading-start edge; in RTL that
   is the right, otherwise the hidden sheen widens the button's scroll area */
html[dir="rtl"] .btn::after{left:auto;right:-60%;transform:skewX(18deg)}
html[dir="rtl"] .btn:hover::after{animation-name:fx-sheen-rtl}
@keyframes fx-sheen-rtl{to{right:120%}}
html[dir="rtl"] .pnb-glint::after{left:auto;right:-40%;transform:skewX(18deg);animation-name:pnb-glint-rtl}
@keyframes pnb-glint-rtl{0%,70%{right:-40%}100%{right:130%}}

/* Japanese and Chinese: keep short labels in narrow columns from breaking
   one character per line */
html:is([lang="ja"],[lang="zh-Hans"]) body .dash-progress__tier :is(b,span){white-space:nowrap}
