/* M E S S A G E S */
#messageArea {
  overflow-y: scroll;
}

.chat {
  list-style: none;
  background: none;
  padding: 0;
  margin: 0;
  height: calc(100vh - 55px /* height of the #userText element */);
}

.chat li {
  padding: 8px;
  padding: 0.5rem;
  font-size: 1.0rem;
  /* overflow: hidden; */
  overflow: visible;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  color: #000000;
}

.visitor {
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
  -ms-flex-align: end;
  -ms-grid-row-align: flex-end;
  align-items: flex-end;
}

.visitor .msg {
  -webkit-box-ordinal-group: 2;
  -webkit-order: 1;
  -ms-flex-order: 1;
  order: 1;
  border-top-right-radius: 2px;
}

.chatbot .msg {
  -webkit-box-ordinal-group: 2;
  -webkit-order: 1;
  -ms-flex-order: 1;
  order: 1;
  border-top-left-radius: 2px;
}

.msg {
  word-wrap: break-word;
  min-width: 50px;
  max-width: 80%;
  padding: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  background: #dae1e7;
}

.msg p {
  margin: 0 0 0.2rem 0;
}

.msg .time {
  font-size: 0.7rem;
  color: #7d7b7b;
  margin-top: 3px;
  float: right;
  cursor: default;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* STARS */

.stars {
  --rating: 0;
  --percent: calc(var(--rating) / 1 * 100%);
  display: inline-block;
  font-size: 20px;
  font-family: Times;
  line-height: 1;
  text-align: right;
}

.stars::before {
  content: "★";
  letter-spacing: 3px;
  background: linear-gradient(90deg, #fc0 var(--percent), #fff var(--percent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* TOOLTIP */

.cb-tooltip-list {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
  cursor: pointer;
}

.cb-tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted #f8b500; /* If you want dots under the hoverable text */
  cursor: pointer;
}

.cb-tooltip-list .cb-tooltiptext,
.cb-tooltip .cb-tooltiptext {
  visibility: hidden;
  width: 460px;
  background-color: #f8b500;
  color: white;
  text-align: left;
  padding: 5px 5px;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1;

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

.cb-tooltip-list:hover .cb-tooltiptext,
.cb-tooltip:hover .cb-tooltiptext {
  visibility: visible;
  opacity: 1;
}

.cb-tooltip-list-top {
  bottom: 125%;
  left: 0;
}

.cb-tooltip-top {
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
}

.cb-tooltip-list-top::after,
.cb-tooltip-top::after {
  /* content: ""; */
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #f8b500 transparent transparent transparent;
}

.cb-tooltip-bottom {
  top: 135%;
  left: 50%;
  margin-left: -60px;
}

.cb-tooltip-bottom::after {
  /* content: ""; */
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #f8b500 transparent;
}

.cb-tooltip-left {
  top: -5px;
  bottom: auto;
  right: 128%;
}

.cb-tooltip-left::after {
  /* content: ""; */
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #f8b500;
}

.cb-tooltip-right {
  top: -5px;
  left: 125%;
}

.cb-tooltip-right::after {
  /* content: ""; */
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent #f8b500 transparent transparent;
}
