#buy-close i{
    float: right;
}
#related-suggestions{
    flex-direction: column;
    position: absolute;
    bottom: 15vh;
    width: 80%;
    border-radius: 20px 20px 20px 0;
    background: rgb(241, 241, 241);
    padding: 10px 15px;
}
#faq-close{
    width: 90%;
}
#faq-close i{
    
    float: right;
}
#related-suggestions button{
    margin-top : 6px;
    padding : 6px 10px;
    border-radius : 20px 20px 20px 0px;
    border : 1px solid #ccc;
    background : #fff8dc;
    cursor : pointer;
    width: 80%;
    text-align: left;
    font-size: 11px;
    margin: 2px;
}
#typing{
    font-style: italic;
    font-size: 14px;
    white-space: nowrap;
}

#typing .wave span {
    display: inline-block;
    animation: wave-animation 1.5s infinite;
    }

    @keyframes wave-animation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
    }

    /* Làm từng chữ cái nhảy theo thứ tự */
#typing .wave span:nth-child(1) { animation-delay: 0s; }
#typing .wave span:nth-child(2) { animation-delay: 0.1s; }
#typing .wave span:nth-child(3) { animation-delay: 0.2s; }
#typing .wave span:nth-child(4) { animation-delay: 0.3s; }
#typing .wave span:nth-child(5) { animation-delay: 0.4s; }
#typing .wave span:nth-child(6) { animation-delay: 0.5s; }
#typing .wave span:nth-child(7) { animation-delay: 0.6s; }
#typing .wave span:nth-child(8) { animation-delay: 0.7s; }
#typing .wave span:nth-child(9) { animation-delay: 0.8s; }
#typing .wave span:nth-child(10) { animation-delay: 0.9s; }

#chat-toggle{
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background-color: white;
    border-radius: 50%;
}
#chat-messages{
    height: 80%; 
    overflow-y: auto; 
    border-bottom: 1px solid #ddd; 
    margin-bottom: 10px;
}
#img_chat_bot{
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.hidden_form{
    display:none;
}
.show_form{
    display: block;
}
.header_chat_bot {
    margin-bottom: 5px;
}
.header_chat_bot button{
    float: right;
    border: 0px solid;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    background-color: white;
}

body:has(#toggle-overlay:checked) {
    overflow: hidden;
}

#chat-widget{
    position: fixed;
    bottom: 10px;
    right: 20px;
    width: 400px;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    flex-direction: column;
    z-index: 99999999;
    border-radius: 15px;
    height: 70vh;
}
.chatbot_send_group {
    display: flex;
}
.chatbot_send_group input {
    height: 50px;
    border: 0px solid;
    padding: 5px;
    width: 100%;
    background-color: white;
}
.chatbot_send_group button{
    height: 50px;
    border: 0px solid;
    background-color: white;
}
/* Hide the element by default */
.hidden_ai_bot {
    display: none;
    /* Animation */
    animation: slideDown 1s ease-out forwards;
}

/* When shown, apply animation */
.show_ai_bot {
    display: flex;

    /* Animation */
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(100%);
        opacity: 1;
    }
    to {
        transform: translateY(0);
        opacity: 0;
    }
}

@media only screen and (max-width: 600px)  {
    #chat-widget {
        bottom: 0;
        right: 0;
        width: 95vw;
        height: 95vh;
        border-radius: 0px;
    }
    body:has(#chat-widget.show_ai_bot) {
        overflow: hidden;
    }
}