.assistant-chat {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 10;
  box-sizing: border-box;
  width: 50vw;
  height: 100%;
  padding: 20px;
}

.assistant-chat .chat-widget-host {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #141414;
  color: #999999;
  font-family: Arial, sans-serif;
  font-size: 20px;
  border: 0;
  border-radius: 6px;
}

.aui-thread,
.aui-viewport {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

.aui-viewport {
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow-y: auto;
  padding: 14px 14px 0;
}

.assistant-chat-collapsible .aui-viewport {
  padding-top: 48px;
}

.assistant-chat-toggle {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 1;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: orangered;
  color: #fff;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.assistant-chat-toggle:hover,
.assistant-chat-toggle:focus-visible {
  filter: brightness(1.2);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.assistant-chat-collapsed {
  inset: auto 20px 20px auto;
  width: 60px;
  height: 60px;
  padding: 0;
}

.assistant-chat-collapsed .chat-widget-host {
  display: none;
}

.assistant-chat-collapsed .assistant-chat-toggle {
  inset: 0;
  width: 60px;
  height: 60px;
  font-size: 2em;
}

.aui-message {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.aui-message-user {
  align-items: flex-end;
}

.aui-message-assistant {
  align-items: flex-start;
}

.aui-message-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: #f5f5f5;
  font-size: 14px;
}

.aui-message-identity-user {
  flex-direction: row;
}

.aui-message-identity img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.aui-message-bubble {
  box-sizing: border-box;
  max-width: 85%;
  padding: 0;
  overflow-wrap: anywhere;
}

.aui-message-user .aui-message-bubble {
  background: transparent;
}

.sitko-plain-text {
  white-space: pre-wrap;
}

.sitko-rich-text > :first-child {
  margin-top: 0;
}

.sitko-rich-text > :last-child {
  margin-bottom: 0;
}

.sitko-rich-text .photolist {
  display: flex;
  flex-flow: row wrap;
  gap: .5em;
  margin-bottom: .5em;
}

.sitko-rich-text img,
.sitko-rich-text .photolist img {
  width: auto;
  max-width: 100%;
  max-height: 250px;
  border-radius: 10px;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
  margin-top: 8px;
}

.chat-suggestions button {
  padding: 5px 10px;
  border: 0;
  background: #999999;
  border-radius: 6px;
  color: #141414;
  font: inherit;
  cursor: pointer;
}

.chat-suggestions button:hover,
.chat-suggestions button:focus {
  background: #c5c5c5;
}

.chat-suggestions button:disabled {
  opacity: .5;
  cursor: default;
}

.aui-footer {
  position: sticky;
  bottom: 0;
  margin: auto -14px 0 -14px;
  padding: 0;
  background: #141414;
}

.aui-composer {
  position: relative;
  display: flex;
  align-items: center;
  background: #141414;
}

.aui-composer-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  max-height: 100px;
  padding: 14px 48px 14px 14px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.aui-composer-send {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.aui-composer-send:disabled {
  color: #71717a;
  cursor: default;
}
