.c-lang { position: absolute; top: 11px; width: 150px; right: 50px + 16px; z-index: $master-layer + 1; display: none; @include rwd($break-menu) { display: block; } &:has(.c-lang__list:popover-open) { .c-lang__button { .icon-arrow-down { transform: rotate(-180deg); } } } } .c-lang__button { border: 0; background: none; padding: 0; font: inherit; display: flex; align-items: center; color: $color-white; cursor: pointer; .icon-lang { color: #92BD39; @include font-size(26px); margin-right: 8px; } .icon-arrow-down { margin-left: 8px; transition: transform 350ms $ease-out; } } .c-lang__list { --focus-ring: #083F4D; position-area: bottom span-right; position: absolute; inset: auto; width: 150px; margin: 10px 0 0 0; border: 0; border-radius: 10px; background-color: #F7BA00; overflow: hidden; transform: translateY(-10px); opacity: 0; flex-direction: column; transition: all 350ms $ease-out, display 350ms allow-discrete, overlay 350ms allow-discrete; &:popover-open { display: flex; opacity: 1; transform: none; } button { display: block; padding: 9px 20px; color: #474747; background-color: transparent; border: 0; cursor: pointer; font-family: "Source Sans Pro"; font-size: 16px; line-height: 18.4px; text-align: left; &:hover { background-color: #EDAA00; } &.is-active { font-weight: $semibold; background-color: #EDAA00; } } } @starting-style { .c-lang__list:popover-open { opacity: 0; transform: translateY(-10px); } }