.button { --language-switcher-color: var(--Text-Interactive-Secondary); --language-switcher-hover-color: var(--Text-Interactive-Secondary-Hover); background-color: transparent; border-width: 0; padding: 0; cursor: pointer; display: grid; grid-template-columns: repeat(2, max-content) 1fr; align-items: center; width: 100%; color: var(--language-switcher-color); } .button *, .button svg * { fill: var(--language-switcher-color); } .button:hover { color: var(--language-switcher-hover-color); } .button:hover *, .button:hover svg * { fill: var(--language-switcher-hover-color); } .buttonText { color: inherit !important; margin-left: var(--Space-x1); margin-right: var(--Space-x025); } .footer .button { --language-switcher-color: var(--Primary-Dark-On-Surface-Text); --language-switcher-hover-color: var(--Primary-Dark-On-Surface-Text); } .chevron { justify-self: end; transition: transform 0.3s; } .chevron.isExpanded { transform: rotate(180deg); } .dropdown { position: fixed; width: 100%; background-color: var(--Base-Surface-Primary-light-Normal); z-index: var(--menu-overlay-z-index); } .header .dropdown { right: -100vw; top: calc(var(--main-menu-mobile-height) + var(--alert-and-banner-height)); bottom: 0; transition: right 0.3s; } .header .dropdown.isExpanded { display: block; right: 0; } .footer .dropdown { transition: transform 0.3s; width: 100%; height: 100vh; left: 0; bottom: 0; transform: translateY(100%); visibility: hidden; } .footer .dropdown.isExpanded { transform: translateY(0); visibility: visible; } @media screen and (max-width: 767px) { body:has(.footer .dropdown.isExpanded) { overflow: hidden !important; touch-action: none; } .footer .dropdown.isExpanded { z-index: var(--language-switcher-z-index); } } @media screen and (min-width: 768px) { .languageSwitcher { position: relative; } .dropdown { position: absolute; background-color: var(--Base-Surface-Primary-light-Normal); border-radius: var(--Corner-Radius-lg); box-shadow: var(--popup-box-shadow); display: none; min-width: 12.5rem; z-index: var(--header-z-index); } .header .dropdown { top: 2.25rem; bottom: auto; } .header .dropdown::before { top: -1.25rem; transform: rotate(180deg); } .footer .dropdown { transition: none; height: auto; left: -100%; bottom: 2.25rem; } .footer .dropdown.isExpanded { display: block; } .footer .dropdown::before { top: 100%; } .button { grid-template-columns: repeat(3, max-content); } }