/* ==========================================================================
   Orange Jordan QuickPay — layout-level styles
   Extracted verbatim from the inline <style> block that used to live in
   grails-app/views/layouts/quickpay.gsp. Inline <style> in a GSP is not
   allowed (OPC_CURSOR_GUIDE §3.3); the only reason it was inline was the
   GSP-interpolated font stack, which is now expressed with a [dir] selector.

   Loaded AFTER quickpay-recharge_ar.css so the cascade is unchanged.
   ========================================================================== */

/* --------------------------------------------------------------------------
   QuickPay font
   `dir` sits on <html>, so :root[dir="rtl"] swaps the stack for Arabic
   exactly as the old ${isArabic ? ... : ...} interpolation did.
   -------------------------------------------------------------------------- */
:root {
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

:root[dir="rtl"] {
    --font-family: 'Helvetica Neue Arabic', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
    font-family: var(--font-family);
}

/* --------------------------------------------------------------------------
   RTL adjustments for the Tailwind utilities used by the pages.
   These patch grails-app/assets/stylesheets/style.css, which is committed
   pre-built Tailwind output and must not be hand-edited.
   -------------------------------------------------------------------------- */
[dir="rtl"] .space-x-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

[dir="rtl"] .space-x-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

[dir="rtl"] .space-x-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

[dir="rtl"] .-ml-3 {
    margin-left: 0;
    margin-right: -0.75rem;
}

[dir="rtl"] .mr-4 {
    margin-right: 0;
    margin-left: 1rem;
}

[dir="rtl"] .mr-3 {
    margin-right: 0;
    margin-left: 0.75rem;
}

[dir="rtl"] .ml-auto {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .ml-1 {
    margin-left: 0;
    margin-right: 0.25rem;
}

[dir="rtl"] .ml-2 {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .text-left {
    text-align: right;
}

[dir="rtl"] .text-right {
    text-align: left;
}

/* --------------------------------------------------------------------------
   Shared animations / helpers
   -------------------------------------------------------------------------- */
@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
    animation: scale-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

