.egk-whatsapp-floating {
  --egk-whatsapp-green: #25d366;
  --egk-whatsapp-safe-bottom: env(safe-area-inset-bottom, 0px);
  position: fixed !important;
  z-index: 9998 !important;
  right: calc(22px + env(safe-area-inset-right, 0px)) !important;
  bottom: var(--egk-whatsapp-bottom, calc(22px + var(--egk-whatsapp-safe-bottom))) !important;
  width: 62px !important;
  height: 62px !important;
  pointer-events: none !important;
}

.egk-whatsapp-floating__link {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 62px !important;
  height: 62px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--egk-whatsapp-green) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(18, 66, 42, .28) !important;
  text-decoration: none !important;
  pointer-events: auto !important;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease !important;
  -webkit-tap-highlight-color: transparent;
}

.egk-whatsapp-floating__link:hover,
.egk-whatsapp-floating__link:focus-visible {
  transform: translateY(-2px) scale(1.04);
  background: #20bd5a !important;
  color: #fff !important;
  box-shadow: 0 11px 26px rgba(18, 66, 42, .34) !important;
}

.egk-whatsapp-floating__link:focus-visible {
  outline: 3px solid #1b2638 !important;
  outline-offset: 4px !important;
}

.egk-whatsapp-floating__icon {
  display: block !important;
  width: 34px !important;
  height: 34px !important;
  fill: none;
}

.egk-whatsapp-floating__tooltip {
  position: absolute !important;
  right: calc(100% + 12px) !important;
  top: 50% !important;
  width: max-content !important;
  max-width: min(250px, calc(100vw - 110px)) !important;
  padding: 9px 13px !important;
  transform: translate(5px, -50%) !important;
  border: 1px solid rgba(27, 38, 56, .08) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #1b2638 !important;
  box-shadow: 0 5px 18px rgba(27, 38, 56, .15) !important;
  font: 600 13px/1.35 'DM Sans', sans-serif !important;
  text-align: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease !important;
}

.egk-whatsapp-floating__link:hover .egk-whatsapp-floating__tooltip,
.egk-whatsapp-floating__link:focus-visible .egk-whatsapp-floating__tooltip {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(0, -50%) !important;
}

@media (max-width: 600px) {
  .egk-whatsapp-floating {
    right: calc(16px + env(safe-area-inset-right, 0px)) !important;
    width: 56px !important;
    height: 56px !important;
  }

  .egk-whatsapp-floating__link {
    width: 56px !important;
    height: 56px !important;
  }

  .egk-whatsapp-floating__icon {
    width: 31px !important;
    height: 31px !important;
  }

  .egk-whatsapp-floating__tooltip {
    right: calc(100% + 9px) !important;
    max-width: calc(100vw - 100px) !important;
    padding: 8px 11px !important;
    font-size: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .egk-whatsapp-floating__link,
  .egk-whatsapp-floating__tooltip {
    transition: none !important;
  }
}
