.pml-language-switcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
    color: #17213b;
    font: 600 12px/1.2 Arial, sans-serif;
    backdrop-filter: blur(10px);
}

.pml-language-switcher select {
    min-width: 92px;
    padding: 6px 26px 6px 8px;
    border: 1px solid #dbe2ee;
    border-radius: 6px;
    background-color: #fff;
    color: #17213b;
    font: inherit;
    cursor: pointer;
}

html.pml-rtl body {
    direction: rtl;
    text-align: right;
}

html.pml-rtl .pml-language-switcher {
    right: auto;
    left: 18px;
}

/* Keep the selector clear of the account/sign-out area in panel sidebars. */
html.pml-rtl body:has(.pbd-shell, .pba-shell, .pmc-shell) .pml-language-switcher {
    right: 18px;
    left: auto;
}

html.pml-rtl input,
html.pml-rtl textarea,
html.pml-rtl select {
    text-align: right;
}

html.pml-rtl .pba-shell,
html.pml-rtl .pbd-shell,
html.pml-rtl .pmc-shell,
html.pml-rtl .app-wrapper {
    direction: rtl;
}

html.pml-rtl .pba-sidebar,
html.pml-rtl .pbd-sidebar,
html.pml-rtl .pmc-sidebar {
    border-left: 1px solid #e2e8f0;
    border-right: 0;
}

@media (max-width: 640px) {
    .pml-language-switcher {
        right: 10px;
        bottom: 10px;
        padding: 7px;
    }

    html.pml-rtl .pml-language-switcher {
        right: auto;
        left: 10px;
    }

    html.pml-rtl body:has(.pbd-shell, .pba-shell, .pmc-shell) .pml-language-switcher {
        right: 10px;
        left: auto;
    }

    .pml-language-switcher label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pml-language-switcher * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
