/* Wesal V2 — NG4 growth surfaces (campaigns, templates, catalog, AI, automation).
   Tokens come from tokens.css only. Every colour here is a token that exists —
   NG3.1 shipped a family of phantom ones that silently voided their whole
   declaration, so `test/ng31CustomerTableAndPaging.test.js` now fails on any
   bare var() naming a property defined nowhere. */

.g-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--w-surface);
}

.g-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--w-line);
}
.g-head h1 { font-size: 18px; margin: 0; color: var(--w-ink); font-weight: 700; }
.g-head .g-sub { font-size: 12px; color: var(--w-ink-3); flex: 1 1 100%; margin: 0; }
.g-head-actions { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }

/* ── tabs (templates: quick replies vs provider templates; ai: agents/sandbox) */
.g-tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--w-line); }
.g-tab {
  appearance: none; background: none; border: 0; cursor: pointer;
  padding: 10px 14px; font-size: 13px; font-weight: 600;
  color: var(--w-ink-3); border-bottom: 2px solid transparent;
}
.g-tab:hover { color: var(--w-ink); }
.g-tab.active { color: var(--w-teal); border-bottom-color: var(--w-teal); }
.g-tab:focus-visible { outline: 2px solid var(--w-teal); outline-offset: -2px; }

/* ── filter bar ─────────────────────────────────────────────────────────── */
.g-filters {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 12px 20px; border-bottom: 1px solid var(--w-line);
}
.g-filters .input.sm { min-width: 140px; }
.g-search { position: relative; flex: 1 1 240px; max-width: 340px; display: flex; align-items: center; }
.g-search .input { width: 100%; padding-inline-start: 32px; }
.g-search .s-ico { position: absolute; inset-inline-start: 10px; color: var(--w-ink-3); display: flex; }

/* ── scroll body ────────────────────────────────────────────────────────── */
.g-body {
  flex: 1; min-height: 220px; overflow-y: auto; overflow-x: hidden;
  padding: 16px 20px 20px;
  scrollbar-gutter: stable;
}

/* ── cards / rows ───────────────────────────────────────────────────────── */
.g-list { display: flex; flex-direction: column; gap: 10px; }
.g-card {
  display: block; width: 100%; text-align: start;
  appearance: none; background: var(--w-surface); cursor: pointer;
  border: 1px solid var(--w-line); border-radius: 12px; padding: 14px 16px;
  color: var(--w-ink); transition: background .12s ease, border-color .12s ease;
}
.g-card:hover { background: var(--w-surface-2); }
.g-card.active { background: var(--w-teal-soft); border-color: var(--w-teal); }
.g-card:focus-visible { outline: 2px solid var(--w-teal); outline-offset: -2px; }
.g-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.g-card-title { font-weight: 600; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.g-card-meta { margin-inline-start: auto; font-size: 12px; color: var(--w-ink-3); font-variant-numeric: tabular-nums; }
.g-card-body {
  margin-top: 6px; font-size: 13px; color: var(--w-ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.g-card-foot { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--w-ink-3); }

/* ── status chips: colour is never the only signal ──────────────────────── */
.g-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
}
.g-chip .ic { flex: 0 0 auto; }
.g-chip.neutral { background: var(--w-surface-2); color: var(--w-ink-2); border-color: var(--w-line); }
.g-chip.info    { background: var(--w-info-soft); color: var(--w-info); }
.g-chip.ok      { background: var(--w-success-soft); color: var(--w-success); }
.g-chip.warn    { background: var(--w-warn-soft); color: var(--w-warn); }
.g-chip.danger  { background: var(--w-danger-soft); color: var(--w-danger); }

/* ── two-pane (list + detail) ───────────────────────────────────────────── */
.g-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); min-height: 0; flex: 1; overflow: hidden; }
.g-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.g-pane + .g-pane { border-inline-start: 1px solid var(--w-line); }
.g-detail-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--w-line); position: sticky; top: 0;
  background: var(--w-surface); z-index: 1;
}
.g-detail-head h2 { font-size: 15px; margin: 0; color: var(--w-ink); min-width: 0; overflow-wrap: anywhere; }
.g-detail-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; scrollbar-gutter: stable; }

.g-sec { margin-bottom: 18px; }
.g-sec h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--w-ink-3); margin: 0 0 8px; font-weight: 700; }
.g-kv { display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 6px 12px; font-size: 13px; }
.g-kv dt { color: var(--w-ink-3); }
.g-kv dd { margin: 0; color: var(--w-ink); overflow-wrap: anywhere; }
.g-pre {
  background: var(--w-surface-2); border: 1px solid var(--w-line); border-radius: 10px;
  padding: 10px 12px; font-size: 13px; color: var(--w-ink); white-space: pre-wrap; overflow-wrap: anywhere;
}

/* ── a stated limitation, never a decorative banner ─────────────────────── */
.g-note {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--w-surface-2); border: 1px solid var(--w-line);
  border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--w-ink-2);
}
.g-note .ic { flex: 0 0 auto; margin-top: 1px; color: var(--w-ink-3); }
.g-note.warn { background: var(--w-warn-soft); border-color: var(--w-warn); color: var(--w-warn); }
.g-note.warn .ic { color: var(--w-warn); }

/* ── builder ────────────────────────────────────────────────────────────── */
.g-steps { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--w-line); }
.g-step {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--w-ink-3); padding: 4px 10px; border-radius: 999px;
  background: var(--w-surface-2); border: 1px solid var(--w-line);
}
.g-step.current { background: var(--w-teal-soft); color: var(--w-teal-strong); border-color: var(--w-teal); font-weight: 600; }
.g-step.done { color: var(--w-success); }
.g-step-n { font-variant-numeric: tabular-nums; font-weight: 700; }

.g-form { max-width: 620px; display: flex; flex-direction: column; gap: 14px; }
.g-field { display: flex; flex-direction: column; gap: 6px; }
.g-field label { font-size: 12px; font-weight: 600; color: var(--w-ink-2); }
.g-field .hint { font-size: 11px; color: var(--w-ink-3); }
.g-field .err { font-size: 11px; color: var(--w-danger); }
.g-field textarea { min-height: 120px; resize: vertical; }
.g-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.g-actions .spacer { margin-inline-start: auto; }

/* ── product grid ───────────────────────────────────────────────────────── */
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.g-prod { border: 1px solid var(--w-line); border-radius: 12px; overflow: hidden; background: var(--w-surface); display: flex; flex-direction: column; }
.g-prod-img { aspect-ratio: 4 / 3; background: var(--w-surface-2); display: grid; place-items: center; overflow: hidden; }
.g-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.g-prod-img .ic { color: var(--w-ink-3); }
.g-prod-b { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.g-prod-name { font-size: 13px; font-weight: 600; color: var(--w-ink); overflow-wrap: anywhere; }
.g-prod-price { font-size: 13px; color: var(--w-ink-2); font-variant-numeric: tabular-nums; }

/* ── pagination (same contract as the customers table) ──────────────────── */
.g-pager {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 20px; border-top: 1px solid var(--w-line);
  background: var(--w-surface); font-size: 12px; color: var(--w-ink-3);
}
.g-pager-range { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.g-pager-nav { display: flex; gap: 8px; align-items: center; }
.g-pager .btn[disabled] { opacity: .45; cursor: default; }

/* ── capability roadmap (automation) ────────────────────────────────────── */
.g-cap { border: 1px solid var(--w-line); border-radius: 12px; padding: 14px 16px; background: var(--w-surface); }
.g-cap + .g-cap { margin-top: 10px; }
.g-cap.unavailable { background: var(--w-surface-2); }
.g-cap-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.g-cap-name { font-weight: 600; font-size: 14px; color: var(--w-ink); }
.g-cap-why { margin-top: 6px; font-size: 12px; color: var(--w-ink-2); }
.g-cap-req { margin-top: 6px; font-size: 12px; color: var(--w-ink-3); }

.g-skel { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }

@media (max-width: 1000px) {
  .g-split { grid-template-columns: minmax(0, 1fr); }
  .g-split.show-detail > .g-pane:first-child { display: none; }
  .g-split:not(.show-detail) > .g-pane:last-child { display: none; }
}

@media (max-width: 760px) {
  .g-head, .g-filters, .g-body, .g-steps { padding-inline: 14px; }
  .g-pager { padding-inline: 14px; gap: 8px; }
  .g-pager-range { margin-inline-start: 0; flex: 1 1 100%; order: 3; }
  .g-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .g-tabs { padding-inline: 14px; overflow-x: auto; }
}

/* WES-010 (stabilization Wave A): same fix, same root cause, as
   customers.css's identical .cst-pager rule right above its own copy of
   this comment — .g-pager (shared by Campaigns and Catalog, per this
   file's own "same contract as the customers table" note above) sits
   inside an equivalently nested, independently-clipped flex column, so
   .page's 90px bottom padding (reserved for the fixed mobile tab bar)
   never reaches it either. 767px matches shell.css's .m-tabbar breakpoint
   exactly, not this file's narrower 760px one. */
@media (max-width: 767px) {
  .g-pager { margin-bottom: 90px; }
}

/* Touch targets.

   Measured at 1440 the pager buttons and the rows-per-page select came out at
   30-38px, under the 44px floor these surfaces are held to. Raising them
   everywhere would make them noticeably heavier than the rest of the V2
   chrome on a desktop, where a mouse does not need the extra area — so the
   floor is applied where touch actually happens. */
@media (pointer: coarse) {
  .g-wrap .btn,
  .g-wrap .icon-btn,
  .g-wrap select.input,
  .g-wrap input.input {
    min-block-size: 44px;
  }
  .g-tab { min-block-size: 44px; }
}

/* Convergence Slice 4d — draft quota line */
.g-quota { font-size: 12.5px; color: var(--w-ink-2); margin: 0 0 10px; }
.g-quota.warn { color: var(--w-danger, #b42318); }

/* ── AI Agent Sandbox WhatsApp Phone Simulator ────────────────────────── */
.wa-sandbox-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 36px;
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 16px 40px;
}

@media (max-width: 860px) {
  .wa-sandbox-layout {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
}

.wa-sandbox-sidebar {
  flex: 1;
  min-width: 290px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wa-sandbox-badge {
  background: var(--w-surface-2);
  border: 1px solid var(--w-line);
  border-radius: var(--r-ctl);
  padding: 8px 12px;
  font-size: 11.5px;
  color: var(--w-ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.wa-badge-pulse {
  width: 7px;
  height: 7px;
  background: var(--w-success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(19, 122, 68, 0.18);
  flex-shrink: 0;
}

.wa-config-card {
  background: var(--w-surface);
  border: 1px solid var(--w-line);
  border-radius: var(--r-card, 14px);
  padding: 20px;
  box-shadow: var(--e-raised);
}

.wa-config-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.wa-config-head {
  font-size: 15px;
  font-weight: 700;
  color: var(--w-ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-live-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--w-teal-strong);
  background: var(--w-teal-soft);
  padding: 2px 8px;
  border-radius: 12px;
}

.wa-quick-prompts {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--w-line);
}

.wa-quick-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--w-ink-2);
  margin-bottom: 8px;
}

.wa-quick-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wa-prompt-chip {
  text-align: start;
  font-size: 12px;
  padding: 8px 12px;
  background: var(--w-surface-2);
  border: 1px solid var(--w-line);
  border-radius: 8px;
  color: var(--w-ink);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-prompt-chip:hover {
  background: var(--w-teal-soft);
  border-color: var(--w-teal);
  color: var(--w-teal-strong);
  transform: translateX(-2px);
}

.chip-ico {
  font-size: 14px;
  flex-shrink: 0;
}

.wa-config-actions {
  margin-top: 16px;
}

/* Phone Mockup Container */
.wa-sandbox-phone-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  flex-shrink: 0;
}

.wa-phone-frame {
  width: 325px;
  height: 640px;
  background: #EFEAE2;
  border: 9px solid #1c2128;
  border-radius: 44px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 0 0 2px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Phone top Dynamic Island & status bar */
.wa-phone-topbar {
  background: #008069;
  height: 28px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  user-select: none;
  z-index: 10;
  direction: ltr;
}

.wa-phone-time {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.2px;
}

.wa-phone-island {
  width: 80px;
  height: 18px;
  background: #000000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 7px;
}

.wa-island-camera {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0d1627;
  border: 1px solid #1e293b;
}

.wa-phone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

.wa-phone-net {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.wa-battery-cap {
  width: 17px;
  height: 9px;
  border: 1px solid #ffffff;
  border-radius: 2.5px;
  padding: 1px;
  display: flex;
  align-items: center;
  position: relative;
}

.wa-battery-cap::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 3.5px;
  background: #ffffff;
  border-radius: 0 1px 1px 0;
}

.wa-battery-level {
  width: 85%;
  height: 100%;
  background: #ffffff;
  border-radius: 1px;
}

/* WhatsApp Phone Header */
.wa-phone-header {
  background: #008069;
  padding: 6px 10px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  z-index: 5;
}

.wa-header-back {
  cursor: pointer;
  opacity: 0.9;
  display: flex;
  align-items: center;
}

.wa-header-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #128C7E;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.wa-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  background: #25D366;
  border: 1.5px solid #075E54;
  border-radius: 50%;
}

.wa-header-details {
  flex: 1;
  min-width: 0;
}

.wa-header-title {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-header-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-verified-badge {
  display: inline-flex;
  align-items: center;
}

.wa-header-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-typing-text {
  color: #55f38e;
  font-weight: 600;
  animation: waPulse 1.2s infinite;
}

@keyframes waPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.wa-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  opacity: 0.9;
}

.wa-head-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Chat Transcript Canvas */
.wa-chat-canvas {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #EFEAE2;
  background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 0);
  background-size: 16px 16px;
}

.wa-chat-pill-row {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

.wa-date-pill {
  background: rgba(255,255,255,0.9);
  color: #54656f;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

.wa-enc-strip {
  background: #FFEECD;
  color: #54656f;
  font-size: 10.5px;
  line-height: 1.35;
  text-align: center;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.1);
  margin-bottom: 6px;
}

.wa-chat-empty {
  margin: auto;
  text-align: center;
  padding: 24px 16px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(4px);
  border-radius: 14px;
  border: 1px dashed rgba(0,0,0,0.1);
}

.wa-chat-empty-icon {
  color: #128C7E;
  margin-bottom: 8px;
}

.wa-chat-empty-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.wa-chat-empty-sub {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
}

/* Chat Message Bubbles */
.wa-msg-row {
  display: flex;
  width: 100%;
}

.wa-msg-row.user {
  justify-content: flex-start;
}

.wa-msg-row.bot {
  justify-content: flex-end;
}

.wa-msg-row.error {
  justify-content: center;
}

.wa-msg-bubble {
  max-width: 82%;
  padding: 6px 10px 4px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  word-break: break-word;
}

.wa-bubble-user {
  background: #D9FDD3;
  color: #111b21;
  border-top-right-radius: 2px;
}

.wa-bubble-bot {
  background: #FFFFFF;
  color: #111b21;
  border-top-left-radius: 2px;
}

.wa-bubble-error {
  background: #FDE8E8;
  color: #9B1C1C;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #F8B4B4;
}

.wa-msg-sender {
  font-size: 10.5px;
  font-weight: 700;
  color: #075E54;
  margin-bottom: 2px;
}

.wa-msg-text {
  color: #111b21;
}

.wa-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 10px;
  color: #667781;
  margin-top: 2px;
}

.wa-msg-ticks {
  color: #53BDEB;
  font-size: 11px;
  letter-spacing: -2px;
}

/* Typing bubble dots */
.wa-bubble-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}

.wa-dot {
  width: 6px;
  height: 6px;
  background: #8696A0;
  border-radius: 50%;
  animation: waBounce 1.4s infinite ease-in-out both;
}

.wa-dot:nth-child(1) { animation-delay: -0.32s; }
.wa-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes waBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* WhatsApp Bottom Composer */
.wa-phone-composer {
  background: #F0F2F5;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #E1E4E8;
}

.wa-icon-action {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #54656F;
  border-radius: 50%;
}

.wa-phone-input {
  flex: 1;
  min-height: 34px;
  max-height: 70px;
  background: #FFFFFF !important;
  border: 1px solid transparent !important;
  border-radius: 18px !important;
  padding: 6px 12px !important;
  font-size: 12.5px !important;
  color: #111B21 !important;
  resize: none;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
  font-family: inherit;
  line-height: 1.35;
}

.wa-phone-input:focus {
  outline: none;
  border-color: #075E54 !important;
}

.wa-phone-send {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #00A884 !important;
  border: none !important;
  color: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: background 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.wa-phone-send:hover:not(:disabled) {
  background: #075E54 !important;
  transform: scale(1.05);
}

.wa-phone-send:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed;
}

/* Compliance status pill */
.wa-compliance-pill {
  margin: 6px auto;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  max-width: 92%;
  text-align: center;
  justify-content: center;
}

.wa-compliance-pill.opt-out {
  background: var(--w-danger-soft);
  color: var(--w-danger);
  border: 1px solid rgba(179, 56, 45, 0.25);
}

.wa-compliance-pill.opt-in {
  background: var(--w-success-soft);
  color: var(--w-success);
  border: 1px solid rgba(19, 122, 68, 0.25);
}

.wa-compliance-pill.blocked {
  background: var(--w-warn-soft);
  color: var(--w-warn);
  border: 1px solid rgba(138, 90, 0, 0.25);
}

.wa-meta-badge {
  background: rgba(0,0,0,0.08);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

