.tccb-popup {
  transition: width 0.5s cubic-bezier(0.2, 1, 0.3, 1), max-width 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  position: fixed;
  width: 20vw;
  width: 400px;
  min-width: 400px;
  max-width: max(40vw, 400px);
  bottom: 0%;
  right: 2%;
  border-radius: 5px 5px 0 0;
  box-shadow: 0 6px 10px 5px rgba(0, 0, 0, 0.1), 0 6px 10px 5px rgba(0, 0, 0, 0.1);
  background-color: white;
  line-height: normal;
  z-index: 10;
}
@media (max-width: 500px) {
  .tccb-popup {
    width: 100vw;
    min-width: 100vw;
    right: 0%;
  }
}
.tccb-popup.tccb-popup-expanded {
  width: 40vw;
}
.tccb-popup.tccb-popup-closed {
  max-width: 400px;
}
.tccb-popup .tccb-top {
  height: 40px;
  color: white;
  padding: 4px 8px;
  background-color: #2572b4;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: 70px 1fr 35px 35px;
  justify-items: center;
}
.tccb-popup .tccb-top .tccb-top-bar-btn {
  background: none;
  border: none;
}
.tccb-popup .tccb-top .tccb-expand-btn {
  background: none;
  border: none;
  justify-self: right;
  display: none;
  padding: 0;
  width: 40px;
  margin-top: 3px;
}
.tccb-popup .tccb-top .tccb-open-close-fake-btn-icon {
  background: none;
  border: none;
  justify-self: right;
  display: block;
  margin-top: 5px;
  padding: 0;
  width: 40px;
}
.tccb-popup .tccb-content {
  display: block;
  overflow-y: auto;
  max-height: 90vh;
  height: 600px;
  transition: height 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  overflow: hidden;
}
.tccb-popup .tccb-content.tccb-content-expanded {
  height: 90vh;
}
.tccb-popup .tccb-content.tccb-content-closed {
  height: 0;
}
.tccb-popup .tccb-content .tccb-chatbot-display {
  transition: height 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  display: none;
  height: 600px;
  max-height: 90vh;
  padding-bottom: 5px;
  grid-template-columns: 22fr 2fr;
  grid-column-gap: 4px;
  grid-template-rows: auto 45px;
  grid-template-areas: "cbcontent cbcontent cbcontent" "cbinput cbsend .";
}
.tccb-popup .tccb-content .tccb-chatbot-display.tccb-display-expanded {
  height: 90vh;
}
.tccb-popup .tccb-content .tccb-citation {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.tccb-popup .tccb-content .tccb-chat {
  grid-area: cbcontent;
  overflow-y: scroll;
  overflow-x: hidden;
  border-bottom: 1px solid black;
  padding-left: 15px;
}
@media (max-width: 500px) {
  .tccb-popup .tccb-content .tccb-chat {
    padding-left: 3vw;
    padding-right: 3vw;
  }
}
.tccb-popup .tccb-content .tccb-input {
  grid-area: cbinput;
  padding-left: 2%;
  resize: none;
  border: none;
  outline: none;
  overflow-y: scroll;
}
.tccb-popup .tccb-content .tccb-input:focus-visible {
  outline: none;
}
.tccb-popup .tccb-content .tccb-send-btn {
  grid-area: cbsend;
  display: grid;
  align-items: center;
  justify-self: flex-end;
  border-radius: 5px;
  border: none;
  background-color: #2572b4;
  width: 37px;
  height: 37px;
  color: white;
  font-size: 1.2em;
}
.tccb-popup .tccb-content .tccb-send-btn .glyphicon {
  padding-right: 3px;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper {
  display: grid;
  grid-template-columns: 50px auto auto;
  justify-items: start;
  margin: 11px 0 11px 0;
}
@keyframes msg-appear {
  0% {
    transform: translateY(10px);
    opacity: 0%;
  }
  50% {
    opacity: 80%;
    transform: translateY(2px);
  }
  100% {
    transform: translateY(0px);
    opacity: 100%;
  }
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-msg {
  max-width: 500px;
  border: 1px solid gray;
  border-radius: 5px;
  margin: 5px;
  padding: 7.5px;
  overflow-wrap: anywhere;
  animation: msg-appear 0.5s ease-out;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-msg .tccb-ai-msg-span {
  white-space: pre-wrap;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-msg .tccb-ai-stars-msg-span .tccb-stars-span {
  display: flex;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-msg .tccb-ai-stars-msg-span .tccb-stars-span .tccb-star-button {
  border: 0px;
  margin-top: 2px;
  margin-bottom: 2px;
  background-color: white;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-msg .tccb-ai-stars-msg-span .tccb-stars-span .tccb-star-button span {
  display: grid;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-msg .tccb-ai-stars-msg-span .tccb-stars-span .tccb-star-button:has(~ .tccb-star-button:hover) .tccb-star-filled {
  opacity: 100%;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-msg .tccb-ai-stars-msg-span .tccb-stars-span .tccb-star-button:hover .tccb-star-filled {
  opacity: 100%;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-msg .tccb-ai-stars-msg-span .tccb-stars-span .tccb-star-button .tccb-star-icon {
  grid-area: 1 / 1;
  font-size: 2em;
  background-color: white;
}
@media (max-width: 360px) {
  .tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-msg .tccb-ai-stars-msg-span .tccb-stars-span .tccb-star-button .tccb-star-icon {
    font-size: 1.5em;
  }
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-msg .tccb-ai-stars-msg-span .tccb-stars-span .tccb-star-button .tccb-star-empty {
  color: lightgray;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-msg .tccb-ai-stars-msg-span .tccb-stars-span .tccb-star-button .tccb-star-filled {
  opacity: 0%;
  color: lightgray;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-msg .tccb-ai-stars-msg-span .tccb-stars-span .tccb-star-button .tccb-star-clicked {
  color: gray;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-icon {
  display: grid;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: bolder;
  color: white;
  min-width: 50px;
  height: 50px;
  border-radius: 25px;
  background-color: gray;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-timestamp {
  font-size: small;
  grid-column-start: 2;
  margin: 0 2% 0 2%;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-citations-wrapper {
  display: none;
  gap: 10px;
  margin-top: 20px;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-typing-indicator {
  margin: 2px;
  padding: 3px;
  font-size: 3px;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: msg-appear 0.5s ease-out;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-typing-indicator .tccb-typing-dots {
  background-color: white;
  width: 65px;
  height: 40px;
  border: 1px solid gray;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-typing-indicator .tccb-typing-dots .tccb-typing-dot-span {
  content: '';
  display: block;
  height: 10px;
  width: 10px;
  border-radius: 50px;
  background-color: gray;
  margin: 2.5px;
  animation: bounce 1s infinite;
  animation-timing-function: ease-in-out;
  animation-delay: 0s;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-typing-indicator .tccb-typing-dots .tccb-typing-dot-span:nth-child(2) {
  animation-delay: 0.15s;
}
.tccb-popup .tccb-content .tccb-ai-msg-wrapper .tccb-ai-typing-indicator .tccb-typing-dots .tccb-typing-dot-span:last-child {
  animation-delay: 0.3s;
}
@keyframes bounce {
  0% {
    margin-bottom: -2px;
  }
  10% {
    margin-bottom: 2px;
  }
  25% {
    margin-bottom: 5px;
  }
  40% {
    margin-bottom: 2px;
  }
  50% {
    margin-bottom: -2px;
  }
  100% {
    margin-bottom: -2px;
  }
}
.tccb-popup .tccb-content .tccb-user-msg-wrapper {
  display: grid;
  grid-template-columns: auto auto 50px;
  justify-items: end;
  margin: 11px 0 11px 0;
}
.tccb-popup .tccb-content .tccb-user-msg-wrapper .tccb-user-msg {
  max-width: 500px;
  background-color: #ecebeb;
  border-radius: 5px;
  margin: 5px;
  padding: 7.5px;
  overflow-wrap: anywhere;
  text-align: left;
  grid-column-start: 2;
  animation: msg-appear 0.2s ease-out;
}
.tccb-popup .tccb-content .tccb-user-msg-wrapper .tccb-user-icon {
  display: grid;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.7em;
  min-width: 50px;
  height: 50px;
  border-radius: 25px;
  background-color: #56df93;
  grid-column-start: 3;
}
.tccb-popup .tccb-content .tccb-user-msg-wrapper .tccb-user-timestamp {
  font-size: small;
  grid-column-start: 2;
  margin: 0 2% 0 2%;
}
.tccb-popup .tccb-content .tccb-btns-wrapper {
  display: flex;
  flex-direction: column;
  margin-right: 5px;
  align-items: end;
}
@media (max-width: 500px) {
  .tccb-popup .tccb-content .tccb-btns-wrapper {
    margin-right: 0px;
  }
}
@keyframes btn-appear {
  from {
    transform: scale(0);
  }
  40% {
    opacity: 0%;
  }
  75% {
    opacity: 75%;
  }
  to {
    transform: scale(1);
    opacity: 100%;
  }
}
.tccb-popup .tccb-content .tccb-btns-wrapper .tccb-btn {
  min-width: 125px;
  margin-bottom: 7px;
  border: 1px solid #2572b4;
  color: #2572b4;
  background: white;
  opacity: 0;
  animation: btn-appear 1s forwards;
}
.tccb-popup .tccb-content .tccb-btns-wrapper .tccb-btn:hover {
  background: #e6eef4;
}
.tccb-popup .tccb-content .tccb-btns-wrapper .tccb-btn:nth-child(2) {
  animation-delay: 0.1s;
}
.tccb-popup .tccb-content .tccb-btns-wrapper .tccb-btn:nth-child(3) {
  animation-delay: 0.2s;
}
.tccb-popup .tccb-content .tccb-btns-wrapper .tccb-btn:nth-child(4) {
  animation-delay: 0.3s;
}
.tccb-popup .tccb-content .tccb-btns-wrapper .tccb-btn:nth-child(5) {
  animation-delay: 0.4s;
}
.tccb-popup .tccb-content .tccb-btns-wrapper .tccb-btn:nth-child(6) {
  animation-delay: 0.5s;
}
.tccb-popup .tccb-disclaimer-display {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: small;
  height: 600px;
  max-height: 90vh;
  padding: 5% 2%;
  overflow-y: auto;
}
