.whatsapp-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38), 0 0 0 5px rgba(37, 211, 102, 0.1);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.whatsapp-float img {
  display: block;
  width: 29px;
  height: 29px;
}

.whatsapp-float:hover {
  background: #20bd5a;
  box-shadow: 0 15px 36px rgba(0, 0, 0, 0.44), 0 0 0 6px rgba(37, 211, 102, 0.15);
  transform: translateY(-2px);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.whatsapp-float-label {
  position: absolute;
  right: calc(100% + 11px);
  width: max-content;
  max-width: min(230px, calc(100vw - 96px));
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #0b1120;
  color: #eef2fb;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.whatsapp-float:hover .whatsapp-float-label,
.whatsapp-float:focus-visible .whatsapp-float-label {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.whatsapp-footer-link::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.55);
  content: "";
  flex: 0 0 auto;
}

.whatsapp-footer-link:hover,
.whatsapp-footer-link:focus-visible {
  color: #25d366;
}

.whatsapp-contact-row {
  margin-top: 18px;
  color: #8a93a8;
  font-size: 14px;
}

.cookie-banner.show ~ .whatsapp-float {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .whatsapp-float {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }

  .whatsapp-float img {
    width: 27px;
    height: 27px;
  }

  .whatsapp-float-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float-label {
    transition: none;
  }
}
