/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/************
 * defaults
 ************/
/**
 * Base elements
 */
html {
  padding: 0;
  margin: 0;
  background: #ffffff;
}

body {
  padding: 0;
  margin: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 0.8rem;
  line-height: 1.4rem;
  color: #425B76;
  overflow: hidden;
}

h1 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: #E24545;
  line-height: 2rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.2rem;
  color: #2b2b2b;
  font-weight: 500;
  margin-bottom: 1rem;
}

h3 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1rem;
  color: #2b2b2b;
  font-weight: 500;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

h1 em, h2 em, h3 em {
  color: #E24545;
}

a {
  color: #E24545;
  text-decoration: none;
}

a:hover {
  color: #E24545;
  text-decoration: none;
}

p {
  line-height: 1.5rem;
  margin-bottom: 1.5rem;
}
p:last-child {
  margin-bottom: 0;
}

hr {
  padding: 0;
  margin: 2rem 0;
  border: 0;
  border-bottom: 0.06rem solid #832929;
  background: #832929;
  height: 0;
}

dl dt {
  display: block;
  font-weight: 600;
  float: left;
  clear: left;
  line-height: 1.2rem;
  padding: 0.56rem 0;
  width: 15rem;
  margin-bottom: 1rem;
}

dl dd {
  display: block;
  margin-left: 15rem;
  line-height: 1.2rem;
  padding: 0.56rem 0;
  margin-bottom: 1rem;
}

dl::after {
  content: "";
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
}

.input.switch {
  position: relative;
  width: 6rem;
  height: 2.2rem;
  overflow: hidden;
  border: 0.06rem solid #cccccc;
  border-radius: 1.1rem;
}

.input.switch input[type=checkbox] {
  display: none;
}

.input.switch label {
  display: block;
  width: 9rem;
  height: 100%;
  cursor: pointer;
  transition: margin 100ms ease-in-out;
  margin-left: -50%;
}

.input.switch input:checked ~ label {
  margin-left: 0;
}

.input.switch label span {
  display: block;
  float: left;
  width: 3rem;
  text-align: center;
  padding: 0.56rem 0;
  line-height: 1.2rem;
}

.input.switch label span.on {
  color: #3c763d;
  background-color: #d6e9c6;
  border-radius: 1rem 0 0 1rem;
  box-shadow: inset 2px 2px 2px 0px rgba(0, 0, 0, 0.2);
  width: 3rem;
  padding-left: 0.5rem;
}

.input.switch label span.off {
  color: #d83945;
  background-color: #fbdbde;
  border-radius: 0 1rem 1rem 0;
  box-shadow: inset 2px 2px 2px 0px rgba(0, 0, 0, 0.2);
  width: 3rem;
  padding-right: 0.5rem;
}

.input.switch label span.handle {
  background-color: #fff;
  width: 2rem;
  height: 1.2rem;
}

.input.dateinput {
  display: flex;
  min-width: 25rem;
}

.input.dateinput span.select {
  display: block;
  margin-right: 1rem;
}

.input.dateinput span.select:last-child {
  margin-right: 0;
}

.input.checkboxlist {
  border: 0.06rem solid #cccccc;
  background: #fff;
}

.input.checkboxlist ul li {
  padding: 0.5rem 0.8rem;
}

.input.checkboxlist ul li {
  line-height: 1rem;
}

.input.checkboxlist ul li label {
  color: #2b2b2b;
}

.input.checkboxlist ul li input[type=checkbox] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0.12rem;
  border: 0.06rem solid #cccccc;
  width: 1.36rem;
  height: 1.36rem;
  box-sizing: border-box;
  text-align: center;
  margin-right: 0.5rem;
  /* line-height: 1.36rem; */
  vertical-align: middle;
  cursor: pointer;
}

.input.checkboxlist ul li input[type=checkbox]:focus {
  outline: 0;
}

.input.checkboxlist ul li input[type=checkbox]::before {
  content: "";
  font-family: icomoon;
  color: #2b2b2b;
  font-size: 1rem;
  line-height: 1rem;
}

.input.checkboxlist ul li input[type=checkbox]:checked::before {
  content: "\ed71";
}

.input.combobox .search {
  position: relative;
}

.input.combobox .search .results {
  position: absolute;
  left: 0;
  right: 0;
  height: 20rem;
  background: #fff;
  overflow-y: scroll;
  padding: 2rem;
  border: 0.06rem solid #cccccc;
  z-index: 100;
}

.input.combobox .search .addall {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  cursor: pointer;
}

.input.combobox .search .addall::before {
  font-family: icomoon;
  content: "\ec81";
  display: block;
  border-radius: 0.75rem;
  line-height: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  background: #E24545;
  color: #fff;
  text-align: center;
}

.input.combobox > ul {
  border: 0.06rem solid #cccccc;
  margin-bottom: 1rem;
  padding: 1rem;
  height: auto;
  min-height: 1rem;
}

.input.combobox ul li {
  float: left;
  background: #f2fbff;
  padding: 0.4rem;
  margin: 0 1rem 1rem 0;
  cursor: pointer;
}

.input.combobox ul li .tag.inactive {
  -webkit-text-decoration: line-through solid #ff0000;
          text-decoration: line-through solid #ff0000;
}

.input.combobox ul li.selected {
  opacity: 0.2;
}

.input.combobox ul::after {
  display: block;
  visibility: hidden;
  height: 0;
  content: "";
  clear: both;
}

.input.combobox span.tag {
  color: #218892;
  background: #a2e6ed;
  margin: -0.4rem;
  padding: 0.5rem 1rem;
}

/**********************************
 * Custom elements
 **********************************/
.global-loader {
  position: fixed;
  top: 25%;
  left: 50%;
  width: 5rem;
  height: 5rem;
  padding: 2rem;
  transform: translateX(-50%) translateY(-50%);
  opacity: 0;
  z-index: 10000;
  transition: opacity 200ms ease-in-out 50ms;
  pointer-events: none;
}
.global-loader .loading-ring {
  display: block;
  position: absolute;
}
.global-loader .loading-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid transparent;
  border-radius: 50%;
  animation: loading-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-top-color: #E24545;
}
.global-loader .loading-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.global-loader .loading-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.global-loader .loading-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

body.loading #loading {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

@keyframes loading-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.snippet {
  margin-bottom: 1rem;
}
.snippet:last-child {
  margin-bottom: 0;
}

.head {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
}
.head .actions {
  display: flex;
  gap: 0.25rem;
}
.head .actions > a {
  color: #fff;
  padding: 0.25rem 0.5rem;
  background-color: #74d840;
  border-radius: 0.25rem;
}

@keyframes fadeinup {
  0% {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeoutup {
  0% {
    opacity: 1;
  }
  99% {
    visibility: visible;
    height: auto;
    margin-bottom: 1rem;
  }
  100% {
    display: none;
    visibility: hidden;
    height: 0;
    margin-bottom: 0;
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
}
@keyframes bounce {
  from, 20%, 53%, 80%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -30px, 0);
  }
  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}
.bounce {
  animation-name: bounce;
  transform-origin: center bottom;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@font-face {
  font-family: "icomoon";
  src: url(/resources/build/fonts/icomoon.eot?d4982272b1e2b26a3a6f85012c008579);
  src: url(/resources/build/fonts/icomoon.eot?d4982272b1e2b26a3a6f85012c008579#iefix) format("embedded-opentype"), url(/resources/build/fonts/icomoon.svg?648c45226bd1e60c065c1c9f53d3dbce#icomoon) format("svg"), url(/resources/build/fonts/icomoon.ttf?57693cf5363a62f180e59cafa08097df) format("truetype"), url(/resources/build/fonts/icomoon.woff?a39d8e25877fb01d16d62981c0a48f8c) format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
.chat {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100vh;
  height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
}
.chat.loading ul.messages li.loader {
  display: block;
}
.chat.loading ul.messages li.loader .message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chat.loading ul.messages li.loader .message .longload {
  animation: appear 800ms ease-in-out;
  animation-delay: 5s;
  animation-fill-mode: forwards;
}
.chat.loading ul.messages li.loader .message .longload.longer {
  animation-delay: 14s;
}
.chat.stream ul.messages li.loader {
  display: none !important;
}
.chat.started ul.messages li.welcome {
  opacity: 0;
  width: 0;
  max-height: 0;
}
.chat ul.messages {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 3rem 1rem 1.5rem 1rem;
  gap: 0.5rem;
  overflow-y: scroll;
}
.chat ul.messages li {
  flex: 0 1 auto;
  align-self: flex-end;
  max-width: 55%;
}
.chat ul.messages li .message {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  line-height: 1.2rem;
  color: #ffffff;
  background: #33475B;
}
.chat ul.messages li.loader {
  display: none;
  order: 100000;
  animation: message-bounce 2.5s ease-in-out infinite;
}
.chat ul.messages li.loader .spinner {
  display: flex;
  gap: 0.25rem;
  flex-direction: row;
}
.chat ul.messages li.loader .spinner > div {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #2b2b2b;
  border-radius: 50%;
  animation: bubbling 1400ms ease-in-out infinite;
  animation-fill-mode: both;
}
.chat ul.messages li.loader .spinner > div:nth-child(1) {
  animation-delay: -0.32s;
}
.chat ul.messages li.loader .spinner > div:nth-child(2) {
  animation-delay: -0.16s;
}
.chat ul.messages li.loader .message .longload {
  overflow: hidden;
  font-size: 0;
  width: 0;
  white-space: nowrap;
}
.chat ul.messages li.welcome {
  align-self: center;
  max-width: 25rem;
  width: 60%;
  transition: all 800ms ease-in-out;
}
@media only screen and (max-width: 768px) {
  .chat ul.messages li.welcome {
    width: 80%;
  }
}
@media only screen and (max-width: 600px) {
  .chat ul.messages li.welcome {
    width: 100%;
  }
}
.chat ul.messages li.welcome .message {
  padding: 0;
  background: none;
}
.chat ul.messages li.welcome .message img {
  display: block;
  aspect-ratio: 1/1;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  max-width: 100%;
}
.chat ul.messages li.system {
  align-self: center;
}
.chat ul.messages li.system .message {
  padding: 5px 12px 6px 12px;
  color: #425B76;
  background: #FFF9DA;
}
.chat ul.messages li.user, .chat ul.messages li.self {
  align-self: flex-end;
}
.chat ul.messages li.user .message, .chat ul.messages li.self .message {
  border-top-right-radius: 0;
  color: #ffffff;
  background: #33475B;
}
.chat ul.messages li.user .message::after, .chat ul.messages li.self .message::after {
  content: "";
  position: absolute;
  top: 0;
  right: -0.5rem;
  border: 0;
  border-top: 0.5rem solid #33475B;
  border-right: 0.5rem solid transparent;
}
.chat ul.messages li.bot, .chat ul.messages li.other {
  align-self: flex-start;
}
.chat ul.messages li.bot .message, .chat ul.messages li.other .message {
  border-top-left-radius: 0;
  color: #425B76;
  background: #EAF0F6;
}
.chat ul.messages li.bot .message::after, .chat ul.messages li.other .message::after {
  content: "";
  position: absolute;
  top: 0;
  left: -0.5rem;
  border: 0;
  border-top: 0.5rem solid #EAF0F6;
  border-left: 0.5rem solid transparent;
}
@media only screen and (max-width: 768px) {
  .chat ul.messages li {
    max-width: 70%;
  }
}
@media only screen and (max-width: 600px) {
  .chat ul.messages li {
    max-width: 85%;
  }
}
.chat ul.form li {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}
.chat ul.form li div.group {
  flex: 1 1 auto;
}
.chat textarea {
  display: block;
  border: 1px solid #e9edef;
  padding: 9px 12px;
  border-radius: 0.5rem;
  font-family: "Segoe UI", sans-serif;
  min-height: 3rem;
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  resize: none;
  box-sizing: border-box;
}
.chat textarea:focus {
  outline: none;
}
.chat .row {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  background: #f0f2f5;
  padding: 0.5rem 1rem;
}
.chat .row ul.form {
  flex: 1 1 auto;
}
.chat .button {
  display: block;
  font-family: "Segoe UI", sans-serif;
  border: 0;
  background: #74d840;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.chat .button::before {
  font-family: icomoon;
  content: "\ec09";
}
.chat .button[disabled] {
  background: #646464;
}

@keyframes message-bounce {
  0% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(0.9);
  }
}
@keyframes bubbling {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
@keyframes appear {
  0% {
    opacity: 0;
    font-size: 0;
  }
  100% {
    font-size: 0.8rem;
    opacity: 1;
    width: 100%;
    max-height: 100%;
  }
}
.notificationmessages {
  position: fixed;
  z-index: 30000;
  bottom: 3rem;
  max-height: none;
  pointer-events: none;
  left: 0;
  width: 100%;
}
.notificationmessages .message {
  margin: 1rem auto 0 auto;
  max-width: 30rem;
  width: 100%;
  animation: fadeinup 500ms ease-in-out 0s, fadeoutup 200ms ease-in-out 5s;
  animation-fill-mode: forwards;
}
.notificationmessages .message.new {
  display: none;
}

.toaster .message p {
  text-align: left;
}
.toaster .message .notice {
  position: relative;
  padding: 1rem 1rem 1rem 3.5rem;
  background-color: rgba(51, 51, 51, 0.95);
  color: #ffffff;
}
.toaster .message .notice::before {
  position: absolute;
  content: "";
  font-family: icomoon;
  left: 1rem;
  top: 50%;
  margin-top: -0.75rem;
  line-height: 1.5rem;
  font-size: 1.5rem;
  color: #ffffff;
  vertical-align: middle;
}
.toaster .message.success .notice {
  background-color: rgba(80, 154, 69, 0.95);
}
.toaster .message.success .notice::before {
  content: "\ed71";
}
.toaster .message.error .notice {
  background-color: rgba(216, 57, 69, 0.95);
}
.toaster .message.error .notice::before {
  content: "\ed6c";
}

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