.bkcChatDemo {
  --bkcChatDemoBorder: #e3ecf3;
  --bkcChatDemoInk: #060f2b;
  --bkcChatDemoMuted: #5f657a;
  --bkcChatDemoPanel: #fff;
  --bkcChatDemoUser: #e7f6f9;
  --bkcChatDemoAssistant: #fafbfc;
  position: relative;
  font-family:
    "General Sans",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.35;
  color: var(--bkcChatDemoInk);
  display: flex;
  flex-direction: column;
  block-size: clamp(320px, 55vh, 360px);
  min-height: 0;
  margin: 1.25rem 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--bkcChatDemoBorder);
  border-radius: 14px;
  background: var(--bkcChatDemoPanel);
}
.bkcChatDemoHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  color: var(--bkcChatDemoMuted);
  font-size: 0.82rem;
}
.bkcChatDemoHeader > span {
  font-size: 1.05rem;
  line-height: 1;
}
.bkcChatDemoHeader strong {
  color: var(--bkcChatDemoInk);
  font-size: 0.9rem;
}
.bkcChatDemoMain {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 0;
  padding: 2.4rem 1.25rem 1rem;
}
.bkcChatDemoHistory {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 0.82rem;
}
.bkcChatDemoHelper {
  align-self: center;
  margin: auto !important;
  color: var(--bkcChatDemoInk);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}
.bkcChatDemoStep {
  max-width: 88%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
}
.bkcChatDemoStep[hidden],
.bkcChatDemoHelper[hidden] {
  display: none;
}
.bkcChatDemoStep--user {
  align-self: flex-end;
  background: var(--bkcChatDemoUser);
}
.bkcChatDemoStep--assistant {
  align-self: flex-start;
  background: var(--bkcChatDemoAssistant);
}
.bkcChatDemoStep--thinking {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  color: var(--bkcChatDemoMuted);
  background: var(--bkcChatDemoAssistant);
}
.bkcChatDemoStep--thinking.bkcChatDemoStep--reserved {
  visibility: hidden;
}
.bkcChatDemoDots {
  display: inline-flex;
  gap: 4px;
}
.bkcChatDemoDots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: bkcChatDemoDot 900ms ease-in-out infinite;
}
.bkcChatDemoDots i:nth-child(2) {
  animation-delay: 140ms;
}
.bkcChatDemoDots i:nth-child(3) {
  animation-delay: 280ms;
}
.bkcChatDemoComposer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 54px;
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--bkcChatDemoBorder);
  border-radius: 24px;
  background: var(--bkcChatDemoPanel);
  font-size: 0.78rem;
  box-shadow: 0 3px 12px rgba(25, 40, 72, 0.08);
}
.bkcChatDemoComposer > div:first-child {
  display: grid;
  min-width: 0;
  min-height: 1.2rem;
  overflow: hidden;
  padding: 0 0.2rem;
}
.bkcChatDemoComposer > div:first-child > span {
  grid-area: 1/1;
  white-space: nowrap;
}
.bkcChatDemoComposer [data-bkc-chat-placeholder] {
  color: var(--bkcChatDemoMuted);
}
.bkcChatDemoComposer [data-bkc-chat-placeholder][hidden] {
  display: none;
}
.bkcChatDemoComposer [data-bkc-chat-composer] {
  min-width: 0;
  overflow-x: hidden;
}
.bkcChatDemoActions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.bkcChatDemoActions span {
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--bkcChatDemoBorder);
  border-radius: 999px;
  color: var(--bkcChatDemoMuted);
  font-size: 0.68rem;
  white-space: nowrap;
}
.bkcChatDemoActions .bkcChatDemoSend {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-left: auto;
  padding: 0;
  border-color: var(--bkcChatDemoInk);
  background: var(--bkcChatDemoInk);
  color: #fff;
}
.bkcChatDemoSend svg {
  display: block;
  width: 15px;
  height: 15px;
}
@media (min-width: 1041px) {
  .homepage-chat-tile {
    display: flex;
  }
  .homepage-chat-tile .bkcChatDemo {
    flex: 1;
    block-size: auto;
  }
}
.bkcChatDemoAttachment {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 8px;
  border-radius: 12px;
  background: #2f3338;
  color: #fff;
}
.bkcChatDemoAttachmentIcon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
}
.bkcChatDemoAttachmentIcon--excel {
  background: #168a4a;
}
.bkcChatDemoAttachmentIcon--pdf {
  background: #d34235;
}
.bkcChatDemoAttachmentIcon svg {
  width: 24px;
  height: 24px;
}
.bkcChatDemoAttachment > span:last-child {
  display: grid;
  min-width: 0;
}
.bkcChatDemoAttachment strong,
.bkcChatDemoAttachment small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bkcChatDemoAttachment small {
  color: rgba(255, 255, 255, 0.68);
}
.bkcChatDemoMessageText {
  display: block;
  overflow-wrap: anywhere;
}
@keyframes bkcChatDemoDot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bkcChatDemoDots i {
    animation: none;
  }
}
