.loading-state {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loading {
  width: 24px;
  height: 24px;
  border-radius: 50% !important;
  border: 8px solid #ddd !important;
  border-top-color: orange !important;
  animation: loading 1s linear infinite;
}
@keyframes loading {
  to {
    transform: rotate(360deg);
  }
}

.chatbot__container {
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 20px;
}

.chatbot__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  text-align: center;
}

.chatbot__wrapper {
  background: transparent;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.chatbot__input_wrapper {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.chatbot__buttons_wrapper {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.chatbot_type_wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}

.chatbot__type_select_button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: max-content;
  padding: 4px 8px;
  font-size: 13px;
  border: solid 1px var(--focus-border-color) !important;
  color: var(--focus-color);
  background: #3d3d3b;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.chatbot__type_select_button:hover {
  border: solid 1px var(--hover-focus-border-color) !important;
  color: var(--hover-focus-color);
}
.chatbot__type_select_button:hover svg {
  fill: var(--hover-focus-color);
}

.chatbot__type_select_button.active {
  border: solid 1px var(--hover-focus-border-color) !important;
}
.chatbot__type_select_button.child_active {
  border: solid 1px var(--hover-focus-border-color) !important;
  color: var(--hover-focus-color);
}

.chatbot__type_select_button svg {
  width: 13px;
  height: 13px;
  fill: var(--focus-color);
  transition: all 0.3s ease-in-out;
}
.chatbot__type_select_button.child_active svg {
  fill: var(--hover-focus-color);
}

.chatbot__type_select {
  display: grid;
  grid-template-columns: repeat(4, 170px);
  grid-auto-rows: 1fr;
  gap: 3px;
  padding: 4px;
  width: max-content;
  height: max-content;
  margin-left: 0;
  position: absolute;
  bottom: -8px;
  left: -8px;
  transform: translateY(100%);
  flex-direction: column;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  background: #191a1a;
  border: solid 1px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
}

.chatbot__type_select.active {
  opacity: 1;
  visibility: visible;
}
.chatbot__type_select_item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 4px;
  padding: 8px;
  font-size: 14px;
  color: #e5e7eb;
  cursor: pointer;
  border: solid 1px transparent !important;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
}
.chatbot__type_select_item_title {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
}
.chatbot__type_select_item_description {
  color: rgba(141, 145, 145, 1);
  font-size: 12px;
}

.chatbot__type_select_item:hover {
  background-color: rgba(45, 47, 47, 1);
}

.chatbot__type_select_item svg {
  width: 13px;
  height: 13px;
  fill: #e5e7eb;
  transition: all 0.3s ease-in-out;
}

.chatbot__type_select_item.active {
  border: solid 1px #00889a !important;
}

.chatbot__input {
  flex: 1;
  line-height: 1.5;
  width: 100%;
  opacity: 1;
}
.chatbot__input:disabled {
  background-color: transparent;
  opacity: 0.5;
}
.chatbot__input::placeholder {
  color: var(--placeholder-color) !important;
}

.chatbot__button,
.chatbot__response_modal_button {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  color: #8d9191;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.chatbot__button {
  background: #00889a;
}
.chatbot__response_modal_button {
  background: #ff8000;
}

.chatbot__button:disabled,
.chatbot__response_modal_button:disabled {
  background: #3d3d3b;
  cursor: not-allowed;
}

.chatbot__button:hover,
.chatbot__response_modal_button:hover {
  scale: 1.1;
}

.chatbot__button_send,
.chatbot__response_modal_button_send {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.chatbot__button .spinner,
.chatbot__response_modal_button .modal-spinner {
  display: none;
}

.chatbot__button svg,
.chatbot__response_modal_button svg {
  width: 20px;
  height: 20px;
  fill: #3d3d3b;
}

.chatbot__button:disabled svg,
.chatbot__response_modal_button:disabled svg {
  fill: #8d9191;
}

.chatbot__response_modal {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 696px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 999999;
}
.chatbot__response_modal.active {
  top: 50%;
  opacity: 1;
  visibility: visible;
}

@media screen and (max-height: 768px) and (min-width: 769px) {
  .chatbot__response_modal {
    height: 100%;
    max-height: 640px;
  }
  
}
.chatbot__response_modal.active.full-screen {
  top: 0;
  left: 0;
  transform: none;
  max-width: 100%;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.chatbot__response_modal.active.full-screen .chatbot__response_modal_content {
  flex: 1;
}

.chatbot__response_modal span {
  font-weight: 700;
  margin: 0;
}

.chatbot__response_modal p {
  font-size: 1.3rem;
}

.chatbot__response_modal_header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.chatbot__response_modal_header .chatbot__response_modal_close,
.chatbot__response_modal_header .chatbot__response_modal_full_screen,
.chatbot__response_modal_footer .chatbot__response_modal_scroll_button {
  display: flex;
  padding: 8px;
  justify-content: center;
  align-items: center;
  border: solid 1px;
  border-radius: 9999px;
  cursor: pointer;
  line-height: 1;
  position: absolute;
  transform: translate(35%, -35%);
}

.chatbot__response_modal_footer .chatbot__response_modal_scroll_button {
  display: flex;
  visibility: hidden;
  opacity: 0;
  z-index: 10;
  left: 50%;
  top: -16px;
  transform: translate(-50%, 0%);
  transition: all 0.3s ease-in-out;
}

.chatbot__response_modal_footer .chatbot__response_modal_scroll_button.active{
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -100%);
}

.chatbot__response_modal_header .chatbot__response_modal_close {
  right: 0;
  top: 0;
}

.chatbot__response_modal_header .chatbot__response_modal_full_screen {
  right: 22px;
  top: 0px;
}
  .chatbot__response_modal.active.full-screen .chatbot__response_modal_header .chatbot__response_modal_close,
  .chatbot__response_modal.active.full-screen .chatbot__response_modal_header .chatbot__response_modal_full_screen {
    transform: translate(-35%, 35%);
    z-index: 2;
  }

.chatbot__response_modal_header .chatbot__response_modal_close svg,
.chatbot__response_modal_header .chatbot__response_modal_full_screen svg,
.chatbot__response_modal_footer .chatbot__response_modal_scroll_button svg {
  width: 14px;
  height: 14px;
  transition: all 0.3s ease-in-out;
}
.chatbot__response_modal_header .chatbot__response_modal_full_screen:hover {
  z-index: 3;
}
.chatbot__response_modal_header .chatbot__response_modal_close:hover svg,
.chatbot__response_modal_header .chatbot__response_modal_full_screen:hover svg,
.chatbot__response_modal_footer .chatbot__response_modal_scroll_button:hover svg{
  fill: #00889a;
}

.chatbot__response_modal_prompt {
  display: flex;
  flex-direction: column;
  border-top: none;
}
.chatbot__response_modal_prompt:not(:first-child) {
  padding: 32px 0 0;
  border-top: 1px solid;
}
.chatbot__response_modal_content {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 32px;
  height: 548px;
  overflow-x: hidden;
  overflow-y: scroll;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.chatbot__response_modal_content::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.chatbot__response_modal_content {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.chatbot__response_modal_sources {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.chatbot__response_modal_sources_title,
.chatbot__response_modal_answer_title,
.chatbot__response_modal_question_title,
.chatbot__response_modal_related_title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
.chatbot__response_modal_sources_title svg,
.chatbot__response_modal_answer_title svg,
.chatbot__response_modal_question_title svg,
.chatbot__response_modal_related_title svg {
  width: 16px;
  height: 16px;
}

.chatbot__response_modal_sources_list {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 8px;
  grid-row-gap: 8px;
}

.chatbot__response_modal_sources_list_item {
  background: var(--background-color);
  color: var(--color);
  padding: 8px;
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.chatbot__response_modal_sources_list_item:hover {
  background: var(--hover-background-color);
}

.chatbot__response_modal_sources_list_item:hover
  .chatbot__response_modal_sources_list_item_title {
  color: var(--hover-color);
}

.chatbot__response_modal_sources_list_item_title {
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s ease-in-out;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chatbot__response_modal_sources_list_item_date {
  font-size: 13px;
  opacity: 0.7;
}

.chatbot__response_modal_sources_list_item_content {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chatbot__response_modal_message {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.chatbot__response_modal_question {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}

.chatbot__response_modal_message_question {
  line-height: 1.1 !important;
  font-weight: 500;
  word-break: break-word;
}

.chatbot__response_modal_message_answer {
  font-size: 1.3rem;
}
.chatbot__response_modal_message_answer a{
  color: #00889a;
  text-decoration: none;
}
.chatbot__response_modal_message_feedback {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.chatbot__response_modal_message_feedback_positive,
.chatbot__response_modal_message_feedback_negative {
  display: flex;
  cursor: pointer;
  height: 18px;
}
.chatbot__response_modal_message_feedback_positive.active svg,
.chatbot__response_modal_message_feedback_negative.active svg {
  fill: #00889a;
}
.chatbot__response_modal_message_feedback_positive {
  align-items: flex-start;
}
.chatbot__response_modal_message_feedback_negative {
  align-items: flex-end;
}
.chatbot__response_modal_message_feedback svg {
  width: 16px;
  height: 16px;
  transition: all 0.3s ease-in-out;
}
.chatbot__response_modal_message_feedback_positive:hover svg,
.chatbot__response_modal_message_feedback_negative:hover svg {
  fill: #00889a;
}

.chatbot__response_modal_feedback_form_container {
  background: var(--background-color);
  color: var(--color);
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  display: flex;
  height: 0;
  opacity: 0;
}

.chatbot__response_modal_feedback_form_container.active {
  height: 100%;
  opacity: 1;
  margin-bottom: 32px;
}

.chatbot__response_modal_feedback_form {
  padding: 8px;
  width: 100%;
  display: flex;
  gap: 8px;
}
.chatbot__response_modal_feedback_form_textarea {
  flex: 1;
  background: var(--background-color);
  color: var(--color);
  font-size: 13px;
  resize: none !important;
  border: none !important;
  outline: none !important;
}
.chatbot__response_modal_feedback_form_submit {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--background-color);
  border-radius: 9999px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}
.chatbot__response_modal_feedback_form_submit svg {
  width: 16px;
  height: 16px;
  fill: #ff8000;
}
.chatbot__response_modal_feedback_form_submit:hover {
  transform: scale(1.1);
}

.chatbot__response_modal_related_questions {
  display: flex;
  flex-direction: column;
}

.chatbot__response_modal_related_questions_item {
  flex: 1;
  color: var(--related-color);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.chatbot__response_modal_related_questions_item:hover {
  color: var(--hover-related-color);
}

.chatbot__response_modal_related_questions_item:last-child {
  border-bottom: none !important;
}

.chatbot__response_modal_related_questions_item svg {
  width: 13px;
  height: 13px;
  fill: #00889a;
  transition: all 0.3s ease-in-out;
}

.chatbot__response_modal_related_questions_item:hover svg {
  rotate: 90deg;
}

.chatbot__response_modal_related {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.chatbot__response_modal_footer {
  position: relative;
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.chatbot__footer_overlay{
  position: absolute;
  left: 0;
  top: -45px;
  right: 0;
  width: 100%;
  height: 30px;
}
.chatbot__response_modal_footer_content {
  width: 100%;
  display: flex;
  padding: 8px;
  background: #202222;
  border-radius: 9999px;
  z-index: 11;
}
.chatbot__response_modal_input_wrapper {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid;
  border-radius: 9999px;
}

.chatbot__response_modal_input {
  flex: 1;
  opacity: 1;
}
.chatbot__response_modal_input:disabled {
  background-color: transparent;
  opacity: 0.5;
}
.chatbot__response_modal_input_after {
  font-style: italic;
}

@media screen and (max-width: 768px) {
  .chatbot__response_modal {
    border-radius: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    max-width: 100%;
  }
  .chatbot__response_modal.active {
    top: 0;
  }
  .chatbot__response_modal_header .chatbot__response_modal_close,
  .chatbot__response_modal_header .chatbot__response_modal_full_screen {
    transform: translate(-35%, 35%);
    z-index: 2;
  }
  .chatbot__response_modal_content {
    flex: 1;
  }
  .chatbot__response_modal_sources_list {
    grid-template-columns: repeat(2, 1fr);
  }
  .chatbot__type_select {
    grid-template-columns: repeat(2, 170px);
  }
}

@media screen and (max-width: 480px) {
  .chatbot__type_select {
    grid-template-columns: repeat(1, 170px);
  }
}
