/* ── Google Translate — hide all default UI ─────────────────── */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover { display: none !important; }
body { top: 0 !important; }
.skiptranslate { display: none !important; }
#gt-hidden-element { display: none !important; }

/* ── Floating Wrapper ── */
#gt-wrapper {
    position: fixed;
    bottom: 24px;
    right: 90px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

/* ── Trigger Button ── */
#gt-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #3c0071;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(60,0,113,.4);
    transition: background .2s, transform .2s;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}
#gt-trigger:hover {
    background: #5a0099;
    transform: translateY(-2px);
}
#gt-trigger svg { flex-shrink: 0; }

/* ── Dropdown Panel ── */
#gt-panel {
    display: none;
    position: absolute;
    bottom: 52px;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,.18);
    border: 1.5px solid #ede0ff;
    z-index: 1;
}
#gt-panel.open { display: block; }

.gt-panel-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 10px 2px;
}

/* ── Language Grid ── */
.gt-lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e0d0f8 transparent;
    margin-bottom: 10px;
}
.gt-lang-grid::-webkit-scrollbar { width: 4px; }
.gt-lang-grid::-webkit-scrollbar-thumb { background: #e0d0f8; border-radius: 4px; }

.gt-lang-btn {
    background: #f9f6ff;
    border: 1.5px solid #ede0ff;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    color: #444;
    cursor: pointer;
    text-align: left;
    transition: all .18s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gt-lang-btn:hover { background: #f0e6ff; border-color: #c084fc; color: #3c0071; }
.gt-lang-btn.active { background: #3c0071; border-color: #3c0071; color: #fff; }

/* ── Reset button ── */
.gt-reset-btn {
    width: 100%;
    background: #f5f5f5;
    border: 1.5px solid #eee;
    border-radius: 8px;
    padding: 8px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    color: #888;
    cursor: pointer;
    transition: all .18s ease;
}
.gt-reset-btn:hover { background: #ffebee; border-color: #ef9a9a; color: #c62828; }

/* ── Mobile ── */
@media (max-width: 576px) {
    #gt-wrapper { bottom: 24px; right: 80px; }
    #gt-trigger span { display: none; }
    #gt-trigger { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; }
    #gt-panel { width: 250px; bottom: 54px; right: 0; }
    .gt-lang-grid { grid-template-columns: 1fr 1fr; max-height: 220px; }
}
