.jrg-language-switcher {
    position: relative;
    display: inline-flex;
    font-family: var(--e-global-typography-primary-font-family, "Manrope"), Sans-serif;
    font-weight: var(--e-global-typography-primary-font-weight, 600);
    line-height: 1;
    z-index: 20;
}

.jrg-language-switcher,
.jrg-language-switcher *,
.jrg-language-switcher *::before,
.jrg-language-switcher *::after {
    box-sizing: border-box;
}

.jrg-language-switcher__trigger {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 8px;
    border: 0 !important;
    border-radius: 999px;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: inherit;
    box-shadow: none !important;
    cursor: pointer;
    font-family: var(--e-global-typography-primary-font-family, "Manrope"), Sans-serif !important;
    font-size: inherit;
    font-style: normal;
    font-weight: var(--e-global-typography-primary-font-weight, 600) !important;
    letter-spacing: 0;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.jrg-language-switcher__trigger:hover,
.jrg-language-switcher__trigger:focus-visible {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none;
}

.jrg-language-switcher__trigger:active {
    transform: translateY(1px);
}

.jrg-language-switcher__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-width: 22px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", emoji, sans-serif !important;
    font-size: 18px;
    font-weight: 400 !important;
    line-height: 1;
}

.jrg-language-switcher__label,
.jrg-language-switcher__name {
    font-family: var(--e-global-typography-primary-font-family, "Manrope"), Sans-serif !important;
    font-weight: var(--e-global-typography-primary-font-weight, 600) !important;
    overflow: hidden;
    max-width: 150px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jrg-language-switcher__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 2px;
    border: 0 !important;
    line-height: 1;
    transition: transform 160ms ease;
}

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

.jrg-language-switcher__chevron-icon {
    display: block;
    width: 16px;
    height: 16px;
    color: inherit;
    stroke: currentColor;
    overflow: visible;
}

.jrg-language-switcher__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.jrg-language-switcher.is-open .jrg-language-switcher__menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.jrg-language-switcher__item {
    margin: 0;
    padding: 0;
}

.jrg-language-switcher__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 9px 10px;
    border-radius: 7px;
    color: #111827;
    font-family: var(--e-global-typography-primary-font-family, "Manrope"), Sans-serif !important;
    font-size: inherit;
    font-style: normal;
    font-weight: var(--e-global-typography-primary-font-weight, 600) !important;
    line-height: 1.1;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease;
}

.jrg-language-switcher__link:hover,
.jrg-language-switcher__link:focus-visible {
    background: #f3f6f8;
    color: #0f172a;
    outline: none;
    text-decoration: none;
}

.jrg-language-switcher__link.is-active {
    color: #0f5132;
}

.jrg-language-switcher__check {
    position: relative;
    width: 16px;
    height: 16px;
    margin-left: auto;
}

.jrg-language-switcher__check::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 11px;
    border-right: 3px solid #2f855a;
    border-bottom: 3px solid #2f855a;
    transform: rotate(45deg);
}

@media (max-width: 480px) {
    .jrg-language-switcher__label,
    .jrg-language-switcher__name {
        max-width: 120px;
    }

    .jrg-language-switcher__menu {
        right: auto;
        left: 0;
        min-width: 190px;
    }
}

.jrg-language-switcher.jrg-language-switcher--text-black .jrg-language-switcher__trigger,
.jrg-language-switcher.jrg-language-switcher--text-black .jrg-language-switcher__label,
.jrg-language-switcher.jrg-language-switcher--text-black .jrg-language-switcher__chevron {
    color: #111827 !important;
}

.jrg-language-switcher.jrg-language-switcher--text-white .jrg-language-switcher__trigger,
.jrg-language-switcher.jrg-language-switcher--text-white .jrg-language-switcher__label,
.jrg-language-switcher.jrg-language-switcher--text-white .jrg-language-switcher__chevron {
    color: #ffffff !important;
}

.jrg-language-switcher.jrg-language-switcher--text-white .jrg-language-switcher__chevron {
    border-color: transparent !important;
}

.jrg-language-switcher.jrg-language-switcher--text-black .jrg-language-switcher__chevron {
    border-color: transparent !important;
}
