/* ============================================================
   wa-channel.css -- neeche daayein kone ka WhatsApp channel card
   (Tukda 4, 26 Sep). Sirf theme.css ke token -- koi hex rang nahi.
   z-index 50: offer popup (100), broker popup (1000) aur mobile
   drawer (60) sab iske UPAR aate hain.
   ============================================================ */
.wac {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: min(360px, calc(100vw - 24px));
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 40px 16px 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.wac.show { opacity: 1; transform: none; }

.wac-ic {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
}
.wac-ic svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linejoin: round;
}
.wac-body { min-width: 0; }
.wac-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.wac-title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600; line-height: 1.3;
  color: var(--text);
}
.wac-text {
  margin: 4px 0 0;
  font-size: 13.5px; line-height: 1.45;
  color: var(--text-muted);
}
.wac-join {
  display: inline-flex; align-items: center;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13.5px; font-weight: 600;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease);
}
.wac-join:hover { background: var(--accent-strong); }
.wac-join:focus-visible,
.wac-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wac-x {
  position: absolute; top: 6px; right: 6px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 20px; line-height: 1;
  cursor: pointer;
}
.wac-x:hover { background: var(--surface-2); color: var(--text); }

/* Phone: poori chaudai, neeche 12px -- angoothe ki pahunch me */
@media (max-width: 560px) {
  .wac {
    right: 12px; left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }
}

/* Admin ka preview -- wahi card, bas apni jagah par */
.wac.wac--preview {
  position: relative; right: auto; left: auto; bottom: auto;
  z-index: auto; opacity: 1; transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .wac { transition: none; transform: none; }
}
