.tjs-language-switcher {
    display: inline-block;
    font-family: inherit;
    position: relative;
}

.tjs-custom-dropdown {
    position: relative;
    display: inline-block;
}

.tjs-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
    padding: 8px 12px;
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #d5d8dc;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tjs-dropdown-trigger:hover {
    background-color: transparent;
    color: #007cba;
}

.tjs-custom-dropdown.open .tjs-dropdown-trigger {
    background-color: transparent;
    color: #007cba;
}

.tjs-dropdown-trigger .eicon-globe,
.tjs-dropdown-trigger .tjs-globe-icon {
    font-size: inherit;
    color: inherit;
    display: inline-flex;
    align-items: center;
}

.tjs-globe-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.tjs-current-code {
    visibility: hidden;
}

.tjs-current-code.tjs-ready {
    visibility: visible;
}

.tjs-arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    transform: rotate(45deg);
    margin-left: 4px;
    position: relative;
    top: -2px;
    transition: transform 0.2s ease, top 0.2s ease;
}

.tjs-custom-dropdown.open .tjs-arrow {
    transform: rotate(-135deg);
    top: 2px;
}

.tjs-dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 2px;
    padding: 10px 0;
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #d5d8dc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    width: max-content;
    max-height: 600px;
    overflow-y: auto;
    --tjs-anim-duration: 500ms;
    --tjs-dropdown-offset: 0;
    animation-duration: var(--tjs-anim-duration);
    animation-fill-mode: both;
    animation-timing-function: ease;
}

.tjs-custom-dropdown.open .tjs-dropdown-list {
    display: block;
}

@keyframes tjs-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes tjs-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes tjs-fade_slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tjs-fade_slide-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.tjs-dropdown-list .tjs-lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.tjs-dropdown-list .tjs-lang-item:hover {
    background-color: transparent;
    color: #007cba;
}

.tjs-dropdown-list .tjs-lang-item.active {
    background-color: transparent;
    color: #007cba;
}

.tjs-switcher-horizontal {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.tjs-switcher-horizontal .tjs-lang-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #d5d8dc;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tjs-switcher-horizontal .tjs-lang-item:hover {
    background-color: transparent;
    color: #007cba;
}

.tjs-switcher-horizontal .tjs-lang-item.active {
    background-color: transparent;
    color: #007cba;
}

.tjs-flag {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.tjs-flag-img {
    width: 24px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 2px;
    vertical-align: middle;
}

.tjs-lang-name {
    line-height: 1.4;
}

@media (max-width: 480px) {
    .tjs-switcher-horizontal {
        gap: 2px;
    }
}