.AiChatWidget {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}
.AiChatWidget.d-none {
  display: none;
}

.AiChatWidget-panel {
  width: 100%;
  max-width: 1050px;
  height: 640px;
  max-height: 88vh;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.AiChatWidget-header {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background-color: #3d9be5;
  color: #fff;
}
.AiChatWidget-header .Icon:first-child {
  font-size: 16px;
}

.AiChatWidget-header-title {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
}

.AiChatWidget-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.AiChatWidget-header-btn {
  cursor: pointer;
  opacity: 0.85;
  font-size: 14px;
}
.AiChatWidget-header-btn:hover {
  opacity: 1;
}

.AiChatWidget .AiChat {
  flex: 1;
  display: flex;
  overflow: hidden;
  background-color: #f0f0f0;
}

.AiChatWidget .AiChat-sidebar {
  flex: 0 0 250px;
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  background-color: #fff;
  border-right: 1px solid #666;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.AiChatWidget .AiChat-sidebar-header {
  padding: 7.5px;
  border-bottom: 1px solid #666;
}

.AiChatWidget .AiChat-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.AiChatWidget .AiChat-list-empty {
  padding: 24px 12px;
  color: #888;
  font-size: 13px;
  text-align: center;
}

.AiChatWidget .AiChat-list-item {
  display: flex;
  align-items: center;
}
.AiChatWidget .AiChat-list-item:hover .AiChat-list-item-actions {
  opacity: 1;
}
.AiChatWidget .AiChat-list-item.active .AiChat-list-item-actions {
  opacity: 1;
}
.AiChatWidget .AiChat-list-item.active .AiChat-list-item-btn {
  color: #fff;
}

.AiChatWidget .AiChat-list-item-title {
  flex: 1;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 8px;
}

.AiChatWidget .AiChat-list-item-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 100ms linear;
}

.AiChatWidget .AiChat-list-item-btn {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 4px;
  opacity: 0.7;
}
.AiChatWidget .AiChat-list-item-btn:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.08);
}

.AiChatWidget .AiChat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.AiChatWidget .AiChat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.AiChatWidget .AiChat-empty {
  margin: auto;
  text-align: center;
  color: #888;
  padding: 12px;
}

.AiChatWidget .AiChat-empty-icon {
  font-size: 36px;
  color: #000;
  opacity: 0.5;
  margin-bottom: 12px;
}

.AiChatWidget .AiChat-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.AiChatWidget .AiChat-empty-list {
  color: #444;
  font-size: 12px;
  margin-top: 8px;
  padding-left: 22px;
  text-align: left;
}
.AiChatWidget .AiChat-empty-list > * {
  line-height: 2.2;
}
.AiChatWidget .AiChat-empty-list > * .Icon {
  margin-right: 8px;
}

.AiChatWidget .AiChat-message {
  display: flex;
  max-width: 100%;
}

.AiChatWidget .AiChat-message-bubble {
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 85%;
  word-wrap: break-word;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  font-size: 13px;
}
.AiChatWidget .AiChat-message-bubble h3 {
  font-size: 120%;
  font-weight: bold;
}
.AiChatWidget .AiChat-message-bubble h4 {
  font-size: 110%;
  font-weight: bold;
}
.AiChatWidget .AiChat-message-bubble ul,
.AiChatWidget .AiChat-message-bubble ol {
  margin: 6px 0;
  padding-left: 20px;
}
.AiChatWidget .AiChat-message-bubble ol {
  list-style: decimal;
}
.AiChatWidget .AiChat-message-bubble ul {
  list-style: disc;
}
.AiChatWidget .AiChat-message-bubble li {
  margin-bottom: 3px;
}
.AiChatWidget .AiChat-message-bubble table {
  margin: 10px 0 16px 0;
  border-collapse: collapse;
  font-size: 11px;
}
.AiChatWidget .AiChat-message-bubble table th,
.AiChatWidget .AiChat-message-bubble table td {
  padding: 4px 8px;
  border: 1px solid #bbb;
  text-align: left;
  vertical-align: top;
}
.AiChatWidget .AiChat-message-bubble table th {
  background-color: #ddd;
  font-weight: 600;
  color: #333;
}
.AiChatWidget .AiChat-message-bubble table tbody tr:nth-child(even) td {
  background-color: #fafafa;
}

.AiChatWidget .AiChat-message-user {
  justify-content: flex-end;
}
.AiChatWidget .AiChat-message-user .AiChat-message-bubble {
  background-color: #d6fbd1;
  color: #1f2937;
  border-bottom-right-radius: 0;
}

.AiChatWidget .AiChat-message-assistant {
  justify-content: flex-start;
}
.AiChatWidget .AiChat-message-assistant .AiChat-message-bubble {
  background-color: #fff;
  color: #1f2937;
  border-bottom-left-radius: 0;
  padding-top: 16px;
}

.AiChatWidget .AiChat-message-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.AiChatWidget .AiChat-message-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6b7280;
  cursor: pointer;
  font-size: 11px;
  transition: color 100ms linear;
}
.AiChatWidget .AiChat-message-export-btn:hover {
  color: #3d9be5;
}

.AiChatWidget .AiChat-message-export-icon {
  font-size: 10px;
}

.AiChatWidget .AiChat-message-feedback-btn {
  color: #aaa;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  opacity: 0.6;
  margin-left: auto;
  transition: opacity 100ms linear, color 100ms linear;
}
.AiChatWidget .AiChat-message-feedback-btn:hover {
  opacity: 1;
  color: #c0392b;
}
.AiChatWidget .AiChat-message-feedback-btn.is-active {
  opacity: 1;
  color: #c0392b;
  cursor: default;
  pointer-events: none;
}

.AiChatWidget .AiChat-message-time {
  font-size: 80%;
  text-align: left;
  color: #888;
}

.AiChatWidget .AiChat-thinking .AiChat-message-bubble {
  color: #666;
  font-style: italic;
  padding-top: 10px;
}
.AiChatWidget .AiChat-thinking .AiChat-message-bubble i {
  margin-right: 8px;
  color: #3d9be5;
}

.AiChatWidget .AiChat-load-older {
  display: flex;
  justify-content: center;
}

.AiChatWidget .AiChat-load-older-btn {
  background-color: #fff;
  border: 1px solid #666;
  color: #3d9be5;
  cursor: pointer;
  padding: 5px 14px;
  font-size: 12px;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: background-color 100ms linear;
}
.AiChatWidget .AiChat-load-older-btn:hover {
  background-color: rgba(61, 155, 229, 0.1);
}
.AiChatWidget .AiChat-load-older-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.AiChatWidget .AiChat-input {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 14px;
  background-color: #fff;
  border-top: 1px solid #666;
}
.AiChatWidget .AiChat-input .FormControl {
  flex: 1;
  resize: none;
  min-height: 38px;
  max-height: 120px;
  overflow-y: auto;
  font-size: 13px;
}
.AiChatWidget .AiChat-input .Button {
  align-self: stretch;
  height: auto;
  padding: 0 16px;
}

@media (max-width: 700px) {
  .AiChatWidget .AiChat-sidebar {
    flex: 0 0 185px;
    width: 185px;
    min-width: 185px;
    max-width: 185px;
  }
}
@media (max-width: 576px) {
  .AiChatWidget {
    padding: 0;
  }

  .AiChatWidget-panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .AiChatWidget .AiChat {
    flex-direction: column;
  }

  .AiChatWidget .AiChat-sidebar {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: 140px;
    border-right: 0;
    border-bottom: 1px solid #666;
  }
}

/*# sourceMappingURL=AiChatWidget.css.map */
