/* Floating WhatsApp chat button — public pages + dashboard */
.mfx-wa {
  --mfx-wa-green: #25d366;
  --mfx-wa-green-dark: #1ebe57;
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 9500;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--mfx-wa-green);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.mfx-wa:hover,
.mfx-wa:focus-visible {
  background: var(--mfx-wa-green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5);
  outline: none;
}

.mfx-wa-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  align-items: center;
  justify-content: center;
}

.mfx-wa-icon svg {
  display: block;
}

.mfx-wa-label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: 12rem;
  overflow: hidden;
}

/* Leave room above cookie consent / mobile safe area */
@supports (padding: max(0px)) {
  .mfx-wa {
    bottom: max(1.15rem, env(safe-area-inset-bottom, 0px) + 0.75rem);
    right: max(1.15rem, env(safe-area-inset-right, 0px) + 0.75rem);
  }
}

@media (max-width: 560px) {
  .mfx-wa {
    padding: 0.7rem;
  }

  .mfx-wa-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mfx-wa {
    transition: none;
  }

  .mfx-wa:hover,
  .mfx-wa:focus-visible {
    transform: none;
  }
}
