/**
 * Floating WhatsApp button & chat-styled promo card
 */

.ates-whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + var(--ates-safe-bottom));
  z-index: 998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ates-whatsapp-green);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ates-whatsapp-fab:hover,
.ates-whatsapp-fab:focus-visible {
  background: var(--ates-whatsapp-green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.ates-whatsapp-fab svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 1023px) {
  .ates-whatsapp-fab {
    bottom: calc(var(--ates-mobile-bar-height) + var(--ates-safe-bottom) + 1rem);
    right: 1rem;
    width: 52px;
    height: 52px;
  }
}

.ates-whatsapp-fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--ates-whatsapp-green);
  animation: ates-whatsapp-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes ates-whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

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

.ates-whatsapp-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--ates-brand-border);
  background: linear-gradient(135deg, #ffffff 0%, var(--ates-brand-green-muted) 100%);
}

.ates-whatsapp-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ates-whatsapp-green);
  color: #fff;
}

.ates-whatsapp-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ates-text-primary);
}

.ates-whatsapp-card__text {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--ates-text-secondary);
}

.ates-whatsapp-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--ates-whatsapp-green-dark);
  text-decoration: none;
}

.ates-whatsapp-inline:hover {
  color: var(--ates-brand-green);
}

.ates-whatsapp-inline::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ates-whatsapp-green);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25);
}