/* Floating WhatsApp — sitewide, discrete premium */
.me-wa-float {
  --me-wa-color: #25d366;
  --me-wa-inset: max(1.25rem, env(safe-area-inset-right, 0px));
  --me-wa-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  position: fixed;
  z-index: 1400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
  background: var(--me-wa-color);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.me-wa-float--br {
  right: var(--me-wa-inset);
  bottom: var(--me-wa-bottom);
  left: auto;
}

.me-wa-float--bl {
  left: max(1.25rem, env(safe-area-inset-left, 0px));
  bottom: var(--me-wa-bottom);
  right: auto;
}

.me-wa-float--round {
  border-radius: 999px;
}

.me-wa-float--pill {
  border-radius: 999px;
  padding: 0 1.05rem 0 0.85rem;
}

.me-wa-float--sm.me-wa-float--round {
  width: 2.65rem;
  height: 2.65rem;
}

.me-wa-float--md.me-wa-float--round {
  width: 3rem;
  height: 3rem;
}

.me-wa-float--lg.me-wa-float--round {
  width: 3.5rem;
  height: 3.5rem;
}

.me-wa-float--sm.me-wa-float--pill {
  min-height: 2.75rem;
  font-size: 0.82rem;
}

.me-wa-float--md.me-wa-float--pill {
  min-height: 3.15rem;
  font-size: 0.9rem;
}

.me-wa-float--lg.me-wa-float--pill {
  min-height: 3.55rem;
  font-size: 0.98rem;
}

.me-wa-float__icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.me-wa-float--sm .me-wa-float__icon {
  width: 1.15rem;
  height: 1.15rem;
}

.me-wa-float--md .me-wa-float__icon {
  width: 1.3rem;
  height: 1.3rem;
}

.me-wa-float--lg .me-wa-float__icon {
  width: 1.5rem;
  height: 1.5rem;
}

.me-wa-float__label {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.me-wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.22);
  filter: brightness(1.03);
}

.me-wa-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.me-wa-float--anim-soft {
  animation: me-wa-soft 3.6s ease-in-out infinite;
}

.me-wa-float--anim-pulse {
  animation: me-wa-pulse 2.8s ease-in-out infinite;
}

@keyframes me-wa-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes me-wa-pulse {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.18), 0 0 0 0 rgba(37, 211, 102, 0.35);
  }
  70% {
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.18), 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .me-wa-float--anim-soft:hover,
  .me-wa-float--anim-pulse:hover {
    animation: none;
  }
}

@media (max-width: 768px) {
  .me-wa-float {
    --me-wa-inset: max(1rem, env(safe-area-inset-right, 0px));
    --me-wa-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }

  .me-wa-float--hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .me-wa-float--hide-desktop {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .me-wa-float,
  .me-wa-float--anim-soft,
  .me-wa-float--anim-pulse {
    animation: none !important;
    transition: none;
  }
}
