/* =========================================
   🌐 FIX TRANSLATE BUTTON (REAL CLICKABLE)
   ========================================= */

.translate-wrapper {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999999 !important; /* Di atas semua elemen */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none; /* supaya wrapper gak blok klik lain */
}

/* Tombol globe */
.translate-btn {
  pointer-events: auto; /* tombol bisa diklik */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b91c1c 0%, #7a0d0d 100%);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: globePulse 2.5s infinite ease-in-out;
}

.translate-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.5);
}

@keyframes globePulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(185, 28, 28, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(185, 28, 28, 0.7);
  }
}

/* Dropdown translate */
.translate-box {
  pointer-events: auto; /* bisa diinteraksi */
  display: none;
  position: absolute;
  bottom: 60px;
  left: 0;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  z-index: 99999999 !important;
}

/* Saat show */
.translate-box.show {
  display: block !important;
}

/* Style Google bawaan */
.goog-te-gadget {
  font-family: 'Poppins', sans-serif !important;
  color: #333 !important;
  font-size: 13px !important;
}

.goog-te-gadget .goog-te-combo {
  background-color: #f9f9f9;
  color: #222;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  outline: none;
}

.goog-te-banner-frame.skiptranslate,
body > .skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}
.translate-box {
  pointer-events: auto;
  display: none;
  position: absolute;
  bottom: 60px;
  left: 0;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  z-index: 99999999 !important;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.translate-box.show {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}
