
/* toggles mirror cleanly when the layout is right to left, in every theme: the knob sits at the right when off and slides left when on (a later glass and light rule put it back on the left, so it slid out of the pill) */
:root[dir="rtl"] .switch i::after, :root[dir="rtl"] .switch input:checked + i::after { left: auto !important; right: 3px !important; }

:root[dir="rtl"][data-theme="light"] .switch i::after, :root[dir="rtl"][data-theme="light"] .switch input:checked + i::after { right: 2px !important; }
:root[dir="rtl"] .switch input:checked + i::after { transform: translateX(-30px) !important; }
:root[dir="rtl"] .switch i::before { right: auto !important; left: 9px !important; }
