:root{
  --bcc-chat-primary:#005a9c;
  --bcc-chat-light:#f4f4f4;
  --bcc-chat-border:#ddd;
  --bcc-chat-text-dark:#333;
  --bcc-chat-text-light:#fff;
}

/* Floating action button */
.bcc-chat-launch{
  position:fixed; right:20px; bottom:20px; z-index:9999;
  border:0; border-radius:50%; width:56px; height:56px;
  background:var(--bcc-chat-primary); color:var(--bcc-chat-text-light);
  box-shadow:0 6px 18px rgba(0,0,0,.2); cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:transform .2s ease;
}
.bcc-chat-launch:hover{ transform:scale(1.1) }

/* Panel */
.bcc-chat-panel{
  position:fixed; right:20px; bottom:90px; width:360px; max-width:calc(100vw - 40px);
  max-height:70vh; background:#fff; border:1px solid var(--bcc-chat-border); border-radius:10px;
  display:none; flex-direction:column; overflow:hidden; z-index:9999; box-shadow:0 10px 26px rgba(0,0,0,.15);
  opacity:0; transform:translateY(10px); visibility:hidden; transition:opacity .25s ease, transform .25s ease, visibility .25s;
}
.bcc-chat-panel.bcc-chat-open{ display:flex; opacity:1; transform:translateY(0); visibility:visible }

/* Header */
.bcc-chat-header{
  padding:10px 12px; background:#f6f7f7; border-bottom:1px solid var(--bcc-chat-border);
  font-weight:600; display:flex; align-items:center; justify-content:space-between; color:var(--bcc-chat-text-dark); flex-shrink:0;
}
.bcc-chat-header .bcc-close{ border:0; background:transparent; font-size:18px; cursor:pointer; color:#555; padding:5px; line-height:1 }

/* Body + messages */
.bcc-chat-body{ padding:12px; overflow-y:auto; flex:1; background:var(--bcc-chat-light); display:flex; flex-direction:column }
.bcc-msg{ margin:6px 0; max-width:85%; padding:8px 10px; border-radius:10px; line-height:1.35; font-size:.95em }
.bcc-msg.user{ margin-left:auto; background:#e6f5ff }
.bcc-msg.bot{ margin-right:auto; background:#fff; border:1px solid var(--bcc-chat-border) }
.bcc-typing{ opacity:.8; font-style:italic }

/* Input row */
.bcc-chat-input{ display:flex; gap:8px; border-top:1px solid var(--bcc-chat-border); padding:10px; background:#fff; flex-shrink:0 }
.bcc-chat-input input{ flex:1; padding:8px 10px; border:1px solid var(--bcc-chat-border); border-radius:6px; font-size:1em }
.bcc-chat-input button{ border:0; background:var(--bcc-chat-primary); color:#fff; padding:8px 12px; border-radius:6px; font-weight:600; cursor:pointer }

/* Citations + thumbs */
.bcc-refs{ margin:6px 0 0; font-size:.85em; color:#555 }
.bcc-refs a{ color:#005a9c; text-decoration:underline }
.bcc-thumbs{ display:flex; gap:10px; margin:8px 0 0 }
.bcc-thumbs button{ border:1px solid var(--bcc-chat-border); background:#fff; border-radius:999px; font-size:.85em; padding:6px 10px; cursor:pointer }
