/* Multilingual — dark footer language switcher */

.ml-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.ml-switcher__btn {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    cursor: pointer;
    opacity: 0.75;
    text-decoration: none !important;
    transition: opacity 0.15s ease, color 0.15s ease;
}

a.ml-switcher__btn {
    color: inherit !important;
}

.ml-switcher__btn:hover,
.ml-switcher__btn:focus-visible,
.ml-switcher.is-open .ml-switcher__btn {
    opacity: 1;
    outline: none;
    color: inherit !important;
    text-decoration: none !important;
}

.ml-switcher__menu {
    position: absolute;
    bottom: calc(100% + 0.4rem);
    left: 0;
    z-index: 60;
    min-width: 3.5rem;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
    border-radius: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1f2937;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    color: #e5e7eb;
}

.ml-switcher__menu[hidden] {
    display: none !important;
}

.ml-switcher__option {
    margin: 0;
    padding: 0;
}

.ml-switcher__option a,
.ml-switcher__option span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.ml-switcher__option a {
    color: #d1d5db;
}

.ml-switcher__option a:hover,
.ml-switcher__option a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    text-decoration: none;
}

/* Active language */
.ml-switcher__option.is-active span {
    color: #fff;
    background: var(--color-primary, #dc2626);
}

.ml-switcher__option.is-active span::after {
    content: '';
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #fff;
    flex-shrink: 0;
}

.footer-lang .ml-switcher {
    margin: 0;
}

/* Keep Back to Top hidden while language menu is open */
#back-to-top-btn.ml-switcher-hide-btt {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
