/* ==========================================================================
   float-buttons.css — fixed-position floating CTAs (WhatsApp, back-to-top)
   Kept separate from footer.css: these are global page chrome, not part
   of the footer element itself.
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 80;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: whatsapp-pulse 2.6s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
}

@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0);
  }
}

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

.back-to-top {
  position: fixed;
  right: var(--sp-5);
  bottom: 92px;
  z-index: 79;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--indigo-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.2s var(--ease);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--flame-500);
}
/* Same fix as .rfq__success — keep the hidden attribute authoritative
   over this element's own unconditional display:flex. */
.back-to-top[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .whatsapp-float {
    right: var(--sp-4);
    bottom: var(--sp-4);
    width: 50px;
    height: 50px;
  }
  .back-to-top {
    right: var(--sp-4);
    bottom: 82px;
    width: 40px;
    height: 40px;
  }
}
