.gva-language-switcher {
    position: relative;
    display: inline-block;
    text-align: left;
}

.gva-language-switcher__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.625rem;
    background: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gva-language-switcher__button:hover {
    background: #f9fafb;
    border-color: rgba(2, 65, 57, 0.25);
}

.gva-language-switcher__button:focus {
    outline: none;
    border-color: #024139;
    box-shadow: 0 0 0 3px rgba(2, 65, 57, 0.14);
}

.gva-language-switcher__button[aria-expanded="true"] .gva-language-switcher__icon {
    transform: rotate(180deg);
}

.gva-language-switcher__flag {
    width: 20px;
    height: 13px;
    margin-right: 0.5rem;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.gva-language-switcher__flag--menu {
    width: 22px;
    height: 15px;
    margin-right: 0.75rem;
}

.gva-language-switcher__label,
.gva-language-switcher__item-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gva-language-switcher__label {
    max-width: 8rem;
}

.gva-language-switcher__icon {
    width: 16px;
    height: 16px;
    margin-left: 0.375rem;
    margin-right: -0.125rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.gva-language-switcher .drop-down-menu-language,
.gva-language-switcher__menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 14rem;
    padding: 0.375rem 0;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.625rem;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14), 0 8px 18px rgba(15, 23, 42, 0.08);
    z-index: 1000;
}

.gva-language-switcher__menu.left-0 {
    left: 0;
    right: auto;
}

.gva-language-switcher__menu.right-0 {
    left: auto;
    right: 0;
}

.gva-language-switcher__menu-inner {
    padding: 0;
}

.gva-language-switcher__item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.625rem 0.875rem;
    color: #374151;
    font-size: 0.9375rem;
    line-height: 1.25rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.gva-language-switcher__item:hover {
    background: #f3f4f6;
    color: #111827;
}

.gva-language-switcher__item.is-active {
    background: #f3f4f6;
    color: #111827;
    font-weight: 600;
}

@media (max-width: 639px) {
    .gva-language-switcher {
        width: 100%;
        max-width: 14rem;
    }

    .gva-language-switcher__button {
        width: 100%;
        justify-content: flex-start;
    }

    .gva-language-switcher__menu {
        width: 100%;
        min-width: 0;
    }
}
