.whatsapp-popup {
  position: fixed;
  z-index: 500;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 16px 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  color: #fff;
  background: #1fa855;
  box-shadow: 0 14px 36px rgba(10, 56, 30, 0.28);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.whatsapp-popup__icon {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: #0d6b38;
}

.whatsapp-popup img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.whatsapp-popup:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 4px;
}

@media (hover: hover) {
  .whatsapp-popup:hover {
    background: #168746;
    box-shadow: 0 18px 42px rgba(10, 56, 30, 0.34);
    transform: translateY(-2px);
  }
}

@media (max-width: 420px) {
  .whatsapp-popup {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 52px;
    padding: 7px 13px 7px 7px;
    font-size: 0.76rem;
  }

  .whatsapp-popup__icon {
    width: 38px;
    height: 38px;
  }
}

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

@media print {
  .whatsapp-popup {
    display: none !important;
  }
}
