/* Multilang Switcher */

.mlang-switcher {
    align-items: center;
    align-self: center;
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    transition: opacity 0.3s ease;
}

.mlang-switcher .mlang-btn {
    align-items: center;
    background: transparent;
    border: none;
    box-sizing: border-box;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    height: 100%;
    letter-spacing: 0.3px;
    line-height: 1;
    min-height: 90px;
    padding: 0 15px;
    text-decoration: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.mlang-switcher .mlang-btn:hover {
    opacity: 0.7;
}

/* Icon slot — fixed size so globe + label never overlap */
.mlang-switcher .mlang-icon {
    align-items: center;
    display: inline-flex;
    flex: 0 0 16px;
    height: 16px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 16px;
}

@keyframes mlang-globe-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.mlang-switcher .mlang-globe {
    animation: mlang-globe-spin 6s linear infinite;
    display: block;
    flex-shrink: 0;
    height: 16px;
    margin: 0;
    transform-origin: center center;
    width: 16px;
}

.mlang-switcher .mlang-label {
    display: inline-block;
    flex: 0 1 auto;
    line-height: 1;
    position: static;
}

/* Prevent theme nav rules from collapsing children */
.mlang-switcher .mlang-btn > * {
    float: none;
    margin-left: 0;
    margin-right: 0;
    position: static;
}

.mlang-switcher .mlang-arrow {
    flex: 0 0 10px;
    flex-shrink: 0;
    height: 10px;
    transition: transform 0.2s;
    width: 10px;
}

.mlang-has-dropdown.mlang-open .mlang-arrow {
    transform: rotate(180deg);
}

/* Dropdown panel — fixed so nav overflow:hidden doesn't clip it */
.mlang-dropdown {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: none;
    min-width: 140px;
    padding: 4px 0;
    position: fixed;
    z-index: 99999;
}

.mlang-has-dropdown.mlang-open .mlang-dropdown {
    display: block;
}

.mlang-dropdown-link {
    color: #333;
    display: block;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 16px;
    text-decoration: none;
    transition: background 0.15s;
}

.mlang-dropdown-link:hover {
    background: #f0f0f0;
    color: #111;
}
