/* Bubble */
#chatbot-bubble {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.2s;
}
#chatbot-bubble:hover {
    transform: scale(1.1);
}
#chatbot-bubble img {
    width: 22px;
    height: 22px;
}
#chatbot-bubble .svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    transition: all 0.2s;
}
.svg-1.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
.svg-1.close {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}
.svg-2.open {
    transform: translate(-50%, -50%) rotate(0) scale(1);
    opacity: 1;
}
.svg-2.close {
    transform: translate(-50%, -50%) rotate(-180deg) scale(0);
    opacity: 0;
}
/* Chat box */
#chatbot-box {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    min-width: 400px;
    height: calc(100vh - 150px);
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
    display: flex;
    flex-direction: column;
    z-index: 999999;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    transform-origin: right bottom;
    transform: scale3d(0, 0, 1);
    opacity: 0;
    transition: transform 200ms cubic-bezier(0, 1.2, 1, 1), opacity 150ms ease-out;
}

#chatbot-box.show-chatbot {
    transform: scale3d(1, 1, 1);
    opacity: 1;
}

#chatbot-box.hide-chatbot {
    transform: scale3d(0, 0, 1);
    opacity: 0;
}

.chatbot-header {
    background: rgb(59, 129, 246);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.chatbot-header button {
    background: transparent;
    color: white;
    border: none;
    outline: none;
    font-weight: bold;
    font-size: 20px;
    margin-right: 10px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chatbot-header button:hover {
    cursor: pointer;
}

iframe {
    width: 100%;
    height: 100%;
}
/* responsive */
@media screen and (max-width: 768px) {
    #chatbot-box {
        border-radius: 0;
        width: calc(100vw - 12px);
        height: 100vh;
        inset: 0;
    }
}
