/* Floating WhatsApp widget - shared across every page */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.wa-bubble {
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.12);
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(8px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(.4,0,.2,1), transform 0.25s cubic-bezier(.4,0,.2,1);
  transform-origin: bottom right;
}

.wa-bubble.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.wa-bubble-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-bubble-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-bubble-avatar svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.wa-bubble-info strong {
  display: block;
  font-family: 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.wa-bubble-info span {
  font-family: 'Segoe UI', sans-serif;
  font-size: 11px;
  color: #25D366;
  font-weight: 500;
}

.wa-bubble p {
  font-family: 'Segoe UI', sans-serif;
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  margin: 0;
}

.wa-bubble a.wa-start {
  display: block;
  background: #25D366;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  padding: 9px 16px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.wa-bubble a.wa-start:hover {
  background: #128C7E;
}

.wa-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4), 0 8px 32px rgba(37,211,102,0.2);
  transition: transform 0.2s cubic-bezier(.4,0,.2,1), box-shadow 0.2s;
  position: relative;
}

.wa-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5), 0 12px 40px rgba(37,211,102,0.25);
}

.wa-btn:active {
  transform: scale(0.96);
}

.wa-btn svg {
  width: 30px;
  height: 30px;
  fill: #fff;
  transition: opacity 0.2s, transform 0.2s;
}

.wa-btn .wa-icon-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

.wa-btn.open .wa-icon-wa {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}

.wa-btn.open .wa-icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.wa-ping {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
  animation: wa-pulse 2s infinite;
}

.wa-btn.open .wa-ping {
  display: none;
}
@media (max-width: 480px) {
  .wa-float {
    bottom: 20px;
    right: 16px;
  }
  .wa-bubble {
    max-width: calc(100vw - 48px);
  }
}
