/**
 * Header language switcher (MMD_Base::locale-switcher.phtml), shown beside notifications and the user menu.
 */
.page-header-actions .mmd-locale-switcher {
    float: right;
    margin-left: 0.3rem;
    position: relative;
    z-index: 390;
}

/* Open menu stays above every other header dropdown and the page below. */
.page-header-actions .mmd-locale-switcher.active,
.page-header-actions .mmd-locale-switcher._active {
    z-index: 1001;
}

.mmd-locale-switcher .mmd-locale-switcher__menu {
    z-index: 1001;
}

.mmd-locale-switcher .mmd-locale-switcher__toggle.admin__action-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    height: 3.4rem;
    padding: 0 3rem 0 1rem;
    color: #41362f;
    font-size: 1.4rem;
    font-weight: 600;
    white-space: nowrap;
}

.mmd-locale-switcher .mmd-locale-switcher__toggle.admin__action-dropdown:hover {
    color: #060504;
}

.mmd-locale-switcher .mmd-locale-switcher__icon {
    flex: none;
}

.mmd-locale-switcher .mmd-locale-switcher__menu {
    min-width: 100%;
    padding: 0.5rem 0;
}

.mmd-locale-switcher .mmd-locale-switcher__menu form {
    margin: 0;
}

.mmd-locale-switcher .mmd-locale-switcher__option {
    display: block;
    width: 100%;
    padding: 0.8rem 1.6rem;
    border: 0;
    background: none;
    box-shadow: none;
    color: #41362f;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: start;
    white-space: nowrap;
    cursor: pointer;
}

.mmd-locale-switcher .mmd-locale-switcher__option:hover,
.mmd-locale-switcher .mmd-locale-switcher__option:focus {
    background: #e3e3e3;
    color: #060504;
}

.mmd-locale-switcher .mmd-locale-switcher__option._active,
.mmd-locale-switcher .mmd-locale-switcher__option:disabled {
    font-weight: 600;
    cursor: default;
    opacity: 1;
    background: none;
}

.mmd-locale-switcher .mmd-locale-switcher__option._active::after {
    content: ' \2713';
}

body.admin-rtl .page-header-actions .mmd-locale-switcher {
    float: left;
    margin-left: 0;
    margin-right: 0.3rem;
}

body.admin-rtl .mmd-locale-switcher .mmd-locale-switcher__toggle.admin__action-dropdown {
    padding: 0 1rem 0 3rem;
}

/* Arabic glyphs read smaller than Latin ones at the same size. */
.mmd-locale-switcher [lang="ar"],
body.admin-rtl .mmd-locale-switcher__current {
    font-size: 1.5rem;
}
