.floating-contact-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.call-float,
.whatsapp-float {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  color: #fff;
  background: linear-gradient(145deg, #39e879 0%, #20c965 55%, #0da950 100%);
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 9999px;
  box-shadow:
    0 0 0 5px rgba(37, 211, 102, 0.16),
    0 12px 28px rgba(22, 101, 52, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.38);
  transition: transform 180ms ease, box-shadow 180ms ease;
  isolation: isolate;
  animation: whatsappFloatIn 500ms ease-out both;
}

.call-float {
  width: 3.25rem;
  height: 3.25rem;
  color: #fff;
  background: linear-gradient(145deg, #ff6b6b 0%, #ef4444 55%, #c81e1e 100%);
  border: 3px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 5px rgba(239, 68, 68, 0.16),
    0 12px 28px rgba(127, 29, 29, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.38);
}

.call-float::after {
  content: "Call now";
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  padding: 0.55rem 0.8rem;
  color: #991b1b;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 0.65rem;
  box-shadow: 0 8px 20px rgba(127, 29, 29, 0.16);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(0.4rem, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.call-float:hover,
.call-float:focus-visible {
  transform: translateY(-3px) scale(1.04);
}

.call-float:hover::after,
.call-float:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.call-float:focus-visible {
  outline: 3px solid #991b1b;
  outline-offset: 3px;
}

.call-float svg {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border: 2px solid rgba(37, 211, 102, 0.35);
  border-radius: inherit;
  animation: whatsappPulse 2.2s ease-out infinite;
}

.whatsapp-float::after {
  content: "Chat on WhatsApp";
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  padding: 0.55rem 0.8rem;
  color: #166534;
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: 0.65rem;
  box-shadow: 0 8px 20px rgba(22, 101, 52, 0.16);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(0.4rem, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 0 0 5px rgba(37, 211, 102, 0.22),
    0 16px 32px rgba(22, 101, 52, 0.42),
    inset 0 1px 1px rgba(255, 255, 255, 0.42);
}

.whatsapp-float:hover::after,
.whatsapp-float:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #166534;
  outline-offset: 3px;
}

.whatsapp-float svg {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

@keyframes whatsappFloatIn {
  from {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes whatsappPulse {
  0%,
  45% {
    opacity: 0.7;
    transform: scale(0.92);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@media (max-width: 640px) {
  .floating-contact-actions {
    right: 1rem;
    bottom: 1rem;
    gap: 0.6rem;
  }

  .whatsapp-float {
    width: 3.5rem;
    height: 3.5rem;
  }

  .call-float {
    width: 3.25rem;
    height: 3.25rem;
  }

  .call-float svg,
  .whatsapp-float svg {
    width: 1.7rem;
    height: 1.7rem;
  }

  .call-float::after,
  .whatsapp-float::after {
    display: none;
  }
}
