/* SIMORA v0.30.4 — Dedicated RTL for Hebrew and Arabic.
   The client cabinet keeps exactly the same centered container, widths and
   breakpoints as LTR. Only visual order and text direction are mirrored. */

/* Desktop header: Account button is the outermost control, language selector
   sits immediately to its right. */
html[dir="rtl"] .site-header .header-row{
  direction:rtl;
}
html[dir="rtl"] .site-header .header-actions{
  direction:ltr;
  flex-direction:row!important;
  justify-content:flex-start;
}
html[dir="rtl"] .site-header .header-account-action{order:1}
html[dir="rtl"] .site-header .header-language-action{order:2;direction:rtl}
html[dir="rtl"] .site-header .menu-button{order:3}
html[dir="rtl"] .site-header .language-select select{
  direction:rtl;
  text-align:right;
}

/* Same centered shell as LTR. */
html[dir="rtl"] .account-dashboard-v2>.shell{
  width:min(var(--shell),calc(100% - 48px))!important;
  max-width:var(--shell)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Exact LTR dimensions, mirrored: main area left, navigation right. */
html[dir="rtl"] .account-dashboard-v2 .account-layout{
  direction:ltr;
  display:grid;
  grid-template-columns:minmax(0,1fr) 224px;
  grid-template-areas:"account-main account-nav";
  gap:30px;
  align-items:start;
  width:100%;
  max-width:100%;
  min-width:0;
}
html[dir="rtl"] .account-dashboard-v2 .account-main{
  grid-area:account-main;
  direction:rtl;
  text-align:right;
  width:100%;
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
html[dir="rtl"] .account-dashboard-v2 .account-nav{
  grid-area:account-nav;
  direction:rtl;
  text-align:right;
  width:100%;
  min-width:0;
  padding:10px 0 16px 14px;
  border-right:0;
  border-left:1px solid #dfebf8;
}
html[dir="rtl"] .account-dashboard-v2 .account-nav-list,
html[dir="rtl"] .account-dashboard-v2 .account-nav-actions,
html[dir="rtl"] .account-dashboard-v2 .account-referral-promo{
  direction:rtl;
  text-align:right;
}
html[dir="rtl"] .account-dashboard-v2 .account-nav a,
html[dir="rtl"] .account-dashboard-v2 .account-logout{
  direction:rtl;
  flex-direction:row;
  justify-content:flex-start;
  text-align:right;
}
html[dir="rtl"] .account-dashboard-v2 .account-nav a:hover,
html[dir="rtl"] .account-dashboard-v2 .account-logout:hover{
  transform:translateX(-2px);
}
html[dir="rtl"] .account-dashboard-v2 .account-referral-promo:after{
  right:auto;
  left:-24px;
  transform:rotate(-20deg);
}
html[dir="rtl"] .account-dashboard-v2 .account-referral-promo>a{
  justify-content:flex-start;
}

/* Hero: identical dimensions to LTR, horizontally mirrored. */
html[dir="rtl"] .account-dashboard-v2 .account-dashboard-hero{
  position:relative!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:273px!important;
  min-height:273px!important;
  margin-bottom:22px!important;
  padding:34px 34px 18px!important;
  background:#fff!important;
  overflow:hidden!important;
}
html[dir="rtl"] .account-dashboard-v2 .account-dashboard-greeting{
  position:relative!important;
  z-index:3!important;
  width:46%!important;
  max-width:46%!important;
  min-width:0!important;
  margin:0 0 0 auto!important;
  padding:0 0 0 18px!important;
  direction:rtl;
  text-align:right;
  background:#fff!important;
}
html[dir="rtl"] .account-dashboard-v2 .account-dashboard-eyebrow,
html[dir="rtl"] .account-dashboard-v2 .account-dashboard-greeting h1,
html[dir="rtl"] .account-dashboard-v2 .account-dashboard-greeting>p{
  text-align:right;
}
html[dir="rtl"] .account-dashboard-v2 .account-dashboard-greeting h1{
  white-space:normal;
}
html[dir="rtl"] .account-dashboard-v2 .account-dashboard-wave{
  margin-right:0;
  margin-left:auto;
}
html[dir="rtl"] .account-dashboard-v2 .account-dashboard-hero-art,
html[dir="rtl"] .account-dashboard-v2 .account-dashboard-hero-art-auth{
  position:absolute!important;
  z-index:1!important;
  top:0!important;
  right:auto!important;
  bottom:0!important;
  left:0!important;
  display:block!important;
  width:54%!important;
  height:100%!important;
  min-width:0!important;
  margin:0!important;
  overflow:hidden!important;
  border-radius:20px 0 0 20px!important;
  transform:none!important;
}
html[dir="rtl"] .account-dashboard-v2 .account-dashboard-hero-art:before,
html[dir="rtl"] .account-dashboard-v2 .account-dashboard-hero-art:after{
  content:none!important;
  display:none!important;
}
html[dir="rtl"] .account-dashboard-v2 .account-dashboard-hero-art img,
html[dir="rtl"] .account-dashboard-v2 .account-dashboard-hero-art-auth img{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  object-fit:fill!important;
  object-position:center!important;
  transform:none!important;
  filter:none!important;
  opacity:1!important;
  mix-blend-mode:normal!important;
}
html[dir="rtl"] .account-dashboard-v2 .account-dashboard-user{
  direction:rtl;
  flex-direction:row;
  text-align:right;
  margin-right:0;
  margin-left:auto;
}
html[dir="rtl"] .account-dashboard-v2 .account-dashboard-user div{text-align:right}
html[dir="rtl"] .account-dashboard-v2 .account-dashboard-user em{margin:0 5px 0 0}
html[dir="rtl"] .account-dashboard-v2 .account-dashboard-user small,
html[dir="rtl"] .account-dashboard-v2 [data-ltr],
html[dir="rtl"] .account-dashboard-v2 input[type="email"],
html[dir="rtl"] .account-dashboard-v2 input[type="tel"]{
  direction:ltr;
  unicode-bidi:isolate;
  text-align:left;
}

/* Functional grids keep the same track sizes as LTR; only flow is mirrored. */
html[dir="rtl"] .account-dashboard-v2 .dashboard-stat-grid,
html[dir="rtl"] .account-dashboard-v2 .dashboard-primary-grid,
html[dir="rtl"] .account-dashboard-v2 .dashboard-secondary-grid,
html[dir="rtl"] .account-dashboard-v2 .dashboard-action-grid,
html[dir="rtl"] .account-dashboard-v2 .dashboard-esim-list,
html[dir="rtl"] .account-dashboard-v2 .dashboard-order-list,
html[dir="rtl"] .account-dashboard-v2 .dashboard-wallet-list,
html[dir="rtl"] .account-dashboard-v2 .account-columns,
html[dir="rtl"] .account-dashboard-v2 .wallet-grid,
html[dir="rtl"] .account-dashboard-v2 .referral-stats{
  direction:rtl;
  width:100%;
  max-width:100%;
  min-width:0;
}
html[dir="rtl"] .account-dashboard-v2 .dashboard-stat-card,
html[dir="rtl"] .account-dashboard-v2 .account-panel,
html[dir="rtl"] .account-dashboard-v2 .dashboard-esim-card,
html[dir="rtl"] .account-dashboard-v2 .dashboard-order-list article,
html[dir="rtl"] .account-dashboard-v2 .dashboard-wallet-list article,
html[dir="rtl"] .account-dashboard-v2 .dashboard-referral-summary,
html[dir="rtl"] .account-dashboard-v2 .dashboard-action-grid>a,
html[dir="rtl"] .account-dashboard-v2 .esim-row,
html[dir="rtl"] .account-dashboard-v2 .order-row,
html[dir="rtl"] .account-dashboard-v2 .profile-list,
html[dir="rtl"] .account-dashboard-v2 .referral-box,
html[dir="rtl"] .account-dashboard-v2 .ticket-thread,
html[dir="rtl"] .account-dashboard-v2 .ticket-message,
html[dir="rtl"] .account-dashboard-v2 .form-stack{
  direction:rtl;
  text-align:right;
  min-width:0;
  max-width:100%;
}
html[dir="rtl"] .account-dashboard-v2 .section-heading{
  direction:rtl;
  text-align:right;
}
html[dir="rtl"] .account-dashboard-v2 .dashboard-stat-card>b svg,
html[dir="rtl"] .account-dashboard-v2 .section-heading>a svg,
html[dir="rtl"] .account-dashboard-v2 .dashboard-panel-footer-link svg,
html[dir="rtl"] .account-dashboard-v2 .dashboard-text-link svg,
html[dir="rtl"] .account-dashboard-v2 .dashboard-action-grid b svg,
html[dir="rtl"] .account-dashboard-v2 .account-referral-promo>a svg{
  transform:scaleX(-1);
}
html[dir="rtl"] .account-dashboard-v2 .dashboard-order-list strong,
html[dir="rtl"] .account-dashboard-v2 .dashboard-order-list time,
html[dir="rtl"] .account-dashboard-v2 .dashboard-wallet-list article>strong,
html[dir="rtl"] .account-dashboard-v2 .dashboard-referral-summary strong{
  direction:ltr;
  unicode-bidi:isolate;
}
html[dir="rtl"] .account-dashboard-v2 .dashboard-order-list strong{text-align:left}
html[dir="rtl"] .account-dashboard-v2 .dashboard-order-list .status{justify-self:start}
html[dir="rtl"] .account-dashboard-v2 .dashboard-esim-card>.button,
html[dir="rtl"] .account-dashboard-v2 .dashboard-esim-card>.esim-row-note{justify-self:end}
html[dir="rtl"] .account-dashboard-v2 .dashboard-wallet-empty,
html[dir="rtl"] .account-dashboard-v2 .empty-state{text-align:right}

@media(max-width:1240px) and (min-width:981px){
  html[dir="rtl"] .account-dashboard-v2 .account-layout{
    grid-template-columns:minmax(0,1fr) 205px;
    gap:22px;
  }
  html[dir="rtl"] .account-dashboard-v2 .account-dashboard-hero{
    height:250px!important;
    min-height:250px!important;
    padding:28px 28px 16px!important;
  }
}

@media(max-width:980px){
  html[dir="rtl"] .account-dashboard-v2>.shell{
    width:min(var(--shell),calc(100% - 30px))!important;
  }
  html[dir="rtl"] .account-dashboard-v2 .account-layout{
    direction:rtl;
    grid-template-columns:1fr;
    grid-template-areas:"account-nav" "account-main";
    gap:18px;
  }
  html[dir="rtl"] .account-dashboard-v2 .account-nav{
    position:static;
    display:block;
    width:100%;
    min-height:0;
    padding:0;
    border:0;
  }
  html[dir="rtl"] .account-dashboard-v2 .account-nav-list,
  html[dir="rtl"] .account-dashboard-v2 .account-nav-actions{
    direction:rtl;
    display:flex;
    max-width:100%;
    overflow-x:auto;
  }
}

@media(max-width:900px) and (min-width:741px){
  html[dir="rtl"] .account-dashboard-v2 .account-dashboard-hero{
    height:232px!important;
    min-height:232px!important;
    padding:24px 22px 14px!important;
  }
  html[dir="rtl"] .account-dashboard-v2 .account-dashboard-greeting{
    width:45%!important;
    max-width:45%!important;
    padding-left:12px!important;
  }
  html[dir="rtl"] .account-dashboard-v2 .account-dashboard-hero-art,
  html[dir="rtl"] .account-dashboard-v2 .account-dashboard-hero-art-auth{width:55%!important}
  html[dir="rtl"] .account-dashboard-v2 .account-dashboard-user{
    transform:scale(.92);
    transform-origin:right center;
  }
}

@media(max-width:740px){
  html[dir="rtl"] .account-dashboard-v2>.shell{
    width:min(var(--shell),calc(100% - 24px))!important;
  }
  html[dir="rtl"] .account-dashboard-v2 .account-dashboard-hero{
    display:flex!important;
    flex-direction:column;
    height:auto!important;
    min-height:0!important;
    padding:22px 18px 0!important;
  }
  html[dir="rtl"] .account-dashboard-v2 .account-dashboard-greeting{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
  }
  html[dir="rtl"] .account-dashboard-v2 .account-dashboard-hero-art,
  html[dir="rtl"] .account-dashboard-v2 .account-dashboard-hero-art-auth{
    position:relative!important;
    inset:auto!important;
    width:calc(100% + 36px)!important;
    height:auto!important;
    aspect-ratio:646/273;
    margin:10px -18px 0!important;
    border-radius:0 0 20px 20px!important;
  }
  html[dir="rtl"] .account-dashboard-v2 .dashboard-esim-card>.button,
  html[dir="rtl"] .account-dashboard-v2 .dashboard-esim-card>.esim-row-note{
    grid-column:2;
    justify-self:end;
  }
  html[dir="rtl"] .account-dashboard-v2 .dashboard-order-list strong{
    grid-column:3;
    grid-row:1;
  }
  html[dir="rtl"] .account-dashboard-v2 .dashboard-order-list .status{
    grid-column:3;
    grid-row:2;
  }
}

/* v0.30.5 — dedicated RTL for redesigned cabinet inner pages */
html[dir="rtl"] .cabinet-v3 .cabinet-page{direction:rtl;text-align:right;width:100%;max-width:100%;min-width:0}
html[dir="rtl"] .cabinet-v3 .cabinet-page-header,
html[dir="rtl"] .cabinet-v3 .cabinet-data-card,
html[dir="rtl"] .cabinet-v3 .cabinet-support-hero{direction:rtl;text-align:right}
html[dir="rtl"] .cabinet-v3 .cabinet-page-header-split{grid-template-columns:minmax(500px,.9fr) minmax(0,1fr)}
html[dir="rtl"] .cabinet-v3 .cabinet-page-header-split>div:first-child{grid-column:2}
html[dir="rtl"] .cabinet-v3 .cabinet-page-header-split>.cabinet-mini-stats{grid-column:1;grid-row:1}
html[dir="rtl"] .cabinet-v3 .cabinet-tabs,
html[dir="rtl"] .cabinet-v3 .cabinet-mini-stats,
html[dir="rtl"] .cabinet-v3 .cabinet-summary-grid,
html[dir="rtl"] .cabinet-v3 .cabinet-order-stats{direction:rtl}
html[dir="rtl"] .cabinet-v3 .cabinet-esim-card{direction:rtl;grid-template-columns:auto minmax(150px,.42fr) minmax(280px,1fr) 165px;padding:10px 10px 10px 12px}
html[dir="rtl"] .cabinet-v3 .cabinet-country-image{grid-column:4}
html[dir="rtl"] .cabinet-v3 .cabinet-esim-name{grid-column:3;grid-row:1;text-align:right}
html[dir="rtl"] .cabinet-v3 .cabinet-esim-state{grid-column:2;grid-row:1;justify-items:start;text-align:right}
html[dir="rtl"] .cabinet-v3 .cabinet-esim-actions{grid-column:1;grid-row:1;justify-content:flex-start}
html[dir="rtl"] .cabinet-v3 .cabinet-esim-name h2,
html[dir="rtl"] .cabinet-v3 .cabinet-esim-specs{direction:rtl}
html[dir="rtl"] .cabinet-v3 .cabinet-iccid b,
html[dir="rtl"] .cabinet-v3 [data-ltr]{direction:ltr;unicode-bidi:isolate;text-align:left}
html[dir="rtl"] .cabinet-v3 .cabinet-help-strip{direction:rtl}
html[dir="rtl"] .cabinet-v3 .cabinet-help-strip>a svg,
html[dir="rtl"] .cabinet-v3 .cabinet-row-arrow svg,
html[dir="rtl"] .cabinet-v3 .cabinet-breadcrumb svg,
html[dir="rtl"] .cabinet-v3 .cabinet-ticket-row>a>svg{transform:scaleX(-1)}
html[dir="rtl"] .cabinet-v3 .cabinet-orders-hero:after{right:auto;left:0;background-image:url("/assets/website/img/account-dashboard-hero-art-rtl.png")}
html[dir="rtl"] .cabinet-v3 .cabinet-filter-bar{direction:rtl}
html[dir="rtl"] .cabinet-v3 .cabinet-search{direction:rtl}
html[dir="rtl"] .cabinet-v3 .cabinet-search input{text-align:right}
html[dir="rtl"] .cabinet-v3 .cabinet-table th,
html[dir="rtl"] .cabinet-v3 .cabinet-table td{text-align:right}
html[dir="rtl"] .cabinet-v3 .cabinet-table td strong,
html[dir="rtl"] .cabinet-v3 .cabinet-table td b,
html[dir="rtl"] .cabinet-v3 .cabinet-table td time{unicode-bidi:isolate}
html[dir="rtl"] .cabinet-v3 .cabinet-table-footer{direction:rtl}
html[dir="rtl"] .cabinet-v3 .cabinet-wallet-layout{direction:rtl}
html[dir="rtl"] .cabinet-v3 .cabinet-wallet-balance-card{direction:rtl}
html[dir="rtl"] .cabinet-v3 .cabinet-wallet-balance-lines p{direction:rtl}
html[dir="rtl"] .cabinet-v3 .cabinet-bonus-guide article{direction:rtl}
html[dir="rtl"] .cabinet-v3 .cabinet-profile-summary{direction:rtl}
html[dir="rtl"] .cabinet-v3 .cabinet-profile-summary dl>div{border-left:0;border-right:1px solid #e4ecf6}
html[dir="rtl"] .cabinet-v3 .cabinet-profile-person,
html[dir="rtl"] .cabinet-v3 .cabinet-security-card article,
html[dir="rtl"] .cabinet-v3 .cabinet-session-row,
html[dir="rtl"] .cabinet-v3 .cabinet-activity-card p{direction:rtl}
html[dir="rtl"] .cabinet-v3 .cabinet-form-view input,
html[dir="rtl"] .cabinet-v3 .cabinet-form-view select,
html[dir="rtl"] .cabinet-v3 .cabinet-create-ticket-form input,
html[dir="rtl"] .cabinet-v3 .cabinet-create-ticket-form select,
html[dir="rtl"] .cabinet-v3 .cabinet-create-ticket-form textarea,
html[dir="rtl"] .cabinet-v3 .cabinet-ticket-reply textarea{text-align:right}
html[dir="rtl"] .cabinet-v3 .cabinet-support-hero{direction:rtl}
html[dir="rtl"] .cabinet-v3 .cabinet-support-hero>aside>a{grid-template-columns:14px 1fr 26px}
html[dir="rtl"] .cabinet-v3 .cabinet-support-hero>aside>a>svg:first-child{grid-column:3}
html[dir="rtl"] .cabinet-v3 .cabinet-support-hero>aside>a>svg:last-child{grid-column:1;grid-row:1;transform:scaleX(-1)}
html[dir="rtl"] .cabinet-v3 .cabinet-create-ticket-form{left:auto;right:0}
html[dir="rtl"] .cabinet-v3 .cabinet-ticket-toolbar{direction:rtl}
html[dir="rtl"] .cabinet-v3 .cabinet-ticket-toolbar nav{direction:rtl}
html[dir="rtl"] .cabinet-v3 .cabinet-ticket-row>a{direction:rtl;grid-template-columns:20px 90px 120px minmax(0,1fr) 24px}
html[dir="rtl"] .cabinet-v3 .cabinet-ticket-row>a>span{grid-column:5;grid-row:1}
html[dir="rtl"] .cabinet-v3 .cabinet-ticket-row>a>div{grid-column:4;grid-row:1;text-align:right}
html[dir="rtl"] .cabinet-v3 .cabinet-ticket-row>a>time{grid-column:3;grid-row:1}
html[dir="rtl"] .cabinet-v3 .cabinet-ticket-row>a>em{grid-column:2;grid-row:1;justify-self:start}
html[dir="rtl"] .cabinet-v3 .cabinet-ticket-row>a>svg{grid-column:1;grid-row:1}
html[dir="rtl"] .cabinet-v3 .cabinet-ticket-message{direction:rtl;grid-template-columns:1fr 30px}
html[dir="rtl"] .cabinet-v3 .cabinet-ticket-message>span{grid-column:2}
html[dir="rtl"] .cabinet-v3 .cabinet-ticket-message>div{grid-column:1;grid-row:1}
html[dir="rtl"] .cabinet-v3 .cabinet-ticket-message time{margin-inline-start:0;margin-inline-end:10px}
html[dir="rtl"] .cabinet-v3 .cabinet-referral-share{direction:rtl;grid-template-columns:230px minmax(0,.7fr) minmax(0,1fr);background:linear-gradient(255deg,#fff 0,#fff 68%,#f4f9ff 100%)}
html[dir="rtl"] .cabinet-v3 .cabinet-referral-share>label:first-child{grid-column:3}
html[dir="rtl"] .cabinet-v3 .cabinet-referral-share>label:nth-child(2){grid-column:2}
html[dir="rtl"] .cabinet-v3 .cabinet-referral-art{grid-column:1;grid-row:1}
html[dir="rtl"] .cabinet-v3 .cabinet-referral-share label>div{direction:rtl}
html[dir="rtl"] .cabinet-v3 .cabinet-referral-share input{text-align:left;direction:ltr;unicode-bidi:isolate}

@media(max-width:1360px){
 html[dir="rtl"] .cabinet-v3 .cabinet-page-header-split{grid-template-columns:1fr}
 html[dir="rtl"] .cabinet-v3 .cabinet-page-header-split>div:first-child,
 html[dir="rtl"] .cabinet-v3 .cabinet-page-header-split>.cabinet-mini-stats{grid-column:1;grid-row:auto}
 html[dir="rtl"] .cabinet-v3 .cabinet-esim-card{grid-template-columns:130px minmax(240px,1fr) 135px}
 html[dir="rtl"] .cabinet-v3 .cabinet-country-image{grid-column:3}
 html[dir="rtl"] .cabinet-v3 .cabinet-esim-name{grid-column:2}
 html[dir="rtl"] .cabinet-v3 .cabinet-esim-state{grid-column:1}
 html[dir="rtl"] .cabinet-v3 .cabinet-esim-actions{grid-column:1/3;grid-row:2}
}
@media(max-width:1100px){
 html[dir="rtl"] .cabinet-v3 .cabinet-referral-share{grid-template-columns:1fr 1fr}
 html[dir="rtl"] .cabinet-v3 .cabinet-referral-share>label:first-child{grid-column:2}
 html[dir="rtl"] .cabinet-v3 .cabinet-referral-share>label:nth-child(2){grid-column:1}
}
@media(max-width:760px){
 html[dir="rtl"] .cabinet-v3 .cabinet-esim-card{grid-template-columns:1fr 100px}
 html[dir="rtl"] .cabinet-v3 .cabinet-country-image{grid-column:2;grid-row:1}
 html[dir="rtl"] .cabinet-v3 .cabinet-esim-name{grid-column:1;grid-row:1}
 html[dir="rtl"] .cabinet-v3 .cabinet-esim-state{grid-column:1;grid-row:2}
 html[dir="rtl"] .cabinet-v3 .cabinet-esim-actions{grid-column:1/-1;grid-row:3}
 html[dir="rtl"] .cabinet-v3 .cabinet-profile-summary dl>div{border-right:0}
 html[dir="rtl"] .cabinet-v3 .cabinet-ticket-row>a{grid-template-columns:20px 72px minmax(0,1fr) 24px}
 html[dir="rtl"] .cabinet-v3 .cabinet-ticket-row>a>span{grid-column:4}
 html[dir="rtl"] .cabinet-v3 .cabinet-ticket-row>a>div{grid-column:3}
 html[dir="rtl"] .cabinet-v3 .cabinet-ticket-row>a>em{grid-column:2}
 html[dir="rtl"] .cabinet-v3 .cabinet-ticket-row>a>svg{grid-column:1}
 html[dir="rtl"] .cabinet-v3 .cabinet-referral-share{grid-template-columns:1fr}
 html[dir="rtl"] .cabinet-v3 .cabinet-referral-share>label:first-child,
 html[dir="rtl"] .cabinet-v3 .cabinet-referral-share>label:nth-child(2){grid-column:1}
}


/* SIMORA canonical full-site RTL layer. Loaded after site/page CSS. */
html[dir="rtl"] body{direction:rtl;text-align:right}

/* Header is a physical mirror of LTR: actions left, navigation centre, logo right. */
html[dir="rtl"] .site-header .header-row{
  direction:ltr!important;
  display:flex!important;
}
html[dir="rtl"] .site-header .brand{
  order:3!important;
  justify-content:flex-end;
}
html[dir="rtl"] .site-header .brand img{object-position:right center}
html[dir="rtl"] .site-header .desktop-nav{
  order:2!important;
  direction:rtl!important;
  flex-direction:row!important;
}
html[dir="rtl"] .site-header .header-actions{
  order:1!important;
  direction:ltr!important;
  flex-direction:row!important;
  justify-content:flex-start!important;
}
html[dir="rtl"] .site-header .header-account-action{order:1!important}
html[dir="rtl"] .site-header .header-language-action{order:2!important;direction:rtl!important}
html[dir="rtl"] .site-header .menu-button{order:3!important}
html[dir="rtl"] .site-header .language-form{direction:ltr}
html[dir="rtl"] .site-header .language-select{direction:rtl}
html[dir="rtl"] .site-header .language-select select{
  direction:rtl!important;
  text-align:right!important;
  background-position:left center!important;
  padding-left:18px!important;
  padding-right:2px!important;
}
html[dir="rtl"] .mobile-nav{direction:rtl;text-align:right}

/* Flex rows: RTL direction provides the mirror; row-reverse would mirror twice. */
html[dir="rtl"] .hero-buttons,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .panel-heading,
html[dir="rtl"] .plan-bottom,
html[dir="rtl"] .country-image-title-row,
html[dir="rtl"] .support-ticket-link,
html[dir="rtl"] .esim-detail-actions,
html[dir="rtl"] .checkout-panel-head,
html[dir="rtl"] .checkout-summary-row,
html[dir="rtl"] .checkout-total-row-v2,
html[dir="rtl"] .checkout-accepts-row,
html[dir="rtl"] .faq-preview>a,
html[dir="rtl"] .cta-banner{
  direction:rtl!important;
  flex-direction:row!important;
  text-align:right;
}

/* Breadcrumbs and horizontal navigation begin at the right edge. */
html[dir="rtl"] .breadcrumbs,
html[dir="rtl"] .breadcrumbs--links,
html[dir="rtl"] .country-breadcrumbs-v2,
html[dir="rtl"] .checkout-breadcrumbs{
  direction:rtl!important;
  justify-content:flex-start!important;
  text-align:right!important;
}

/* Public grids and card collections flow from right to left. */
html[dir="rtl"] .hero-grid,
html[dir="rtl"] .page-top-grid,
html[dir="rtl"] .global-hero-grid,
html[dir="rtl"] .country-hero-layout-v2,
html[dir="rtl"] .country-benefits-v2,
html[dir="rtl"] .country-facts-v2,
html[dir="rtl"] .country-plan-tabs-v2,
html[dir="rtl"] .country-plan-grid-v2,
html[dir="rtl"] .country-plan-benefits-v2,
html[dir="rtl"] .country-info-grid-v2,
html[dir="rtl"] .destination-grid,
html[dir="rtl"] .catalog-grid,
html[dir="rtl"] .region-grid,
html[dir="rtl"] .region-chip-grid,
html[dir="rtl"] .region-product-grid,
html[dir="rtl"] .plan-grid,
html[dir="rtl"] .large-plan-grid,
html[dir="rtl"] .benefit-grid,
html[dir="rtl"] .two-panel-grid,
html[dir="rtl"] .mini-steps,
html[dir="rtl"] .quick-step-row,
html[dir="rtl"] .trust-strip,
html[dir="rtl"] .home-bottom-grid,
html[dir="rtl"] .blog-mini-grid,
html[dir="rtl"] .blog-teasers,
html[dir="rtl"] .post-grid,
html[dir="rtl"] .support-grid,
html[dir="rtl"] .info-grid,
html[dir="rtl"] .content-grid,
html[dir="rtl"] .flow-grid,
html[dir="rtl"] .value-grid,
html[dir="rtl"] .filters,
html[dir="rtl"] .article-layout,
html[dir="rtl"] .faq-layout,
html[dir="rtl"] .auth-showcase-grid,
html[dir="rtl"] .auth-register-grid,
html[dir="rtl"] .auth-two-factor-grid{
  direction:rtl!important;
}

/* Text alignment inside public cards. */
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .panel,
html[dir="rtl"] .destination-card,
html[dir="rtl"] .destination-body,
html[dir="rtl"] .region-card,
html[dir="rtl"] .region-product,
html[dir="rtl"] .plan-card,
html[dir="rtl"] .post-grid a,
html[dir="rtl"] .country-hero-copy-v2,
html[dir="rtl"] .country-info-card-v2,
html[dir="rtl"] .country-plan-card-v2,
html[dir="rtl"] .article-main-card,
html[dir="rtl"] .article-sidebar,
html[dir="rtl"] .support-grid>*,
html[dir="rtl"] .form-stack{
  direction:rtl!important;
  text-align:right!important;
}

/* Country hero is mirrored: photo right, copy left. */
html[dir="rtl"] .country-hero-layout-v2{
  direction:ltr!important;
  grid-template-columns:minmax(520px,1.08fr) minmax(0,.92fr)!important;
}
html[dir="rtl"] .country-hero-photo-v2{grid-column:1;grid-row:1}
html[dir="rtl"] .country-hero-copy-v2{grid-column:2;grid-row:1;direction:rtl!important;text-align:right!important}
html[dir="rtl"] .country-country-label-v2{direction:rtl}

/* Checkout is a true mirror: heading/overview on the right, payment/SSL on the left. */
html[dir="rtl"] .checkout-topbar-v2{
  direction:ltr!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  grid-template-areas:"ssl headline"!important;
}
html[dir="rtl"] .checkout-headline-v2{grid-area:headline;direction:rtl;text-align:right;justify-self:stretch}
html[dir="rtl"] .checkout-ssl-box{grid-area:ssl;direction:rtl;text-align:right;justify-self:start}
html[dir="rtl"] .checkout-layout-v2{
  direction:ltr!important;
  grid-template-columns:minmax(0,1.08fr) minmax(330px,.92fr)!important;
  grid-template-areas:"payment overview"!important;
}
html[dir="rtl"] .checkout-overview-v2{grid-area:overview;direction:rtl;text-align:right}
html[dir="rtl"] .checkout-payment-v2{grid-area:payment;direction:rtl;text-align:right}
html[dir="rtl"] .checkout-plan-card-v2{
  direction:ltr!important;
  grid-template-areas:"info media"!important;
}
html[dir="rtl"] .checkout-plan-info{grid-area:info;direction:rtl!important;text-align:right!important}
html[dir="rtl"] .checkout-plan-media{grid-area:media}

/* Footer mirrors the LTR column order and aligns every group to the right. */
html[dir="rtl"] .site-footer .footer-main{direction:rtl!important}
html[dir="rtl"] .site-footer .footer-main>div,
html[dir="rtl"] .site-footer .footer-brand{text-align:right!important;direction:rtl}
html[dir="rtl"] .site-footer .footer-brand img{object-position:right center}
html[dir="rtl"] .site-footer .socials{direction:rtl;justify-content:flex-start}


/* Icons and arrows that indicate movement must point into the RTL flow. */
html[dir="rtl"] .section-heading>a,
html[dir="rtl"] .panel-heading>a,
html[dir="rtl"] .back-link,
html[dir="rtl"] .support-ticket-link{direction:rtl}

@media(max-width:920px){
  html[dir="rtl"] .site-header .brand{order:2!important}
  html[dir="rtl"] .site-header .header-actions{order:1!important}
  html[dir="rtl"] .country-hero-layout-v2{
    grid-template-columns:1fr!important;
  }
  html[dir="rtl"] .country-hero-copy-v2,
  html[dir="rtl"] .country-hero-photo-v2{grid-column:1;grid-row:auto}
  html[dir="rtl"] .checkout-topbar-v2{
    grid-template-columns:1fr!important;
    grid-template-areas:"headline" "ssl"!important;
  }
  html[dir="rtl"] .checkout-ssl-box{justify-self:stretch}
  html[dir="rtl"] .checkout-layout-v2{
    grid-template-columns:1fr!important;
    grid-template-areas:"overview" "payment"!important;
  }
}

/* v0.38.9 — checkout payment logos must stay on one line in RTL */
html[dir="rtl"] .checkout-accepts-row{
  direction:rtl!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:12px!important;
}
html[dir="rtl"] .checkout-accepts-row>span{
  width:100%!important;
  text-align:right!important;
}


/* v0.38.11 — preserve RTL right-edge alignment and canonical logo sizing */


/* v0.38.13 — identical canvas sizing in RTL without image distortion */

/* v0.38.16 — canonical RTL payment-logo alignment */
html[dir="rtl"] .checkout-payment-logos,
html[dir="rtl"] .footer-payment-logos{
  direction:rtl;
  display:flex;
  flex-wrap:nowrap;
  justify-content:flex-start;
  align-items:center;
  width:100%;
  gap:10px;
}
html[dir="rtl"] .checkout-payment-logos .payment-logo-item,
html[dir="rtl"] .footer-payment-logos .payment-logo-item{
  flex-shrink:0;
}
@media(max-width:640px){
  html[dir="rtl"] .checkout-payment-logos{
    overflow-x:auto;
    padding-bottom:4px;
    scrollbar-width:thin;
  }
}

/* v0.38.132 — account RTL geometry. Public hero RTL is canonicalized in site.css. */
html[dir="rtl"] .footer-payment-logos{
  direction:ltr;
  display:grid;
  grid-template-columns:repeat(2,84px);
  justify-content:end;
  width:max-content;
  max-width:100%;
  gap:10px;
}
html[dir="rtl"] .cabinet-v3 .cabinet-referral-share{
  direction:ltr;
  grid-template-columns:minmax(160px,.78fr) minmax(250px,.9fr) minmax(360px,1.35fr);
  grid-template-areas:"actions code link";
  align-items:end;
  gap:18px;
  background:linear-gradient(105deg,#f4f9ff 0,#fff 32%,#fff 100%);
}
html[dir="rtl"] .cabinet-v3 .cabinet-referral-share>label:first-child{
  grid-area:link;
  grid-column:auto;
  min-width:0;
  direction:rtl;
  text-align:right;
}
html[dir="rtl"] .cabinet-v3 .cabinet-referral-share>label:nth-child(2){
  grid-area:code;
  grid-column:auto;
  min-width:0;
  direction:rtl;
  text-align:right;
}
html[dir="rtl"] .cabinet-v3 .cabinet-referral-share>.account-engagement6-share-actions{
  grid-area:actions;
  min-width:160px;
  align-self:start;
  padding-top:23px;
}
html[dir="rtl"] .cabinet-v3 .cabinet-referral-share>.account-engagement6-share-actions .cabinet-button{
  width:100%;
  justify-content:center;
}
@media(max-width:1100px){
  
  html[dir="rtl"] .cabinet-v3 .cabinet-referral-share{
    grid-template-columns:1fr 1fr;
    grid-template-areas:"code link" "actions actions";
  }
  html[dir="rtl"] .cabinet-v3 .cabinet-referral-share>.account-engagement6-share-actions{justify-self:start;width:min(260px,100%);padding-top:0}
}
@media(max-width:900px){
  
}
@media(max-width:760px){
  html[dir="rtl"] .cabinet-v3 .cabinet-referral-share{
    grid-template-columns:1fr;
    grid-template-areas:"link" "code" "actions";
  }
  html[dir="rtl"] .cabinet-v3 .cabinet-referral-share>.account-engagement6-share-actions{width:100%;padding-top:0}
}
