:root {
  --blue: #4cb0d1;
  --light-blue: #f0f5ff;
  --gray: #dddddd;
  --dark-gray: #333333;
  --border-radius: 10px;
}

.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-height: 600px;
  z-index: 9999;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#sdc-chatbot {
  background: var(--light-blue);
  border: 1px solid var(--gray);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-family: sans-serif;
  overflow: hidden;
  max-width: calc(400px - 30px);
  width: 100%;
}

#sdc-chatbot.is-visible {
  display: block !important;
}

#sdc-chat-header {
  background: var(--blue);
  color: white;
  padding: 15px;
}

#sdc-chat-log {
  height: 300px;
  overflow-y: auto;
  padding: 30px 15px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sdc-msg {
  padding: 10px;
  background-color: #ffffff;
  position: relative;
}

.sdc-msg:before {
  position: absolute;
  left: 0;
  top: -25px;
  color: var(--dark-gray);
  font-size: 14px;
  opacity: 0.5;
}

.sdc-question {
  background-color: var(--blue);
  border-radius: var(--border-radius);
  border-top-right-radius: 0px;
  color: #ffffff;
  margin-left: auto;
  display: inline-block;
}

.sdc-question:before {
  content: "You:";
}

.sdc-answer {
  margin-bottom: 15px;
  background-color: #ffffff;
  border-radius: var(--border-radius);
  border-top-left-radius: 0px;
}

.sdc-answer:before {
  content: "Sonata chatbot:";
}

#sdc-chat-input {
  position: relative;
  z-index: 2;
}

#sdc-chat-input-wrap {
  padding: 15px;
  padding-top: 0px;
  position: relative;
}

#sdc-chat-input svg {
  width: 20px;
  height: 20px;
}

.select2-selection {
  border-radius: 0px !important;
  overflow: hidden !important;
}

.select2-container .select2-selection--single {
  height: 40px !important;
}

.select2-selection__arrow {
  background-color: var(--blue);
  width: 30px !important;
  height: 40px !important;
  top: 0px !important;
  right: 0px !important;
}

.select2-selection__arrow b {
  border-color: white transparent transparent transparent !important;
}

.select2-container--default.select2-container--open
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: transparent transparent white transparent !important;
}

.select2-selection__placeholder {
  font-size: 14px !important;
}

.select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--blue) !important;
}

.select2-search__field:focus-visible {
  outline: var(--blue) !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 38px !important;
  overflow: hidden !important;
}

.select2 {
  width: 100% !important;
}

.select2-results__option {
  font-size: 14px;
}

.select2-search--dropdown .select2-search__field {
  padding: 10px;
}

.select2-dropdown,
.select2-container--default .select2-selection--single {
  border: 1px solid var(--blue);
}

#sdc-select-down {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background-color: var(--blue);
  z-index: -1;
}

#sdc-wrap {
  position: relative;
}

#sdc-overlay {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  opacity: 0.5;
  background-color: var(--dark-gray);
}

#sdc-question-select {
  width: 100%;
  padding: 12px 10px;
  border: none;
  --webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  z-index: 3;
}

.sdc-typing span::after {
  content: "";
  display: inline-block;
  width: 1em;
  text-align: left;
  animation: dots 1.2s steps(3, end) infinite;
}

@keyframes dots {
  0% {
    content: "";
  }

  33% {
    content: ".";
  }

  66% {
    content: "..";
  }

  100% {
    content: "...";
  }
}

.chatbot-btn {
  background-color: var(--blue);
  border-radius: 50px;
  height: 50px;
  color: #ffffff;
  line-height: 1;
  padding: 0px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: none;
  transition: opacity 0.3s ease-in-out;
  text-wrap: nowrap;
}

.chatbot-btn a {
  color: #ffffff;
}

.chatbot-btn.is-visible {
  display: flex !important;
}

.chatbot-btn svg {
  width: 25px;
  height: 25px;
}

.chatbot-btn:hover {
  opacity: 0.75;
}

.chatbot-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

#sdc-chat-header {
  background-color: var(--blue);
  color: white;
  padding: 15px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#sdc-chat-close {
  cursor: pointer;
  font-size: 18px;
  margin-left: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#sdc-chat-close svg {
  width: 20px;
  height: 20px;
}
