@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk&display=swap');

#supbotai-chat-btn {
    position: fixed;
    width: 66px;
    height: 66px;
    right: 20px;
    bottom: 20px;
    z-index: 31000;
    animation: supbotai-chat-bounce-anim 3s infinite alternate;
}

#supbotai-chat-restart-btn {
    position: fixed;
    width: 25px;
    height: 25px;
    bottom: 55px;
    right: 87px;
    background: #fff;
    background-image: url('../images/restart-btn.png');
    background-size: 50%;
    background-position: 5.5px 6px;;
    background-repeat: no-repeat;
    border-radius: 50%;
    border: 1px solid #dfdfdf;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: none;
    transform: scale(0.7);
    animation: supbotai-chat-body-bounce-anim 0.3s forwards;
}

.supbotai-chat-restart-btn-clicked {
    transform: scale(0.95) !important;
}

.supbotai-chat-icon-wrapper {
    width: 100%;
    height: 100%;
    background-color: white;
    background-image: url('../images/chat-btn.png');
    background-size: cover;
    border: 1px solid #dfdfdf;
    border-radius: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.supbotai-chat-icon-wrapper:active {
    transform: translateY(4px);
}

#supbotai-chat-btn.open {
    animation: none;
}

#supbotai-chat-btn.open .supbotai-chat-icon-wrapper {
    background-image: url('../images/chat-btn-close.png');
}

@keyframes supbotai-chat-bounce-anim {
    0% { transform: scale(1); }
    90% { transform: scale(1); }
    95% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#supbotai-chat-body {
    right: 20px;
    bottom: 96px;
    position: fixed;
    width: 300px;
    height: 300px;
    overflow-y: scroll;
    scroll-behavior: smooth;
    padding: 15px;
    z-index: 31001;
    background: white;
    border: 1px solid #dfdfdf;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: black;
    transform: scale(0.7);
    animation: supbotai-chat-body-bounce-anim 0.3s forwards;
    display: none;
}

@keyframes supbotai-chat-body-bounce-anim {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.supbotai-chat-response-container {
    margin-left: 35px;
    background: #fff;
}

.supbotai-chat-message {
    position: relative;
    min-height: 15px;
    margin-bottom: 10px;
    margin-left: 35px;
    padding: 10px 15px;
    background: #eee;
    border-radius: 10px;
}

.supbotai-chat-message::before {
    content: "";
    position: absolute;
    top: 1px;
    left: -5px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-right: 10px solid #f0f0f0;
    border-bottom: 10px solid transparent;
}

.supbotai-chat-message::after {
    content: "";
    position: absolute;
    top: 0px;
    left: -35px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #eee;
    background-image: url(../images/chat-btn.png);
    background-size: cover;
}

.supbotai-chat-response-btn {
    background-color: #000;
    color: #fff;
    margin: 0 10px 10px 0;
    padding: 3px 10px;
    border-radius: 10px;
    display: inline-block;
    cursor: pointer;
}

.supbotai-chat-response-btn-selected {
    cursor: default;
}

.supbotai-chat-response-btn-not-selected {
    background-color: #eee;
    color: #eee;
    cursor: default;
}

@keyframes supbotai-chat-blink-anim {
    0% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  
.supbotai-chat-blinking-cursor {
    animation: supbotai-chat-blink-anim 1s infinite;
}