/* Language switcher styles - Figma: Tekcom UI Redesign */
.tekcom-lang-switcher {
    position: relative;
    display: inline-block;
    font-family: "Inter", sans-serif;
}

.tekcom-lang-switcher__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.tekcom-lang-switcher__flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fb;
    flex-shrink: 0;
}

.tekcom-lang-switcher__item-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fb;
    flex-shrink: 0;
}

.tekcom-lang-switcher__flag img {
    width: 24px;
    height: 24px !important;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.tekcom-lang-switcher__item-flag img {
    width: 20px;
    height: 20px !important;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.tekcom-lang-switcher__code {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
}

.tekcom-lang-switcher__chevron {
    display: none;
}

.tekcom-lang-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 185px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25);
    padding: 4px;
    z-index: 100;
}

.tekcom-lang-switcher__menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tekcom-lang-switcher__menu li+li {
    border-top: 1px solid #D6D6D6;
}

.tekcom-lang-switcher__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 4px;
    color: #000000;
    text-decoration: none;
    transition: background 140ms ease;
}

.tekcom-lang-switcher__item:hover {
    background: #f5f5f5;
}

.tekcom-lang-switcher__item-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tekcom-lang-switcher__item.is-active {
    background: transparent;
    color: #000000;
}

.tekcom-lang-switcher__item-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.tekcom-lang-switcher__item-name {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
}

.tekcom-lang-switcher__item-code {
    display: none;
}

.tekcom-lang-switcher__item-check {
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tekcom-lang-switcher__item.is-active .tekcom-lang-switcher__item-check {
    display: flex;
}

.tekcom-lang-switcher__item-check svg {
    width: 14px;
    height: 10px;
    stroke: #000000;
    stroke-width: 2;
    fill: none;
}

.tekcom-lang-switcher button:hover,
.tekcom-lang-switcher button:focus {
    border: none;
    background-color: unset;
}

/* Hover to show menu */
.tekcom-lang-switcher__menu {
    display: none !important;
}

.tekcom-lang-switcher:hover .tekcom-lang-switcher__menu {
    display: block !important;
}

/* Bridge 8px gap giữa toggle và menu */
.tekcom-lang-switcher__menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

@media (max-width: 640px) {
    .tekcom-lang-switcher__menu {
        right: auto;
        left: 0;
    }
}