/* Zook Translation Widget - Custom Design */
/* Ultra-high specificity overrides */
div#google_translate_element div.skiptranslate div.goog-te-gadget div.goog-te-gadget-simple select.goog-te-combo,
div#google_translate_element select.goog-te-combo,
#google_translate_element .goog-te-combo,
.goog-te-combo {
  background: rgba(255, 255, 255, 0.15) !important;
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  outline: none !important;
  cursor: pointer !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  margin: 0 !important;
}

div#google_translate_element div.skiptranslate div.goog-te-gadget div.goog-te-gadget-simple select.goog-te-combo option,
div#google_translate_element select.goog-te-combo option,
#google_translate_element .goog-te-combo option,
.goog-te-combo option {
  background: #2c2c2c !important;
  color: white !important;
  padding: 8px !important;
}

#google_translate_element {
  position: fixed !important;
  top: 50% !important;
  right: 10px !important;
  transform: translateY(-50%) !important;
  z-index: 9999 !important;
  background: linear-gradient(135deg, #ff2d55, #ff4d6b) !important;
  padding: 15px 12px !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 25px rgba(255, 45, 85, 0.3) !important;
  font-size: 12px !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
  width: auto !important;
  height: auto !important;
}

#google_translate_element:hover {
  transform: translateY(-50%) scale(1.05) !important;
  box-shadow: 0 12px 35px rgba(255, 45, 85, 0.4) !important;
}

/* Force Google Translate elements to use our styling */
#google_translate_element .skiptranslate,
#google_translate_element .goog-te-gadget {
  background: transparent !important;
  color: white !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

#google_translate_element .goog-te-combo,
#google_translate_element select.goog-te-combo {
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  color: white !important;
  font-weight: 600 !important;
  outline: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
}

#google_translate_element .goog-te-combo:hover,
#google_translate_element select.goog-te-combo:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

#google_translate_element .goog-te-combo option,
#google_translate_element select.goog-te-combo option {
  background: linear-gradient(135deg, #ff2d55, #ff4d6b) !important;
  color: white !important;
  padding: 8px 12px !important;
  border: none !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

#google_translate_element .goog-te-combo option:hover,
#google_translate_element .goog-te-combo option:selected {
  background: linear-gradient(135deg, #ff4d6b, #ff6b85) !important;
  color: white !important;
}

#google_translate_element .goog-te-gadget,
#google_translate_element .goog-te-gadget-simple {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13px !important;
  color: white !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-block !important;
  line-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  font-weight: 600 !important;
}

#google_translate_element .goog-te-gadget-simple .goog-te-menu-value,
#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span,
#google_translate_element .goog-te-gadget-simple span,
#google_translate_element .goog-te-gadget span,
#google_translate_element * {
  color: white !important;
  border: none !important;
  background: transparent !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

/* Force white text on all elements */
#google_translate_element .goog-te-gadget-simple,
#google_translate_element .goog-te-gadget,
#google_translate_element .skiptranslate,
#google_translate_element div,
#google_translate_element span,
#google_translate_element a {
  color: white !important;
}

#google_translate_element .goog-te-gadget-simple:hover {
  text-decoration: none !important;
}

/* Override any Google specific styles */
#google_translate_element .goog-te-gadget-icon {
  display: none !important;
}

#google_translate_element .goog-te-gadget .goog-te-combo {
  margin: 0 !important;
}

/* Hide ALL Google Translate top bars and banners completely */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.skiptranslate.goog-te-banner-frame,
div[style*="z-index: 1000001"],
div[style*="z-index: 999999"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

/* Hide the floating tab completely */
.goog-te-ftab,
.goog-te-ftab-float {
  display: none !important;
  visibility: hidden !important;
}

/* Prevent body from being pushed down or modified */
body {
  top: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  position: static !important;
}

html {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Target any iframe that might be the banner */
iframe[src*="translate.googleapis.com"],
iframe[src*="translate.google.com"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

/* Dropdown menu styling */
#google_translate_element .goog-te-combo {
  /* Custom dropdown arrow */
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='white' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 12px !important;
  padding-right: 30px !important;
}

/* Style the dropdown when opened */
#google_translate_element .goog-te-combo:focus,
#google_translate_element .goog-te-combo:active {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  #google_translate_element {
    right: 5px !important;
    padding: 12px 10px !important;
    border-radius: 10px !important;
  }
  
  #google_translate_element .goog-te-combo {
    font-size: 12px !important;
    padding: 6px 10px 6px 10px !important;
    padding-right: 25px !important;
  }
}

/* Custom Dropdown Styling */
.zook-custom-dropdown {
  position: relative !important;
  display: inline-block !important;
}

.zook-dropdown-button {
  background: rgba(255, 255, 255, 0.15) !important;
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 8px !important;
  padding: 8px 25px 8px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  min-width: 120px !important;
  text-align: left !important;
}

.zook-dropdown-button:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.zook-dropdown-button.active {
  border-color: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3) !important;
}

.zook-dropdown-arrow {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  transition: transform 0.2s ease !important;
  font-size: 10px !important;
}

.zook-dropdown-button.active .zook-dropdown-arrow {
  transform: translateY(-50%) rotate(180deg) !important;
}

.zook-dropdown-list {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background: linear-gradient(135deg, #ff2d55, #ff4d6b) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
  z-index: 10000 !important;
  margin-top: 2px !important;
  overflow: hidden !important;
}

.zook-dropdown-option {
  padding: 10px 12px !important;
  color: white !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  transition: background-color 0.2s ease !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.zook-dropdown-option:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.zook-dropdown-option:last-child {
  border-bottom: none !important;
}

/* Custom Zook Branding */
#google_translate_element::before {
  content: "🌐";
  position: absolute;
  top: -5px;
  right: -5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}