.kw-whatsapp-widget {
  position: fixed;
  right: 24px;
  bottom: 85px;
  z-index: 9999;
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1f2a2e;
}

.kw-whatsapp-panel {
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #f3efe9;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  margin-bottom: 16px;
}

.kw-whatsapp-widget.kw-open .kw-whatsapp-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.kw-whatsapp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #0b7a63;
  color: #fff;
}

.kw-whatsapp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.kw-whatsapp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.kw-whatsapp-avatar-text {
  color: #0b7a63;
  font-weight: 700;
  font-size: 16px;
}

.kw-whatsapp-meta {
  flex: 1;
  min-width: 0;
}

.kw-whatsapp-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kw-whatsapp-status {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

.kw-whatsapp-status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
}

.kw-whatsapp-close {
  border: none;
  background: transparent;
  color: #e6f4f1;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.kw-whatsapp-body {
  padding: 16px;
  background: #f3efe9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kw-whatsapp-bubble {
  align-self: flex-start;
  background: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.kw-whatsapp-cta {
  padding: 0 16px 16px;
  background: #f3efe9;
}

.kw-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border-radius: 999px;
  padding: 12px 16px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 18px rgba(37, 211, 102, 0.3);
}

.kw-whatsapp-link:hover {
  color: #fff;
  text-decoration: none;
  background: #1bb957;
}

.kw-whatsapp-link svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.kw-whatsapp-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}

.kw-whatsapp-fab::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b30;
  border: 2px solid #25d366;
}

.kw-whatsapp-fab svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

@media (max-width: 600px) {
  .kw-whatsapp-widget {
    right: 16px;
    bottom: 85px;
  }

  .kw-whatsapp-panel {
    width: 280px;
  }
}
