:root {
    --glt-ink: #123353;
    --glt-leaf: #1677d2;
    --glt-border: #bfd6e9;
    --glt-surface: #f6fafe;
}

.glt-language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-inline: 8px;
}

.glt-language-switcher[hidden] {
    display: none !important;
}

.glt-language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 13px 0 10px;
    border: 1px solid var(--glt-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--glt-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    appearance: none;
    box-shadow: 0 6px 18px rgba(18, 51, 83, 0.1);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.glt-language-toggle:hover,
.glt-language-switcher.is-open .glt-language-toggle {
    border-color: #3a91df;
    box-shadow: 0 7px 22px rgba(22, 119, 210, 0.16);
}

.glt-language-toggle:focus-visible,
.glt-language-option:focus-visible {
    outline: 3px solid rgba(22, 119, 210, 0.22);
    outline-offset: 2px;
}

.glt-language-chevron {
    width: 11px;
    height: 8px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform 160ms ease;
}

.glt-language-switcher.is-open .glt-language-chevron {
    transform: rotate(180deg);
}

.glt-language-menu {
    position: absolute;
    z-index: 100100;
    top: calc(100% + 9px);
    right: 0;
    width: 112px;
    padding: 7px;
    border: 1px solid #d8e7f4;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 18px 46px rgba(18, 51, 83, 0.2);
}

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

.glt-language-option {
    display: grid;
    grid-template-columns: 25px 1fr;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 7px 10px;
    border-radius: 10px;
    color: #17344f;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color 140ms ease, color 140ms ease;
}

.glt-language-option:hover {
    background: #eaf5ff;
    color: #105b9c;
}

.glt-language-option.is-current {
    background: #dcefff;
    color: #0b5ea8;
}

.glt-language-option strong {
    color: inherit;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-align: center;
}

.glt-language-flag {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 24px;
    height: 16px;
    overflow: hidden;
    border: 1px solid rgba(18, 51, 83, 0.16);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(18, 51, 83, 0.14);
}

.glt-language-flag--fr { background: linear-gradient(90deg, #1b45a1 0 33.33%, #fff 33.33% 66.66%, #e52935 66.66%); }
.glt-language-flag--de { background: linear-gradient(#151515 0 33.33%, #d51f2b 33.33% 66.66%, #f7cc24 66.66%); }
.glt-language-flag--es { background: linear-gradient(#c9102e 0 25%, #ffc928 25% 75%, #c9102e 75%); }
.glt-language-flag--it { background: linear-gradient(90deg, #149447 0 33.33%, #fff 33.33% 66.66%, #d82934 66.66%); }
.glt-language-flag--nl { background: linear-gradient(#ae1c28 0 33.33%, #fff 33.33% 66.66%, #21468b 66.66%); }
.glt-language-flag--pt { background: linear-gradient(90deg, #087d46 0 40%, #d6222e 40%); }
.glt-language-flag--pt::after {
    position: absolute;
    top: 4px;
    left: 7px;
    width: 7px;
    height: 7px;
    border: 1px solid #ffe45c;
    border-radius: 50%;
    content: '';
}
.glt-language-flag--en {
    background:
        linear-gradient(90deg, transparent 40%, #cf173c 40% 60%, transparent 60%),
        linear-gradient(transparent 36%, #cf173c 36% 64%, transparent 64%),
        #fff;
}

.glt-language-suggestion {
    position: fixed;
    z-index: 100200;
    right: 22px;
    bottom: 22px;
    display: grid;
    grid-template-columns: 30px minmax(170px, 1fr) auto 28px;
    align-items: center;
    gap: 12px;
    width: min(620px, calc(100vw - 44px));
    padding: 13px 14px;
    border: 1px solid #b9d8f3;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 50px rgba(11, 49, 88, 0.2);
    color: var(--glt-ink);
    animation: glt-suggestion-in 220ms ease-out both;
}

.glt-language-suggestion > .glt-language-flag {
    width: 30px;
    height: 20px;
}

.glt-language-suggestion__copy {
    display: grid;
    gap: 2px;
    line-height: 1.2;
}

.glt-language-suggestion__copy span {
    color: #58718a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.glt-language-suggestion__copy strong {
    color: #0b3158;
    font-size: 14px;
    font-weight: 800;
}

.glt-language-suggestion__actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.glt-language-suggestion__accept,
.glt-language-suggestion__stay {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #1677d2;
    border-radius: 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 34px;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
}

.glt-language-suggestion__accept {
    background: #1677d2;
    color: #fff !important;
}

.glt-language-suggestion__accept:hover {
    background: #0f63b2;
}

.glt-language-suggestion__stay {
    background: #f3f8fd;
    color: #17466f;
}

.glt-language-suggestion__close {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #58718a;
    font: inherit;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.glt-language-suggestion__close:hover {
    background: #eaf5ff;
    color: #0b5ea8;
}

.glt-language-suggestion__accept:focus-visible,
.glt-language-suggestion__stay:focus-visible,
.glt-language-suggestion__close:focus-visible {
    outline: 3px solid rgba(22, 119, 210, 0.22);
    outline-offset: 2px;
}

.glt-language-suggestion.is-leaving {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

@keyframes glt-suggestion-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.glt-review-translation {
    margin-top: 14px;
    padding: 12px 14px;
    border-inline-start: 3px solid var(--glt-leaf);
    border-radius: 0 10px 10px 0;
    background: var(--glt-surface);
}

.glt-review-translation__label {
    display: block;
    margin-bottom: 5px;
    color: var(--glt-leaf);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .glt-language-switcher {
        margin-inline: 4px;
    }

.glt-language-toggle {
        height: 36px;
        padding-inline: 8px 10px;
        font-size: 12px;
    }

    .glt-language-menu {
        right: -4px;
        width: 108px;
    }

    .glt-language-suggestion {
        right: 10px;
        bottom: 10px;
        grid-template-columns: 26px 1fr 26px;
        width: calc(100vw - 20px);
        gap: 9px;
        padding: 11px;
        border-radius: 14px;
    }

    .glt-language-suggestion > .glt-language-flag {
        width: 26px;
        height: 18px;
    }

    .glt-language-suggestion__actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .glt-language-suggestion__accept,
    .glt-language-suggestion__stay {
        width: 100%;
        padding-inline: 8px;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .glt-language-suggestion {
        animation: none;
    }
}
