
/* TLC consolidated consistency repair */

/* Keep physical layout consistent with English */
html[dir="rtl"] body,
html[dir="rtl"] main,
html[dir="rtl"] footer,
html[dir="rtl"] .page-shell,
html[dir="rtl"] .insurance,
html[dir="rtl"] .insurance .wrap,
html[dir="rtl"] .insurance-roll,
html[dir="rtl"] .insurance-belt,
html[dir="rtl"] .insurance-set,
html[dir="rtl"] .review-deck,
html[dir="rtl"] .review-rail,
html[dir="rtl"] .foot-top,
html[dir="rtl"] .foot-cols,
html[dir="rtl"] .foot-bottom {
  direction: ltr !important;
}

/* Arabic and Urdu content still read right-to-left */
html[dir="rtl"] main :is(
  h1,h2,h3,h4,h5,h6,p,li,blockquote,label,
  .page-kicker,.technique-label,.technique-action
),
html[dir="rtl"] footer :is(
  .label,p:not(:has([translate="no"]))
) {
  direction: rtl;
  text-align: right;
}

/* Never reverse carousel movement */
html[dir="rtl"] main :is(
  .review-dots,.review-deck-controls,
  .insurance-belt,.insurance-set
) {
  direction: ltr !important;
}

html[dir="rtl"] main :is(
  .patient-review,.how-cell,.treat-cell
) {
  direction: ltr !important;
}

html[dir="rtl"] main :is(
  .patient-review p,.patient-review h3,
  .patient-review h4,.how-cell p,
  .how-cell h3,.treat-cell p,.treat-cell h3
) {
  direction: rtl;
  text-align: right;
}

/* Phone numbers, emails, addresses and fax numbers */
a[href^="tel:"],
a[href^="mailto:"],
.tlc-fixed-phone,
.tlc-fixed-phone bdi,
.tlc-fixed-address,
.tlc-footer-fax-number,
.tlc-centered-address bdi,
.map-address bdi {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

footer .foot-col {
  min-width: 0;
  max-width: 100%;
}

footer .foot-col a[href^="tel:"],
footer .foot-col a[href^="mailto:"] {
  display: block;
  white-space: nowrap;
}

footer .foot-col a[href^="mailto:"] {
  overflow-wrap: anywhere;
  white-space: normal;
}

footer .foot-cols {
  align-items: flex-start;
}

html[dir="rtl"] footer .foot-col .label {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] footer .foot-bottom {
  direction: ltr !important;
}

html[dir="rtl"] footer .foot-bottom p {
  unicode-bidi: plaintext;
}

/* Insurance marquee keeps its original movement */
.insurance-roll,
.insurance-belt,
.insurance-set {
  direction: ltr !important;
}

.insurance-belt {
  display: flex;
  width: max-content;
}

.insurance-set {
  display: flex;
  flex-shrink: 0;
}

/* Multilingual headline animation */
.tlc-cinematic-headline.tlc-localized-hero {
  max-width: 100%;
  overflow: visible;
}

.tlc-cinematic-headline .tlc-localized-piece {
  will-change: opacity, transform, filter;
}

@media (prefers-reduced-motion: reduce) {
  .tlc-cinematic-headline .tlc-localized-piece {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    will-change: auto;
  }
}

/* Prevent long translations from causing sideways scrolling */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

main :is(h1,h2,h3,p),
footer .foot-col {
  overflow-wrap: break-word;
}
