/* Native language names need more room than the language-code toggle. */
.navbar-language-menu {
    width: auto;
    min-width: 160px;
    right: 0;
    max-height: 70vh;
    overflow-y: auto;
}
.navbar-language-menu a {
    display: block;
    white-space: nowrap;
}
.navbar-language-menu .active a {
    font-weight: bold;
    text-decoration: underline;
}
/* Preserve the Bootstrap grid while mirroring text and directional controls. */
html[dir="rtl"] body {
    text-align: right;
}
html[dir="rtl"] .intro-items .btn,
html[dir="rtl"] th,
html[dir="rtl"] .nav-side-menu a {
    text-align: right;
}
html[dir="rtl"] .glyphicon-chevron-right {
    transform: scaleX(-1);
}
html[dir="rtl"] input[type="email"],
html[dir="rtl"] a[href^="mailto:"],
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] .price {
    direction: ltr;
    unicode-bidi: isolate;
}
html[dir="rtl"] .navbar-language-menu {
    direction: ltr;
}
/* Long company comparisons should scroll within their content column. */
html[lang="es"] .main-content-primary,
html[lang="uk"] .main-content-primary,
html[lang="hu"] .main-content-primary,
html[lang="vi"] .main-content-primary,
html[lang="he"] .main-content-primary {
    overflow-x: auto;
}
/* Keep the newsletter honeypot hidden without widening an RTL page. */
html[dir="rtl"] #mc_embed_signup [aria-hidden="true"] {
    left: auto !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
html[dir="rtl"] .intro-items {
    padding-inline-start: 0;
}
