
.chatbot-shadow-container * {
  box-sizing: border-box;
  line-height: normal;
}

.chatbot-shadow-container {
  font-family: Tahoma, sans-serif;
}

.chatbot-chat-toggle {
  background-color: #024DA8;
  color: white;
  position: fixed;
  right: 10px;
  bottom: 10px;
  padding: 10px 15px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
}

.chatbot-chat-icon {
  width: 23px;
  margin-right: 5px;
}

.chatbot-close-icon {
  cursor: pointer;
}



/* Consent view style */

input.chatbot-input-style {
  height: 44px;
  width: 100%;
  border: 2px solid #dadada;
  color: black;
  border-radius: 5px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 0 15px;
}

input.chatbot-input-style::placeholder {
  color: #dadada;
}

.chatbot-checkbox-container label {
  display: block;
  margin-bottom: 10px;
}

.chatbot-checkbox-container input[type="checkbox"] {
  margin-right: 5px;
}

.chatbot-checkbox-container p {
  margin-top: 5px;
  font-size: 0.9em;
}

.chatbot-consent-text {
  font-size: 8px;
  margin-top: 5px;
  color: #C4C1C1;
}

button.chatbot-start-chat-btn {
  background: #024DA8;
  height: 50px;
  border: 0;
  border-radius: 24px;
  padding: 10px 20px;
  color: white;
  position: absolute;
  right: 0;
  bottom: 0;
  margin-right: 20px;
  margin-bottom: 20px;
  cursor: pointer;
  font-size: 17px;
}

.chatbot-checkbox-option {
  font-size: 10px;
}

#chatbot-chat-body.visible {
  opacity: 1;
  max-height: 1000px;
}

.chatbot-information-text {
  font-size: 12px;
  padding-top: 25px;
  margin-bottom: 0;
}

#chatbot-consent {
  padding: 10px 18px;
}




/* Chat body style */
#chatbot-chat-body {
  overflow: auto;
  max-height: 0;
  opacity: 0;
  transition: opacity 0.5s, max-height 0.5s ease-out;
  max-width: 384px;
  border-radius: 15px;
  position: fixed;
  bottom: 60px;
  right: 10px;
  background-color: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  z-index: 100000;
}

  #chatbot-header {
    padding: 8px 15px;
    color: white;
    background-color: #024DA8;
    height: 48px;
    display: flex;
    align-items: center;
    font-weight: bold;
    justify-content: space-between;
  }

  #chatbot-main {
    min-height: 400px;
  }


  .chatbot-shadow {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 1%, rgba(255, 255, 255, 0) 100%);
  }

  .chatbot-chat-messages {
    overflow-y: scroll;
    height: 350px;
    padding: 10px 18px;
  }

  .chatbot-chat-messages::-webkit-scrollbar {
    display: none;
  }

  .chatbot-message {
    margin-bottom: 10px;
  }

  .chatbot-message.chatbot-sent {
    text-align: right;
  }

  .chatbot-message.chatbot-received {
    text-align: left;
  }

  .chatbot-message .chatbot-message-content {
    display: inline-block;
    max-width: 86%;
    padding: 10px;
    border-radius: 20px;
    background-color: #f1f0f0;
  }

  .chatbot-message.chatbot-sent .chatbot-message-content {
    background-color: #024DA8;
    color: white;
    font-size: 12px;
  }

  .chatbot-message.chatbot-received .chatbot-message-content {
    background-color: transparent;
    border: 1px solid #dadada;
    color: #8d8d8d;
    font-size: 12px;
  }


  .chatbot-input-container textarea {
    line-height: 18px;
    height: 22px;
    font-size: 13px;
    scrollbar-width: none;
    resize: none;
    flex-grow: 1;
    border: 0;
    font-family: Tahoma, sans-serif;
    background-color: unset;
    padding: unset;
  }

  .chatbot-input-container textarea:focus {
    outline: none;
    box-shadow: none;
  }

  #chatbot-message-input::placeholder {
    font-family: Tahoma, sans-serif;
    font-size: 13px;
    color: #dadada !important;
  }

  #chatbot-send-message-button {
    background-color: transparent;
    border: 0;
    cursor: pointer;
    display: flex;
    padding: unset;
    box-shadow: unset;
  }

  #chatbot-send-message-button img {
    width: 16px;
  }

  #chatbot-send-message-button:disabled {
    cursor: not-allowed;
  }

  .chatbot-message-content p {
    margin: 0;
    word-wrap: break-word;
  }


  
  .chatbot-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-grow: 1;
  }

  .chatbot-content {
    flex-grow: 1;
    overflow-y: auto;
    background-color: white;
  }


  .chatbot-footer {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 100%;
    overflow: hidden;
  }

  .chatbot-footer-header {
    display: flex;
    align-items: center;
    background-color: transparent;
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0;
  }

  .chatbot-footer-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    background-color: #f3f4f6;
  }


  .chatbot-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px;
    background-color: white;
    border-radius: 80px;
    border: 1px solid #d1d5db;
    cursor: text;
    width: 100%;
  }

  .chatbot-footer-note {
    display: flex;
    justify-content: center;
    padding-bottom: 16px;
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
  }

  #suggested-questions-container {
    padding: 5px 18px;
    border-top: 2px solid #f4f4f4;
  }

  .chatbot-suggested-question-chip {
    background-color: #f4f4f4;
    color: #000;
    padding: 5px 10px;
    border-radius: 4px;
    margin: 5px;
    cursor: pointer;
    font-size: 12px;
    display: inline-block;
  }

  .chatbot-suggested-question-chip:hover {
    background-color: #1a5db3;
    color: white;
  }

  .chatbot-suggested-question-chip p {
    margin: 0;
  }


  .chatbot-botTyping>div {
    width: 10px;
    height: 10px;
    background-color: #024DA8;
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    margin-right: 5px;
  }

  .chatbot-botTyping .chatbot-bounce1,
  .chatbot-botTyping .chatbot-bounce2,
  .chatbot-botTyping .chatbot-bounce3 {
    animation: bounce 1.4s infinite ease-in-out both;
  }

  .chatbot-botTyping .chatbot-bounce1 {
    animation-delay: -0.32s;
  }

  .chatbot-botTyping .chatbot-bounce2 {
    animation-delay: -0.16s;
  }

  .chatbot-botTyping .chatbot-bounce3 {
    animation-delay: 0s;
  }


  .chatbot-fade-in {
    animation: fadeIn 0.5s ease-out;
  }

  .chatbot-avatar {
    width: 25px;
    margin-right: 10px;
  }



@media screen and (max-width: 500px) {
  #chatbot-chat-body {
    max-width: unset;
    right: 0;
    bottom: 0;
    height: 100%;
    margin: 5px;
    overscroll-behavior: contain;
  }
  .chatbot-chat-messages{
    height: 100% !important;
  }
  #chatbot-chat-body.chatbot-visible {
    max-height: 100vh !important;
  }
  #chatbot-main{
    height: calc(100vh - 48px);
  }
  
  #chatbot-onBoarding{
    height: 100%;
  }
  .chatbot-container{
    height: 100%;
  }
}



/* KeyFrames */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1.0);
  }
}