#chatbot-container {
  padding: 1rem;
}

.floating-chat *,
#chatbot-container * {
  font-family: "gotham-narrow", sans-serif;
}

.floating-chat.expand .floating-icon {
  display: none;
}

.floating-chat:not(.expand) #chatbot-container {
  display: none !important;
}

#chatbot-container #chatbot-messages {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-height: 50vh;
  overflow-y: auto;
}

#chatbot-container #chatbot-messages.has-messages {
  border-top: 1px solid #c1c1c1;
  padding: 1rem 0;
}

#chatbot-container #chatbot-messages::-webkit-scrollbar {
  width: 8px;
}

#chatbot-container #chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

#chatbot-container #chatbot-messages::-webkit-scrollbar-thumb {
  background: #eee;
}

#chatbot-container #chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: #e7e7e7;
}

#chatbot-container .user-message {
  border-radius: 1rem;
  background: #bbe7e0;
  color: #002e32;
  align-self: flex-end;
  margin-left: 1rem;
  margin-right: 1rem;
  padding: 0.4rem 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

#chatbot-container .bot-message {
  border-radius: 1rem;
  background: #efefef;
  color: #000;
  align-self: flex-start;
  padding: 0.4rem 1rem;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

#chatbot-container .user-message p:last-child,
#chatbot-container .bot-message p:last-child {
  margin-bottom: 0;
}

#chatbot-container #chatbot-input-wrapper {
  position: relative;
}

#chatbot-container #chatbot-input {
  background: transparent;
  border: none;
  border-radius: 0;
  outline: 0;
  height: auto;
  border-radius: 18px;
  border: 1px solid #c1c1c1;
  resize: none;
  height: 60px;
  padding: 17px 1rem;
  max-height: 255px;
  font-size: 0.75rem;
}

#chatbot-container #chatbot-submit {
  padding: 0;
  position: absolute;
  right: 12px;
  bottom: 14px;
  margin: 0;
}

#chatbot-container #chatbot-submit:hover rect {
  fill: #1f1f1f;
}

#chatbot-container textarea#chatbot-input::placeholder {
  color: rgba(16, 51, 59, 0.39);
  font-weight: 400;
  white-space: pre-line;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
}

#chatbot-container #chatbot-input:focus {
  box-shadow: none;
}

#chatbot-container div#suggested-prompts ul {
  margin-bottom: 0;
}

#chatbot-container div#suggested-prompts li {
  list-style: none;
  display: inline-block;
  margin: 0.5rem 0.5rem 0.5rem 0;
}

#chatbot-container div#suggested-prompts h5 {
  color: rgba(16, 51, 59, 0.28);
  font-size: 0.7rem;
  padding: 0 0.5rem;
  margin-top: 10px;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.chatbot-messages-input-wrapper {
  min-height: 70%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chatbot-messages-input-wrapper.has-messages {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#chatbot-container div#suggested-prompts .prompt {
  border-radius: 1rem;
  background: #e4f4f1;
  color: #005961;
  align-self: flex-end;
  margin-left: auto;
  padding: 0.4rem 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

#chatbot-container div#suggested-prompts .prompt:hover {
  opacity: 0.8;
}

/*
* Publication modal chat
*/
.floating-chat {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Transistion when change top or right */
  transition: transform 0.3s ease-in-out;
  color: white;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  transform: translateY(3rem);
  border-radius: 50%;
  opacity: 0;
  background-repeat: no-repeat;
  background-attachment: fixed;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  z-index: 100;
}
.floating-chat.enter:hover {
  opacity: 1;
}
.floating-chat.enter {
  transform: translateY(0);
  opacity: 0.95;
  box-shadow: 0px 0px 55.887px -8.061px rgba(0, 0, 0, 0.25);
}
.floating-chat .floating-icon {
  margin-bottom: -0.5rem;
}
.floating-chat .floating-icon {
  background-color: #fff;
  box-shadow: 0px 0px 44.769px -6.457px rgba(0, 0, 0, 0.25);
  padding: 2px;
  border-radius: 24px;
  -moz-border-radius: 24px;
  -webkit-border-radius: 24px;
}
.floating-chat.expand {
  width: 450px;
  max-height: 520px;
  border-radius: 5px;
  overflow: hidden;
  cursor: auto;
  opacity: 1;
  background-color: #fff;
  border-radius: 25px;
}
.floating-chat:focus {
  outline: 0;
  box-shadow: 0 0 3pt 2pt rgba(14, 200, 121, 0.3);
}
.floating-chat #chatbot-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  transition: all 250ms ease-out;
  margin: auto;
  background-color: #fff;
}

.floating-chat.has-messages #chatbot-container.enter {
  height: 500px;
}

.floating-chat #chatbot-container.enter {
  display: flex !important;
  opacity: 1;
  border-radius: 0;
  padding: 1rem;
  width: 100%;
  height: 100%;
  background-color: #fff;
}
.floating-chat #chatbot-container .header {
  flex-shrink: 0;
  padding-bottom: 10px;
  background: transparent;
  color: #000;
}

.floating-chat #chatbot-container .header .header-title {
  font-size: 0.875rem;
  font-weight: 500;
}

.floating-chat #chatbot-container .header .header-subtitle {
  font-size: 0.75rem;
}

.floating-chat #chatbot-container .header .header-subtitle a img {
  display: inline-block;
  margin-bottom: -4px;
}

.floating-chat #chatbot-container .header .header-controls {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  align-items: center;
}

.floating-chat #chatbot-container .header button {
  flex-shrink: 0;
  display: inline-flex;
  cursor: pointer;
  margin-inline-start: 0.5rem;
}
.floating-chat #chatbot-container .messages {
  padding: 10px;
  margin: 0;
  list-style: none;
  overflow-y: scroll;
  overflow-x: hidden;
  flex-grow: 1;
  border-radius: 4px;
  background: transparent;
}
.floating-chat #chatbot-container .messages::-webkit-scrollbar {
  width: 5px;
}
.floating-chat #chatbot-container .messages::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: rgba(25, 147, 147, 0.1);
}
.floating-chat #chatbot-container .messages::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: rgba(25, 147, 147, 0.2);
}
.floating-chat #chatbot-container .messages li {
  position: relative;
  clear: both;
  display: inline-block;
  padding: 14px;
  margin: 0 0 20px 0;
  font: 12px/16px "Noto Sans", sans-serif;
  border-radius: 10px;
  background-color: rgba(25, 147, 147, 0.2);
  word-wrap: break-word;
  max-width: 81%;
}
.floating-chat #chatbot-container .messages li:before {
  position: absolute;
  top: 0;
  width: 25px;
  height: 25px;
  border-radius: 25px;
  content: "";
  background-size: cover;
}
.floating-chat #chatbot-container .messages li:after {
  position: absolute;
  top: 10px;
  content: "";
  width: 0;
  height: 0;
  border-top: 10px solid rgba(25, 147, 147, 0.2);
}
.floating-chat #chatbot-container .messages li.other {
  animation: show-chat-odd 0.15s 1 ease-in;
  -moz-animation: show-chat-odd 0.15s 1 ease-in;
  -webkit-animation: show-chat-odd 0.15s 1 ease-in;
  float: right;
  margin-right: 45px;
  color: #0ad5c1;
}
.floating-chat #chatbot-container .messages li.other:before {
  right: -45px;
  background-image: url(https://github.com/Thatkookooguy.png);
}
.floating-chat #chatbot-container .messages li.other:after {
  border-right: 10px solid transparent;
  right: -10px;
}
.floating-chat #chatbot-container .messages li.self {
  animation: show-chat-even 0.15s 1 ease-in;
  -moz-animation: show-chat-even 0.15s 1 ease-in;
  -webkit-animation: show-chat-even 0.15s 1 ease-in;
  float: left;
  margin-left: 45px;
  color: #0ec879;
}
.floating-chat #chatbot-container .messages li.self:before {
  left: -45px;
  background-image: url(https://github.com/ortichon.png);
}
.floating-chat #chatbot-container .messages li.self:after {
  border-left: 10px solid transparent;
  left: -10px;
}
.floating-chat #chatbot-container .footer {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  justify-content: flex-end;
}

.floating-chat #chatbot-container .footer .chat-floating-copywrite {
  color: #000;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.7rem;
}

.floating-chat #chatbot-container div#suggested-prompts .prompt {
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
}

.floating-chat #chatbot-container div#suggested-prompts li {
  margin: 0.3rem 0 0.5rem 0;
}

.floating-chat #chatbot-container .hint {
  color: #838383;
  font-size: 0.6rem;
  margin: 0.5rem;
}

.floating-chat.has-messages .hint {
  opacity: 0;
  display: none;
}

.floating-chat.has-messages #chatbot-container #chatbot-messages {
  height: calc(100% - 50px);
}

.floating-chat #chatbot-container #chatbot-messages.has-messages {
  border-top: 0;
  padding: 0;
}

.floating-chat #chatbot-container #chatbot-messages * {
  font-size: 0.8rem;
  line-height: 1rem;
}

.floating-chat #chatbot-container .bot-message,
.floating-chat #chatbot-container .user-message {
  margin-left: 0;
  margin-right: 0;
}

.floating-chat #chatbot-container .bot-message {
  background: #fafafa;
}

.floating-chat .floating-icon {
  display: flex;
  position: relative;
  width: 310px;
  color: #000;
  padding: 0.5rem 1.5rem;
}

.floating-chat .floating-icon .chat-floating-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}
.floating-chat .floating-icon .chat-floating-close svg {
  height: 1rem;
  width: auto;
}

.floating-chat .floating-icon .chat-floating-title {
  font-size: 0.8rem;
  font-weight: 500;
}

.floating-chat .floating-icon .chat-floating-description {
  font-size: 0.55rem;
}

.floating-chat .col-10 {
  flex: 0 0 80%;
  display: inline-flex;
  justify-content: center;
  flex-direction: column;
}

.floating-chat .col-2 {
  flex: 0 0 20%;
  display: inline-flex;
  justify-content: center;
}

.floating-chat .chat-floating-icon {
  height: auto;
  width: 1.3rem;
}

/**
* END OF MODAL CHAT STYLES
*/

.typing {
  align-items: center;
  display: flex;
  height: 17px;
  margin: 0.5rem 0.5rem;
}

.typing .dot {
  animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
  background-color: rgba(209, 213, 219, 1);
  border-radius: 50%;
  height: 7px;
  margin-right: 4px;
  vertical-align: middle;
  width: 7px;
  display: inline-block;
}

.typing .dot:nth-child(1) {
  animation-delay: 200ms;
}

.typing .dot:nth-child(2) {
  animation-delay: 300ms;
}

.typing .dot:nth-child(3) {
  animation-delay: 400ms;
}

.typing .dot:last-child {
  margin-right: 0;
}

@keyframes mercuryTypingAnimation {
  0% {
    transform: translateY(0px);
    background-color: #afafaf;
  }

  28% {
    transform: translateY(-7px);
    background-color: #c7c7c7;
  }

  44% {
    transform: translateY(0px);
    background-color: #d6d6d6;
  }
}

/* Very large screents */
@media screen and (min-width: 2000px) {
  .floating-chat.expand .header-controls button.close {
    scale: 1.5;
  }

  .chat-floating-close svg {
    scale: 1.2;
  }
}

/* Mobile and Tablet */
@media screen and (max-width: 768px) {
  #chatbot-container div#suggested-prompts .prompt {
    display: block;
    margin: 0;
  }

  #chatbot-container {
    padding: 0;
  }

  #chatbot-container textarea#chatbot-input {
    white-space: pre-line;
  }

  #chatbot-container div#suggested-prompts li {
    margin: 0 0 0.5rem 0;
  }

  #chatbot-container .user-message,
  #chatbot-container .bot-message {
    margin-left: 0;
    margin-right: 0;
  }

  #chatbot-container #chatbot-messages {
    overflow-x: hidden;
    max-height: 65vh;
  }

  #chatbot-container #chatbot-messages ol li,
  #chatbot-container #chatbot-messages ul li {
    margin-left: 0.3rem;
  }

  #chatbot-container #chatbot-messages.has-messages {
    padding: 1rem 0.2rem;
  }

  .coh-ce-cpt_feature_card-411124 {
    padding: 1rem;
  }

  .floating-chat.has-messages #chatbot-container.enter {
    height: 100%;
  }
}

/* Mobile devices */
@media screen and (max-width: 480px) {
  .floating-chat.expand {
    right: 0;
    bottom: 0;
    top: 0;
    height: 100%;
    width: 100%;
    max-height: none;
    border-radius: 0;
  }
  .floating-chat {
    transform: translateX(50%) translateY(3rem);
  }

  .floating-chat.enter {
    right: 50%;
    transform: translateX(50%) translateY(0);
  }

  .floating-chat #chatbot-container.enter {
    padding: 2rem .5rem;
  }
}
