/* ════════════════════════════════════════
   SiteWerkt WhatsApp Chat Widget — widget.css
   MoreEaze · v1.0.0
════════════════════════════════════════ */

/* ── Launcher button ── */
#wacw-launcher {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  z-index: 99999;
  padding: 0;
}
#wacw-launcher:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
}
#wacw-launcher svg {
  width: 36px;
  height: 36px;
}

/* Pulse ring */
#wacw-launcher::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: wacw-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes wacw-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Notification dot */
#wacw-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 13px;
  height: 13px;
  background: #e63946;
  border-radius: 50%;
  border: 2px solid #fff;
  transition: opacity 0.3s;
  pointer-events: none;
}

/* ── Chat window ── */
#wacw-window {
  position: fixed;
  bottom: 104px;
  right: 28px;
  width: 340px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  z-index: 99998;
  transform: scale(0.85) translateY(20px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.22s ease;
}
#wacw-window.wacw-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Header */
.wacw-header {
  background: #128c7e;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wacw-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #075e54);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -1px;
  font-family: sans-serif;
}
.wacw-header-info {
  flex: 1;
}
.wacw-name {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 2px;
  font-family: sans-serif;
}
.wacw-status {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: sans-serif;
}
.wacw-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  flex-shrink: 0;
}
.wacw-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
  line-height: 1;
}
.wacw-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Chat body */
.wacw-body {
  background: #faf9f7;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Bubbles */
.wacw-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  font-size: 13.5px;
  line-height: 1.45;
  background: #fff;
  color: #222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  align-self: flex-start;
  font-family: sans-serif;
  animation: wacw-bubbleIn 0.35s ease both;
}
@keyframes wacw-bubbleIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.wacw-bubble.delay-1 {
  animation-delay: 0.15s;
}
.wacw-bubble.delay-2 {
  animation-delay: 0.45s;
}

/* CTA */
.wacw-cta {
  background: #faf9f7;
  padding: 0 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wacw-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  font-family: sans-serif;
  transition:
    background 0.18s,
    transform 0.15s;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.wacw-btn-wa:hover {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}
.wacw-btn-wa svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.wacw-disclaimer {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  margin: 0;
  font-family: sans-serif;
}

/* ── Mobile ── */
@media (max-width: 400px) {
  #wacw-window {
    right: 12px;
    width: calc(100vw - 24px);
    bottom: 96px;
  }
  #wacw-launcher {
    right: 16px;
    bottom: 20px;
  }
}
