/* ── Trivando Translate – Frontend Language Switcher ──────────── */

/* Fixed position bottom-right */
.tvt-lang-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Current language button */
.tvt-lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    transition: all .2s ease;
}
.tvt-lang-current:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    border-color: #bbb;
}
.tvt-lang-current svg {
    transition: transform .2s ease;
}
.tvt-lang-switcher.open .tvt-lang-current svg {
    transform: rotate(180deg);
}

/* Flag emoji sizing */
.tvt-lang-flag {
    font-size: 20px;
    line-height: 1;
}

.tvt-lang-code {
    font-size: 13px;
    letter-spacing: .5px;
}

/* Dropdown */
.tvt-lang-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
    overflow: hidden;
}
.tvt-lang-switcher.open .tvt-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Language option */
.tvt-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none !important;
    color: #333 !important;
    font-size: 14px;
    transition: background .15s ease;
}
.tvt-lang-option:hover {
    background: #f5f5f5;
}
.tvt-lang-option.active {
    background: #f0f7ff;
    font-weight: 600;
}
.tvt-lang-option .tvt-lang-flag {
    font-size: 22px;
}
.tvt-lang-option .tvt-lang-name {
    flex: 1;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .tvt-lang-switcher {
        bottom: 12px;
        right: 12px;
    }
    .tvt-lang-current {
        padding: 8px 12px;
    }
    .tvt-lang-dropdown {
        min-width: 160px;
    }
}

/* Toggle JS */
