/* ============================================================
   DRONE INVENTORY — BOTÓN FLOTANTE DE WHATSAPP
   Versión 1.0
   Ubicación: esquina inferior izquierda.
   Pipedrive conserva la esquina inferior derecha.
============================================================ */

.di-whatsapp-float {
  position: fixed;
  left: max(22px, env(safe-area-inset-left));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 18px 7px 7px;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.di-whatsapp-float:hover,
.di-whatsapp-float:focus-visible {
  background: #20bd5a;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 11px 28px rgba(0, 0, 0, 0.24);
}

.di-whatsapp-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.30);
  outline-offset: 3px;
}

.di-whatsapp-float__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.di-whatsapp-float__icon {
  display: block;
  width: 26px;
  height: 26px;
}

.di-whatsapp-float__label {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .di-whatsapp-float {
    left: max(14px, env(safe-area-inset-left));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    justify-content: center;
  }

  .di-whatsapp-float__icon-wrap {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    background: transparent;
  }

  .di-whatsapp-float__icon {
    width: 30px;
    height: 30px;
  }

  .di-whatsapp-float__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}

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