/* Scoped adaptation of the supplied WhatsApp Wave example.
 * No body styles from the standalone demo are applied to the WordPress theme. */
.bp-whatsapp-wave-btn {
  box-sizing: border-box;
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: bp-whatsapp-wave-pulse 2.4s infinite;
}
.bp-whatsapp-wave-btn:hover,
.bp-whatsapp-wave-btn:focus {
  background: #1ebe5a;
  color: #fff;
  text-decoration: none;
}
.bp-whatsapp-wave-btn svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: currentColor;
}
@keyframes bp-whatsapp-wave-pulse {
  0%   { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0); }
}
.bp-whatsapp-wave-btn:focus-visible {
  outline: 2px solid #db9969 !important;
  outline-offset: 2px;
}
@media (max-width: 991.98px) {
  /* Offset only when the theme's fixed 64px Call/Quote/Contact/Cart dock exists. */
  body.bp-has-mobile-actions .bp-whatsapp-wave-btn {
    right: 16px;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 640px) {
  .bp-whatsapp-wave-btn {
    right: 16px;
    bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bp-whatsapp-wave-btn { animation: none; }
}

/* Keep the WhatsApp bubble above the Custom Orders mobile summary bar. */
@media (max-width: 700px) {
  body.cof-mobile-summary-visible .bp-whatsapp-wave-btn,
  body.cof-mobile-summary-visible.bp-has-mobile-actions .bp-whatsapp-wave-btn {
    bottom: calc(166px + env(safe-area-inset-bottom, 0px));
  }
}
