/* buddy-chatbot.css */

.buddy-chatbot-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 4;
  max-width: 154px;
  transition: transform 0.5s;
}

.buddy-chatbot-icon img {
  width: 100%;
  height: 100%;
}

.buddy-chatbot-icon img.desktop {
  display: block;
}

.buddy-chatbot-icon img.mobile {
  display: none;
}

.buddy-chatbot-icon .notify-icon {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 20px;
  height: 20px;
}

.buddy-chatbot-icon.hidden {
  transform: translate(calc(100% + 20px), 0);
}

.buddy-chatbot-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 4;
  opacity: 0;
  transition: opacity 0.5s, visibility 0.5s;
}

.buddy-chatbot-overlay.show {
  opacity: 1;
  visibility: visible !important;
}

.buddy-chatbot-modal {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s, visibility 0.5s;
}

.buddy-chatbot-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

.buddy-chatbot-card {
  width: 100%;
  height: 0;
  max-height: 512px;
  border: none;
  overflow: hidden;
}

@media only screen and (min-width: 992px) {
  .buddy-chatbot-modal {
    width: 70%;
    max-width: 1024px;
    height: 80%;
    max-height: 768px;
    transform: translate(100%, -20px);
  }

  .buddy-chatbot-modal.show {
    visibility: visible !important;
    transform: translate(-20px, -20px);
  }
}

@media only screen and (max-width: 991.5px) {
  .buddy-chatbot-modal {
    width: 100%;
    height: 100%;
    transform: translate(0, 100%);
  }

  .buddy-chatbot-modal.show {
    visibility: visible !important;
    transform: translate(0, 0);
  }

  .buddy-chatbot-iframe {
    border-radius: 16px 16px 0 0;
  }

  .buddy-chatbot-icon img {
    width: 48px;
    height: 48px;
  }

  .buddy-chatbot-icon img.desktop {
    display: none;
  }

  .buddy-chatbot-icon img.mobile {
    display: block;
  }

  .buddy-chatbot-icon.hidden {
    transform: translate(0, calc(100% + 20px));
  }

  .buddy-chatbot-card {
    max-height: 402px;
  }
}