/* Shared UI overrides for language switcher and floating controls */

#language-dropdown-btn,
#mobile-language-dropdown-btn {
  display: none !important;
}

#language-dropdown,
#mobile-language-dropdown {
  display: flex !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  margin-top: 0 !important;
  min-width: auto !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  align-items: center;
  gap: 0.5rem;
}

#language-dropdown .language-option,
#mobile-language-dropdown .mobile-language-option {
  padding: 0 !important;
  background: transparent !important;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

#language-dropdown .language-option img,
#mobile-language-dropdown .mobile-language-option img {
  display: inline-block !important;
  width: 1rem;
  height: 0.75rem;
  margin-right: 0.25rem;
}

#language-dropdown .language-option:first-child::after,
#mobile-language-dropdown .mobile-language-option:first-child::after {
  content: "|";
  margin-left: 0.5rem;
  color: #6b7280;
}

#language-dropdown .language-option:hover,
#mobile-language-dropdown .mobile-language-option:hover {
  text-decoration: underline;
}

/* Mobile header adjustments: center and bold phone + language switcher row */
@media (max-width: 1279px) {
  #mobile-menu .mt-4.pt-4.border-t > .flex.items-center.mb-3 {
    justify-content: center;
    text-align: center;
    font-weight: 700;
  }

  #mobile-menu #mobile-language-dropdown {
    justify-content: center;
    font-weight: 700;
  }

  #mobile-menu #mobile-language-dropdown .mobile-language-option span {
    font-weight: 700;
  }
}

/* Unify floating action buttons */
.fixed.bottom-4.right-4 button,
#floating-whatsapp {
  width: 3.5rem !important;
  height: 3.5rem !important;
  border-radius: 9999px !important;
  background-color: #22c55e !important;
  color: #fff !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.fixed.bottom-4.right-4 button:hover,
#floating-whatsapp:hover {
  background-color: #16a34a !important;
  transform: translateY(-1px);
}

.fixed.bottom-4.right-4 button i {
  font-size: 1rem !important;
}

#floating-whatsapp i {
  font-size: 1.75rem !important;
}

/* Keep floating WhatsApp aligned next to back-to-top button */
#floating-whatsapp {
  position: fixed;
  right: 5rem;
  bottom: 1rem;
  z-index: 9999;
}
