/* B7 assistant widget — tiny floating chat (RTL) */
#b7-assistant-btn {
  position: fixed; bottom: 22px; left: 22px; z-index: 9999;
  background: linear-gradient(135deg, #6d28d9, #4f46e5); color: #fff;
  border: none; border-radius: 999px; padding: 12px 20px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.35); font-family: inherit;
}
#b7-assistant-btn:hover { filter: brightness(1.12); }
#b7-assistant-panel {
  position: fixed; bottom: 84px; left: 22px; z-index: 9999;
  width: min(360px, calc(100vw - 44px)); height: min(480px, calc(100vh - 120px));
  background: #14121f; border: 1px solid #2e2a45; border-radius: 16px;
  display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,.5); font-family: inherit;
}
#b7-assistant-panel.open { display: flex; }
#b7-assistant-head {
  background: linear-gradient(135deg, #6d28d9, #4f46e5); color: #fff;
  padding: 12px 14px; font-weight: 800; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center;
}
#b7-assistant-head button { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }
#b7-assistant-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.b7-msg { max-width: 88%; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.b7-msg.bot { background: #221e36; color: #eee; align-self: flex-start; border-bottom-right-radius: 2px; }
.b7-msg.user { background: #4f46e5; color: #fff; align-self: flex-end; border-bottom-left-radius: 2px; }
#b7-assistant-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid #2e2a45; }
#b7-assistant-input {
  flex: 1; background: #0e0c17; border: 1px solid #2e2a45; color: #fff;
  border-radius: 10px; padding: 9px 12px; font-size: 14px; font-family: inherit;
}
#b7-assistant-form button {
  background: #4f46e5; color: #fff; border: none; border-radius: 10px;
  padding: 0 16px; font-size: 15px; cursor: pointer; font-family: inherit;
}
