/* WhatsApp floating button - bottom right, shifts left when cookie popup is visible */
#whatsappFloat {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  border-radius: 2.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: right 0.4s ease, transform 0.2s ease;
  text-decoration: none;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
#whatsappFloat:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
#whatsappFloat img {
  width: 2.8rem;
  height: 2.8rem;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
#whatsappFloat .whatsapp-float-text {
  line-height: 1.2;
}
@media only screen and (max-width: 480px) {
  #whatsappFloat {
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
    font-size: 0.85rem;
  }
  #whatsappFloat img {
    width: 2.2rem;
    height: 2.2rem;
  }
}
/* When cookie popup is visible, shift WhatsApp button to the left so both stay visible */
body.cookie-visible #whatsappFloat {
  right: calc(2em + min(60vw, 42.85em) + 1em);
}
@media only screen and (max-width: 37.5em) {
  body.cookie-visible #whatsappFloat {
    right: 1.5rem;
    bottom: 5rem;
  }
}

/* Keep WhatsApp button light with black text in dark mode */
.theme-dark #whatsappFloat,
.theme-dark #whatsappFloat:hover,
.theme-dark #whatsappFloat .whatsapp-float-text {
  background: #fff !important;
  color: #1a1a1a !important;
}
