/* GSM Theme - Language Switcher (Google Translate Integration) */

html body > .skiptranslate:not(#google_translate_element),
html body iframe.VIpgJd-ZVi9od-ORHb-OEVmcd,
html body .VIpgJd-ZVi9od-ORHb-OEVmcd,
html body .VIpgJd-ZVi9od-ORHb,
html body [class*="VIpgJd-ZVi9od-ORHb"],
html body .VIpgJd-ZVi9od-l4eHX-hSRGPd,
html body iframe[id*=":0.container"],
html body iframe[id*=":1.container"],
html body iframe.goog-te-banner-frame,
html body .goog-te-banner-frame,
html body iframe[id*="google_translate"],
html body iframe[class*="VIpgJd"],
html body .skiptranslate iframe,
html body .VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
html body .VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc,
html body .VIpgJd-ZVi9od-aZ2wEe-OiiCO,
html body .VIpgJd-ZVi9od-aZ2wEe,
html body [class*="VIpgJd-ZVi9od-aZ2wEe"],
html body .goog-te-spinner-pos,
html body .goog-te-spinner-animation,
html body .goog-te-spinner,
html body [class*="goog-te-spinner"],
html body .goog-logo-link,
html body #goog-gt-tt,
html body #goog-gt-vt,
html body .goog-te-balloon-frame,
html body .goog-tooltip,
html body .goog-tooltip:hover,
html body .VIpgJd-yAWNEb-L7lbkb,
html body .VIpgJd-yAWNEb-hvhgNd {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    max-height: 0 !important;
    max-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
    pointer-events: none !important;
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
    z-index: -999999 !important;
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
}

html,
body {
    top: 0 !important;
    position: static !important;
    margin-top: 0 !important;
}

#google_translate_element {
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0.01 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

.goog-text-highlight,
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q,
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q:hover {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.currency-btn {
    width: auto !important;
    min-width: 80px !important;
    padding: 0 12px !important;
    gap: 6px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.nav-auth,
.login-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.gsm-lang-switcher-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 8px 0 0;
    vertical-align: middle;
    flex-shrink: 0;
    z-index: 1035;
}

.gsm-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    background: var(--bs-primary-glass-bg, rgba(255, 255, 255, 0.12));
    border: 1px solid var(--bs-primary-glass-border, rgba(255, 255, 255, 0.22));
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.gsm-lang-btn:hover,
.gsm-lang-btn:focus-visible,
.gsm-lang-switcher-wrap.open .gsm-lang-btn {
    background: var(--bs-light-primary, rgba(255, 255, 255, 0.22));
    border-color: var(--bs-primary, rgba(255, 255, 255, 0.4));
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.gsm-lang-btn .gsm-lang-flag,
.gsm-lang-item .gsm-lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 14px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.gsm-lang-flag svg {
    width: 20px !important;
    height: 14px !important;
    display: block;
}

.gsm-lang-btn .gsm-lang-name {
    line-height: 1;
    font-weight: 600;
}

.gsm-lang-btn .gsm-lang-chevron {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
    opacity: 0.85;
}

.gsm-lang-btn .gsm-lang-chevron svg {
    width: 10px !important;
    height: 6px !important;
    display: block;
}

.gsm-lang-switcher-wrap.open .gsm-lang-btn .gsm-lang-chevron {
    transform: rotate(180deg);
}

.gsm-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 215px;
    max-width: 90vw;
    background: var(--w, var(--bs-body-bg, #ffffff));
    border: 1px solid var(--border, var(--bs-border-color, #e5e9f2));
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 999999 !important;
    overflow: hidden;
    padding: 6px 0;
}

.gsm-lang-switcher-wrap.open .gsm-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gsm-lang-list {
    padding: 4px 0;
    margin: 0;
    list-style: none;
}

.gsm-lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: 13.5px;
    color: var(--ink, var(--bs-body-color, #334155));
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
}

.gsm-lang-item:hover {
    background: var(--bs-light-primary, #f1f5f9);
    color: var(--bs-primary, #0f172a);
}

.gsm-lang-item.active {
    background: var(--bs-light-primary, #eff6ff);
    color: var(--bs-primary, #1d4ed8);
    font-weight: 600;
}

.gsm-lang-item .gsm-lang-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gsm-lang-item .gsm-lang-native {
    font-size: 11px;
    color: var(--sub, var(--bs-secondary-color, #64748b));
    margin-left: 6px;
}

.gsm-lang-item.active .gsm-lang-native {
    color: var(--bs-primary, #3b82f6);
}

.gsm-lang-item .gsm-lang-check {
    display: none;
    width: 14px;
    height: 14px;
    color: var(--bs-primary, #2563eb);
    flex-shrink: 0;
}

.gsm-lang-item.active .gsm-lang-check {
    display: inline-flex;
}

.gsm-lang-item .gsm-lang-check svg {
    width: 14px !important;
    height: 14px !important;
    display: block;
}

.gsm-mobile-lang-wrap {
    padding: 12px 0;
    border-top: 1px solid var(--border, var(--bs-border-color, #eef2f6));
    margin-top: 12px;
}

.gsm-mobile-lang-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sub, var(--bs-secondary-color, #94a3b8));
    margin-bottom: 8px;
}

.gsm-mobile-lang-select {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--border, var(--bs-border-color, #e2e8f0));
    background-color: var(--w, var(--bs-body-bg, #ffffff));
    font-size: 13.5px;
    color: var(--ink, var(--bs-body-color, #1e293b));
    outline: none;
}

@media (max-width: 991px) {
    .gsm-theme-header .gsm-lang-switcher-wrap,
    .gsm-header .gsm-lang-switcher-wrap {
        margin-left: auto;
        margin-right: 8px;
    }

    .gsm-theme-header .gsm-lang-switcher-wrap ~ .navbar-toggler.ms-auto {
        margin-left: 0 !important;
    }

    .gsm-lang-btn .gsm-lang-name {
        display: none;
    }

    .gsm-lang-btn {
        padding: 0 9px;
        gap: 5px;
    }

    .gsm-lang-dropdown {
        right: 0;
        left: auto;
    }
}

.pc-header .gsm-admin-lang-item {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
}

.pc-header .gsm-admin-lang-wrap {
    margin: 0;
}

.pc-header .gsm-admin-lang-wrap .gsm-lang-btn {
    height: 36px;
    padding: 0 11px;
    font-size: 13px;
    border-radius: 8px;
    color: var(--pc-header-color, #5b6b79);
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid var(--bs-border-color, rgba(148, 163, 184, 0.28));
}

.pc-header .gsm-admin-lang-wrap .gsm-lang-btn:hover,
.pc-header .gsm-admin-lang-wrap .gsm-lang-btn:focus-visible,
.pc-header .gsm-admin-lang-wrap.open .gsm-lang-btn {
    background: rgba(70, 128, 255, 0.14);
    border-color: var(--bs-primary, #4680ff);
    color: var(--bs-emphasis-color, #1d2630);
    box-shadow: none;
}

.gsm-admin-lang-wrap .gsm-lang-dropdown {
    background: #ffffff;
    border-color: #dbe0e5;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
}

.pc-header .gsm-admin-lang-wrap ul.gsm-lang-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 4px 0;
    margin: 0;
    list-style: none;
}

.pc-header .gsm-admin-lang-wrap .gsm-lang-item {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    color: #1e293b;
}

.pc-header .gsm-admin-lang-wrap .gsm-lang-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.pc-header .gsm-admin-lang-wrap .gsm-lang-item.active {
    background: #eff6ff;
    color: #2563eb;
}

[data-pc-theme="dark"] .pc-header .gsm-admin-lang-wrap .gsm-lang-btn {
    color: #dbe0e5;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-pc-theme="dark"] .pc-header .gsm-admin-lang-wrap .gsm-lang-btn:hover,
[data-pc-theme="dark"] .pc-header .gsm-admin-lang-wrap .gsm-lang-btn:focus-visible,
[data-pc-theme="dark"] .pc-header .gsm-admin-lang-wrap.open .gsm-lang-btn {
    background: rgba(70, 128, 255, 0.2);
    border-color: var(--bs-primary, #4680ff);
    color: #ffffff;
}

[data-pc-theme="dark"] .pc-header .gsm-admin-lang-wrap .gsm-lang-dropdown,
[data-pc-theme="dark"] .gsm-admin-lang-wrap .gsm-lang-dropdown {
    background: #1b232d;
    border-color: #2c3746;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
}

[data-pc-theme="dark"] .pc-header .gsm-admin-lang-wrap .gsm-lang-item,
[data-pc-theme="dark"] .gsm-admin-lang-wrap .gsm-lang-item {
    color: #dbe0e5;
}

[data-pc-theme="dark"] .pc-header .gsm-admin-lang-wrap .gsm-lang-item:hover,
[data-pc-theme="dark"] .gsm-admin-lang-wrap .gsm-lang-item:hover {
    background: rgba(70, 128, 255, 0.16);
    color: #ffffff;
}

[data-pc-theme="dark"] .pc-header .gsm-admin-lang-wrap .gsm-lang-item.active,
[data-pc-theme="dark"] .gsm-admin-lang-wrap .gsm-lang-item.active {
    background: rgba(70, 128, 255, 0.22);
    color: #8ab4ff;
}

[data-pc-theme="dark"] .pc-header .gsm-admin-lang-wrap .gsm-lang-item .gsm-lang-native,
[data-pc-theme="dark"] .gsm-admin-lang-wrap .gsm-lang-item .gsm-lang-native {
    color: #94a3b8;
}

@media (max-width: 575.98px) {
    .pc-header .gsm-admin-lang-wrap .gsm-lang-name {
        display: none;
    }

    .pc-header .gsm-admin-lang-wrap .gsm-lang-btn {
        padding: 0 9px;
    }
}
