:root {
  --chat-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --chat-emoji-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.3);
  --chat-prime: #FFCC00;
  --chat-prime-light: #ffdf00;
  --chat-prime-dark: #e6bd19;
  --chat-white: #ffffff;
  --chat-grey: #dddddd;
  --chat-black: #000000;
  --chat-font-famaly: "Source Sans 3", sans-serif;
  --chat-font-wight: 400;
  --chat-base-size: 1rem;
  --chat-text-size: calc(var(--chat-base-size) * .9);
  --chat-name-size: calc(var(--chat-base-size) * .75);
  --chat-background: var(--chat-prime);
  --chat-button-background: var(--chat-prime);
  --chat-button-background-hover: var(--chat-black);
  --chat-button-light-background: var(--chat-prime-light);
  --chat-button-dark-background: var(--chat-prime-dark);
  --chat-button-color: var(--chat-white);
  --chat-button-text-size: calc(var(--chat-base-size) * .9);
  --chat-bot-color: var(--chat-white);
  --chat-bot-fill: var(--chat-white);
  --chat-form-background: var(--chat-white);
  --chat-form-border: solid 1px var(--chat-grey);
  --chat-width: 200px;
  --chat-height: 300px;
  --chat-bottom: 1em;
  --chat-right: 1em;
  --chat-input-height: 2.5rem;
  --chat-scrollbar-background: var(--chat-white);
  --chat-scrollbar-color: var(--chat-prime);
  --chat-scrollbar-width: thin;
}

/* chat button */
#module-chat #help-button.delete, #module-chat.bottom-right #help-button, #module-chat #help-button, #module-chat .input-wrapper .inp-icon-emoji, #module-chat .input-wrapper .inp-icon-send, #module-chat .input-wrapper #send-button {
  font-family: var(--chat-font-famaly);
  font-size: var(--chat-button-text-size);
  font-weight: var(--chat-font-wight);
  background-color: var(--chat-button-background);
  color: var(--chat-button-color);
  box-shadow: var(--chat-shadow);
  transition: color ease 0.2s, background-color ease 0.2s;
  padding: 1.5em 1em;
  border: none;
  border-radius: 0;
}
#module-chat #help-button:hover, #module-chat .input-wrapper .inp-icon-emoji:hover, #module-chat .input-wrapper .inp-icon-send:hover, #module-chat .input-wrapper #send-button:hover {
  background-color: var(--chat-button-background-hover);
}
#module-chat #help-button:hover svg, #module-chat .input-wrapper .inp-icon-emoji:hover svg, #module-chat .input-wrapper .inp-icon-send:hover svg, #module-chat .input-wrapper #send-button:hover svg, #module-chat #help-button:hover svg *, #module-chat .input-wrapper .inp-icon-emoji:hover svg *, #module-chat .input-wrapper .inp-icon-send:hover svg *, #module-chat .input-wrapper #send-button:hover svg * {
  fill: var(--chat-button-color);
}
#module-chat #help-button.delete svg, #module-chat.bottom-right #help-button svg, #module-chat #help-button svg, #module-chat .input-wrapper .inp-icon-emoji svg, #module-chat .input-wrapper .inp-icon-send svg, #module-chat .input-wrapper #send-button svg, #module-chat #help-button.delete svg *, #module-chat.bottom-right #help-button svg *, #module-chat #help-button svg *, #module-chat .input-wrapper .inp-icon-emoji svg *, #module-chat .input-wrapper .inp-icon-send svg *, #module-chat .input-wrapper #send-button svg * {
  max-width: 100%;
  max-height: 100%;
}

#module-chat {
  position: fixed;
  right: 2rem;
  bottom: 0;
  font-family: var(--chat-font-famaly);
  font-weight: var(--chat-font-wight);
  pointer-events: none;
  z-index: 100;
}
@media only screen and (max-width: 500px) {
  #module-chat {
    right: 0;
    width: 100vw;
  }
}
#module-chat > * {
  pointer-events: auto;
}
#module-chat[data-position=center-right] {
  right: 0;
  top: 50%;
  transform: translate(0, -50%);
  display: flex;
  align-items: center;
}
#module-chat[data-position=center-right] .help-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}
#module-chat[data-position=center-right] .help-button.btn-end-chat {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
#module-chat[data-position=center-right] .help-button svg.bot-icon {
  width: 3rem;
  height: auto;
  margin-bottom: 0.5rem;
  fill: currentColor;
  pointer-events: none;
}
#module-chat[data-position=center-right] .help-button .image-preview {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#module-chat[data-position=center-right] .help-button .image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}
#module-chat .loader {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
  margin: 5px;
  position: relative;
  color: var(--chat-white);
  box-sizing: border-box;
  animation: animloader 1s linear infinite alternate;
}
@keyframes animloader {
  0% {
    box-shadow: -38px -12px, -14px 0, 14px 0, 38px 0;
  }
  33% {
    box-shadow: -38px 0px, -14px -12px, 14px 0, 38px 0;
  }
  66% {
    box-shadow: -38px 0px, -14px 0, 14px -12px, 38px 0;
  }
  100% {
    box-shadow: -38px 0, -14px 0, 14px 0, 38px -12px;
  }
}
#module-chat #emojiPicker {
  bottom: 3.75rem !important;
  max-width: 265px !important;
  border: none;
  border-radius: 0;
  bottom: 3.75rem;
  max-width: 265px;
  display: block;
  position: absolute;
  background: var(--chat-white);
  padding: 10px;
  box-shadow: var(--chat-emoji-shadow);
  z-index: 1000;
  overflow-y: auto;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
}
#module-chat #chat-window {
  border-radius: 0;
  max-height: var(--chat-height);
  overflow: hidden scroll;
}
#module-chat .chat-wrapper {
  padding: 1em;
  border-radius: 0;
  background-color: var(--chat-background);
  box-shadow: var(--chat-emoji-shadow);
  transform-origin: bottom right;
  transition: visibility 0.2s ease-in-out;
  pointer-events: all;
  width: min(350px, 60vw);
  position: relative;
}
#module-chat .chat-wrapper.visible {
  visibility: visible;
}
#module-chat .chat-wrapper.hidden {
  visibility: hidden;
  display: none;
}
@media only screen and (max-width: 500px) {
  #module-chat .chat-wrapper {
    right: 0;
    width: 100%;
    max-width: 100vw;
    padding: 0.5rem;
    bottom: 2rem;
  }
}
#module-chat #chat-window {
  background-color: var(--chat-form-background);
  border-radius: 0;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}
#module-chat .chat {
  height: 300px;
  overflow-y: scroll;
  padding: 10px;
  margin-bottom: 10px;
  background-color: white;
}
#module-chat .message {
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}
#module-chat .message .content {
  padding: 5px 10px;
  width: fit-content;
}
#module-chat .message .content, #module-chat .message .content * {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  font-size: var(--chat-text-size);
  font-weight: var(--chat-font-wight);
  line-height: 1.2rem;
}
#module-chat .message .name {
  text-align: left;
  margin: 5px auto 1px 5px;
  font-size: var(--chat-name-size);
  line-height: 1;
  color: grey;
  width: fit-content;
}
#module-chat .message.user-message {
  margin: 0 0 10px auto;
}
#module-chat .message.user-message .name {
  text-align: right;
  margin: 5px 5px 1px auto;
  font-size: var(--chat-name-size);
  color: grey;
  width: fit-content;
}
#module-chat .message.user-message .content {
  margin-left: auto;
}
#module-chat .message.assistant-message {
  margin: 0 auto 10px 0;
}
#module-chat .message.assistant-message._loader {
  display: flex;
  align-items: center;
  justify-content: center;
}
#module-chat .message.system-message:first-of-type {
  display: none;
}
#module-chat .message.system-message:only-child {
  display: flex;
}
#module-chat .message.system-message .content {
  text-align: center;
  width: 100%;
  margin-inline: auto;
  color: var(--chat-black);
  max-width: 90%;
}
#module-chat .inp-icon.send, #module-chat .inp-icon-send {
  background-color: var(--chat-white);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-send"><line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon></svg>');
}
#module-chat .inp-icon.send:hover, #module-chat .inp-icon-send:hover {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-send"><line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon></svg>');
}
#module-chat .inp-icon.emoji, #module-chat .inp-icon-emoji {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smile"><circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line></svg>');
}
#module-chat .inp-icon.emoji:hover, #module-chat .inp-icon-emoji:hover {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smile"><circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line></svg>');
}
#module-chat .inp-icon.trash {
  background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="utf-8"%3F><svg width="10px" height="10px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6L17.1991 18.0129C17.129 19.065 17.0939 19.5911 16.8667 19.99C16.6666 20.3412 16.3648 20.6235 16.0011 20.7998C15.588 21 15.0607 21 14.0062 21H9.99377C8.93927 21 8.41202 21 7.99889 20.7998C7.63517 20.6235 7.33339 20.3412 7.13332 19.99C6.90607 19.5911 6.871 19.065 6.80086 18.0129L6 6M4 6H20M16 6L15.7294 5.18807C15.4671 4.40125 15.3359 4.00784 15.0927 3.71698C14.8779 3.46013 14.6021 3.26132 14.2905 3.13878C13.9376 3 13.523 3 12.6936 3H11.3064C10.477 3 10.0624 3 9.70951 3.13878C9.39792 3.26132 9.12208 3.46013 8.90729 3.71698C8.66405 4.00784 8.53292 4.40125 8.27064 5.18807L8 6M14 10V17M10 10V17" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}
#module-chat .inp-icon.trash :hover {
  background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="utf-8"%3F><svg width="10px" height="10px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6L17.1991 18.0129C17.129 19.065 17.0939 19.5911 16.8667 19.99C16.6666 20.3412 16.3648 20.6235 16.0011 20.7998C15.588 21 15.0607 21 14.0062 21H9.99377C8.93927 21 8.41202 21 7.99889 20.7998C7.63517 20.6235 7.33339 20.3412 7.13332 19.99C6.90607 19.5911 6.871 19.065 6.80086 18.0129L6 6M4 6H20M16 6L15.7294 5.18807C15.4671 4.40125 15.3359 4.00784 15.0927 3.71698C14.8779 3.46013 14.6021 3.26132 14.2905 3.13878C13.9376 3 13.523 3 12.6936 3H11.3064C10.477 3 10.0624 3 9.70951 3.13878C9.39792 3.26132 9.12208 3.46013 8.90729 3.71698C8.66405 4.00784 8.53292 4.40125 8.27064 5.18807L8 6M14 10V17M10 10V17" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}
#module-chat .input-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: var(--chat-input-height);
  gap: 5px;
}
#module-chat .input-wrapper.loader {
  margin: auto;
}
#module-chat .input-wrapper .input-subwrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--chat-input-height);
}
#module-chat .input-wrapper #message-input {
  font-family: var(--chat-font-famaly);
  font-size: var(--chat-text-size);
  font-weight: var(--chat-font-wight);
  background: var(--chat-white);
  height: var(--chat-input-height);
  color: var(--chat-black);
  border: none;
  border-radius: 0;
  outline: none;
  resize: none;
  box-sizing: border-box;
  width: 100%;
  scrollbar-width: thin;
}
#module-chat .input-wrapper #message-input[disabled]::-webkit-input-placeholder {
  /* WebKit browsers */
  color: transparent;
}
#module-chat .input-wrapper #message-input[disabled]:-moz-placeholder {
  /* Mozilla Firefox 4 to 18 */
  color: transparent;
}
#module-chat .input-wrapper #message-input[disabled]::-moz-placeholder {
  /* Mozilla Firefox 19+ */
  color: transparent;
}
#module-chat .input-wrapper #message-input[disabled]:-ms-input-placeholder {
  /* Internet Explorer 10+ */
  color: transparent;
}
#module-chat .input-wrapper #send-button {
  padding: 0.25rem;
  min-width: 2.5rem;
}
#module-chat .input-wrapper #send-button[data-status=active] {
  cursor: pointer;
}
#module-chat .input-wrapper #send-button[data-status=disabled] {
  cursor: no-drop;
}
#module-chat .input-wrapper .inp-icon-emoji, #module-chat .input-wrapper .inp-icon-send {
  background-position: center;
  background-repeat: no-repeat;
  height: var(--chat-input-height);
}
#module-chat .input-wrapper .inp-icon-emoji[id=delete-button], #module-chat .input-wrapper .inp-icon-emoji[id=emoji-button], #module-chat .input-wrapper .inp-icon-send[id=delete-button], #module-chat .input-wrapper .inp-icon-send[id=emoji-button] {
  padding: 0.25rem;
}
#module-chat .input-wrapper .inp-icon-emoji[id=emoji-button], #module-chat .input-wrapper .inp-icon-send[id=emoji-button] {
  background-color: var(--chat-white);
  min-width: 2.5rem;
}
#module-chat .input-wrapper .inp-icon-emoji[id=emoji-button]:hover, #module-chat .input-wrapper .inp-icon-send[id=emoji-button]:hover {
  background-color: var(--chat-black);
}
#module-chat[data-position=bottom-right] #help-button {
  padding: 1em 1.5em;
}
#module-chat #help-button.delete {
  height: auto;
  top: 0;
  bottom: unset;
}
#module-chat .chat-bot {
  box-sizing: content-box;
  display: flex;
  flex-direction: row;
  color: var(--chat-bot-color);
}
#module-chat .chat-bot svg {
  width: 2rem;
  height: auto;
}
#module-chat .chat-bot[data-size=big] svg {
  width: 6em;
}
#module-chat .chat-bot[data-layout=column] {
  flex-direction: column;
  align-items: center;
}
#module-chat .moveUpAndDown {
  animation: moveUpAndDown 3s infinite ease-in-out;
}
#module-chat .rotate {
  animation: rotate 5s infinite linear;
}
@keyframes moveUpAndDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* chat button icon */
#module-chat .inp-icon {
  color: var(--chat-white);
  width: 20px;
  height: 20px;
  background-size: 1.5rem;
  background-repeat: no-repeat;
  background-position: center;
}

/* scroller */
#module-chat #emojiPicker, #module-chat #chat-window {
  scrollbar-width: var(--chat-scrollbar-width, thin);
  scrollbar-color: auto;
}
#module-chat #emojiPicker::-webkit-scrollbar, #module-chat #chat-window::-webkit-scrollbar {
  width: var(--chat-scrollbar-width);
}
#module-chat #emojiPicker::-webkit-scrollbar-button, #module-chat #chat-window::-webkit-scrollbar-button {
  width: 0;
  height: 0;
}
#module-chat #emojiPicker::-webkit-scrollbar-thumb, #module-chat #chat-window::-webkit-scrollbar-thumb {
  background: var(--chat-scrollbar-background);
  border: 0 none var(--chat-scrollbar-background);
  border-top-right-radius: 0;
}
#module-chat #emojiPicker::-webkit-scrollbar-track, #module-chat #chat-window::-webkit-scrollbar-track {
  background: var(--chat-scrollbar-color);
  border: 0 none var(--chat-scrollbar-background);
  border-top-right-radius: 0;
}
#module-chat #emojiPicker::-webkit-scrollbar-corner, #module-chat #chat-window::-webkit-scrollbar-corner {
  background: transparent;
}
#module-chat #emojiPicker::-webkit-scrollbar-thumb:hover, #module-chat #chat-window::-webkit-scrollbar-thumb:hover {
  background: var(--chat-scrollbar-color);
}
#module-chat #emojiPicker::-webkit-scrollbar-thumb:active, #module-chat #chat-window::-webkit-scrollbar-thumb:active {
  background: var(--chat-scrollbar-color);
}
#module-chat #emojiPicker::-webkit-scrollbar-track:hover, #module-chat #chat-window::-webkit-scrollbar-track:hover {
  background: var(--chat-scrollbar-color);
}
#module-chat #emojiPicker::-webkit-scrollbar-track:active, #module-chat #chat-window::-webkit-scrollbar-track:active {
  background: var(--chat-scrollbar-color);
}

/*# sourceMappingURL=module-chat.css.map */
