/*!
 * RTL overrides for Introbanka theme
 * These styles are only inlined for RTL locales.
 */

html[dir="rtl"] {
  direction: rtl;
  unicode-bidi: embed;
}

/* Prevent horizontal scroll on RTL mobile */
@media (max-width: 767px) {
  html[dir="rtl"] {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
  }
  
  html[dir="rtl"] body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
  }
}

/* WordPress core alignment helpers */
html[dir="rtl"] .alignleft {
  float: right;
  margin-left: 1rem;
  margin-right: 0;
}
html[dir="rtl"] .alignright {
  float: left;
  margin-right: 1rem;
  margin-left: 0;
}

/* Generic form field alignment */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  text-align: right;
}

/* Breadcrumbs and nav flow */
html[dir="rtl"] .breadcrumbs,
html[dir="rtl"] .nav {
  direction: rtl;
}

/* Optional text utility flips (safe no-op if not present) */
html[dir="rtl"] .text-left { text-align: right; }
html[dir="rtl"] .text-right { text-align: left; }
