/* ==========================================================================
   CONCIERGERIE ESSONNE — WhatsApp Widget Styles
   ========================================================================== */

/* ---------- Floating Button ---------- */
.ce-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
}

.ce-wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.ce-wa-btn svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

/* Pulse animation */
.ce-wa-btn.ce-wa-pulse::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: ce-wa-pulse-ring 2s ease-out infinite;
}

@keyframes ce-wa-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Notification badge */
.ce-wa-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: #FF5722;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

/* ---------- Popup ---------- */
.ce-wa-popup {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 360px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ce-wa-popup.ce-wa-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
.ce-wa-header {
  background: #075E54;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ce-wa-avatar {
  width: 44px;
  height: 44px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ce-wa-avatar svg {
  width: 24px;
  height: 24px;
  fill: #FFFFFF;
}

.ce-wa-header-info {
  flex: 1;
  min-width: 0;
}

.ce-wa-header-name {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
}

.ce-wa-header-status {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ce-wa-header-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #25D366;
  border-radius: 50%;
}

.ce-wa-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 20px;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.ce-wa-close:hover {
  color: #FFFFFF;
}

/* Chat area */
.ce-wa-body {
  padding: 20px;
  background: #E5DDD5;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8c3bc' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  min-height: 100px;
}

.ce-wa-bubble {
  background: #FFFFFF;
  border-radius: 0 8px 8px 8px;
  padding: 12px 16px;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  position: relative;
}

.ce-wa-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 0 solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #FFFFFF;
}

.ce-wa-bubble p {
  font-size: 14px;
  line-height: 1.5;
  color: #1F2937;
  margin: 0;
}

.ce-wa-bubble-time {
  font-size: 11px;
  color: #6B7280;
  text-align: right;
  margin-top: 4px;
}

/* Footer / send button */
.ce-wa-footer {
  padding: 16px 20px;
  background: #FFFFFF;
}

.ce-wa-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.ce-wa-send:hover {
  background: #20BA5A;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.ce-wa-send svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .ce-wa-popup {
    right: 12px;
    left: 12px;
    bottom: 88px;
    width: auto;
  }

  .ce-wa-btn {
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
  }

  .ce-wa-btn svg {
    width: 28px;
    height: 28px;
  }

  .ce-wa-btn.ce-wa-pulse::after {
    width: 56px;
    height: 56px;
  }
}
