/* Chatbot toggler button */
.chatbot-toggler {
    position: fixed;
    bottom: 35px;
    right: 20px;
    background-color: #007bff00;
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
z-index: 99999999;
}

.chatbot-toggler:hover,
.chatbot-toggler:active,
.chatbot-toggler:focus {
    background-color: #007bff00 !important;
    border: 0x solid #007bff00;
}

/* Chatbot container */
.chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-height: 600px;
    background: #fff;
    border-radius: 25px;
    border: 1.5px solid #000000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
z-index: 99999999;
}
.chatbox::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px #ffffff0;
	background-color: #ffffff00;
}

.chatbox::-webkit-scrollbar
{
	width: 5px;
	background-color: #ffffff00;
}

.chatbox::-webkit-scrollbar-thumb
{
	background-color: #ffffff00;
	border: 2px solid #ffffff00;
}

.chatbot .close-btn {
    cursor: pointer;
    margin: -54px 4px 0 -16px;
}

/* Chatbot header */
.chatbot header {
    padding: 10px;
    background: #0C0D3B;
    border-radius: 22px 22px 20px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot header h2 {
    text-align: center;
    flex: 1;
    color: #fff;
    margin: 25px 0 10px 0;
    font-size: 24px;
}

/* Chat messages */
.chatbox {
    list-style: none;
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
    margin-left: 0px !important;
    margin-bottom: 0px !important;
}

/* Chat incoming and outgoing */
.chat {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.chat.incoming span {
    margin-right: 10px;
    color: #007bff;
}

.chat.incoming p {
    margin: 3px 0 23px 0;
}

.chat.outgoing {
    justify-content: flex-end;
    color: #333;
    width: 74%;
    float: right;
    margin-top: 15px;
}

.faq-options {
    display: flex;
    flex-direction: column;
    margin-top: 0px;
    width: 74%;
    float: right;
}

.faq-options .faq-option {
    background: #E9EBFA;
    color: #0C0D3B;
    border: 1px solid #0C0D3B;
    border-radius: 10px !important;
    padding: 10px;
    margin-top: 5px;
    cursor: pointer;
}

/* Chatbot visible state */
.show-chatbot .chatbot {
    display: flex;
}

/* Quick replies */
.quick-replies {
    display: flex;
    gap: 10px;
    margin-top: -7px;
    margin-left: 35px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.quick-replies .quick-reply {
    background-color: #E9EBFA;
    color: #0C0D3B;
    border: 1px solid #0C0D3B;
    border-radius: 10px !important;
    padding: 8px 16px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.quick-reply:hover,
.faq-options .faq-option:hover {
    background-color: #0C0D3B;
    color: #fff;
}

.quick-reply:active {
    transform: scale(0.95);
    background-color: #0C0D3B;
}

.quick-reply:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Incoming messages */
.incoming {
    display: flex;
    justify-content: flex-start;
    width: 90%;
    position: relative;
    /* Needed for positioning the arrow */
}

.incoming p {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #0C0D3B;
    background-color: #f9f9f9;
    border: 1px solid #000000;
    border-radius: 8px;
    padding: 10px 15px !important;
    margin: 10px auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    position: relative;
    /* For arrow positioning */
}

/* Links inside messages */
.incoming p a {
    color: #007BFF;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.incoming p a:hover {
    color: #0056b3;
}

/* Highlight bold text */
.incoming p strong {
    color: #000;
    font-weight: bold;
}

/* Lists in messages */
.incoming p ul,
.incoming p ol {
    margin: 10px 0;
    padding-left: 20px;
}

.incoming p li {
    margin-bottom: 5px;
}

/* Styles for the message bubble */
.chat.outgoing p {
    background-color: #0c0d3bf0;
    color: #fff;
    border-radius: 10px;
    padding: 3px 14px !important;
    max-width: 100%;
    word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .chatbot {
        width: 90%;
        right: 5%;
        bottom: 100px;
    }

    .chatbot-toggler {
        bottom: 63px;
        right: 10px;
        padding: 8px;
    }

    .incoming p {
        max-width: 100%;
        width: 95%;
        font-size: 13px;
        padding: 8px 10px;
    }

    .quick-replies {
        margin-left: 35px;
    }

    .quick-reply {
        font-size: 12px;
        padding: 6px 12px;
    }

    .chatbox {
        max-height: 400px;
    }
}

/* Style for the top-center image */
.chatbot-top-image {
    position: absolute;
    top: -46px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}