.sglt-switcher {
    --sglt-flag-width: 36px;
    --sglt-flag-height: 22px;
    --sglt-panel-width: 280px;
    position: relative;
    display: inline-block;
    font-family: inherit;
    line-height: 1.3;
    text-align: left;
    vertical-align: middle;
    z-index: 1000;
    display: flex;
    justify-content: end;
}
.sglt-switcher .sglt-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0 12px 12px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #000;
    box-shadow: none;
    cursor: pointer;
}
.sglt-switcher.is-open { z-index: 1001; }
.sglt-switcher .sglt-arrow {
    display: block;
    flex: 0 0 auto;
    align-self: center;
    width: 0;
    height: 0;
    margin: 0;
    border-left: 4.6667px solid transparent;
    border-right: 4.6667px solid transparent;
    border-top: 8px solid currentColor;
    border-bottom: 0;
}
.sglt-switcher .sglt-flag {
    position: relative;
    display: inline-block;
    flex: 0 0 var(--sglt-flag-width);
    width: var(--sglt-flag-width);
    height: var(--sglt-flag-height);
    overflow: hidden;
    vertical-align: middle;
    filter: grayscale(1);
    opacity: .55;
    transition: filter .15s ease, opacity .15s ease;
}
.sglt-switcher .sglt-flag > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
}
.sglt-switcher .sglt-panel {
    position: absolute;
    inset: 100% 0 auto auto;
    box-sizing: border-box;
    width: var(--sglt-panel-width);
    max-width: calc(100vw - 32px);
    max-height: min(65vh, 600px);
    overflow-y: auto;
    margin: 0;
    padding: 16px 20px;
    list-style: none;
    background: #fff;
    color: #000;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.16);
}
.sglt-switcher .sglt-panel[hidden], .sglt-original[hidden] { display: none !important; }
.sglt-switcher .sglt-panel li { margin: 0; padding: 0; list-style: none; }
.sglt-switcher .sglt-panel li::before { content: none; }
.sglt-switcher .sglt-language {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
}
.sglt-switcher .sglt-trigger .sglt-flag,
.sglt-switcher .sglt-language[aria-pressed="true"] .sglt-flag,
.sglt-switcher .sglt-language:hover .sglt-flag,
.sglt-switcher .sglt-language:focus-visible .sglt-flag { filter: grayscale(0); opacity: 1; }
.sglt-switcher .sglt-trigger:focus-visible,
.sglt-switcher .sglt-language:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.sglt-switcher .sglt-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: reduce) { .sglt-switcher .sglt-flag { transition: none; } }

#sglt-engine[hidden] { display: none !important; }
.sglt-switcher .sglt-language { width: 100%; font-family: inherit; line-height: inherit; text-align: left; cursor: pointer; border-radius: 0; box-shadow: none; }
.sglt-switcher .sglt-status:not(:empty) { position: static; display: block; width: 240px; height: auto; clip-path: none; color: #9b1c1c; font-size: 14px; }

@media (max-width: 992px) {
    .sglt-switcher .sglt-panel {
        position: fixed;
        inset: var(--sglt-mobile-top, 120px) 12px auto auto;
        width: min(360px, calc(100vw - 24px));
        max-width: none;
        max-height: max(48px, calc(100vh - var(--sglt-mobile-top, 120px) - 12px));
        max-height: max(48px, calc(100dvh - var(--sglt-mobile-top, 120px) - 12px));
        padding: 12px 20px;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transition: none;
    }
    .sglt-switcher .sglt-language {
        min-height: 48px;
        box-sizing: border-box;
    }
    .sglt-switcher .sglt-label {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}
