/* Language Switcher Styling */
/*
 * `height: 100%` keo khung cao bang ca thanh header (47px) trong khi nut chi
 * cao 28px, nen vien pill hut ra ngoai hai dau. De chieu cao tu noi dung.
 */
.lang-switch-item {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 8px;
    margin-right: 5px;
}

.lang-switch-wrap {
    /*
     * Kich thuoc dat tuong minh. De tu tinh thi khung cao 47px theo thanh
     * header trong khi nut chi cao 28px, va con du ~16px trong ben phai —
     * nut active tron xanh nhin nhu hut ra ngoai vien.
     */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-sizing: border-box;
    height: 36px;
    width: max-content;
    flex: 0 0 auto;
    align-self: center;
    overflow: hidden;
    line-height: 1;

    background: #f1f2f6;
    border: 1px solid #e2e4ea;
    border-radius: 30px;
    padding: 3px 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: background-color 0.25s ease, border-color 0.25s ease;
    vertical-align: middle;
    margin-bottom: 0;
}

.lang-switch-wrap:hover {
    border-color: #d1d5df;
    background: #e9ebf2;
}

.lang-switch-wrap .lang-btn {
    /* Flatsome dat `button { margin-bottom: 1em }` — ke thua vao day tao
       mot dai trong duoi nut. */
    margin: 0 !important;
    box-sizing: border-box;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 9px;
    border-radius: 20px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    display: inline-block;
}

.lang-switch-wrap .lang-btn:hover {
    color: #111827;
}

.lang-switch-wrap .lang-btn.active {
    background: linear-gradient(135deg, #0077ff 0%, #004bd6 60%, #002d99 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 75, 214, 0.4);
    font-weight: 800;
}

.lang-switch-wrap .lang-switch-divider {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 11px;
    color: #9ca3af;
    margin: 0 2px;
    user-select: none;
    font-weight: 600;
}

/* Mobile Language Switcher in Header */
.mobile-lang-switch {
    display: inline-flex;
    margin-right: 12px;
    vertical-align: middle;
}

/* =========================================================
/* Hide Google Translate UI Elements & Tooltips */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
#goog-gt-voting,
.goog-te-spinner-pos {
    display: none !important;
}

body {
    top: 0px !important;
    position: static !important;
}

.goog-tooltip {
    display: none !important;
}

.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#google_translate_element {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.skiptranslate {
    display: none !important;
}
