* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
}
body {
	background: #E3F2FD;
}
.chatbot-toggler {
    position: fixed;
    right: 40px;
    bottom: 90px;
    height: 50px;
    width: 50px;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    cursor: pointer;
    background: #1479AF; /* Default button background color */
    border-radius: 50%;
    transition: all 0.2s ease;
}

.chatbot-toggler i {
    font-size: 24px; /* Increase the font size of the icon */
}

.show-chatbot .chatbot-toggler {
	transform: rotate(360deg);
}
.chatbot-toggler span {
	position: absolute;
}
.show-chatbot .chatbot-toggler span:first-child,
.chatbot-toggler span:last-child {
	opacity: 0;
}
.show-chatbot .chatbot-toggler span:last-child {
	opacity: 1;
}
.chatbot {
    z-index: -1;
    position: fixed;
    right: 40px;
    bottom: 150px;
    width: 420px;
    transform: scale(0.5);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    background: #fff;
    border-radius: 15px;
    transform-origin: bottom right;
    box-shadow: 0 0 128px 0 rgba(0,0,0,0.1),
                0 32px 64px -48px rgba(0,0,0,0.5);
    transition: all 0.1s ease;
}

.show-chatbot .chatbot {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chatbot header {
    background: #1479AF; /* Default header background color */
    padding: 16px 0;
    text-align: center;
    position: relative;
}

.chatbot header h2 {
    color: #fff;
    font-size: 1.4rem;
    padding-bottom: 0px;
}

.chatbot header span {
    position: absolute;
    right: 20px;
    top: 50%;
    color: #fff;
    cursor: pointer;
    display: none;
    transform: translateY(-50%);
}

.chatbot .chatbox {
    height: 510px;
    overflow-y: auto;
    padding: 30px 20px 100px;
}

.chatbox .chat {
    display: flex;
}

.chatbox .incoming span {
    height: 32px;
    width: 32px;
    color: #fff;
    align-self: flex-end;
    background: #1479AF; /* Default icon background color */
    text-align: center;
    line-height: 32px;
    border-radius: 4px;
    margin: 0 10px 7px 0;
}

.chatbox .outgoing {
    margin: 20px 0;
    justify-content: flex-end;    
}

.chatbox .chat p {
    color: #fff;
    max-width: 75%;
    white-space: pre-wrap;
    font-size: 0.95rem;
    padding: 12px 16px !important;
    border-radius: 10px 10px 0 10px;
    background: #1479AF; /* Default message background color */
}

.chatbox .chat p.error {
    color: #721c24;
    background: #f8d7da;
}

.chatbox .incoming p {
    color: #000;
    background: #f2f2f2;
    border-radius: 10px 10px 10px 0;    
}

.chatbot .chat-input {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    gap: 5px;
    background: #fff;
    padding: 5px 20px;
    border-top: 1px solid #ccc;
}

.chat-input textarea {
    height: 55px;
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.95rem;
    resize: none;
    padding: 16px 15px 16px 0;
}

.chat-input span {
    align-self: flex-end;
    height: 55px;
    line-height: 55px;
    color: #1479AF;
    font-size: 1.35rem;
    cursor: pointer;
    visibility: hidden;
}

.chat-input textarea:valid ~ span {
    visibility: visible;
}

.bp-logo {
    width: 30px;  /* Adjust the width as needed */
    height: 30px;
    vertical-align: middle;
    margin-right: 10px;  /* Adjust spacing as needed */
}

.typing-indicator {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
}

/* Style for the clear chat icon */
#clear-chat-btn {
    background: none;
    border: none;
    color: white; /* Make the icon white */
    font-size: 1.0rem; /* Increase the size of the icon */
    cursor: pointer;
    position: absolute;
    left: 16px;
    top: 18px;
    padding: 0;
    margin: 0;
}

/* Ensure the header has a relative position to correctly place the absolute icon */
.chatbot header {
    position: relative;
}


@media(max-width: 490px) {
    .chatbot {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    .chatbot .chatbox {
        height: 90%;
    }
    .chatbot header span {
        display: block;
    }
    .clear-chat-btn {
        right: 20px;
    }
    .show-chatbot .chatbot-toggler {
        transform: rotate(0);
    }
    .chatbot-toggler {
	    transition: all 0s ease;
    }
}

