.jam-language-switcher {
    display: flex !important;
    gap: 6px;
    align-items: center !important;
    font-size: 14px;
    flex-wrap: wrap;
}

.jam-switcher-vertical {
    flex-direction: column !important;
    align-items: flex-start !important;
}

.jam-switcher-horizontal {
    flex-direction: row !important;
}

.jam-language-switcher .jam-lang-link {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    font-weight: 500;
    line-height: 1 !important;
    white-space: nowrap;
}

.jam-language-switcher .jam-lang-flag,
.jam-language-switcher img.jam-lang-flag {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    max-width: 14px !important;
    min-height: 14px !important;
    max-height: 14px !important;
    display: inline-block !important;
    object-fit: cover !important;
    border-radius: 50%;
    flex: 0 0 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

.jam-language-switcher.jam-flag-size-small .jam-lang-flag,
.jam-language-switcher.jam-flag-size-small img.jam-lang-flag {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    max-width: 12px !important;
    min-height: 12px !important;
    max-height: 12px !important;
    flex-basis: 12px !important;
}

.jam-language-switcher.jam-flag-size-large .jam-lang-flag,
.jam-language-switcher.jam-flag-size-large img.jam-lang-flag {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    flex-basis: 18px !important;
}

.jam-flag-rounded .jam-lang-flag {
    border-radius: 4px;
}

.jam-flag-square .jam-lang-flag {
    border-radius: 0;
}

.jam-language-switcher .jam-lang-name {
    display: inline-block !important;
    line-height: 1 !important;
    white-space: nowrap;
}

.jam-lang-link:hover {
    background-color: #f0f0f0;
    border-color: #999;
    color: #000;
}

.jam-theme-minimal .jam-lang-link {
    border-color: transparent;
    background: transparent;
    padding: 4px 6px;
}

.jam-theme-minimal .jam-lang-link:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.jam-theme-minimal .jam-lang-link.jam-lang-active {
    background-color: rgba(0, 115, 170, 0.12);
    border-color: transparent;
    color: #0073aa;
}

.jam-theme-underline .jam-lang-link {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    padding: 5px 2px;
}

.jam-theme-underline .jam-lang-link:hover {
    background: transparent;
    border-bottom-color: #999;
}

.jam-theme-underline .jam-lang-link.jam-lang-active {
    background: transparent;
    border-bottom-color: #0073aa;
    color: #0073aa;
}

.jam-theme-plain .jam-lang-link {
    border: 0;
    background: transparent;
    padding: 2px;
}

.jam-theme-plain .jam-lang-link:hover {
    background: transparent;
    color: #0073aa;
}

.jam-theme-plain .jam-lang-link.jam-lang-active {
    background: transparent;
    color: #0073aa;
}

.jam-language-switcher.jam-no-names .jam-lang-link {
    width: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
}

.jam-language-switcher.jam-no-names.jam-flag-size-small .jam-lang-link {
    width: 24px;
    height: 24px;
}

.jam-language-switcher.jam-no-names.jam-flag-size-large .jam-lang-link {
    width: 34px;
    height: 34px;
}

.jam-lang-link.jam-lang-active {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.jam-lang-link.jam-lang-active:hover {
    background-color: #005f8b;
    color: #fff;
}

.jam-switcher-vertical .jam-lang-link {
    width: 100%;
    text-align: left;
}
