.cw-contact-actions,
.whatsapp-access,
.whatsapp-access.cw-contact-actions {
  box-sizing: border-box;
  position: fixed;
  z-index: 2147482990;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  min-height: 52px;
  padding: 11px 17px;
  border: 1px solid #084d42;
  border-radius: 999px;
  background: #0b6659;
  box-shadow: 0 4px 16px #123e3526;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  animation: none;
  transform: none;
  transition: background-color 120ms ease;
}

.cw-contact-actions:hover,
.whatsapp-access:hover,
.whatsapp-access.cw-contact-actions:hover {
  background: #084d42;
  color: #fff;
  text-decoration: none;
  transform: none;
}

.cw-contact-actions-icon {
  box-sizing: border-box;
  flex: 0 0 32px;
  padding: 3px;
  border-radius: 50%;
  background: #25d366;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cw-contact-actions:focus-visible,
.whatsapp-access:focus-visible {
  outline: 3px solid #075bc5;
  outline-offset: 4px;
}

/* The consent choice remains unobstructed, including before native enhancement. */
body:has(#cw-lm-banner:not([hidden])) .cw-contact-actions,
body:has(#cw-lm-banner:not([hidden])) .whatsapp-access {
  display: none !important;
}

/* A native button arriving after the bounded fallback wins without two controls. */
body:has(.whatsapp-access:not(.cw-contact-actions)) .cw-contact-actions-fallback {
  display: none !important;
}

@media (max-width: 700px) {
  .cw-contact-actions,
  .whatsapp-access,
  .whatsapp-access.cw-contact-actions {
    right: 16px;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 32px);
    min-height: 48px;
    padding: 9px 14px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-contact-actions,
  .whatsapp-access { transition: none; }
}

@media (forced-colors: active) {
  .cw-contact-actions,
  .whatsapp-access { border: 2px solid ButtonText; }
}
