.langSwitcherRoot { } .langSwitcher { position: relative; z-index: 1000; } .currentLanguage { border: none; background: none; font: inherit; font-size: 1rem; font-weight: 700; color: var(--on-background); display: flex; align-items: center; gap: 10px; padding: 18px; cursor: none; } .selector { position: absolute; width: 200px; top: 0; right: 0; background-color: var(--background); padding: 8px 8px; border-radius: 16px; border: 1px solid var(--divider); box-shadow: 0px 4px 16px #00000014; background-color: #fafafa; z-index: 1000; pointer-events: none; opacity: 0; .header { color: #6f6f6f; font-weight: 500; font-size: 14px; margin: 4px 16px; margin-bottom: 8px; } ul { list-style: none; button { font: inherit; border: none; background: none; width: 100%; text-align: left; font-size: 1rem; font-weight: 600; padding: 6px 16px; cursor: none !important; border-radius: 8px; transition: 0.3s ease; &:hover { background-color: var(--divider); } } } } .openSelector { pointer-events: all; opacity: 1; } .hideCurrent { opacity: 0; } @media screen and (max-width: 570px) { .currentLangLabel { display: none; } } @media screen and (max-width: 540px) { .selector { width: calc(100vw - 48px); right: -24px; box-shadow: 0px 4px 180px rgb(0 0 0 / 31%); .header { font-size: 16px; } ul { li { padding: 12px 16px; } } } }