/* Arabic (right-to-left) adjustments. Loaded with assets/css/arabic-font.css on the /ar/ pages (inc/i18n.php). */

/* Arabic letters join: no letter-spacing, no forced capitals anywhere */
html[dir="rtl"] *, html[dir="rtl"] *::before, html[dir="rtl"] *::after { letter-spacing: 0 !important; text-transform: none !important; }
html[dir="rtl"] body { line-height: 1.75; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { line-height: 1.3; }

/* Card, stand and phone illustrations are pictures of printed items in English: keep their text left to right */
.nbc-ar .card3d, .nbc-ar .cf, .nbc-ar .stand, .nbc-ar .phone, .nbc-ar .rscene, .nbc-ar .viz, .nbc-ar .proofsheet, .nbc-ar .qr,
.nbc-ar .cluster, .nbc-ar .fan, .nbc-ar .scene, .nbc-ar .tagr, .nbc-ar .nbc-loop-stage, .nbc-ar .mini-form, .nbc-ar .dashboard { direction: ltr; text-align: left; }

/* Top bar: the language switch */
.nbc .util .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nbc .util .lang { flex: 0 0 auto; }
.nbc .util .lang a.nbc-lang { display: inline-flex; align-items: center; min-height: 26px; padding: 0 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; font-size: .82rem; font-weight: 600; text-decoration: none; }
.nbc .util .lang a.nbc-lang:hover { background: rgba(255,255,255,.14); }
@media (max-width: 700px) { .nbc .util .msgs span:nth-child(n+2) { display: none; } }

/* Arrows and chevrons point the other way */
html[dir="rtl"] .nbc-link-arrow .elementor-button-icon, html[dir="rtl"] .nbc .ico-arrow, html[dir="rtl"] .nbc a .ico[href$="arrow"],
html[dir="rtl"] .nbc-link-arrow svg, html[dir="rtl"] .elementor-button .elementor-button-icon svg { transform: scaleX(-1); }

/* Quoted and callout blocks: the accent bar goes on the reading side */
.nbc-ar .nbc-short-answer { border-left: 0; border-right: 3px solid var(--purple); border-radius: var(--r-card) 0 0 var(--r-card); }
.nbc-ar .nbc-prose blockquote { border-left: 0; border-right: 3px solid var(--purple); border-radius: var(--r-card) 0 0 var(--r-card); }
.nbc-ar .nbc-prose :is(ul, ol), .nbc-ar .single-post .entry-content :is(ul, ol) { padding-left: 0; padding-right: 1.25em; }

/* Tables read right to left */
.nbc-ar .nbc-table-wrap :is(th, td), .nbc-ar .nbc .tbl :is(th, td) { text-align: right; }
.nbc-ar .nbc .tbl td.num { text-align: right; }
@media (max-width: 600px) { .nbc-ar .nbc-stack td { text-align: left; } .nbc-ar .nbc-stack td::before { text-align: right; } }

/* Prices and codes keep their own direction inside Arabic text */
.nbc-ar .price, .nbc-ar .amount, .nbc-ar .nbc-packhint, .nbc-ar .tiers b { unicode-bidi: plaintext; }
.nbc-ar .tiers b { direction: ltr; unicode-bidi: isolate; }
.nbc-ar .wa-num, .nbc-ar a[href^="tel:"]:not(.mbar-call) { direction: ltr; unicode-bidi: isolate; }
.nbc-ar .wa-num { display: inline-block; }

/* Product cards and badges */
.nbc-ar .nbc-pill { left: auto; right: 14px; }
.nbc-ar .woocommerce ul.products li.product.loop-entry .product-details { text-align: right; }
.nbc-ar .single-product .summary .nbc-pill { right: auto; }
.nbc-ar .nbc .nbc-choice, .nbc-ar .nbc .nbc-fulfil label { text-align: right; }

/* Floating WhatsApp button sits on the opposite corner */
.nbc-ar .nbc .wa { right: auto; left: max(18px, calc(env(safe-area-inset-left, 0px) + 18px)); }
@media (max-width: 767px) { .nbc-ar .nbc .mbar { direction: rtl; } }

/* Footer */
.nbc-ar .nbc .ftr { text-align: right; }
.nbc-ar .nbc .legal { flex-direction: row; }

/* Forms */
.nbc-ar .nbc-form label, .nbc-ar .elementor-field-label { text-align: right; }
.nbc-ar input[type="email"], .nbc-ar input[type="tel"], .nbc-ar input[type="url"], .nbc-ar input[type="number"] { direction: ltr; text-align: right; }

/* Quantity price tiers: ranges like 6–10 and 11+ keep their order */
.nbc-ar .nbc .tiers > * { direction: ltr; unicode-bidi: isolate; }

/* Phone bar: Arabic text sits lower in its line, so tighten the line to keep the icon level with it */
html[dir="rtl"] .nbc .mbar a { line-height: 1.15; padding-top: 2px; }
