html, body.cnw-chat-app {
  margin: 0;
  height: 100%;
  background: #eef2f7;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}
.erp-ai-chat-modal--public {
  position: fixed !important;
  inset: 0 !important;
  display: block !important;
  z-index: 1;
  background: #eef2f7;
}
.erp-ai-chat-modal--public .erp-ai-chat-backdrop { display: none !important; }
.erp-ai-chat-modal--public .erp-ai-chat-panel {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.cnw-chat-budget {
  font-size: 12px;
  font-weight: 700;
  color: #0f6b5c;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 107, 92, 0.1);
  white-space: nowrap;
}
.cnw-chat-budget.is-low { color: #b45309; background: rgba(180, 83, 9, 0.12); }

.cnw-chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cnw-chat-overlay[hidden] { display: none !important; }
.cnw-chat-overlay-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.cnw-chat-overlay-card h3 { margin: 0; font-size: 1.25rem; }
.cnw-chat-overlay-card p { margin: 0; color: #475569; }
.cnw-chat-overlay-card label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: #334155;
}
.cnw-chat-overlay-card input {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}
.cnw-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: #0f6b5c;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.cnw-chat-btn--ghost {
  background: transparent;
  color: #0f6b5c;
  border: 1px solid rgba(15, 107, 92, 0.35);
}
