.language-switcher {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    width: max-content;
}

.language-switcher__button {
    align-items: center;
    appearance: none;
    background-color: rgba(255, 245, 241, 0.08);
    border: 1px solid rgba(255, 245, 241, 0.35);
    border-radius: 999px;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 600;
    gap: 0.5rem;
    justify-content: flex-start;
    padding: 0.6rem 1.4rem;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.language-switcher__button::after {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
    display: inline-block;
    height: 0.55rem;
    margin-left: 0.4rem;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    width: 0.55rem;
}

.language-switcher.is-open .language-switcher__button::after {
    transform: rotate(-135deg);
}

.language-switcher__button:hover,
.language-switcher__button:focus-visible {
    background-color: rgba(255, 245, 241, 0.18);
    border-color: rgba(255, 245, 241, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 245, 241, 0.25);
    outline: none;
}

.language-switcher__list {
    background-color: var(--beige, #fff5f1);
    border-radius: 12px;
    box-shadow: 0 18px 35px rgba(24, 75, 113, 0.25);
    list-style: none;
    margin: 0;
    min-width: 180px;
    opacity: 0;
    padding: 0.6rem;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    visibility: hidden;
    z-index: 30;
}

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

.language-switcher__item {
    margin: 0;
}

.language-switcher__item + .language-switcher__item {
    margin-top: 0.25rem;
}

.language-switcher__item a {
    border-radius: 8px;
    color: var(--navy, #184b71);
    display: block;
    font-weight: 600;
    padding: 0.6rem 0.75rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.language-switcher__item a:hover,
.language-switcher__item a:focus-visible {
    background-color: rgba(24, 75, 113, 0.12);
    color: var(--navy, #184b71);
    outline: none;
}

.language-switcher__item.is-active a {
    background-color: rgba(24, 75, 113, 0.2);
}

.sidemenu .language-switcher {
    width: 100%;
}

.sidemenu .language-switcher__button {
    background-color: rgba(24, 75, 113, 0.08);
    border-color: rgba(24, 75, 113, 0.2);
    color: var(--navy, #184b71);
    justify-content: space-between;
    width: 100%;
}

.sidemenu .language-switcher__button:hover,
.sidemenu .language-switcher__button:focus-visible {
    background-color: rgba(24, 75, 113, 0.16);
    border-color: rgba(24, 75, 113, 0.35);
    box-shadow: 0 0 0 3px rgba(24, 75, 113, 0.15);
}

.sidemenu .language-switcher__list {
    left: 0;
    right: 0;
}

.form-status {
    display: none;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 1rem;
}

.form-status.form-status--success {
    color: #1f8a4c;
    display: block;
}

.form-status.form-status--error {
    color: #c0392b;
    display: block;
}
