/**
 * Smart Auto-Translator Styling
 * 100% Suppresses Google Translate banners, tooltips, frames, and enforces clean UI
 */

/* 1. Obliterate EVERY Google Translate Top Banner, Iframes & Skiptranslate wrappers */
body > .skiptranslate,
.skiptranslate:not(#google_translate_element),
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
iframe[id*=".container"],
iframe[id*=":1.container"],
iframe[id*=":2.container"],
.VIpgJd-ZVi9I-OR9QNe-ObikD,
.VIpgJd-ZVi9I-OR9QNe-ObikD-l4eHX-i3jM8c,
.VIpgJd-yAWne-hvhfa-haAclf {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0px !important;
    max-height: 0px !important;
    min-height: 0px !important;
    width: 0px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    pointer-events: none !important;
    z-index: -99999 !important;
}

/* 1.1 Suppress Google Translate Loading Spinner / Circular Badge */
.goog-te-spinner-pos,
.goog-te-spinner,
.goog-te-spinner-animation,
.goog-te-spinner-path,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0px !important;
    height: 0px !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    z-index: -99999 !important;
}

/* 2. Force body and html to stay pinned at top: 0px */
html, body {
    top: 0px !important;
    position: static !important;
}
body {
    top: 0px !important;
    margin-top: 0px !important;
    padding-top: 0px !important;
}

/* 3. Suppress all tooltips, balloons, and hover highlights completely */
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover,
.VIpgJd-yAWNEb-L7lbkb,
.VIpgJd-yAWNEb-hvhgNd,
.VIpgJd-yAWNEb-hvhgNd-N7Eqid,
iframe.VIpgJd-ZVi9od-ORHb-OEVmcd,
iframe.VIpgJd-ZVi9od-xl07Ob-OEVmcd {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

.goog-text-highlight,
[class*="goog-text-highlight"],
[class*="sn54Q"],
[class*="ppHlrf"],
[class*="Vy2Aqc"],
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q,
.VIpgJd-yAWNEb-TVLw9c-ppHlrf,
.VIpgJd-yAWNEb-TVLw9c-ppHlrf-sn54Q,
.VIpgJd-yAWNEb-yAWNEb-Vy2Aqc-fmcmS,
.VIpgJd-yAWNEb-TVLw9c-DyVDA,
font,
font:hover,
font[style],
font[style]:hover,
font[dir],
font[dir]:hover {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
}

/* 4. Keep gadget invisible offscreen */
#google_translate_element {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 5. Button contrast fixes & unified header pill styling */
.btn-lang-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #063423 !important;
    background: transparent !important;
    border: 1.5px solid #063423 !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.btn-lang-btn i {
    font-size: 13px !important;
    line-height: 1 !important;
    color: inherit !important;
}

.btn-lang-btn span {
    font-size: 12px !important;
    line-height: 1 !important;
    color: inherit !important;
}

.btn-lang-btn:hover {
    background: #063423 !important;
    color: #ffffff !important;
    border-color: #063423 !important;
    box-shadow: 0 2px 6px rgba(6, 52, 35, 0.2) !important;
}

.btn-lang-btn:hover i,
.btn-lang-btn:hover span {
    color: #ffffff !important;
}

.btn-lang-btn.active-bn {
    background: #063423 !important;
    color: #ffffff !important;
    border-color: #063423 !important;
}

.btn-lang-btn.active-bn i,
.btn-lang-btn.active-bn span {
    color: #ffffff !important;
}

.btn-lang-btn.active-bn:hover {
    background: #042519 !important;
    color: #ffffff !important;
    border-color: #042519 !important;
}

@media (max-width: 480px) {
    .btn-lang-btn {
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        padding: 0 9px !important;
        font-size: 11.5px !important;
        border-radius: 9999px !important;
        gap: 3.5px !important;
    }
    .btn-lang-btn i {
        font-size: 12px !important;
    }
    .btn-lang-btn span {
        font-size: 11.5px !important;
    }
}

@media (max-width: 360px) {
    .btn-lang-btn {
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        padding: 0 7px !important;
        font-size: 10.5px !important;
        border-radius: 9999px !important;
        gap: 3px !important;
    }
    .btn-lang-btn i {
        font-size: 11px !important;
    }
    .btn-lang-btn span {
        font-size: 10.5px !important;
    }
}


