/**
 * Language Switcher Styles
 */
 .language-switcher__flag svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 20px !important;
    max-height: 16px !important;
}

.language-switcher__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 16px;
    overflow: hidden;
}

.language-switcher__button {
    position: relative;
    background: none;
    border: none;
    padding: 0;
}

.language-switcher__current {
    display: none;
}

@media (min-width: 768px) {
    .language-switcher__current {
        display: inline;
    }
}

.language-switcher__dropdown {
    max-height: 300px;
    overflow-y: auto;
}

.language-switcher__link {
    white-space: nowrap;
}

.language-switcher__link:hover {
    background-color: transparent !important;
}

.language-switcher__name {
    flex: 1;
}

/* Hide WPML legacy footer language switcher (theme uses custom switcher) */
.wpml-ls-statics-footer,
.wpml-ls-legacy-list-horizontal {
    display: none !important;
}
