/* Apna Ghar — WhatsApp live chat widget */
.wa-live-chat {
  position: fixed;
  bottom: 7.5rem;
  right: 1.25rem;
  z-index: 920;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  /* pointer-events: none; */
}

.wa-live-chat__bubble {
  pointer-events: auto;
  background: #fff;
  color: var(--heading-color, #0f172a);
  border-radius: 14px 14px 4px 14px;
  padding: 0.75rem 1rem;
  max-width: 220px;
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
  border: 1px solid var(--border-color, #e2e8f0);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.wa-live-chat.is-expanded .wa-live-chat__bubble,
.wa-live-chat:hover .wa-live-chat__bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wa-live-chat__bubble strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #128c7e;
  margin-bottom: 0.25rem;
}

.wa-live-chat .whatsapp-cta {
  position: relative;
  bottom: auto;
  right: auto;
}

.whatsapp-cta::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: wa-pulse 2.2s ease-out infinite;
}

.whatsapp-cta::after {
  content: 'Chat';
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #075e54;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.whatsapp-cta:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(-2px);
}

.whatsapp-cta:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 768px) {
  .wa-live-chat {
    bottom: 5rem;
    right: 1rem;
  }

  .wa-live-chat__bubble {
    display: none;
  }

  .whatsapp-cta::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .whatsapp-cta {
    width: 52px;
    height: 52px;
  }

  .whatsapp-cta svg {
    width: 26px;
    height: 26px;
  }
}
