.assistant-bot {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 2147482500;
  font-size: 14px;
}

.assistant-bot__toggle {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: #4338ca;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
}

.assistant-bot__toggle i {
  font-size: 1.3rem;
}

.assistant-bot__panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: min(390px, calc(100vw - 24px));
  height: min(520px, calc(100vh - 108px));
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.26);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.assistant-bot__header {
  min-height: 62px;
  padding: 12px 14px;
  background: #4338ca;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: grab;
  touch-action: none;
}

.assistant-bot__header:active { cursor: grabbing; }

.assistant-bot__toolbar {
  padding: 10px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.assistant-bot__suggestions {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
}

.assistant-bot__suggestion {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  padding: 5px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.assistant-bot__messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.assistant-bot__message {
  max-width: 88%;
  align-self: flex-start;
}

.assistant-bot__message.is-user {
  align-self: flex-end;
}

.assistant-bot__bubble {
  border-radius: 8px;
  padding: 9px 11px;
  background: #f1f5f9;
  color: #0f172a;
  white-space: pre-wrap;
  word-break: break-word;
}

.assistant-bot__message.is-user .assistant-bot__bubble {
  background: #4338ca;
  color: #ffffff;
}

.assistant-bot__links,
.assistant-bot__cards {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.assistant-bot__link,
.assistant-bot__card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 9px;
  background: #ffffff;
  color: #1e293b;
  text-decoration: none;
}

.assistant-bot__card-title {
  font-weight: 700;
}

.assistant-bot__card-body {
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}

.assistant-bot__composer {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 767.98px) {
  .assistant-bot {
    right: 12px;
    bottom: 74px;
  }

  .assistant-bot__panel {
    width: calc(100vw - 24px);
    height: min(560px, calc(100vh - 96px));
  }
}
