/* Fixed to the viewport on every page; rings never intercept nearby controls. */
.at4u-whatsapp-float {
  --at4u-whatsapp-green: #25d366;
  position: fixed;
  right: calc(28px + env(safe-area-inset-right, 0px));
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--at4u-whatsapp-green);
  color: #fff;
  box-shadow: 0 6px 20px rgb(13 32 56 / 22%);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.at4u-whatsapp-float::before,
.at4u-whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #25d366;
  border-radius: inherit;
  pointer-events: none;
  animation: at4u-whatsapp-ripple 2.4s ease-out infinite;
}

.at4u-whatsapp-float::after { animation-delay: -1.2s; }
.at4u-whatsapp-float svg { position: relative; }
.at4u-whatsapp-float:visited { color: #fff; }
.at4u-whatsapp-float:hover { background: #20bd5a; color: #fff; }
.at4u-whatsapp-float:focus-visible { outline: 3px solid var(--at4u-navy, #0d2038); outline-offset: 5px; }
.at4u-whatsapp-float[aria-disabled="true"] { cursor: default; }
.at4u-whatsapp-float[aria-disabled="true"]::before,
.at4u-whatsapp-float[aria-disabled="true"]::after { animation: none; content: none; }

@keyframes at4u-whatsapp-ripple {
  0% { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(1.65); opacity: 0; }
}

@media (max-width: 767px) {
  .at4u-whatsapp-float {
    right: calc(22px + env(safe-area-inset-right, 0px));
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .at4u-whatsapp-float::before,
  .at4u-whatsapp-float::after { animation: none; content: none; }
}
