/* Arabic-only text adjustments; colors, imagery, and layout come from allar.css. */
@font-face {
    font-family: "Droid Arabic Kufi";
    src: url("../fonts/gesstwolight.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

html[lang="ar"] body {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .textContent {
    text-align: right !important;
    line-height: 1.9;
}

html[lang="ar"] .listingDescription,
html[lang="ar"] .highlightedInfo,
html[lang="ar"] .branchinfotext {
    line-height: 1.8;
}

html[lang="ar"] input[type="email"],
html[lang="ar"] input[type="tel"],
html[lang="ar"] input[type="number"],
html[lang="ar"] #accountNumber,
html[lang="ar"] #ibanResult,
html[lang="ar"] a[href^="tel:"],
html[lang="ar"] a[href^="mailto:"] {
    direction: ltr;
    unicode-bidi: isolate;
}

html[lang="ar"] a[href^="tel:"],
html[lang="ar"] a[href^="mailto:"] {
    display: inline-block;
}

html[lang="ar"] a[data-language-switch] {
    direction: ltr;
    font-family: Arial, sans-serif;
}

html[lang="ar"] ul.listitem {
    padding-right: 0;
}

html[lang="ar"] ul.listitem li {
    padding-left: 0;
    padding-right: 12px;
}

html[lang="ar"] ul.listitem li:before {
    content: "•";
    left: auto;
    right: 0;
}

/* Carousels use pixel offsets calculated by the original left-to-right plugin. */
html[lang="ar"] .flexslider .slides {
    direction: ltr;
}

html[lang="ar"] .flexslider .sliderContent {
    direction: rtl;
}

/* Reserve enough room for “English” beside the longer Arabic utility links. */
@media (max-width: 767px) {
    html[lang="ar"] .topHeader .secondSideElements .inlineMiddle {
        display: block;
        width: 100% !important;
    }

    html[lang="ar"] .topHeader .secondSideElements .inlineMiddle ul {
        display: flex;
        width: 100%;
        margin: 0;
    }

    html[lang="ar"] .topHeader .secondSideElements .inlineMiddle li {
        float: none;
        flex: 1 1 0;
        min-width: 0;
        width: auto !important;
    }

    html[lang="ar"] .topHeader .secondSideElements .inlineMiddle li#Header_lilang {
        position: static !important;
        flex: 0 0 60px;
        min-width: 60px !important;
        max-width: none !important;
        padding: 0 !important;
    }

    html[lang="ar"] .topHeader .secondSideElements .inlineMiddle li a,
    html[lang="ar"] .topHeader .secondSideElements .inlineMiddle li#Header_lilang a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 34px;
        margin: 0 !important;
        padding: 0 3px !important;
        font-size: 11px !important;
        line-height: 1.4;
        white-space: normal;
    }
}
