.diy-cb-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #1a1a1a;
}
.diy-cb-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0b5fff;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: 0 8px 24px rgba(11, 95, 255, 0.35);
  cursor: pointer;
  font-weight: 600;
}
.diy-cb-toggle:hover { background: #094bcc; }
.diy-cb-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(360px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 120px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6e8ee;
}
.diy-cb-panel[hidden] { display: none !important; }
.diy-cb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #0b5fff;
  color: #fff;
}
.diy-cb-header-text { display: flex; flex-direction: column; gap: 2px; }
.diy-cb-header-text span { font-size: 12px; opacity: 0.9; font-weight: 400; }
.diy-cb-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.diy-cb-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f6f7fb;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.diy-cb-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}
.diy-cb-msg-bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e6e8ee;
}
.diy-cb-msg-user {
  align-self: flex-end;
  background: #0b5fff;
  color: #fff;
}
.diy-cb-msg a { color: inherit; text-decoration: underline; }
.diy-cb-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e6e8ee;
  background: #fff;
}
.diy-cb-form input {
  flex: 1;
  border: 1px solid #cfd5e3;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.diy-cb-form button {
  background: #0b5fff;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}
.diy-cb-form button:disabled { opacity: 0.6; cursor: wait; }
.diy-cb-footer {
  padding: 8px 12px 12px;
  text-align: center;
  background: #fff;
  font-size: 12px;
}
.diy-cb-footer a { color: #0b5fff; font-weight: 600; }
.screen-reader-text {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
