* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* TOGGLE BUTTON */

#chatbot-toggle {

    width: 70px;
    height: 70px;

    background: #0a9f47;

    border-radius: 50%;

    position: fixed;

    left: 20px;
    bottom: 20px;

    display: flex;

    justify-content: center;
    align-items: center;

    cursor: pointer;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

    z-index: 9999;

}

#chatbot-toggle img {

    width: 40px;

}

/* CHATBOT */

#chatbot-wrapper {

    width: 350px;
    height: 460px;

    background: #fff;

    position: fixed;

    right: 20px;
    bottom: 100px;

    border-radius: 20px;

    overflow: hidden;

    display: none;

    flex-direction: column;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);

    z-index: 9999;

}

/* HEADER */

#chatbot-header {

    background: #0a9f47;

    color: white;

    padding: 12px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.header-left {

    display: flex;

    align-items: center;

    gap: 10px;

}

#chatbot-logo {

    width: 45px;
    height: 45px;

    border-radius: 50%;

    object-fit: cover;

}

.online-text {

    font-size: 13px;
    opacity: 0.8;

}

#close-chatbot {

    font-size: 28px;

    cursor: pointer;

}

/* BODY */

#chat-body {

    flex: 1;

    overflow-y: auto;

    padding: 15px;

    background: #f7f7f7;

}




/* USER MESSAGE */

.user-message {

    background: #0a9f47;

    color: white;

    padding: 9px 12px;

    border-radius: 15px;

    margin-bottom: 12px;

    margin-left: auto;

    width: fit-content;

    max-width: 85%;
    font-size: 14px;


}

/* OPTIONS */

.options-wrapper {
    margin-bottom: 12px;
}

.chat-option {

    background: #0a9f47;

    color: white;

    border: none;

    padding: 9px 12px;

    border-radius: 25px;

    margin: 3px;
    font-size: 14px;

    cursor: pointer;

    transition: 0.3s;

}

.chat-option:hover {

    opacity: 0.9;

}

/* INPUT */

#dynamic-input {

    width: 100%;

    padding: 14px;

    border: 1px solid #ddd;

    border-radius: 10px;

    margin-top: 10px;

    margin-bottom: 10px;

}

/* BUTTON */

.next-btn {

    background: #0a9f47;

    color: white;

    border: none;

    padding: 12px 18px;

    border-radius: 10px;

    cursor: pointer;

}

/* TYPING */

.typing {

    background: #fff;

    padding: 14px 18px;

    border-radius: 15px;

    width: 70px;

    display: flex;

    gap: 5px;

    align-items: center;

    margin-bottom: 15px;

}

.typing span {

    width: 8px;
    height: 8px;

    background: #999;

    border-radius: 50%;

    animation: blink 1.4s infinite;

}

.typing span:nth-child(2) {

    animation-delay: 0.2s;

}

.typing span:nth-child(3) {

    animation-delay: 0.4s;

}

@keyframes blink {

    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }

}

/* SUMMARY BUTTONS */

.summary-buttons {

    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-top: 15px;

}

.save-btn,
.email-btn,
.end-btn {

    border: none;

    padding: 13px;

    border-radius: 10px;

    cursor: pointer;

    font-weight: 600;

}

.save-btn {

    background: #007bff;

    color: #fff;

}

.email-btn {

    background: #ff9800;

    color: #fff;

}

.end-btn {

    background: #ff3b3b;

    color: #fff;

}

/* BOT ROW */

.bot-row {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-bottom: 12px;

    align-items: center;

}

/* BOT AVATAR */

.bot-avatar {

    width: 25px;
    height: 25px;

    border-radius: 50%;

    object-fit: cover;

    flex-shrink: 0;

}

/* BOT MESSAGE */



.bot-message {

    background: #fff;

    padding: 9px 12px;

    border-radius: 15px;

    width: fit-content;

    max-width: 85%;
    font-size: 14px;

    line-height: 1.5;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);

}

.bot-message a {

background-color: #cc0000;
    color: #fff;
    padding:6px 8px;
    border-radius: 50px;
    text-decoration: none;


}