/* Preserve the shared layout throughout the page. Localize the direction of text separately. */
html[dir="rtl"] body[data-public-localized],
html[dir="rtl"] body[data-public-localized] :is(.detail-header, .detail-nav, .detail-footer) {
  direction: ltr;
}

html[dir="rtl"] body[data-public-localized] :is(
  h1, h2, h3, h4, h5, h6, p:not(.hero-availability), blockquote, li, dt, dd,
  .brand-note, .customer-login, .eyebrow, .hero-caption > span,
  .nav > a, .information-nav > a, .hero-cta > a > span:not(.arrow), .demo-tabs > button,
  .hero-availability[data-i18n],
  .footer-links > a, .detail-nav > a, .detail-footer > a,
  .faq-layout summary, .learn-links a
) {
  direction: rtl;
  unicode-bidi: isolate;
}

html[dir="rtl"] body[data-public-localized] :is(.brand-note, .learn-links a) {
  text-align: left;
}

html[dir="rtl"] body[data-public-localized] :is(a[href^="mailto:"], a[href^="tel:"], .currency-choice select, #currency-price) {
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="rtl"] body[data-public-localized] .faq-layout summary {
  padding-left: 0;
  padding-right: 32px;
}

html[dir="rtl"] body[data-public-localized] .faq-layout summary::after {
  left: auto;
  right: 2px;
}

html[dir="rtl"] body[data-public-localized] .learn-links a {
  padding-left: 14px;
  padding-right: 38px;
}

html[dir="rtl"] body[data-public-localized] .learn-links a::before,
html[dir="rtl"] body[data-public-localized] .learn-links a::after {
  left: auto;
  right: 15px;
}

html[dir="rtl"] body[data-public-localized] .learn-links a::after {
  transform: translateY(-50%) rotate(45deg);
}
