.assistant-chat {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 99999;
  box-sizing: border-box;
  width: min(800px, 100vw);
  height: 90%;
  padding: 10px;
}

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

.assistant-chat .chtrm-link {
  position: absolute;
  right: -48px;
  bottom: 56px;
  transform: rotate(-90deg) translate3d(0, 0, 0);;
  font-size: 11px;
  line-height: 11px;
  text-decoration: none;
  color: #151515;
}

.assistant-chat .chtrm-link:hover,
.assistant-chat .chtrm-link:focus {
  /*opacity: 0.9;*/
  /*transition-duration: 0s;*/
}

.aui-thread {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

.aui-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background: #1a1a1a;
  min-height: 40px;
}

.aui-footer {
  padding: 0;
  background: #1a1a1a;
}

.aui-header-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.aui-header-close {
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #ff4e34;
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}

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

.assistant-chat-toggle {
  position: fixed;
  min-height: 38px;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  border: 0;
  border-radius: 2px;
  background-color: #151515;

  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.assistant-chat-toggle-hidden {
  display: none;
}

.assistant-chat-toggle-open {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 4px 7px;
  border: 0;
  background: transparent;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  color: #ff4e34;
}

.assistant-chat-extrabutton {
  padding: 5px 8px;
  min-height: 38px;
  border: 0;
  z-index: 9999;
  border-radius: 2px;
  background-color: #151515;
  color: #ff4e34;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  vertical-align: middle;
}

.assistant-chat-toggle-open img,
.assistant-chat-extrabutton img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
}

.assistant-chat-toggle-open span,
.assistant-chat-extrabutton span {
  display: inline-block;
  max-width: 25vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assistant-chat-toggle:hover,
.assistant-chat-toggle:focus-visible,
.assistant-chat-extrabutton:hover,
.assistant-chat-extrabutton:focus-visible {
  filter: brightness(1.2);
}



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


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

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

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

.aui-typing {
  display: flex;
  align-self: flex-start;
  gap: 5px;
  padding: 0 0 10px 0;
}

.aui-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: aui-typing 1s infinite ease-in-out;
}

.aui-typing span:nth-child(2) {
  animation-delay: .15s;
}

.aui-typing span:nth-child(3) {
  animation-delay: .3s;
}

@keyframes aui-typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: .35;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aui-typing span {
    animation: none;
  }
}

.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: 2px;
  filter: grayscale(100%) brightness(60%) sepia(100%) hue-rotate(-36deg) saturate(500%);
  transition-duration: .5s;
}

.sitko-rich-text img:hover,
.sitko-rich-text img:focus,
.sitko-rich-text .photolist img:hover,
.sitko-rich-text .photolist img:focus {
  filter: grayscale(0) brightness(1) sepia(0) hue-rotate(0) saturate(1);
  transition-duration: .1s;
}

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

.chat-suggestions button {
  padding: 5px 10px;
  border: 0;
  background: #ff4e34;
  border-radius: 2px;
  color: #000;
  font: inherit;
  cursor: pointer;
  transition-duration: 0.2s;
}

.chat-suggestions button:not([disabled]):hover,
.chat-suggestions button:not([disabled]):focus {
  transition-duration: 0s;
  color: white;
}

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



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

.aui-composer-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 45px;
  padding: 7px 40px 7px 10px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ff4e34;
  font: inherit;
}

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

.aui-composer-send:disabled {
  color: #ff4e34;
  cursor: default;
  opacity: .5;
}

.aui-composer-send img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ff4e34;
}

.aui-closebtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 38px;
  padding: 0;
  border: 0;
  background: #151515;
  color: #ff4e34;
  font: inherit;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  right: 0;
  opacity: 0;
}

.aui-closebtn:hover,
.aui-closebtn:focus {
  filter: brightness(1.2);
  opacity: 1;
}
