.floating-actions {
  position: fixed;
  z-index: 80;
  inset: 0;
  pointer-events: none;
}

.floating-action {
  position: absolute;
  bottom: clamp(16px, 3vw, 30px);
  display: flex;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 9px 28px rgba(0, 0, 0, .3);
  color: #fff;
  pointer-events: auto;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  align-items: center;
}

.floating-action > span {
  padding-right: 18px;
  font: 600 11px 'JetBrains Mono', monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.whatsapp-action {
  left: clamp(14px, 2vw, 28px);
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: #19c963;
}

.whatsapp-action:hover {
  background: #22db70;
  transform: translateY(-3px);
}

.whatsapp-action > span { display: none; }

.whatsapp-action img {
  display: block;
  width: 28px;
  height: 32px;
  margin: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.back-to-top {
  right: clamp(14px, 2vw, 28px);
  justify-content: center;
  border-radius: 2px;
  background: #111;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.back-to-top::after {
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(0, 236, 86, .42);
  content: "";
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.arrow-up {
  z-index: 1;
  flex: 0 0 56px;
  width: 25px;
  height: 25px;
  padding: 15px;
  box-sizing: content-box;
  fill: none;
  stroke: #00ec56;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.back-to-top:hover .arrow-up,
.back-to-top.launching .arrow-up {
  animation: arrow-rise .55s ease-in-out;
}

@keyframes arrow-rise {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-6px); }
}

@media (max-width: 560px) {
  .whatsapp-action { width: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-action { transition: none; }
  .back-to-top:hover .arrow-up,
  .back-to-top.launching .arrow-up { animation: none; }
}
