.language-trigger {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: #fff;
    color: #111 !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .16);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.language-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

.language-trigger:focus-visible {
    outline: 3px solid #f5c842;
    outline-offset: 3px;
}

.brand-logo.language-trigger {
    background: #fff !important;
    color: #111 !important;
    font-size: 20px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .24) !important;
}

.floating-language-trigger {
    position: fixed;
    z-index: 990;
    top: 16px;
    right: 16px;
}

.language-menu {
    position: fixed;
    z-index: 1200;
    width: min(248px, calc(100vw - 24px));
    padding: 7px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(16, 24, 40, .22);
}

.language-menu[hidden] {
    display: none;
}

.language-option {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #101828;
    text-align: left;
    font: 700 14px/1.2 inherit;
    cursor: pointer;
}

.language-option:hover,
.language-option.active {
    background: #f2f4f7;
}

.language-trigger img,
.language-option .language-flag {
    width: 24px;
    height: 16px;
    display: block;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(16, 24, 40, .14);
}

.language-option .language-check {
    color: #111;
    font-weight: 900;
    opacity: 0;
}

.language-option.active .language-check {
    opacity: 1;
}

@media (max-width: 760px) {
    .sidebar .brand {
        display: flex;
        flex: 0 0 auto;
        padding: 0;
        border: 0;
    }

    .sidebar .brand .language-trigger {
        width: 44px;
        min-width: 44px;
        height: 44px;
        box-shadow: none !important;
    }

    .floating-language-trigger {
        top: 10px;
        right: 10px;
    }
}
