.xnv-language-suggestion[hidden] { display: none !important; }

.xnv-language-suggestion {
    z-index: 10;
    width: 292px;
    max-width: calc(100vw - 24px);
    border: 1px solid #4b4c54;
    border-radius: 5px;
    background: #202126;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .44);
    color: #f5f5f7;
    font-family: 'Exo 2', Arial, sans-serif;
}

.language-holder > .xnv-language-suggestion {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
}

.language-holder > .xnv-language-suggestion::before {
    content: '';
    position: absolute;
    top: -7px;
    inset-inline-end: 18px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #4b4c54;
    border-inline-start: 1px solid #4b4c54;
    background: #202126;
    transform: rotate(45deg);
}

.xnv-language-suggestion__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    grid-template-areas: 'message close' 'link link' 'stay stay';
    gap: 8px 6px;
    padding: 12px;
}

.xnv-language-suggestion__message {
    grid-area: message;
    align-self: center;
    margin: 0;
    color: #e1e1e5;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-align: start;
}

.xnv-language-suggestion__link {
    grid-area: link;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 40px;
    padding: 7px 12px;
    border: 1px solid #d92639;
    border-radius: 4px;
    background: #292a30;
    color: #fff !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
}

.xnv-language-suggestion__link:hover,
.xnv-language-suggestion__link:focus-visible { background: #383940; border-color: #f24352; color: #fff !important; }
.xnv-language-suggestion__link:focus-visible,
.xnv-language-suggestion__stay:focus-visible,
.xnv-language-suggestion__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.xnv-language-suggestion__flag {
    flex: 0 0 20px;
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 1px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .48);
}

.xnv-language-suggestion__arrow { color: #ff6572; font-size: 19px; font-weight: 400; line-height: 14px; }
.xnv-language-suggestion__link[dir='rtl'] .xnv-language-suggestion__arrow { transform: rotate(180deg); }

.xnv-language-suggestion__stay {
    grid-area: stay;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #3d3e44;
    border-radius: 4px;
    background: #2b2c32;
    color: #dedee3;
    font: 400 12px/1.3 'Exo 2', Arial, sans-serif;
    cursor: pointer;
}

.xnv-language-suggestion__stay:hover { background: #3c3d43; color: #fff; }
.xnv-language-suggestion__message:empty,
.xnv-language-suggestion__stay:empty { display: none; }

.xnv-language-suggestion__close {
    grid-area: close;
    align-self: start;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #bdbdc4;
    font: 22px/32px Arial, sans-serif;
    text-align: center;
    cursor: pointer;
}

.xnv-language-suggestion__close:hover { background: #34353b; color: #fff; }
.language-holder.open > .xnv-language-suggestion { display: none; }

@media (max-width: 1152px) {
    body.xnv-language-suggestion-visible { padding-top: 108px; }

    .header > .xnv-language-suggestion {
        position: absolute;
        top: calc(100% + 6px);
        left: 50%;
        right: auto;
        width: max-content;
        max-width: calc(100vw - 16px);
        transform: translateX(-50%);
        border-radius: 4px;
    }

    .xnv-language-suggestion__inner {
        grid-template-columns: minmax(0, 1fr) 36px;
        grid-template-areas: 'link close';
        gap: 2px;
        padding: 4px;
    }

    .xnv-language-suggestion__message,
    .xnv-language-suggestion__stay { display: none; }

    .xnv-language-suggestion__link {
        justify-content: flex-start;
        min-height: 36px;
        padding: 5px 8px;
        border: 0;
        border-radius: 3px;
        background: transparent;
        font-size: 13px;
        font-weight: 400;
        text-align: start;
    }

    .xnv-language-suggestion__link:hover,
    .xnv-language-suggestion__link:focus-visible { background: #34353b; border: 0; }
    .xnv-language-suggestion__text { white-space: nowrap; }
    .xnv-language-suggestion__close { align-self: center; width: 36px; height: 36px; line-height: 36px; }
    body.m-drawer-open .xnv-language-suggestion,
    body.m-search-open .xnv-language-suggestion,
    html.kvs-modal-lock .xnv-language-suggestion { display: none !important; }
}
