/* Public site — floating WhatsApp CTA (mobile first, safe areas) */
.msgat-wa-float {
  --wa-btn-size: 56px;
  --wa-offset: clamp(16px, 4vw, 24px);
  --wa-bottom: max(var(--wa-offset), env(safe-area-inset-bottom, 0px));
  position: fixed;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--wa-btn-size);
  height: var(--wa-btn-size);
  border-radius: 50%;
  background: linear-gradient(145deg, #2fe677 0%, #25d366 55%, #1ebe57 100%);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(37, 211, 102, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
  opacity: 0;
  transform: translate3d(0, 20px, 0) scale(0.9);
  animation: msgatWaEntrance 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) 0.2s forwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

html[dir="ltr"] .msgat-wa-float,
html:not([dir="rtl"]) .msgat-wa-float {
  right: max(var(--wa-offset), env(safe-area-inset-right, 0px));
  left: auto;
  bottom: var(--wa-bottom);
}

html[dir="rtl"] .msgat-wa-float {
  left: max(var(--wa-offset), env(safe-area-inset-left, 0px));
  right: auto;
  bottom: var(--wa-bottom);
}

.msgat-wa-float:hover {
  transform: translate3d(0, -2px, 0) scale(1.03);
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.14);
  color: #fff;
  text-decoration: none;
}

.msgat-wa-float:active {
  transform: scale(0.95);
  filter: brightness(0.95);
}

.msgat-wa-float__ic {
  font-size: 30px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msgat-wa-float__ic .fa-whatsapp,
.msgat-wa-float__ic i {
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .msgat-wa-float {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .msgat-wa-float:hover,
  .msgat-wa-float:active {
    transform: none;
  }
}

@media (min-width: 768px) {
  .msgat-wa-float {
    --wa-btn-size: 60px;
  }
  .msgat-wa-float__ic {
    font-size: 32px;
  }
}

@keyframes msgatWaEntrance {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
