.cw-root { font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif; color: #1a1d16; }
.cw-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: flex; align-items: center; gap: 8px;
  background: #1a1d16; color: #fff; border: 0; border-radius: 999px;
  padding: 12px 16px; font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 24px #0004;
}
.cw-root.lift .cw-btn { bottom: 84px; }
@media (min-width: 701px) { .cw-root.lift .cw-btn { bottom: 20px; } }
.cw-btn small { font-weight: 600; opacity: .8; font-size: 11px; letter-spacing: .04em; }
.cw-panel {
  position: fixed; right: 20px; bottom: 80px; z-index: 81;
  width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px));
  background: #fff; border: 2px solid #1a1d16; border-radius: 16px;
  display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 16px 40px #0003;
}
.cw-root.lift .cw-panel { bottom: 144px; }
@media (min-width: 701px) { .cw-root.lift .cw-panel { bottom: 80px; } }
.cw-panel.open { display: flex; }
.cw-head {
  background: #1a1d16; color: #fff; padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.cw-head h2 { margin: 0; font-size: 16px; }
.cw-head p { margin: 2px 0 0; font-size: 12px; opacity: .85; }
.cw-badge {
  display: inline-block; background: #3b5bdb; color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
  padding: 2px 6px; border-radius: 4px; margin-right: 6px; vertical-align: middle;
}
.cw-x { background: transparent; border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.cw-disc { background: #fff8e6; border-bottom: 1px solid #d9d0c0; padding: 8px 12px; font-size: 11px; line-height: 1.4; }
.cw-log { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #f6f1e6; }
.cw-msg { max-width: 90%; padding: 8px 10px; border-radius: 10px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.cw-msg.bot { background: #fff; border: 1px solid #d9d0c0; align-self: flex-start; }
.cw-msg.user { background: #1a1d16; color: #fff; align-self: flex-end; }
.cw-cta { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; background: #f6f1e6; }
.cw-cta a {
  font-size: 12px; font-weight: 700; color: #1a1d16;
  border: 1.5px solid #1a1d16; border-radius: 999px; padding: 5px 8px;
  text-decoration: none; background: #fff;
}
.cw-form, .cw-input { border-top: 1px solid #d9d0c0; padding: 10px; background: #fff; }
.cw-form { display: none; flex-direction: column; gap: 6px; }
.cw-form.open { display: flex; }
.cw-form label { font-size: 12px; font-weight: 700; display: flex; flex-direction: column; gap: 3px; }
.cw-form input, .cw-input textarea {
  width: 100%; border: 1px solid #d9d0c0; border-radius: 8px; padding: 8px; font: inherit;
}
.cw-form button, .cw-input button {
  background: #ff6a13; color: #fff; border: 0; border-radius: 8px;
  padding: 8px 12px; font-weight: 800; cursor: pointer;
}
.cw-input { display: flex; gap: 8px; align-items: flex-end; }
.cw-input textarea { resize: none; min-height: 42px; max-height: 90px; }
.cw-form .err { color: #9b1c1c; font-size: 12px; }
.cw-meta { font-size: 11px; color: #666; padding: 0 12px 8px; background: #f6f1e6; }
