/* Right-to-left overrides for intake.css (ar, he). Load right after intake.css: <link rel="stylesheet" href="/website-20261030-flow-r8/assets/intake-rtl.css">.
   Every selector is wrapped in :where([dir=rtl]) so it keeps the specificity of the intake.css rule it mirrors and wins only by coming later;
   each media-query variant in intake.css that sets the same property is mirrored here in the same order.
   Not mirrored on purpose: the brand marks (logo, dual-dialogue mark), and the legacy guide-* rules (choice cards, tiles, composer, accounts)
   that no file in website/dist uses any more. Flex justify-content:flex-start/flex-end and row-reverse follow the direction by themselves. */

/* Entries under the homepage sections and the hero button: a blue arrow that points the reading way and nudges that way on hover. */
:where([dir=rtl]) .request-motion-control>.guide-entry,:where([dir=rtl]) .stream-footer>.guide-entry{margin-left:0;margin-right:auto}
:where([dir=rtl]) .entry-arrow svg{transform:scaleX(-1)}
:where([dir=rtl]) .guide-entry>button:hover .entry-arrow{transform:translateX(-2px)}
:where([dir=rtl]) .hero .button.primary:hover .entry-arrow{transform:translateX(-2px)}
:where([dir=rtl]) .guide-entry>button{padding:0 16px 0 10px}
:where([dir=rtl]) .guide-entry .entry-brand-mark{margin-right:0;margin-left:2px}
:where([dir=rtl]) .hero .button.primary{padding:0 20px 0 14px}

/* The floating window sits in the bottom-left corner. */
:where([dir=rtl]) .envori-guide{inset:auto auto 24px 24px}
:where([dir=rtl]) .guide-window-header{padding:14px 26px 8px 18px}
:where([dir=rtl]) .intake-guide .guide-window-header{padding:14px var(--ax) 0 12px}

/* The card, the hints and the send corner. */
:where([dir=rtl]) .row-value .fill.is-sub{margin-left:0;margin-right:8px}
:where([dir=rtl]) .intake-tabs.is-cut-end{-webkit-mask:linear-gradient(270deg,#000 calc(100% - 44px),#0000);mask:linear-gradient(270deg,#000 calc(100% - 44px),#0000)}
:where([dir=rtl]) .intake-tabs.is-cut-start{-webkit-mask:linear-gradient(270deg,#0000,#000 44px);mask:linear-gradient(270deg,#0000,#000 44px)}
:where([dir=rtl]) .intake-tabs.is-cut-start.is-cut-end{-webkit-mask:linear-gradient(270deg,#0000,#000 44px calc(100% - 44px),#0000);mask:linear-gradient(270deg,#0000,#000 44px calc(100% - 44px),#0000)}
:where([dir=rtl]) .intake-tab:has(svg){padding-left:11px;padding-right:8px}
:where([dir=rtl]) .intake-chip{text-align:right}
:where([dir=rtl]) .intake-chip.is-dir{padding:6px 6px 6px 16px}
:where([dir=rtl]) .is-tight .intake-chip.is-dir{padding:4px 4px 4px 13px}
:where([dir=rtl]) .intake-guide .intake-activate{text-align:right}
:where([dir=rtl]) .intake-app{padding:0 7px 0 14px}
:where([dir=rtl]) .intake-copy svg{margin-left:0;margin-right:4px}
/* The email channel's send button falls back to the plain arrow (the two app glyphs carry a class and are not mirrored). */
:where([dir=rtl]) .intake-guide .intake-open>svg:not([class]){transform:scaleX(-1)}

/* Header pieces kept in intake.css: navigation, language menu. */
:where([dir=rtl]) .main-nav{margin-left:0;margin-right:auto}
:where([dir=rtl]) .language-panel{right:auto;left:0}
:where([dir=rtl]) .language-options .language-option{padding:9px 12px 9px 28px;text-align:right}
:where([dir=rtl]) .language-options .language-option .icon{right:auto;left:9px}
:where([dir=rtl]) .language-picker summary{padding:0 11px 0 13px}

/* Homepage cards: the "Hand over something similar" button sits bottom-left and text clears it on the left. Its .entry-hint is hidden on cards and
   static on .story-start, so it needs no override. The back-face .turn-fold is placed by styles.css and is left to its RTL pass. */
:where([dir=rtl]) .story-front .conversation-heading>.icon{margin-left:0;margin-right:auto}
:where([dir=rtl]) .card-face-trigger{text-align:right}
:where([dir=rtl]) .voice-signature,:where([dir=rtl]) .voice-back .turn-hint,:where([dir=rtl]) .offer-card .turn-hint{padding-right:0;padding-left:156px}
:where([dir=rtl]) .card-connect{right:auto;left:20px;padding:0 9px 0 14px}
:where([dir=rtl]) .story-start{padding:0 9px 0 14px}

@media(max-width:740px){
 :where([dir=rtl]) .stream-footer>.guide-entry{margin-right:0}
 :where([dir=rtl]) .envori-guide{inset:auto auto 16px 16px}
 :where([dir=rtl]) .guide-window-header{padding:12px 23px 6px 14px}
 :where([dir=rtl]) .intake-guide{inset:auto 12px 12px}
 :where([dir=rtl]) .intake-guide .guide-window-header{padding:11px var(--ax) 0 8px}
 :where([dir=rtl]) .intake-tabs{margin-right:0;margin-left:calc(var(--pad) - var(--ax))}
 :where([dir=rtl]) .guide-entry>button{padding:0 16px 0 8px}
 :where([dir=rtl]) .card-connect,:where([dir=rtl]) .story-start{padding:0 8px 0 12px}
}

/* Codes, phone numbers and addresses are Latin strings: keep them left-to-right inside RTL text, so "#mintfox1" never shows as "mintfox1#". */
:where([dir=rtl]) .intake-code,:where([dir=rtl]) .intake-copy span{direction:ltr;unicode-bidi:isolate}
