#language-picker {
    position: fixed;
    inset-block-start: 1em;
    inset-inline-start: 1em;
    z-index: 2;
}

@media print {
    #language-picker {
        display: none;
    }
}

.noscript-picker {
    position: relative;

    /* &::after {
        content: '';
        display: block;
        position: absolute;
        top: calc(50% - 1px);
        left: 0;
        width: 100%;
        height: 0px;
        border-block-start: 2px solid white;
        transform-origin: center;
        transform: rotate(135deg);
        z-index: 1;
        pointer-events: none;
    } */

    #picker-button-label, #picker-dialog-label {
        position: absolute;
        inset: 0;
        width: 0px;
        height: 0px;
        clip-path: rect(0 0 0 0);
    }

    .picker-status {
        outline: none;

        &.script { display: none; }
        &.noscript { display: block; }

        @media (scripting: enabled) {
            &.script { display: block; }
            &.noscript { display: none; }
        }
    }

    button {
        appearance: none;
        width: calc(2em + 1lh + 4px);
        height: calc(2em + 1lh + 4px);
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 2px solid white;
        border-radius: 9999px;
        box-sizing: border-box;
        line-height: 1;
        cursor: pointer;

        background: rgb(0 0 0 / 50%);

        font-family: inherit;
        font-size: inherit
    }
    #menu {
        margin: 0;
        margin-block-start: 2px;
        inset: auto;
        position-area: span-inline-end block-end;

        text-align: center;
        padding: 1em;
        width: 9em;
        
        border: none;
        border-radius: calc((1em + 1lh + 1em) / 2);
        background: white;
        color: black;
        box-shadow: 1px 1px 10px rgb(0 0 0 / 12.5%);

        @supports not (position-area: span-inline-end block-end) {
            position: fixed;
            top: calc(2em + 1lh + 4px + 1em);
            left: 1em;
        }

        .icon {
            margin-block-end: 0.5em;
        }

        & .icon::before {
            content: '🗿' / '';
            font-size: 300%;
            /* color: transparent; */
            /* background: darkgray; */
            /* background-clip: text; */
        }
    }
}