/**
* ==============================================
* WP Plogg Bücco GPT style
* ==============================================
*/
.wp-pbg-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #3c41c3;
  border-radius: 50%;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
}

.wp-pbg-icon img {
  width: 35px;
}

.wp-pbg-close-popup {
  cursor: pointer;
  position: absolute;
  right: -1rem;
  top: -1rem;
  font-size: 2rem;
  line-height: 1;
  color: white !important;
  background-color: #3c41c3;
  border-radius: 50%;
  border: none;
  width: 35px;
  height: 35px;
}

.wp-pbg-popup.hidden,
.open-chat.hidden,
.close-chat.hidden,
.dots-loading.hidden {
    display: none;
}

.wp-pbg-popup {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  max-width: 350px;
  min-height: 400px;
  width: 100%;
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.wp-pbg-header {
  background-color: black;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.wp-pbg-header .wp-pbg-bot-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  border-radius: 50%;
  padding: 0.5rem;
}

.wp-pbg-header .wp-pbg-bot-icon img {
  width: 25px;
}

.wp-pbg-header .wp-pbg-bot-name {
  margin-left: 1rem;
  font-size: 1.1rem;
}

.wp-pbg-content {
  padding: 1rem;
  flex: 1 1 auto;
  overflow: scroll;
  max-height: 400px;
}

.wp-pbg-messages .wp-pbg-message {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
}

.wp-pbg-messages .wp-pbg-message:first-child {
  margin-top: 0;
}

.wp-pbg-message.question {
  display: flex;
  flex-direction: column;
  align-items: end;
}

.wp-pbg-content .wp-pbg-message.answer,
.wp-pbg-content .dots-loading {
  position: relative;
  padding-left: 40px;
}

.wp-pbg-content .wp-pbg-message.answer:before,
.wp-pbg-content .dots-loading:before {
  content: '';
  background: url(../images/bot-black-icon.png);
  width: 25px;
  height: 25px;
  background-size: contain;
  background-repeat: no-repeat;
  display: block;
  position: absolute;
  left: 0;
}

.wp-pbg-content .dots-loading {
  margin-top: 1.5rem;
}

.wp-pbg-content .dots-loading .wp-pbg-message-text {
  padding-left: 2rem;
}

.wp-pbg-content .dots-loading {
  margin-top: 1.5rem;
  padding-left: 40px;
}

.wp-pbg-content .dots-loading .wp-pbg-message-text {
  background-color: rgb(234, 240, 246);
  color: rgb(66, 91, 118);
  border-radius: 0px 8px 8px;
  max-width: 284px;
  padding: 0.75rem 0.75rem 0.75rem 1.75rem;
  line-height: 1.1;
}

.wp-pbg-content .wp-pbg-message .wp-pbg-message-title {
  font-weight: 600;
}

.wp-pbg-content .wp-pbg-message .wp-pbg-message-text {
  word-break: break-word;
  background-color: rgb(234, 240, 246);
  color: rgb(66, 91, 118);
  border-radius: 0px 8px 8px;
  max-width: 284px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  line-height: 1.3;
}

.wp-pbg-content .wp-pbg-message .wp-pbg-message-time {
  font-weight: 600;
  font-size: 0.7rem;
  margin-top: 0.25rem;
}

.wp-pbg-message.question .wp-pbg-message-text {
  background-color: rgb(46, 71, 93);
  color: white;
  border-radius: 8px 0px 8px 8px;
}

.wp-pbg-footer {
  display: flex;
  align-items: center;
  border-top: 3px solid #dcdcde;
  padding: 1rem;
}

.wp-pbg-footer .wp-pbg-message-input {
  margin-bottom: 0;
  border: none;
  background-color: transparent;
  resize: none;
  padding: 0 !important;
  height: 1rem;
  line-height: 1;
  font-size: unset;
  flex: 1 1 auto;
}

.wp-pbg-footer .wp-pbg-btn-send {
  padding: 0;
  margin: 0;
  height: 30px;
  border: none;
  cursor: pointer;
  background: none;
}

.wp-pbg-footer .wp-pbg-btn-send:hover,
.wp-pbg-footer .wp-pbg-btn-send:active {
  background-color: transparent !important;
  border: none !important;
  outline: none;
}

.wp-pbg-footer .wp-pbg-btn-send img {
  width: 25px;
}

/**
* ==============================================
* Dot Pulse Animation
* ==============================================
*/
.dot-pulse {
  position: relative;
  left: -9999px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #555bf7;
  color: #555bf7;
  box-shadow: 9999px 0 0 -5px;
  animation: dot-pulse 1.5s infinite linear;
  animation-delay: 0.25s;
}

.dot-pulse::before, .dot-pulse::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #555bf7;
  color: #555bf7;
}

.dot-pulse::before {
  box-shadow: 9984px 0 0 -5px;
  animation: dot-pulse-before 1.5s infinite linear;
  animation-delay: 0s;
}

.dot-pulse::after {
  box-shadow: 10014px 0 0 -5px;
  animation: dot-pulse-after 1.5s infinite linear;
  animation-delay: 0.5s;
}

@keyframes dot-pulse-before {
  0% {
    box-shadow: 9984px 0 0 -5px;
  }
  30% {
    box-shadow: 9984px 0 0 2px;
  }
  60%, 100% {
    box-shadow: 9984px 0 0 -5px;
  }
}

@keyframes dot-pulse {
  0% {
    box-shadow: 9999px 0 0 -5px;
  }
  30% {
    box-shadow: 9999px 0 0 2px;
  }
  60%, 100% {
    box-shadow: 9999px 0 0 -5px;
  }
}

@keyframes dot-pulse-after {
  0% {
    box-shadow: 10014px 0 0 -5px;
  }
  30% {
    box-shadow: 10014px 0 0 2px;
  }
  60%, 100% {
    box-shadow: 10014px 0 0 -5px;
  }
}

/* Responsive */
@media screen and (max-width: 400px) {
  
  .wp-pbg-popup {
    max-width: 280px;
  }
  
  .wp-pbg-icon img {
    width: 25px;
  }
  
}