#skogsai-chatbot-container,
#skogsai-chatbot-container * {
  box-sizing: border-box;
}
#skogsai-chatbot-container svg {
  max-width: 100%;
  fill: currentColor;
}
#skogsai-chatbot-container {
  position: fixed;
  max-width: 400px;
  bottom: 20px;
  right: 20px;
  background-color: #fff;
  color: #2d2d2d;
  width: 50%;
  display: none;
  z-index: 1002;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.45);
  border-radius: 15px;
  overflow: hidden;
}
#skogsai-chatbot-container.medium {
  max-width: 900px;
  width: 96%;
}
#skogsai-chatbot-container.large {
  max-width: 94%;
  width: 100%;
}
#skogsai-chatbot-container.active {
  display: block;
}
.skogsai-chatbot-header {
  text-align: center;
  padding: 20px 30px;
  position: relative;
}
.skogsai-chatbot-header-heading {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}
.skogsai-chatbot-header-heading p {
  margin: 0;
}
#skogsai-chatbot-close {
  position: absolute;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: transparent;
  right: 0;
  top: 0;
  transition: all 0.3s;
  border: 0 none;
}
#skogsai-chatbot-close:hover {
  transform: rotate(90deg);
}
#skogsai-chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
#skogsai-chatbot-toggle.has-reveal-animation {
  transform: translateY(150%);
}
.ripple-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  background-color: inherit;
  z-index: -1;
  border-radius: 50%;
}
.ripple-1,
.ripple-2,
.ripple-3,
.ripple-4 {
  height: 100%;
  width: 100%;
  position: absolute;
  left: 50%;
  top: 50%;
  background-color: inherit;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  animation-name: ripple;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-out;
  will-change: transform, opacity;
}
.ripple-1 {
  animation-delay: 0;
}
.ripple-2 {
  animation-delay: 0.1s;
}
.ripple-3 {
  animation-delay: 0.3s;
}
.ripple-4 {
  animation-delay: 0.5s;
}
.ripple-4 {
  animation-delay: 0.7s;
}
.ripple .ripple-effect {
  display: block;
}

#skogsai-chatbot-toggle.reveal {
  animation: reveal-animation 0.8s ease forwards;
}
#skogsai-chatbot-toggle.btn-icon {
  width: 70px;
  height: 70px;
  padding: 20px;
  border-radius: 100%;
}
#skogsai-chatbot-toggle.btn-text {
  font-size: 16px;
  color: #0095a0;
  text-transform: capitalize;
  font-weight: 600;
  letter-spacing: 0;
}
#skogsai-chatbot-toggle:hover {
  transform: scale(1.05);
}
#skogsai-chatbot-container #skogsai-question {
  min-height: unset;
  width: 100%;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  border-radius: 0;
  border: none;
  background-color: transparent;
  padding: 5px 5px 5px 20px;
  font-size: 16px;
  height: 50px;
  margin: 0;
}
#skogsai-chatbot-container #skogsai-answer {
  margin-top: 20px;
  display: none;
}
#skogsai-chat-history {
  max-height: 400px;
  min-height: 400px;
  overflow-y: auto;
  padding: 10px 20px;
  scrollbar-width: auto;
  scrollbar-color: #0095a0 #d1e8eb;
}
.medium #skogsai-chat-history {
  min-height: 60vh;
  max-height: 60vh;
}
.large #skogsai-chat-history {
  min-height: calc(85vh - 66px - 50px - 34px);
  max-height: calc(85vh - 66px - 50px - 34px);
}
#skogsai-chat-history::-webkit-scrollbar {
  width: 10px;
}
#skogsai-chat-history::-webkit-scrollbar-track {
  background: #d1e8eb;
}
#skogsai-chat-history::-webkit-scrollbar-thumb {
  background-color: #0095a0;
  border-radius: 10px;
  border: 3px solid #d1e8eb;
}
#skogsai-chat-history .user-question,
#skogsai-chat-history .bot-response {
  padding: 12px 17px;
  margin-bottom: 10px;
  line-height: 1.5;
  max-width: 90%;
  width: fit-content;
  font-size: 16px;
}
#skogsai-chat-history .user-question {
  background-color: #d1e8eb;
  margin-left: auto;
  border-radius: 25px 25px 5px 25px;
}
#skogsai-chat-history .bot-response {
  background-color: #e5eeff;
  border-radius: 25px 25px 25px 5px;
}
.skogsai-chat-footer {
  text-align: center;
  border-radius: 0 0 15px 15px;
}
#skogsai-email-chat {
  font-size: 12px;
  background-color: unset;
  border: 0;
  text-decoration: none;
  padding: 10px;
  text-transform: inherit;
  width: 100%;
}
#skogsai-send-question {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  padding: 0;
  transform: rotate(40deg);
  color: #fff;
  border: 0 none;
}
#skogsai-send-question:hover {
  transform: rotate(0deg);
}
#skogsai-send-question:disabled {
  opacity: 0.6;
  pointer-events: none;
}
#skogsai-send-question svg {
  width: 20px;
}
#skogsai-chat-input {
  display: flex;
  align-items: center;
  position: relative;
  border-radius: 0;
  padding-right: 10px;
  gap: 10px;
}
#skogsai-chat-typing .dot {
  animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
  background-color: #0095a0;
  border-radius: 50%;
  height: 7px;
  margin-right: 4px;
  vertical-align: middle;
  width: 7px;
  display: inline-block;
}
#skogsai-chat-typing .dot:nth-child(1) {
  animation-delay: 200ms;
}
#skogsai-chat-typing .dot:nth-child(2) {
  animation-delay: 300ms;
}
#skogsai-chat-typing .dot:nth-child(3) {
  animation-delay: 400ms;
}
#skogsai-chat-typing .dot:last-child {
  margin-right: 0;
}

@keyframes mercuryTypingAnimation {
  0% {
    transform: translateY(0px);
    background-color: #6cad96;
  }
  28% {
    transform: translateY(-7px);
    background-color: #9ecab9;
  }
  44% {
    transform: translateY(0px);
    background-color: #b5d9cb;
  }
}

@keyframes reveal-animation {
  0% {
    transform: translateY(120%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes ripple {
  0% {
    transform: translate3d(-50%, -50%, 0) scale(0);
    opacity: 0.33;
  }
  100% {
    transform: translate3d(-50%, -50%, 0) scale(3);
    opacity: 0;
  }
}

@media only screen and (max-width: 767px) {
  #skogsai-chatbot-container {
    width: calc(100% - 20px);
    right: 10px;
  }
}
