/* =====================================================
   WHATSAPP WIDGET — shamkamboj.com (light theme)
   ===================================================== */

.wa-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  font-family: var(--sans, 'Cabinet Grotesk', system-ui, sans-serif);
}

/* Trigger button */
.wa-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  outline: none;
}

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

.wa-btn svg { width: 30px; height: 30px; fill: #fff; display: block; }

/* Notification dot */
.wa-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--bg, #f5f0e8);
  animation: wa-pulse 2.2s ease-in-out infinite;
}

@keyframes wa-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: .7; }
}

/* Chat card */
.wa-card {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 320px;
  background: var(--bg, #f5f0e8);
  border: 1px solid rgba(201,124,46,.2);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(26,22,18,.14);
  overflow: hidden;
  transform: scale(.92) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .22s ease;
  transform-origin: bottom right;
}

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

/* Card header */
.wa-card-head {
  background: #1a1612;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-card-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--amber, #c97c2e);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif, Georgia, serif);
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.wa-card-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

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

.wa-card-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}

.wa-card-status {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.wa-card-status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #25d366;
  flex-shrink: 0;
  display: block;
}

/* Bubble area */
.wa-card-body { padding: 16px 16px 8px; }

.wa-bubble {
  background: var(--bg2, #ede8de);
  border-radius: 4px 14px 14px 14px;
  padding: 11px 14px;
  font-size: 13.5px;
  color: var(--ink, #1a1612);
  line-height: 1.55;
  max-width: 84%;
  border: 1px solid rgba(0,0,0,.06);
}

.wa-bubble-time {
  font-size: 10px;
  color: var(--faint, #c4b8a8);
  margin-top: 5px;
  margin-left: 2px;
}

/* Input area */
.wa-card-foot {
  padding: 10px 14px 14px;
}

.wa-textarea {
  width: 100%;
  background: var(--bg2, #ede8de);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 12px;
  padding: 10px 13px;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 13px;
  color: var(--ink, #1a1612);
  resize: none;
  outline: none;
  line-height: 1.5;
  transition: border-color .15s;
  min-height: 52px;
  max-height: 110px;
}

.wa-textarea:focus {
  border-color: rgba(201,124,46,.4);
}

.wa-send {
  margin-top: 8px;
  width: 100%;
  padding: 11px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, transform .15s;
}

.wa-send:hover { background: #1db954; transform: translateY(-1px); }
.wa-send svg  { width: 16px; height: 16px; fill: #fff; }

@media (max-width: 400px) {
  .wa-card { width: calc(100vw - 32px); right: 0; }
  .wa-widget { right: 16px; bottom: 20px; }
}
