/* ==========================================================================
   WHATSAPP-WIDGET.CSS — Verhuislifthuren.eu
   Floating WhatsApp chat widget rechtsonder
   ========================================================================== */

/* ---------- Floating button ---------- */
.wa-widget-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0,0,0,0.12);
  z-index: 998;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-widget-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0,0,0,0.15);
}
.wa-widget-btn:active {
  transform: scale(0.96);
}
.wa-widget-btn svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
/* Pulse ring */
.wa-widget-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: wa-pulse 2.5s ease-out infinite;
}
@keyframes wa-pulse {
  0% { opacity: 0.6; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.35); }
  100% { opacity: 0; transform: scale(1.35); }
}

/* Icon switch when open */
.wa-widget-btn .wa-icon-chat { display: block; }
.wa-widget-btn .wa-icon-close { display: none; }
.wa-widget-btn.open .wa-icon-chat { display: none; }
.wa-widget-btn.open .wa-icon-close { display: block; }
.wa-widget-btn.open::before { display: none; }

/* Mobiel: boven sticky CTA balk */
@media (max-width: 767px) {
  .wa-widget-btn {
    bottom: 72px;
    right: 16px;
    width: 54px;
    height: 54px;
  }
  .wa-widget-btn svg {
    width: 28px;
    height: 28px;
  }
}

/* ---------- Chat popup ---------- */
.wa-widget-popup {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  z-index: 998;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.wa-widget-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media (max-width: 767px) {
  .wa-widget-popup {
    bottom: 140px;
    right: 16px;
  }
}

/* Header */
.wa-widget-header {
  background: #075E54;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-widget-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-widget-avatar svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.wa-widget-header-text {
  color: #fff;
}
.wa-widget-header-name {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-weight: 700;
  font-size: 1rem;
}
.wa-widget-header-status {
  font-size: 0.8125rem;
  opacity: 0.85;
  margin-top: 1px;
}

/* Chat body */
.wa-widget-body {
  padding: 20px;
  background: #ECE5DD;
  min-height: 120px;
}
.wa-widget-bubble {
  background: #fff;
  border-radius: 0 8px 8px 8px;
  padding: 10px 14px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #1C1E21;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  position: relative;
}
.wa-widget-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid #fff;
  border-left: 8px solid transparent;
}
.wa-widget-bubble-time {
  font-size: 0.6875rem;
  color: #8C919A;
  text-align: right;
  margin-top: 4px;
}

/* Footer / input */
.wa-widget-footer {
  padding: 14px 20px;
  background: #fff;
  display: flex;
  gap: 10px;
  align-items: center;
}
.wa-widget-input {
  flex: 1;
  border: 1px solid #E2E5EA;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 0.9375rem;
  font-family: var(--font-body, 'Open Sans', sans-serif);
  outline: none;
  transition: border-color 0.2s;
}
.wa-widget-input:focus {
  border-color: #25D366;
}
.wa-widget-input::placeholder {
  color: #8C919A;
}
.wa-widget-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.wa-widget-send:hover {
  background: #1FAD55;
}
.wa-widget-send svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}
