.mlc-language-switcher {
    display: inline-block;
    position: relative;
    font-size: 14px;
    line-height: 1.3;
}

.mlc-language-switcher__dropdown {
    min-width: 180px;
}

.mlc-language-switcher__summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    border: 1px solid #d0d7de;
    background: #ffffff;
    color: #111827;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mlc-language-switcher__summary::-webkit-details-marker {
    display: none;
}

.mlc-language-switcher__current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mlc-language-switcher__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mlc-language-switcher__code {
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
}

.mlc-language-switcher__chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    margin-top: -3px;
    flex: 0 0 auto;
}

.mlc-language-switcher__dropdown[open] .mlc-language-switcher__chevron {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.mlc-language-switcher__menu {
    list-style: none;
    margin: 6px 0 0;
    padding: 6px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    min-width: 100%;
    position: absolute;
    z-index: 40;
}

.mlc-language-switcher__menu li {
    margin: 0;
    padding: 0;
}

.mlc-language-switcher__item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    color: #111827;
    text-decoration: none;
    box-sizing: border-box;
}

.mlc-language-switcher__item,
.mlc-language-switcher__item:link,
.mlc-language-switcher__item:visited,
.mlc-language-switcher__item-label {
    color: #111827 !important;
}

.mlc-language-switcher__item-code,
.mlc-language-switcher__code {
    color: #6b7280 !important;
}

.mlc-language-switcher__item:hover,
.mlc-language-switcher__item:focus {
    background: #f3f4f6;
    color: #111827 !important;
    text-decoration: none !important;
    outline: none;
}

.mlc-language-switcher__item--current {
    background: #eef2ff;
    color: #1f2937;
    cursor: default;
}

.mlc-language-switcher__item-label {
    flex: 1 1 auto;
    min-width: 0;
}

.mlc-language-switcher__item-code {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
}

.mlc-language-switcher__flag {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f9fafb;
    flex: 0 0 20px;
    line-height: 1;
    font-size: 14px;
}

.mlc-language-switcher__flag--fallback {
    font-size: 9px;
    font-weight: 700;
    color: #374151;
    border: 1px solid #e5e7eb;
}

@media (max-width: 767px) {
    .mlc-language-switcher__dropdown {
        min-width: 160px;
    }
}
