/* ---- Footer language switcher ---- */
.footer-bottom {
    overflow: visible;
}

.footer-bottom-actions {
    overflow: visible;
    position: relative;
    z-index: 5;
}

.footer-lang {
    position: relative;
    font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
}

.footer-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    min-height: 32px;
    border: 1px solid rgba(12, 110, 95, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0c6e5f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-lang-btn:hover,
.footer-lang-btn:focus-visible {
    background: #e8f5e9;
    border-color: #0c6e5f;
    outline: none;
    box-shadow: 0 2px 10px rgba(12, 110, 95, 0.15);
}

.footer-lang-btn[aria-expanded="true"] {
    background: #0c6e5f;
    border-color: #0c6e5f;
    color: #fff;
}

.footer-lang-btn i {
    font-size: 0.82rem;
}

.footer-lang-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    min-width: 180px;
    max-height: min(60vh, 300px);
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(12, 110, 95, 0.12);
    z-index: 1000;
    animation: langMenuIn 0.2s ease-out both;
}

.footer-lang-menu[hidden] {
    display: none !important;
}

.lang-switcher-menu-title {
    padding: 5px 10px 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5a6e5b;
}

.lang-switcher-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #1a2e1b;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-switcher-option-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lang-switcher-option-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 2px 5px;
    border-radius: 6px;
    background: rgba(12, 110, 95, 0.1);
    color: #0c6e5f;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.lang-switcher-option:hover,
.lang-switcher-option:focus-visible {
    background: #e8f5e9;
    outline: none;
}

.lang-switcher-option.is-active {
    background: rgba(12, 110, 95, 0.1);
    color: #0c6e5f;
}

.lang-switcher-option-check {
    font-size: 0.85rem;
    color: #0c6e5f;
    opacity: 0;
}

.lang-switcher-option.is-active .lang-switcher-option-check {
    opacity: 1;
}

@keyframes langMenuIn {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

html.lang-switching body {
    cursor: wait;
    opacity: 0.92;
}

@media (max-width: 767.98px) {
    .footer-lang-menu {
        left: auto;
        right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-lang-menu {
        animation: none;
    }
}
