:root {
  --blue: rgba(10, 116, 218, 1);
  --dark: rgba(33, 33, 33, 0.8);
  --dark-blue-clr: rgb(0, 0, 189);
}
.chat-bot-container.hide {
  height: 0px;
  width: 0px;
}
.chat-bot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  height: 50px;
  width: 50px;
  display: grid;
  place-items: center;
  z-index: 10;
}
.chat-bot-btn {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  color: #fff;
  border: none;
  background-color: var(--dark-blue-clr);
}
.chat-bot-container {
  position: absolute;
  right: 0px;
  bottom: 60px;
  height: 450px;
  width: 350px;
  border-radius: 10px;
  overflow-y: scroll;
  transition: 0.2s;
  background-color: gray;
  box-shadow: -5px 5px 5px rgba(0, 0, 0, 0.205);
  z-index: 10;
  display: grid;
  align-content: start;
  grid-template-rows: auto 1fr auto;
}
@media (max-width: 400px) {
  .chat-bot-container {
    width: 300px;
  }
}
@media (max-width: 320px) {
  .chat-bot-container {
    width: 280px;
  }
}
.chat-bot-header {
  color: #fff;
  text-align: center;
  position: sticky;
  left: 0;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  font-weight: 500;
  padding: 10px;
  background-color: var(--dark-blue-clr);
  z-index: 50;
}

/* category */
.question-category {
  display: none;
}
.question-category.show {
  display: block;
}
.chat-bot-body .accordion-button {
  padding: 10px;
}
.chat-bot-body .accordion-body {
  display: flex;
  align-items: start;
  padding: 10px;
}
.speak-btn {
  border: none;
  padding: 3px;
  font-size: 1rem;
  background-color: transparent;
}
.speak-btn:hover {
  color: var(--blue);
}
#voice {
  display: none;
  position: absolute;
  top: 50px;
  right: -18px;
  padding: 4px;
  padding-right: 0;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #ececec;
}
#voice.show {
  display: block;
}
.voice-container {
  position: absolute;
  right: 20px;
  top: 8px;
}
#trigger-select {
  color: #fff;
  border: none;
  background-color: transparent;
  font-size: 1.2rem;
}
#trigger-select::after {
  --size: 0.35rem;
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  border-left: var(--size) solid transparent;
  border-right: var(--size) solid transparent;
  border-top: var(--size) solid;
}

/* Chat bot footer */
.chat-bot-footer {
  display: flex;
  position: sticky;
  bottom: 0;
  z-index: 10;
}
.chat-bot-footer button {
  color: var(--blue);
  background-color: #fff;
  padding: 4px;
  /* font-size: 1.1rem; */
  border: 1px solid var(--blue);
  flex: 1;
  text-align: center;
}
.chat-bot-footer button.active {
  color: #fff;
  background-color: var(--blue);
}
.question-category-btn:first-child {
  border-bottom-left-radius: 10px;
}
