/*
 * BESTWOO Global WhatsApp Floating Contact R1
 * Original development and maintenance: Mike
 */
.BESTWOO-whatsapp-float {
  position: fixed;
  top: 62%;
  right: max(18px, env(safe-area-inset-right));
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 8px 18px 8px 9px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #075e54 0%, #128c7e 58%, #25d366 100%);
  box-shadow: 0 16px 42px rgba(7,94,84,.28), 0 4px 14px rgba(12,31,30,.18);
  text-decoration: none;
  transform: translateY(-50%);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.BESTWOO-whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border: 1px solid rgba(37,211,102,.30);
  border-radius: inherit;
  opacity: 0;
}

.BESTWOO-whatsapp-float:hover,
.BESTWOO-whatsapp-float:focus-visible {
  color: #fff;
  filter: brightness(1.04);
  transform: translateY(-50%) translateX(-4px);
  box-shadow: 0 20px 50px rgba(7,94,84,.34), 0 6px 16px rgba(12,31,30,.20);
}

.BESTWOO-whatsapp-float:focus-visible {
  outline: 3px solid rgba(255,255,255,.92);
  outline-offset: 3px;
}

.BESTWOO-whatsapp-float-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.BESTWOO-whatsapp-float-icon img {
  display: block;
  width: 25px;
  height: 25px;
}

.BESTWOO-whatsapp-float-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  line-height: 1.12;
  white-space: nowrap;
}

.BESTWOO-whatsapp-float-copy strong {
  color: #fff;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: .01em;
}

.BESTWOO-whatsapp-float-copy small {
  color: rgba(255,255,255,.83);
  font-size: 11px;
  font-weight: 520;
}

@media (prefers-reduced-motion: no-preference) {
  .BESTWOO-whatsapp-float::before {
    animation: BESTWOO-whatsapp-pulse 4.2s ease-out infinite;
  }
}

@keyframes BESTWOO-whatsapp-pulse {
  0%, 70%, 100% { opacity: 0; transform: scale(.94); }
  78% { opacity: .75; }
  94% { opacity: 0; transform: scale(1.16); }
}

@media (max-width: 820px) {
  .BESTWOO-whatsapp-float {
    top: auto;
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 56px;
    min-width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 7px;
    border-radius: 50%;
    transform: none;
  }

  .BESTWOO-whatsapp-float:hover,
  .BESTWOO-whatsapp-float:focus-visible {
    transform: translateY(-2px);
  }

  .BESTWOO-whatsapp-float-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .BESTWOO-whatsapp-float-copy {
    display: none;
  }
}

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