#cnc-chatbot-root {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #000;
}

.cnc-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cnc-button, #5E1626);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
.cnc-bubble img { width: 34px; height: 34px; object-fit: contain; }

.cnc-window {
  display: none;
  flex-direction: column;
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 370px;
  max-width: 92vw;
  height: 560px;
  max-height: 78vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.28);
  overflow: hidden;
  border: 1px solid #eee;
}
.cnc-window.open { display: flex; }

.cnc-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  color: var(--cnc-heading, #003152);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cnc-header img { width: 28px; height: 28px; border-radius: 4px; }
.cnc-header .cnc-title { font-weight: 700; font-size: 15px; flex: 1; color: var(--cnc-heading, #003152); }
.cnc-header button {
  background: none; border: none; cursor: pointer; color: #666; font-size: 16px; padding: 4px;
}

.cnc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
}

.cnc-msg { max-width: 88%; padding: 9px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; color: #000; }
.cnc-msg.bot { background: #f4f4f5; align-self: flex-start; }
.cnc-msg.user { background: var(--cnc-button, #5E1626); color: #fff; align-self: flex-end; }

.cnc-chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 100%; }
.cnc-chip {
  background: #fff;
  border: 1.5px solid var(--cnc-button, #5E1626);
  color: var(--cnc-button, #5E1626);
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 12.5px;
  cursor: pointer;
  text-align: left;
}
.cnc-chip:hover { background: var(--cnc-button, #5E1626); color: #fff; }
.cnc-chip.expert-chip { border-color: var(--cnc-heading, #003152); color: var(--cnc-heading, #003152); }
.cnc-chip.expert-chip:hover { background: var(--cnc-heading, #003152); color: #fff; }

.cnc-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px;
  align-self: flex-start;
  width: 100%;
  max-width: 280px;
}
.cnc-card-top { display: flex; gap: 10px; align-items: center; }
.cnc-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cnc-card-name { font-weight: 700; font-size: 14px; color: var(--cnc-heading, #003152); }
.cnc-card-title { font-size: 12px; color: #555; }
.cnc-card-expertise { font-size: 11.5px; color: var(--cnc-button, #5E1626); margin-top: 2px; font-weight: 600; }
.cnc-card-bio { font-size: 12px; color: #333; margin-top: 8px; line-height: 1.4; }
.cnc-card button {
  margin-top: 10px;
  width: 100%;
  background: var(--cnc-button, #5E1626);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
  cursor: pointer;
}

.cnc-summary { font-size: 12.5px; line-height: 1.6; }
.cnc-summary b { color: var(--cnc-heading, #003152); }

.cnc-typing { font-size: 11.5px; color: #999; padding: 0 14px 6px; }

.cnc-input-row { display: flex; border-top: 1px solid #eee; padding: 8px; gap: 6px; background: #fff; }
.cnc-input-row input[type="text"],
.cnc-input-row input[type="email"],
.cnc-input-row input[type="tel"],
.cnc-input-row input[type="date"] {
  flex: 1; border: 1px solid #ddd; border-radius: 8px; padding: 8px 10px; font-size: 13.5px; color: #000;
}
.cnc-input-row button {
  background: var(--cnc-button, #5E1626);
  color: #fff; border: none; border-radius: 8px; padding: 8px 16px; cursor: pointer; font-size: 13.5px;
}

.cnc-footer-note { text-align: center; font-size: 10.5px; color: #aaa; padding: 4px 0 8px; }
