@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;700&family=Quicksand:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

input {
  outline: none;
}

input::placeholder {
  opacity: 0.5;
}

.chat-frame {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  border-radius: 8px;
  box-shadow: 0px 0px 22px -8px rgba(0,0,0,0.1);
}

.chat-frame.fullscreen {
  margin: 10px auto 60px auto;
  max-width: 1024px;
  height: calc(100vh - 70px);
  box-shadow: 0px 0px 100px 0px rgba(0,0,0,0.07);
  overflow: hidden;
  position: relative;
}

.fullscreen .chat-frame-bottom-copyright {
  position: fixed;
  bottom: 5px;
  transform: translateX(50%);
  right: 50%
}

.fullscreen .chat-frame-bottom-typing-area-container {
  position: relative;
  width: 100%;
  margin-bottom: 9px;
}

.fullscreen .chat-frame-bottom-typing-area {
  width: calc(100% - 60px);
  margin: auto;
  border-radius: 5px;
  min-height: 70px;
  padding-left: 50px;
  padding-right: 50px;
}

.fullscreen .chat-frame-content {
  padding: 20px 41px 0 42px;
}

.fullscreen .chat-frame-content {
  padding: 20px 41px 0 42px;
}

.chat-frame-convo-container {
  overflow: auto;
  flex-direction: column-reverse;
  display: flex;
  height: 100%;
}

.chat-frame-history {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: #5a5b6061;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.chat-frame-history-status-chip {
  width: 15px;
  height: 15px;
  border-radius: 15px;
  border: 2px solid #FFFFFF;
  margin-right: 10px;
}

.chat-frame-history-container {
  margin: auto;
  width: 90%;
  background: #FFFFFF;
  height: 81%;
  border-radius: 5px;
  overflow: auto;
  box-shadow: 0px 0px 22px -8px rgba(0,0,0,0.1);
  animation: 0.3s slidHistoryIn;
}

.chat-question {
  margin-top: 10px;
}

.chat-frame-history-header {
  height: 40px;
  background: green;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  overflow: hidden;
}

.chat-frame-history-header-close-bttn {
  width: 15px;
  background: none;
  border: none;
}

.chat-frame-history-header-close-bttn:hover {
  cursor: pointer;
  opacity: 0.8;
}

.chat-frame-history-header-title {
  display: flex;
  align-items: center;
  font-family: 'Open Sans';
  font-size: 16px;
  color: #FFFFFF;
}

.chat-bttn-container.ch_ino_hide .chat-bttn-advanced {
  opacity: 0.4
}

.chat-frame-question {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
  padding: 0 10px;
}

.chat-frame-question-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #3e516b45;
  color: #3B4E69;
  font-family: 'Open Sans';
  font-size: 13px;
  padding: 6px 20px;
  cursor: pointer;
}

.chat-frame-question-container:hover {
  opacity: 0.8;
}

.chat-frame-question-container:hover svg {
  transform: translateX(-3px);
}

.chat-frame-question-container svg {
  transition: 0.2s ease-out;
  margin-right: 5px;
  width: 10px;
  height: auto;
}

.chat-frame-recap {
  display: flex;
  padding: 12px 10px;
  margin: 0 8px;
  border-radius: 11px;
  cursor: pointer;
}

.chat-frame-recap:hover {
  background: #F2F2F2;
}

.chat-frame-recap-status-chip {
  width: 13px;
  height: 13px;
  border-radius: 12px;
  background: red;
  border: 2px solid #FFFFFF;
  bottom: -3px;
  right: -2px;
  position: absolute;
}

.chat-frame-recap-avatar {
  width: 35px;
  height: 35px;
  border-radius: 35px;
  flex-shrink: 0;
  background: black;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.chat-frame-recap-avatar .agent-icon {
  width: 23px;
}

.chat-frame-recap-avatar  .user-icon {
  width: 17px;
}

.chat-frame-recap-content {
  flex: 1;
}

.chat-frame-recap-content-header {
  display: flex;
  margin-bottom: 4px;
}

.chat-frame-recap-content-title {
  font-size: 14px;
  font-family: 'QuickSand';
  font-weight: 600;
}

.chat-frame-recap-content-text {
  font-family: 'Open Sans';
  font-size: 12px;
  line-height: 1.3em;
  color: #3B4E69;
  padding: 0;
  margin: 0;
}

.chat-frame-recap-content-send-bttn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: auto;
  margin-left: 8px;
}

.chat-frame-recap-content-send-bttn svg {
  width: 100%;
  height: 100%;
}

.chat-frame-recap-timestamp {
  font-family: 'Open Sans';
  font-size: 11px;
  white-space: nowrap;
  color: #ACACB5;
}

.chat-frame-content {
  padding-top: 15px;
  overflow-y: auto;
  flex: 1;
}

.chat-frame-header {
  flex: 0 0 60px;
}

.chat-frame-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 7px;
}
.chat-frame-header-top-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.chat-frame-header-title {
  color: #FFFFFF;
  font-size: 18px;
  font-family: 'QuickSand', 'sanf-serif';
  font-weight: 600;
}

.chat-frame-header-container {
  display: flex;
  align-items: center;
}

.chat-frame-header-img-container {
  width: 37px;
  height: 37px;
  border-radius: 40px;
  background: #FFFFFF;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.chat-frame-header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-frame-header-img-default {
  width: auto;
  height: 90%;
  object-fit: cover;
  padding: 8px;
}

.chat-frame-header-close-container {
  width: 16px;
  height: auto;
  background: none;
  border: 0;
}

.chat-frame-header-close-container svg {
  width: 100%;
  height: 100%;
}


.chat-frame-bottom {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.chat-frame-bottom-typing-area-container {
  display: flex;
}

.chat-frame-bottom-typing-area {
  width: 300px;
  min-height: 38px;
  border-radius: 15px;
  padding: 10px 8px 5px 15px;
  margin-right: 12px;
  max-height: 95px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #F5F4F4;
  outline: none;
  color: #3B4E69;
  font-family: 'Open Sans', 'sans-serif';
  font-size: 14px;
  font-weight: 100;
  line-height: 1.4em;
}

.chat-frame-bottom-typing-area.chat-frame-input-read-only {
  color: #8B98AA;
  font-style: italic;
  font-size: 13px;
}

.chat-frame-input-read-only {
  pointer-events: none;
}

.chat-frame-input-bttn-read-only {
  pointer-events: none;
  opacity: 0.25;
}

.chat-frame-bottom-send-bttn {
  width: 23px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

.chat-frame-history-content {
  display: flex;
  flex-direction: column-reverse;
  padding: 10px 0;
}

.chat-frame-bottom-send-bttn svg {
  width: 100%;
  height: 100%;
}

.chat-frame-bottom-copyright {
  display: flex;
  white-space: nowrap;
  width: 200px;
  align-items: center;
  justify-content: center;
  color: #3B4E69;
  font-family: 'Open Sans', 'sans-serif';
  padding: 16px 0 10px 0;
  font-size: 12px;
  font-weight: 500;
}

.chat-frame-bottom-copyright svg {
  margin-left: 10px;
  width: 37px;
}

.chat-frame-new-discussion-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.chat-frame-new-discussion-bttn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 38px;
  min-width: 270px;
  border-radius: 32px;
  font-family: 'Quicksand', 'sans-serif';
  font-weight: 600;
  font-size: 15px;
  color: #FFFFFF;
  border: none;
  background: #FF636F;
}

.chat-frame-new-discussion-bttn:hover {
  cursor: pointer;
  opacity: 0.8;
}

.chat-frame-new-discussion-bttn svg {
  width: 12px;
  margin-right: 10px;
}

.chat-frame-back-bttn {
  width: 17px;
  height: 17px;
  background: none;
  border: none;
  margin-right: 10px;

}

.chat-frame-back-bttn:hover {
  opacity: 0.8;
  cursor: pointer;
}

.chat-frame-back-bttn svg {
  width: 100%;
  height: 100%;
  color: #FFFFFF;
}

.chat-bubble-container {
  padding: 0 10px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 12px;
}

.chat-annotation {
  color: #3B4E69;
  width: 100%;
  text-align: center;
  font-family: 'Quicksand';
  font-size: 12px;
  font-weight: 100;
  margin-bottom: 10px;
}

.chat-bubble-container.left .chat-bubble-content {
  align-items: flex-start;
}

.chat-bubble-container.right .chat-bubble-content {
  align-items: flex-end;
}

.chat-bubble-container.right .chat-bubble {
  color: #FFFFFF;
}

.chat-bubble-container.right {
  flex-direction: row-reverse;
}

.chat-bubble-container.right .chat-bubble-avatar {
  display: none;
}

.chat-bubble-container:not(.first) .chat-bubble-avatar {
  opacity: 0;
}

.chat-bubble-avatar {
  width: 35px;
  height: 35px;
  border-radius: 35px;
  flex-shrink: 0;
  margin-right: 10px;
  margin-bottom: 19px;
  background: #FF636F;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-bubble-avatar .user-icon {
  width: 14px;
}

.chat-bubble-avatar .agent-icon {
  width: 19px;
}

.chat-bubble {
  padding: 10px 14px;
  background: #F8F8F8;
  border-radius: 12px;
  max-width: 272px;
  color: #3B4E69;
  font-family: 'Open Sans', 'sans-serif';
  font-size: 14px;
  line-height: 1.4em;
  overflow-wrap: break-word;
}

.chat-bubble > video{
  max-width: 100%;
}

.chat-bubble-timestamp {
  display: inline-flex;
  font-size: 10px;
  font-family: 'Open Sans';
  color: #3B4E69;
  margin: 1px 5px;
}

.chat-frame-convo-info {
  font-family: 'QuickSand';
  color: #3B4E69;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 20px;
  position: fixed;
  background: #FFFFFF;
  height: 38px;
  width: 100%;
  top: 60px
}

.chat-bubble-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.chat-frame-modal {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  width: 100%;
  height: 100%;
  background: #00000061;
  z-index: 1000;
}

.chat-frame-modal-container {
  background: #FFFFFF;
  width: 70%;
  height: auto;
  margin: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 10px 20px;
  border-radius: 9px;
  z-index: 1;
}

.chat-frame-modal-error {
  position: absolute;
  bottom: -20px;
  font-size: 10px;
  color: #FF0000;
  font-family: 'Open Sans';
}

.chat-frame-modal-illustration {
  width: 100px;
  margin-bottom: 20px;
}

.chat-frame-modal-content-title {
  display: inline-flex;
  color: #3B4E69;
  font-family: 'Open Sans';
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4em;
  margin-bottom: 15px;
}

.chat-frame-modal-bttns {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding: 20px 0 10px 0;
}

.chat-frame-modal-bttns .modal-cancel-bttn {
  margin-right: 5px;
}

.chat-frame-modal-bttns .modal-send-bttn {
  background: #FF636F;
  color: #FFFFFF;
}

.chat-frame-modal-bttns svg {
  width: 10px;
  margin-right: 7px;
}

.chat-frame-modal-bttn {
  font-family: 'QuickSand', 'sans-serif';
  padding: 0 10px;
  height: 30px;
  width: 90px;
  border: none;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-frame-modal-bttn:hover {
  cursor: pointer;
  opacity: 0.7;
}

.chat-frame-modal-content-input {
  display: flex;
  align-items: center;
  background: #F7F5F5;
  height: 34px;
  width: 100%;
  position: relative;
  border-radius: 4px;
}

.chat-frame-modal-content-input.modal-error {
  border: 1px solid #FF0000;
}

.chat-frame-modal-content-input svg {
  width: 15px;
  margin-right: 10px;
  position: absolute;
  left: 8px;
}

.chat-frame-modal-content-input input {
  width: 100%;
  height: 100%;
  border: none;
  background: none;
  padding: 0 30px;
  color: #3B4E69;
}

.chat-frame-header-bottom {
  font-family: 'QuickSand';
  color: #3B4E69;
  display: flex;
  align-items: flex-end;
  font-size: 15px;
  height: 35px;
  margin-left: 15px;
}

.chat-frame-loader {
  display: flex;
  position: fixed;
  height: 100%;
  width: 100%;
  left: 0;
  background: #FFFFFF;
  z-index: 10001;
}

.chat-question-cancel-bttn {
  color: #0096ff;
  cursor: pointer;
  margin-top: 5px;
  font-size: 12px;
}

.chat-question-input {
  height: 24px;
  border-radius: 4px;
  border: 1px solid #dedede;
  padding-left: 13px;
}

.chat-question-input.ch_ko_inputBubble_error{
  border-color: #FF0000;
}

.chat-bubble-timestamp-container {
  display: flex;
}

.ch_ko_messages_vu_svg {
  margin-bottom: 2px;
}

.chat-question-bttn {
  border: 0;
  background: #62CFB1;
  height: 24px;
  padding: 0 10px;
  border-radius: 4px;
  color: #FFFFFF;
  cursor: pointer;
}

.chat-question-error {
  color: #FF0000;
  font-size: 9px;
  font-family: 'Open Sans';
  display: block;
}

.chat-question-bttn:hover {
  opacity: 0.8;
}

@media screen and (max-width: 500px) {
  .fullscreen .chat-frame-content {
      padding: 20px 0 0 0;
  }

  .chat-frame.fullscreen  {
      margin: 0 auto 60px auto;
      height: calc(100vh - 60px);
      box-shadow: 0px 0px 100px 0px rgba(0,0,0,0.07);
      overflow: hidden;
      border-radius: 0;
      position: relative;
  }

  .fullscreen .chat-frame-bottom-typing-area {
      width: 100%;
  }
}

.loader {
  position: relative;
  margin: 0 auto;
  width: 50px;
}

.loader:before {
  content: '';
  display: block;
  padding-top: 100%;
}

.circular {
  animation: rotateLoader 2s linear infinite;
  height: 100%;
  transform-origin: center center;
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.path {
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  animation: dashLoader 1.5s ease-in-out infinite;
  stroke-linecap: round;
  stroke: #68C0C7;
}

.chat-message-image {
  max-width: 100%;
}

.chat-message-audio {
  max-width: 100%;
}

.video {
  max-width: 100%;
}


.image-container {
  position: relative;
  display: inline-block;
}

.download-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 5px;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.download-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
}

.feather-download {
  width: 24px;
  height: 24px;
}

.download-info {
  padding: 5px
}

.text-and-media {
  margin-bottom: 15px;
}

.fullscreen .chat-frame-bottom-send-bttn.left-bttn {
  position: absolute;
  bottom: 8px;
  left: 40px;
}

.fullscreen .chat-frame-bottom-send-bttn:not(.left-bttn) {
  position: absolute;
  bottom: 8px;
  right: 40px;
}

.ch_ko_sendMessageBtn {
  margin-left: 5px;
}

#chat-frame-selected-files {
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 5px;
  max-height: 80px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #dcdcdc;
  box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
}

.file-display-container .file {
  display: inline-block;
  border-radius: 4px;
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0px 1px 2px rgba(0,0,0,0.1);
}

#chat-frame-selected-files > span{
  margin-left: 5px;
  font-style: italic;
  color: #3B4E69;
  width: 100%;
  text-align: center;
  font-family: 'Quicksand';
  font-size: 12px;
  font-weight: 100;
}

.file-display-container span {
  font-family: 'Quicksand', sans-serif;
  color: #333;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 2px;
}

.file-display-container {
  width: calc(100% - 60px);
  max-height: 60px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 4px;
  background-color: #f7f7f7;
  border: 1px solid #dcdcdc;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.file {
  color: #0c63e4!important;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.file-icon {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.file-display {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px;
  margin: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

.image-preview {
  height: 50px;
  width: auto;
}

.file-name {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.delete-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  padding: 2px;
}

#chat-frame-selected-files:empty {
  display: none;
}

#chat-errors {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #FF0000;
  font-size: 12px;
  font-family: 'Open Sans', sans-serif;
  margin: 10px 0 10px 60px;
  font-weight: bold;
}

@keyframes slidHistoryIn {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }

  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}


@keyframes rotateLoader {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dashLoader {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35px;
  }

  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124px;
  }
}

@media screen and (max-width: 500px) {
  .file-display-container {
    width: 100%;
  }
}

@media screen and (max-width: 500px) {
  #chat-errors {
   margin-left: 20px;
  }
}


