.cb-root {
  position: fixed;
  z-index: 2147483647;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.cb-root.bottom-right { right: 16px; bottom: 16px; }
.cb-root.bottom-left  { left: 16px; bottom: 16px; }

.cb-launcher {
  border: none;
  border-radius: 999px;
  width: 58px;
  height: 58px;
  padding: 0;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  display: grid;
  place-items: center;
  background: white;
}

.cb-launcher-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.cb-panel {
  width: 340px;
  height: 480px;
  display: none;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  background: #ffffff;
  margin-bottom: 12px;
}

.cb-root.open .cb-panel { display: flex; }

.cb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  background: #0b2239;
  color: white;
}

.cb-title { font-weight: 700; }

.cb-close {
  border: none;
  background: transparent;
  color: white;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.cb-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f6f8fb;
}

.cb-msg {
  display: flex;
  margin: 10px 0;
}

.cb-user { justify-content: flex-end; }
.cb-assistant { justify-content: flex-start; }

.cb-bubble {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.35;
  font-size: 14px;
  white-space: pre-wrap;
}

.cb-user .cb-bubble {
  background: #0b2239;
  color: white;
  border-bottom-right-radius: 4px;
}

.cb-assistant .cb-bubble {
  background: white;
  color: #111;
  border: 1px solid rgba(0,0,0,.08);
  border-bottom-left-radius: 4px;
}

.cb-typing .cb-bubble {
  opacity: .75;
}

.cb-footer {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: white;
  border-top: 1px solid rgba(0,0,0,.08);
}

.cb-input {
  flex: 1;
  resize: none;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15);
  padding: 10px 10px;
  font-size: 14px;
  outline: none;
}

.cb-send {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.cb-send:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Quick actions */
.cb-quick-actions {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e7ebf3;
  background: #ffffff;
  flex-wrap: wrap;
}

.cb-qa {
  border: 1px solid #d6dbe8;
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
}

.cb-qa:hover { filter: brightness(0.98); }

.cb-qa-primary {
  font-weight: 600;
}

.cb-qa-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}
