/**
 * RTL (Right-to-Left)
 */

/* ============================= */
/* BASE RTL */
/* ============================= */

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

/* prevent horizontal scroll issue */
html, body {
  overflow-x: hidden;
}



/* ============================= */
/* BOOTSTRAP SPACING FIX */
/* ============================= */

.ms-1 { margin-left:0!important; margin-right:.25rem!important; }
.ms-2 { margin-left:0!important; margin-right:.5rem!important; }
.ms-3 { margin-left:0!important; margin-right:1rem!important; }

.me-1 { margin-right:0!important; margin-left:.25rem!important; }
.me-2 { margin-right:0!important; margin-left:.5rem!important; }
.me-3 { margin-right:0!important; margin-left:1rem!important; }



/* ============================= */
/* NAVBAR RTL FIX */
/* ============================= */

/* logo right */
html[dir="rtl"] #topnav .logo {
  float: right !important;
}

/* menu next to logo */
html[dir="rtl"] #topnav .navigation-menu {
  float: right !important;
}

/* menu items direction */
html[dir="rtl"] #topnav .navigation-menu > li {
  float: right !important;
}

/* language + search left */
html[dir="rtl"] #topnav .buy-button {
  float: left !important;
}



/* ============================= */
/* REVIEWS (tiny-slider) RTL */
/* ============================= */

html[dir="rtl"] .review {
  text-align: right;
}

html[dir="rtl"] .tns-outer {
  transform: scaleX(-1);
  direction: ltr;
}

html[dir="rtl"] .tns-outer .tns-item {
  transform: scaleX(-1);
  direction: rtl;
}

html[dir="rtl"] .tns-outer .tns-nav {
  transform: scaleX(-1);
}


/* ============================= */
/* HERO SECTION FIX */
/* ============================= */

.bg-home {
  width: 100%;
  overflow: hidden;
}

.bg-overlay {
  inset: 0;
}

html[dir="rtl"] #home #overlay {
  transform: scaleX(-1);
  transform-origin: center;
}



/* ============================= */
/* PRICING FEATURE LIST (home) */
/* ============================= */

html[dir="rtl"] .pricing-features {
  text-align: right;
}

html[dir="rtl"] .pricing-features .feature-list {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

html[dir="rtl"] .pricing-features .feature-list .fea {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html[dir="rtl"] .pricing-features .feature-list .fea,
html[dir="rtl"] .pricing-features .feature-list svg {
  transform: scaleX(-1);
  flex-shrink: 0;
  order: 1
}

html[dir="rtl"] .pricing-features .feature-list .pricing-feature__text {
  direction: rtl;
  text-align: right;
  display: inline-block;
  white-space: nowrap;
  line-height: 1.4;
}



/* ============================= */
/* MOBILE FIX */
/* ============================= */
@media (max-width:991px){

  #topnav .container{
      display:flex;
      align-items:center;
      justify-content:space-between;
  }

  /* logo */
  #topnav .logo{
      order:1;
  }

  /* menu icon */
  #topnav .menu-extras{
      order:3;
  }

  /* search + language */
  #topnav .buy-button{
      order:2;
      display:flex;
      align-items:center;
      gap:10px;
  }

  /* menu items direction */
  html[dir="rtl"] #topnav .navigation-menu > li {
    float: none !important;
  }

}