/* === Google Translate Widget — Ecuaviaje Theme === */

/* Hide Google's default elements */
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

.skiptranslate {
    display: none !important;
    position: fixed !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

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

html {
    height: auto !important;
}

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

/* === Custom Widget === */
.gt-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    font-family: var(--font-primary, 'Inter', sans-serif);
}

.gt-widget__toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary, #99cc00);
    color: var(--black, #141720);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(153, 204, 0, 0.35), 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.gt-widget__toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(153, 204, 0, 0.5), 0 4px 12px rgba(0,0,0,0.15);
}

/* Panel */
.gt-widget__panel {
    position: absolute;
    bottom: 64px;
    left: 0;
    width: 220px;
    background: var(--bgDark2, #1f2330);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255,255,255,0.08);
}

.gt-widget__panel--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.gt-widget__header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.gt-widget__header i {
    color: var(--primary, #99cc00);
}

.gt-widget__list {
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.gt-widget__list::-webkit-scrollbar {
    width: 4px;
}
.gt-widget__list::-webkit-scrollbar-track {
    background: transparent;
}
.gt-widget__list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

.gt-widget__lang {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.15s ease;
    font-family: inherit;
}

.gt-widget__lang:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.gt-widget__lang--active {
    background: rgba(153, 204, 0, 0.12);
    color: var(--primary, #99cc00);
    font-weight: 600;
}

.gt-widget__flag {
    font-size: 1.2rem;
    line-height: 1;
}

.gt-widget__name {
    flex: 1;
    text-align: left;
}

.gt-widget__footer {
    padding: 10px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.gt-widget__footer small {
    color: rgba(255,255,255,0.25);
    font-size: 0.7rem;
}

/* === Responsive === */
@media (max-width: 640px) {
    .gt-widget {
        bottom: 16px;
        left: 16px;
    }

    .gt-widget__toggle {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .gt-widget__panel {
        width: 200px;
        bottom: 56px;
    }
}
