/* Direction comes from WordPress's locale. Technical values retain their order. */
body[class*="_page_alter-product"] :is(code, pre, input[type="url"], input[type="email"], input[type="password"], input[type="number"]),
:where([class^="alter-"], [class*=" alter-"]) :is(code, pre, input[type="url"], input[type="email"], input[type="password"]),
.alter-json {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

/* Remote and user-authored names may contain a different script than the UI. */
.alter-designs-local-card-copy strong,
.alter-assets-product-tile-title,
.alter-assets-graphic-card-title,
.alter-generator-asset-copy strong,
.alter-wc-map-row-name {
  unicode-bidi: plaintext;
  overflow-wrap: anywhere;
}

/* Arabic has joined letters: tracking and case transforms do not apply. */
body.rtl :is([class^="alter-"], [class*=" alter-"]),
body.rtl :is([class^="alter-"], [class*=" alter-"]) :is(h1, h2, h3, span, input, button, label, small) {
  letter-spacing: normal;
}

body.rtl .alter-wc-back-arrow {
  display: inline-block;
  transform: scaleX(-1);
}
