:root {
  --ccs-wa-brand: #0b8f7d;
  --ccs-wa-brand-2: #0aa06a;
  --ccs-wa-bg: #f4f1ea;
  --ccs-wa-surface: #ffffff;
  --ccs-wa-text: #13202a;
  --ccs-wa-muted: rgba(19, 32, 42, 0.75);
  --ccs-wa-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.ccs-wa-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ccs-wa-brand-2), #25d366);
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.25), 0 10px 25px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  z-index: 99998;
}

.ccs-wa-fab i {
  color: #fff;
  font-size: 30px;
}

.ccs-wa-panel {
  position: fixed;
  left: 22px;
  bottom: 96px;
  width: 320px;
  max-width: calc(100vw - 44px);
  border-radius: 18px;
  overflow: hidden;
  background: var(--ccs-wa-bg);
  box-shadow: var(--ccs-wa-shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 99999;
}

.ccs-wa-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ccs-wa-header {
  background: linear-gradient(135deg, #0b7a6c, var(--ccs-wa-brand));
  padding: 14px 14px 14px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
}

.ccs-wa-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
}

.ccs-wa-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
}

.ccs-wa-online {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #2be272;
  border: 2px solid rgba(255, 255, 255, 0.95);
}

.ccs-wa-headtxt {
  flex: 1 1 auto;
  min-width: 0;
}

.ccs-wa-headtxt strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  font-family: var(--font-head, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
}

.ccs-wa-headtxt span {
  display: block;
  font-size: 12px;
  opacity: 0.95;
  margin-top: 3px;
}

.ccs-wa-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.ccs-wa-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ccs-wa-body {
  padding: 16px;
}

.ccs-wa-bubble {
  background: var(--ccs-wa-surface);
  border-radius: 14px;
  padding: 14px 14px;
  color: var(--ccs-wa-text);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  font-family: var(--font-body, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
}

.ccs-wa-bubble p {
  margin: 0;
  font-size: 14px;
  color: var(--ccs-wa-muted);
}

.ccs-wa-bubble h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ccs-wa-text);
}

.ccs-wa-cta {
  margin-top: 14px;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #1ebd5a, #25d366);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.25);
}

.ccs-wa-cta i {
  margin-right: 8px;
}

@media (max-width: 420px) {
  .ccs-wa-panel {
    left: 14px;
    bottom: 88px;
  }
  .ccs-wa-fab {
    left: 14px;
    bottom: 14px;
  }
}

