/* Tenant temaları ortak dil değiştirici */
.az-lang-switch {
    position: relative;
    display: inline-block;
    color: inherit;
    font: inherit;
    line-height: 1;
    vertical-align: middle;
    z-index: 1100;
}

.az-lang-switch > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    list-style: none;
    opacity: 0.82;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    user-select: none;
}

.az-lang-switch > summary::-webkit-details-marker {
    display: none;
}

.az-lang-switch > summary:hover,
.az-lang-switch[open] > summary {
    opacity: 1;
    background: rgba(127, 127, 127, 0.12);
}

.az-lang-switch__caret {
    width: 0.38rem;
    height: 0.38rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.az-lang-switch[open] .az-lang-switch__caret {
    transform: rotate(225deg) translate(-1px, -1px);
}

.az-lang-switch__menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    min-width: 11.5rem;
    padding: 0.35rem;
    border-radius: 0.6rem;
    background: #fff;
    color: #111827;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.az-lang-switch__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.4rem;
    color: inherit !important;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
}

.az-lang-switch__option:hover,
.az-lang-switch__option:focus-visible {
    background: rgba(17, 24, 39, 0.07);
    outline: none;
}

.az-lang-switch__option.is-active {
    background: rgba(17, 24, 39, 0.1);
    font-weight: 700;
}

.az-lang-switch__short {
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

[dir="rtl"] .az-lang-switch__menu {
    right: auto;
    left: 0;
}

/* Phone numbers and e-mail addresses stay LTR inside an RTL page. */
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"] {
    direction: ltr;
    unicode-bidi: isolate;
}

@media (max-width: 575.98px) {
    .az-lang-switch > summary {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
    }

    .az-lang-switch__menu {
        min-width: 10rem;
    }

    /* The switcher sits at the bottom of the full-screen mobile menu; a
       downward dropdown would open below the viewport. Anchor it upward and
       to the right so it stays on screen in both LTR and RTL. */
    .sf-mobile-foot .az-lang-switch__menu,
    .mobile-lang .az-lang-switch__menu {
        top: auto;
        bottom: calc(100% + 0.45rem);
        left: auto;
        right: 0;
    }
}
