@font-face {
  font-family: "WeblySleek UI";
  src: url(weblysleekuisb.ttf);
}

@font-face {
  font-family: "WeblySleek UI Light";
  src: url(weblysleekuisl.ttf);
}

html {
  /*height: calc(100% - 10px);*/
  background-color: #FFC20D;
}

body {
    height: 100%;
    font-family: 'WeblySleek UI', sans-serif;
    line-height: 1.5;
    font-size: medium;
    font-weight: 600;
    margin: 0;
    padding: 0;
}
  
.chat_container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 98dvh;
  line-height: 1;
/*  background-color: #1F1F1F;
  background-image: url("pattern.png");
*/
  @media (min-width: 500px) {
    width: 500px;
    height: 98dvh;
    margin: 0 auto;
  }
}

.bot_chat_container, .operator_chat_container {
  width: 100%;
  /*height: 100%;*/
  line-height: 1;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0px;
}

.chat_message_list {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  background-color: #1F1F1F;
  background-image: url("pattern.png");
}

.progress {
  width: 60px;
  height: 60px;
  background: url("progress.svg") no-repeat;
}

.chat_message {
  min-height: 20px;
  display: flex;
}

.chat_message.human {
  flex-flow: row-reverse;
}

.chat_message_content {
  width: auto;
  max-width: 85%;
  background-color: #FFF;
  border-radius: 10px;
  padding: 10px 24px 12px 10px;
  margin: 18px 0 0 0;
  animation: .5s show ease;
  word-break: break-word;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 8px;
}

.chat_message_icon {
  background: url(icon_virtual_assistent_round.svg) no-repeat;
  grid-row: 1 / 1;
  width: 25px;
  height: 25px;
}

.chat_message_icon.operator {
  background: url(icon_support_agent_round.svg) no-repeat;
}

.chat_message_label {
  grid-column: 2;
  grid-row: 1;
  font-size: 13px;
  font-weight: 100;
  color: #A6A6A6;
  margin: 0;
  align-self: start;
  padding-top: 3px;
}

.chat_message_text {
  grid-column: 2;
  grid-row: 2;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  margin: 0;
  margin-top: -8px;
  align-self: start;
  line-height: 19px;
}

.chat_message_content_human {
  width: auto;
  max-width: 85%;
  border-radius: 10px;
  display: inline-block;
  background-color: #FFC20D;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  padding: 10px 14px;
  margin: 18px 0 0 0;
  animation: .5s show ease;
  word-break: break-word;
}

@keyframes show {
  from { opacity: 0; }
  to { opacity: 1; }
}
  
.chat_message_content.image {
  background-color: #fff !important;
  padding: 5px;

}

.chat_message_content.image > img {
  border-radius: 10px;
  max-width: 100%
}

.chat_message_content.file-link a {
  color: #ffc20d;
  text-decoration: underline;
}

.chat_message_content.file-link a::before {
  content: "";
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  background: url('download.svg') no-repeat center;
  margin-right: 0.25em;
  vertical-align: middle;
  position: relative;
  bottom: 0.1em;
}

.welcome_box {
  position: absolute;
  width: 170px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #2D2D2D;
  padding: 20px 30px 20px 30px;
  border-radius: 8px;
  box-shadow: 0px 2px 4px 0px #00000014,
              0px 0px 6px 0px #00000005;
  z-index: 1000;
  text-align: center;
}

.welcome_box .welcome_emoji {
  font-size: 40px;
  margin-bottom: 20px;
}

.welcome_box .welcome_title {
  font-size: 14px;
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.welcome_box .welcome_desc {
  font-family: "WeblySleek UI Light", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #FFFFFF;
  opacity: 0.5;
  margin-bottom: 5px;
}

.chat_input_container {
  flex-shrink: 0;
  max-height: 40vh;
  overflow-y: auto;
  /*background-color: #FFC20D;*/
  margin-top: 10px;
}

.chat_input {
  display: flex;
  flex-direction: column;
  padding: 10px 20px 0 20px;
}

.chat_input > *:not(:first-child) {
  margin-top: 5px;
}

.disabledInput {
  pointer-events: none;
  opacity: 0.5;
}

.chat_buttons_container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.chat_button {
  min-height: 32px;
  line-height: 1.5;
  background: #FFF;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.078px;
  margin: 5px;
  flex-grow: 1;
  padding: 5px 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.chat_textinput_form {
  display:flex;
  flex-direction:row;
  padding: 0 6px;  
  height: 40px;
  border-radius: 10px;
  margin: 0 5px;
  background-color: #fff;
}

.chat_textinput_form > input {
  flex-grow:2;
  border:none;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  font-style: normal;
  padding: 0 5px;
  min-width: 100px;
  letter-spacing: -0.078px;
}

.chat_textinput_form > input:focus {
  outline: none;
}

.chat_textinput_form:focus-within { 
  outline: 1px solid grey 
}

.chat_textinput_form > button {
  border: none;
  background: url("iconoir_send-solid.svg") no-repeat center;
  height: 100%;
  aspect-ratio: 1 / 1;
}

.chat_textinput_form > button.disabled {
  opacity: .5;
}


.chat_imageinput_form {
  height: 42px;
  line-height: 42px;
  background-color: #FFF;
  border-radius: 10px;
  margin: 5px;
}

.chat_imageinput_form > label {
  background: url("icon_attachment.svg") no-repeat center;
  height: 100%;
  display: block;
}

.chat_imageinput_form.inline {
  background-color: transparent;
  margin: 0;
}

.chat_imageinput_form.inline > label {
  width: 40px;
  height: 40px;
  border: none;
  box-shadow: none;
  margin: 0;
}

#alertBlock {
  position: fixed;
  z-index: 999999999;
  left: 0;
  right: 0;
  top: 0;
  height: auto;
  min-height: 100px;
  background-color: white;
  color: red;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#alertBlock > button {
  position: absolute;
  right: 0;
  top: 0;
  background: transparent;
  border: none;
  font-size: x-large;
  padding: 10px 15px;
  color: darkred;
}


.tabs_container {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  background-color: #1F1F1F;
  box-shadow: 0px 5px 5px 0px rgb(0 0 0 / 35%);
    -webkit-box-shadow: 0px 5px 5px 0px rgb(0 0 0 / 35%);
    -moz-box-shadow: 0px 5px 5px 0px rgb(0 0 0 / 35%);
}

.tab {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    transition: opacity 0.2s ease;
    color: #ffffff;
    min-width: 35%;
}

.tab.active {
  color: #ffcc00;
}

.tab.bot {
  justify-content: end;
}

.tab.operator {
  justify-content: start;
}

.tab_separator {
  width: 1px;
  height: 24px;
  background-color: #4a4a4a;
  margin: 0 12px;
}

.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  
  background-color: currentColor;

  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.icon_bot {
  -webkit-mask-image: url("icon_virtual_assistent.svg");
  mask-image: url("icon_virtual_assistent.svg");
}

.icon_operator {
  -webkit-mask-image: url("icon_support_agent.svg");
  mask-image: url("icon_support_agent.svg");
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #ff3b30;
  border-radius: 50%;
  margin-top: 2px;
}