/* Floating WhatsApp button — round, branded, with breathing halo + hover lift.
   Overrides QLWApp plugin defaults. */

/* Outer container: nudge it inward from screen edges so the halo isn't clipped. */
.qlwapp.qlwapp--bottom-right,
.qlwapp .qlwapp__container {
  right: 24px !important;
  bottom: 24px !important;
}

/* The button itself. Targets every layout variant so the look is consistent. */
.qlwapp .qlwapp__button,
.qlwapp .qlwapp__button--button,
.qlwapp .qlwapp__button--bubble,
.qlwapp .qlwapp__button--image {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: radial-gradient(circle at 30% 30%, #41d672 0%, #25d366 55%, #128c4a 100%) !important;
  background-color: #25d366 !important;
  border: 0 !important;
  color: #ffffff !important;

  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.04),
    0 6px 14px -4px rgba(18, 140, 74, 0.45),
    0 18px 36px -12px rgba(0, 0, 0, 0.30) !important;

  cursor: pointer !important;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    filter 0.25s ease !important;
}

/* Hover: lift, scale a touch, deepen the shadow. */
.qlwapp .qlwapp__button:hover,
.qlwapp .qlwapp__button:focus {
  transform: translateY(-3px) scale(1.04) !important;
  filter: brightness(1.05) saturate(1.05);
  box-shadow:
    0 2px 2px rgba(0, 0, 0, 0.06),
    0 10px 20px -4px rgba(18, 140, 74, 0.55),
    0 24px 48px -10px rgba(0, 0, 0, 0.35) !important;
}

.qlwapp .qlwapp__button:active {
  transform: translateY(-1px) scale(1.0) !important;
}

/* Icon: white, centered, nicely sized. */
.qlwapp .qlwapp__button .qlwapp__icon,
.qlwapp .qlwapp__button > i,
.qlwapp .qlwapp__button > svg {
  color: #ffffff !important;
  font-size: 30px !important;
  line-height: 1 !important;
  width: 30px !important;
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

/* Hide any text/label/notification artefact next to the icon. */
.qlwapp .qlwapp__button .qlwapp__text,
.qlwapp .qlwapp__button .qlwapp__label,
.qlwapp .qlwapp__button .qlwapp__time {
  display: none !important;
}

/* Soft breathing halo behind the button. */
.qlwapp .qlwapp__button::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(37, 211, 102, 0.55);
  opacity: 0;
  pointer-events: none;
  animation: qlwappHalo 2.6s ease-out infinite;
}

@keyframes qlwappHalo {
  0%   { opacity: 0.55; transform: scale(0.85); }
  70%  { opacity: 0;    transform: scale(1.45); }
  100% { opacity: 0;    transform: scale(1.45); }
}

/* On hover, halt the halo so it doesn't feel restless. */
.qlwapp .qlwapp__button:hover::before {
  animation-play-state: paused;
  opacity: 0;
}

/* Respect users who don't want motion. */
@media (prefers-reduced-motion: reduce) {
  .qlwapp .qlwapp__button::before {
    animation: none;
    opacity: 0;
  }
  .qlwapp .qlwapp__button,
  .qlwapp .qlwapp__button:hover {
    transition: none !important;
  }
}

/* Make sure we sit above other floating widgets. */
.qlwapp {
  z-index: 9999 !important;
}
