#nafah-chatbot{
    position:fixed;
    right:25px;
    bottom:25px;
    z-index:9999;
    font-family:Arial, sans-serif;
}


#nafah-chatbot-toggle{

    width:75px;
    height:75px;

    border-radius:50%;

    border:none;

    background:#8B008B;

    color:white;

    cursor:pointer;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

}


#nafah-chatbot-toggle i{

    font-size:32px;

    line-height:1;

}


#nafah-chatbot-toggle span{

    font-size:11px;

    font-weight:bold;

    margin-top:0px;

}
/* window */

#nafah-chatbot-window{

    display:none;

    width:350px;
    height:480px;

    background:white;

    position:absolute;

    right:0;
    bottom:75px;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 10px 35px rgba(0,0,0,.25);

}



/* header */

.nafah-chat-header{

    background:#8B008B;

    color:white;

    padding:15px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}


.nafah-chat-header small{

    display:block;
    opacity:.8;

}



#nafah-chatbot-close{

    background:none;
    border:none;

    color:white;

    font-size:25px;

    cursor:pointer;

}



/* body */

#nafah-chat-body{

    height:325px;

    padding:15px;

    overflow-y:auto;

    background:#fafafa;

}


#nafah-chat-send i{

    font-size:28px;

}

#nafah-chat-send{

    width:60px;

    border:none;

    background:#ffffff;

    color:#8B008B;

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;

}


#nafah-chat-send i{

    font-size:30px;

    transition:.2s;

}


#nafah-chat-send:hover i{

    transform:scale(1.15);

}
.nafah-message{

    padding:12px 15px;

    border-radius:15px;

    margin-bottom:10px;

    max-width:80%;

    font-size:14px;

}



.nafah-message.bot{

    background:#eee;

}



/* input */

.nafah-chat-input{

    display:flex;

    border-top:1px solid #ddd;

}



.nafah-chat-input input{

    flex:1;

    border:none;

    padding:15px;

    outline:none;

}



.nafah-chat-input button{

    width:55px;

    border:none;

    background:#ffffff;

    color:black;

    cursor:pointer;

}



/* mobile */

@media(max-width:480px){

    #nafah-chatbot{

        right:20px;
        bottom:85px;

    }

    #nafah-chatbot-window{

        width:calc(100vw - 30px);

        right:-5px;

        bottom:75px;

    }

}

.nafah-product-card{

    background:#fff;

    border-radius:14px;

    overflow:hidden;

    margin:10px 0;

    box-shadow:0 5px 18px rgba(0,0,0,.12);

    transition:.2s;

}

.nafah-product-card:hover{

    transform:translateY(-2px);

}

.nafah-product-card img{

    width:100%;

    height:170px;

    object-fit:cover;

}

.nafah-product-body{

    padding:12px;

}

.nafah-product-body h4{

    font-size:15px;

    margin-bottom:8px;

    line-height:1.4;

}

.nafah-price{

    color:#8B008B;

    font-weight:bold;

    font-size:18px;

}

.nafah-message.user{

    background:#8B008B;

    color:#fff;

    margin-left:auto;

    text-align:right;

}
.nafah-btn-whatsapp{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    background:#25D366;

    color:#fff !important;

    padding:10px 18px;

    border-radius:25px;

    text-decoration:none;

    font-size:14px;

    font-weight:bold;

    margin-top:10px;

    cursor:pointer;

}


.nafah-btn-whatsapp:hover{

    background:#1ebe5d;

    color:#fff !important;

}

.nafah-btn-detail{

    display:inline-block;

    margin-top:12px;

    padding:8px 18px;

    background:#8B008B;

    color:#fff !important;

    border-radius:20px;

    text-decoration:none;

    font-size:13px;

    font-weight:bold;

    transition:.3s;

}


.nafah-btn-detail:hover{

    background:#660066;

    color:#fff !important;

}


.nafah-chat-disclaimer{
    padding:6px 14px;
    font-size:10px;
    color:#8a8a8a;
    text-align:center;
    line-height:1.4;
    background:#fafafa;
}
.nafah-message.bot p{
    margin:0 0 10px;
    line-height:1.6;
}

.nafah-message.bot ul,
.nafah-message.bot ol{
    margin:8px 0 12px 22px;
    padding:0;
}

.nafah-message.bot li{
    margin:5px 0;
    line-height:1.6;
}

.nafah-message.bot h4{
    margin:10px 0;
    font-size:15px;
    color:#8B008B;
}

.nafah-message.bot a{
    color:#8B008B;
    text-decoration:none;
    font-weight:600;
}

.nafah-message.bot strong{
    font-weight:700;
}

.nafah-chat-new-chat {
    padding: 0 12px 8px;
}

.nafah-chat-new-chat {
    padding: 5px 10px 10px;
}


#nafah-new-chat {
    display: block !important;
    position: relative;

    left: -10px;

    margin: 4px 0 8px 0;
    padding: 4px 9px;

    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;

    color: #777;
    font-size: 10px;

    cursor: pointer;
    box-sizing: border-box;
}

.icon-svg {
    width: 40px;
    height: 40px;
}

.openai-animation {
    animation: openaiLoop 5s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes openaiLoop {

    /* Mulai kecil */
    0% {
        transform: scale(0.3) rotate(0deg);
    }

    /* Membesar */
    8% {
        transform: scale(1) rotate(360deg);
    }

    /* Diam 10 detik */
    91% {
        transform: scale(1) rotate(360deg);
    }

    /* Mengecil */
    100% {
        transform: scale(0.3) rotate(180deg);
    }
}
/* CSS Document */

