.tmec-language-float {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: inherit;
}

.tmec-language-float__toggle {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #06172c;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(6, 23, 44, .3);
    cursor: pointer;
    appearance: none;
}

.tmec-language-float__toggle:hover,
.tmec-language-float__toggle:focus-visible {
    background: #0d3158;
    transform: translateY(-1px);
}

.tmec-language-float__toggle:focus-visible {
    outline: 3px solid #f7c948;
    outline-offset: 3px;
}

.tmec-language-float__flag {
    font-size: 26px;
    line-height: 1;
}

.tmec-language-float__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: max-content;
    min-width: 168px;
    padding: 7px;
    border: 1px solid rgba(6, 23, 44, .14);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(6, 23, 44, .24);
}

.tmec-language-float__panel[hidden] {
    display: none !important;
}

.tmec-language-float__panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 9px;
    color: #06172c;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

.tmec-language-float__panel a:hover,
.tmec-language-float__panel a:focus-visible {
    background: #edf4fb;
}

.tmec-language-float__panel a:focus-visible {
    outline: 2px solid #0d5ea6;
    outline-offset: -2px;
}

.tmec-language-float__panel a[aria-current="page"] {
    background: #06172c;
    color: #ffffff;
}

.tmec-language-float__panel a span:first-child {
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 640px) {
    .tmec-language-float {
        right: max(18px, env(safe-area-inset-right));
        bottom: calc(84px + env(safe-area-inset-bottom));
    }

    .tmec-language-float__toggle {
        width: 50px;
        height: 50px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .tmec-language-float__toggle {
        transition: background-color .18s ease, transform .18s ease;
    }
}

@media (forced-colors: active) {
    .tmec-language-float__toggle,
    .tmec-language-float__panel,
    .tmec-language-float__panel a {
        border: 1px solid CanvasText;
    }
}
