@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #fff;
    font-family: 'Century Gothic';
    font-size: 0.9rem;
}

.chatbot__button {
    position: fixed;
    bottom: 35px;
    right: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #897ee6;
    color: #fff;
    border: none;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.chatbot__button span {
    position: absolute;
}

.show-chatbot .chatbot__button span:first-child,
.chatbot__button span:last-child {
    opacity: 0;
}

.show-chatbot .chatbot__button span:last-child {
    opacity: 1;
}

.chatbot {
    position: fixed;
    bottom: 100px;
    right: 40px;
    width: 420px;
    background-color: #fff;
    border-radius: 15px;
    /* box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1) 0 32px 64px -48px rgba(0, 0, 0, 0.5); */
    transform: scale(0.5);
    transition: transform 0.3s ease;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.show-chatbot .chatbot {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.chatbot__header {
    position: relative;
    background-color: #fff;
    text-align: center;
    padding: 16px 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.chatbot__header span {
    display: none;
    position: absolute;
    top: 50%;
    right: 20px;
    color: #202020;
    transform: translateY(-50%);
    cursor: pointer;
}

.chatbox__title {
    /* font-size: 0.8rem; */
    color: #000;
}

.chatbot__box {
    height: 450px; /*510*/
    overflow-y: auto;
    padding: 30px 20px 10px; /*30px 20px 100px*/
}

.chatbot__chat {
    display: flex;
}

.chatbot__chat p {
    max-width: 75%;
    font-size: 0.9rem;
    white-space: pre-wrap;
    color: #202020;
    /* background: rgb(226, 221, 221); */
    border-radius: 10px 10px 0 10px;
    padding: 12px 16px;
}

.chatbot__chat p.error {
    color: #721c24;
    background: #f8d7da;
}

.incoming p {
    color: #202020;
    /* background: rgb(226, 221, 221); */
    border-radius: 10px 10px 10px 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* ClientInfoForm */
#ClientInfoForm {
    padding: 12px 16px;
    color: #202020;
    /* background: rgb(226, 221, 221); */
    border-radius: 10px 10px 10px 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#ClientInfoForm input {
    border: none;
    /* background: rgb(226, 221, 221); */
    border-bottom: 1px solid black;
    transition: none;
}

input:focus {
    outline: none;
}




.incoming span {
    width: 32px;
    height: 32px;
    line-height: 32px;
    color: #897ee6;
    /* background-color: #227ebb; */
    border-radius: 4px;
    text-align: center;
    align-self: flex-end;
    margin: 0 10px 7px 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    border-radius: 50%;

}

.outgoing {
    justify-content: flex-end;
    margin: 20px 0;
}

.incoming {
    margin: 20px 0;
}

.chatbot__input-box {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    gap: 5px;
    align-items: center;
    border-top: 1px solid #227ebb;
    background: #f3f7f8;
    padding: 5px 20px;
}


.chatbot__textarea {
    width: 100%;
    min-height: 55px;
    max-height: 180px;
    font-size: 0.95rem;
    padding: 16px 15px 16px 0;
    color: #202020;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
}

.chatbot__textarea::placeholder {
    font-family: 'Poppins', sans-serif;
}

.chatbot__input-box span {
    font-size: 1.75rem;
    color: #202020;
    cursor: pointer;
    visibility: hidden;
}

.chatbot__textarea:valid~span {
    visibility: visible;
}

@media (max-width: 490px) {
    .chatbot {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .chatbot__box {
        height: 90%;
    }

    .chatbot__header span {
        display: inline;
    }
}

/* Submit Button */
#submit {
    font-family: 'Century Gothic';
    color: #000;
    background-color: #bdbbd5;
    padding: 5px;
    border-radius: 20px;
    border: none;
    width: 170px;
}

#submit:hover{
    cursor: pointer;
    background-color: #a6a2c9;
}