/**
 * @file
 * CP WhatsApp Widget — minimal solo número + mensaje.
 * Botón flotante 56×56 gradiente WhatsApp #57D163→#23B33A, WCAG AA.
 */

.cp-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
}

.cp-whatsapp__button {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #57D163, #23B33A);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(35, 179, 58, 0.35), 0 2px 8px rgba(16, 24, 40, 0.12);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cp-whatsapp__button:hover {
  background: linear-gradient(to bottom, #4BC458, #1E9E31);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(35, 179, 58, 0.4), 0 4px 12px rgba(16, 24, 40, 0.12);
}

.cp-whatsapp__button:focus-visible {
  outline: 3px solid #0e4fbe;
  outline-offset: 3px;
}

.cp-whatsapp__button:active {
  transform: translateY(0);
}

.cp-whatsapp__button svg {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cp-whatsapp {
    right: 16px;
    bottom: 16px;
  }

  .cp-whatsapp__button {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-whatsapp__button {
    transition: none;
  }
}
