/*
 * Direction-explicit fixes served OUTSIDE the Vite/postcss pipeline.
 *
 * The build runs rtlcss over all bundled CSS, which splits SweetAlert's
 * success-checkmark geometry into [dir=rtl]/.ltr variants and mirrors the
 * icon into a "V" in RTL. This file bypasses that processing entirely and
 * asserts the correct checkmark geometry for RTL; the LTR case keeps the
 * vendor's original rules untouched.
 */

/*
 * Email / URL / phone inputs hold inherently-LTR values. In an RTL form the
 * bidi algorithm reorders values that start with digits (2341004@gmail.com
 * rendered as gmail.com@2341004). Force logical LTR order while keeping the
 * right alignment of the RTL form. (direction:ltr written inside the bundle
 * would itself be flipped by rtlcss - hence this file.)
 */
[dir=rtl] input[type=email],
[dir=rtl] input[type=url],
[dir=rtl] input[type=tel] {
    direction: ltr;
    text-align: right;
}

[dir=rtl] .swal2-icon.swal2-success [class^=swal2-success-line][class$=tip] {
    top: 2.875em;
    left: 0.8125em !important;
    right: auto !important;
    width: 1.5625em;
    transform: rotate(45deg) !important;
}

[dir=rtl] .swal2-icon.swal2-success [class^=swal2-success-line][class$=long] {
    top: 2.375em;
    right: 0.5em !important;
    left: auto !important;
    width: 2.9375em;
    transform: rotate(-45deg) !important;
}
