/* ==========================================================================
   Clinic Manager Pro — RTL Overrides
   Applied when lang=ar or lang=ku (dir="rtl")
   ========================================================================== */

[dir="rtl"] .cm-header__brand    { flex-direction: row-reverse; }
[dir="rtl"] .cm-header__actions  { flex-direction: row-reverse; }
[dir="rtl"] .cm-slider__arrow--prev { right: auto; left: 1.5rem; }
[dir="rtl"] .cm-slider__arrow--next { left: auto; right: 1.5rem; }
[dir="rtl"] .cm-ticker__content  { animation-name: cm-ticker-scroll-rtl; }
[dir="rtl"] .cm-ticker__label    { border-left: none; border-right: 1px solid rgba(255,255,255,.2); }
[dir="rtl"] .cm-drawer { right: auto; left: -360px; border-left: none; border-right: 1px solid rgba(20,20,30,.5); }
[dir="rtl"] .cm-drawer.open { left: 0; }
[dir="rtl"] .cm-ai-bubble  { left: auto; right: 1.5rem; }
[dir="rtl"] .cm-ai-widget  { left: auto; right: 1.5rem; transform-origin: bottom right; }
[dir="rtl"] .cm-ba-label--before { right: auto; left: .75rem; }
[dir="rtl"] .cm-ba-label--after  { left: auto; right: .75rem; }
[dir="rtl"] .cm-review-author   { flex-direction: row-reverse; }
[dir="rtl"] .cm-slide__content  { margin-right: 0; }
[dir="rtl"] .cm-hero-3d__content { direction: rtl; }
[dir="rtl"] .cm-faq-question    { text-align: right; }
[dir="rtl"] .cm-star-picker     { flex-direction: row; }
[dir="rtl"] .cm-form-group input,
[dir="rtl"] .cm-form-group textarea,
[dir="rtl"] .cm-form-group select { text-align: right; direction: rtl; }
[dir="rtl"] select option        { direction: rtl; }
[dir="rtl"] .cm-footer__inner   { direction: rtl; }
[dir="rtl"] .cm-footer__links a::before { content: none; }
[dir="rtl"] .cm-booking-step-divider { transform: none; }
[dir="rtl"] .cm-modal__content  { direction: rtl; text-align: right; }
[dir="rtl"] .cm-ai-msg--user    { flex-direction: row; }
[dir="rtl"] .cm-ai-msg--user .cm-ai-msg__bubble { border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
[dir="rtl"] .cm-ai-msg--bot .cm-ai-msg__bubble  { border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
[dir="rtl"] .cm-hours-table td:first-child { text-align: right; }
[dir="rtl"] .cm-hours-table td:last-child  { text-align: left; }

@keyframes cm-ticker-scroll-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}
