.rotating-icon {
    animation: rotation 2s linear infinite;
  }

  @keyframes rotation {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }

pre {
    background-color: black;
    color: white;
}

button {
    border: 1px solid black;
    margin: 10px 0;
    padding: 0.5em;
}


.speech-bubble {
    position: relative;
    background-color: #f9f9f9;
    border: 0;
    border-radius: 5px;
    padding: 10px;
    display: block;
    margin: 1rem 1rem 2rem 1rem;
    font-size: 1rem;
    font-family: sans-serif !important;
  }

.speech-bubble p {
    margin: 0 0 1rem 0;
}
.speech-bubble > p:last-of-type {
    margin-bottom: 0 !important;
}

.speech-bubble ul {
  margin: 1rem 0;
}

.speech-bubble a {
  color: black;
  font-weight: bold;
  text-decoration: underline;
}

.speech-bubble a:hover {
  color: black;
  font-weight: bold;
  text-decoration: none;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #f9f9f9;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -11px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
}

.chat-user {
    background-color: #cfeeff;
}

.chat-user.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #cfeeff;
}

.chat-user.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -11px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #cfeeff;
}

.chat-assistant {
    text-align: left;
}

#conversation-thread {
    position: relative;
    overflow: scroll;
    padding: 0;
}

.question-container {
    position: sticky;
    bottom: 0;
    width: 100%;
    padding: 10px 10px 5px;
}

#prompt-input {
    padding-right: 75px;
    border-radius: 1rem;
    resize: none;
    max-height: 136px;
    overflow: auto;
}

#prompt-input::placeholder {
  color: rgb(64, 64, 64);
}

#prompt-input:focus-visible, #prompt-input:focus, #prompt-input:focus-within {
  border: unset;
  border-top: 1px solid !important;
}

.copy-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  position: absolute;
  top: -3px;
  right: 5px;
  opacity: 0;
  transition: opacity 0.2s;
  padding: 5px 8px !important;
  background-color: white !important;
  color: black !important;
  font-size: 14px !important;
}

.speech-bubble:hover .copy-button {
  opacity: 1;
}

.question-container button, .question-container button:hover {
  position: absolute;
  right: 15px;
  bottom: 5px;
  height: 31px;
  width: 42px;
  padding: 0 !important;
  line-height: 31px;
  color: white;
  background: black;
  border: unset;
  border-radius: 1rem;
}

.elementor-chatbot {
    /*max-height: 400px;*/
}

.ask-chatgpt-container {
    margin-top: -1rem;
    margin-bottom: 1rem;
    width: 100%;
    text-align: center;
}

.ask-chatgpt-container button {
    background: black;
    border: unset;
    border-radius: 4px;
    color: white;
    font-family: sans-serif;
}

.typing-notification {
    background-color: #fff;
    color: #333;
    border-radius: 4px;
    margin-top: 10px;
    margin-bottom: 1rem;
    font-size: 13px;
    line-height: 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    vertical-align: middle;
    font-style: italic;
    width: 100%;
}

.typing-notification img {
    width: 20px;
    margin: 0 15px;
}

.tone-of-voice-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  
.tone-of-voice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
  margin-right: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.tone-of-voice-button:hover {
  background-color: #eee;
}

.tone-of-voice-button.selected {
  background-color: #007bff;
  color: #fff;
}

.tone-of-voice-button.selected:hover {
  background-color: #0062cc;
}