/* Right-to-left pages (Arabic, Hebrew, Persian, Urdu: tools/stage_languages.py links this file only there).
   Flex and grid already mirror under dir="rtl"; this turns around what the stylesheets fix to a side:
   pushed-over menus, start-aligned text, corner badges and the arrows that point "onwards". The browser and
   phone mock-ups keep their arrangement: they are pictures of screens, not text. */

/* Arrows that mean "go on" point the other way. */
[dir="rtl"] svg:has(> path[d^="M1 6h8"]),
[dir="rtl"] .m-arrow,
[dir="rtl"] .fix__arrow,
[dir="rtl"] .fix__arrow svg { transform: scaleX(-1); }
[dir="rtl"] .fix__arrow { display: inline-block; }

/* Cyber Monday page */
[dir="rtl"] .skip { left: auto; right: -999px; }
[dir="rtl"] .skip:focus { right: 8px; }
[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .top__cta { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .menu-btn { margin-left: 0; margin-right: auto; }
[dir="rtl"] .hero__badge { right: auto; left: 24px; justify-items: start; }
[dir="rtl"] .chat__head small { margin-left: 0; margin-right: auto; }
[dir="rtl"] .mail,
[dir="rtl"] .cmp th,
[dir="rtl"] .cmp td { text-align: right; }
[dir="rtl"] .tab::after { content: "‹"; margin-left: 0; margin-right: auto; }
[dir="rtl"] .cmp__note { right: auto; left: 0; }
[dir="rtl"] .idcard__seal { left: auto; right: 24px; }

/* Home page */
[dir="rtl"] .swatch { margin-right: 0; margin-left: 5px; }
