/* Contact bubble (same look as the old live-chat FAB). */

.dd-live-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 180;
}

html.has-cookie-banner .dd-live-chat {
  bottom: calc(1.25rem + 7.5rem);
}

.dd-live-chat__fab {
  appearance: none;
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(145deg, var(--accent, #6b5ce7) 0%, #5b4fd4 55%, var(--accent-glow, #3d8f86) 100%);
  box-shadow: 0 8px 24px rgba(90, 80, 140, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  display: grid;
  place-items: center;
  animation: dd-live-chat-breathe 4s ease-in-out infinite;
}

.dd-live-chat__fab:hover,
.dd-live-chat__fab:focus-visible {
  outline: 2px solid var(--accent, #6b5ce7);
  outline-offset: 3px;
  transform: translateY(-1px);
  color: #fff;
}

.dd-live-chat__fab svg {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
}

.dd-live-chat__dot {
  position: absolute;
  top: 0.22rem;
  right: 0.22rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: #3ecf8e;
  box-shadow: 0 0 0 2px #fff;
  animation: dd-live-chat-pulse 2.4s ease-out infinite;
}

@keyframes dd-live-chat-pulse {
  0% {
    box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(62, 207, 142, 0.65);
  }
  70% {
    box-shadow: 0 0 0 2px #fff, 0 0 0 0.55rem rgba(62, 207, 142, 0);
  }
  100% {
    box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(62, 207, 142, 0);
  }
}

@keyframes dd-live-chat-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dd-live-chat__fab,
  .dd-live-chat__dot {
    animation: none;
  }
}
