
#chatbot-icon {
    position: fixed;
    bottom: 0px;
    right: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    background-image: url('chatbot-icon.gif');
    background-size:cover;
    background-repeat:no-repeat;
    background-position: center;
    color: transparent;
    display:block;
    margin:30px;
    z-index: 9999;
    margin-bottom: 10px;
}

#chatbot-container {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 360px; 
    min-width: 360px;
    max-width: 360px;
    max-height: 600px; 
    background: linear-gradient(to right, #105294 50%, #3bb9e7 50%);
    background-color:white;
    background-size:100% 50%;
    background-repeat: no-repeat;
    border: 2px solid #000000;
    border-radius: 40px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto; 
    display: none;
    margin-right: 50px;
    z-index: 9999;
    margin-bottom: 50px;
}
@media only screen and (max-width: 600px) {
    #chatbot-container {
        width: 300px;
        min-width: 300px;
        max-width: 300px;
        bottom:40px;
    }
    .chatbot-option-button{
        font-size:10px !important;
    }
    .chatbot-label{
        font-size: 10px !important;
    }
    #chatbot-header{
        height: 60px !important;
    }

}
@media only screen and (max-width: 370px) {
    
    #chatbot-container {
        width: 270px;
        min-width: 270px;
        max-width: 270px;
    }

}
@media only screen and (max-height: 705px){

    .chatbot-option-button{
        font-size:10px !important;
    }
    .chatbot-label{
        font-size: 10px !important;
    }
    #chatbot-messages{
        height: 270px !important;
    }
}

@media only screen and (max-height: 635px){
    #chatbot-messages{
        height: 200px !important;
    }
}
@media only screen and (max-height: 600px){
    #chatbot-messages{
        height: 165px !important;
    }
}
.message {
    /* General styling for any message */
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 30px;
    box-sizing: border-box;
    word-wrap: break-word; 
    font-family: "Open Sans";
    font-size: 16.8px;
}

/* For user messages (aligned to the right) */
.message.user {
    display: flex;           /* Arrange children horizontally */
    align-items: center;     /* Center vertically */
    align-self: flex-end;
    background-color: #e4e3e3;
    color: #333;
    margin-top: 10px;
    max-width: 95%; 
    margin-right: 10px;
}

/* The image container */
.message.user .message-image {
    display: block;
    width: 30px;             /* Set your desired size */
    height: 30px;
    border-radius: 50%;      /* Optional: makes the image circular */
    background-image:url("chat_icon_user.png");
    background-size: contain;
    background-repeat: no-repeat;
    align-self: flex-start;

}


/* The text container; will take up the remaining space */
.message.user .message-text {
    flex: 1;
    margin-right: 10px;
    line-height: 1.55;
}



.message.ai {
    background-color: #104f91;
    color: #fff;
    margin-top: 10px;
    margin-left: 10px;
    max-width:95%;
    display: flex;
    align-items: center;
    align-self:flex-start;
}


/* The text container; will take up the remaining space */
.message.ai .message-text {
    flex: 1;
    margin-left: 10px;
    line-height: 1.55;
}
.message.ai .message-text p{
    
    border-radius: 30px;
    box-sizing: border-box;
    word-wrap: break-word;
    font-family: "Open Sans";
    font-size: 16.8px;
    align-self: flex-start;
    background-color: #104f91;
    color: #fff;
    margin-top:0px;
    margin-bottom:0px;
}
.message.ai .message-text ul{
    
    list-style-position: outside;
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}
.message.ai .message-text a{
    
    text-decoration: underline;
    word-break: break-all;
}
.message.ai .message-text b{
    
    font-size: 16px;
}
.message.ai .message-text a{
    color: white;
}
/* The image container */
.message.ai .message-image {
    display: block;
    width: 30px;             /* Set your desired size */
    height: 30px;
    border-radius: 50%;      /* Optional: makes the image circular */
    background-image:url("chat_icon_ai.png");
    background-size: contain;
    background-repeat: no-repeat;
    align-self: flex-start;
}
#chatbot-input-container {
    display: flex;
    align-items: center;
    padding: 0;  
    background-color: transparent; 
    border-top: none; 
    height: 85px;
    background-color: #ffffff;
}

#chatbot-input {
    width: 100%;
    height: 55px;
    display: flex;
    background-color: #f1f5f8;
    color: black;
    padding: 0px 20px;
    margin: 20px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    margin-top:0px;
}
#chatbot-input-text {
    width: 85%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 18px;
    color: black;
    padding: 0px;

}
#arrow-image{
    height: 30px;
    width: 30px;
    background-image:url('arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    align-self:center;
    margin-left:15px;
}
#chatbot-options {
    text-align: left;
    padding: 10px;
    margin-left:8px;
    display: flex;
    flex-direction: column;
}
.chatbot-option-row{
    text-align:right;
    margin-top:5px;
}
.chatbot-label {
    color: #001742; 
    font-size: 12px;
    
    margin-bottom: 5px;
    margin-right:20px;
    font-family: "Open Sans";
}

.chatbot-option-button {
    height: 55px;
    display: inline-block;
    background-color: #fff; 
    padding: 0px 15px;
    margin: 5px;
    border-color:#40aede;
    border-radius: 50px;
    cursor: pointer;
    font-size: 12px;
    font-family: "Open Sans";
    margin-right: 0px;
    outline:none;
    border-style: double;
}

.chatbot-option-button:hover {
    background: linear-gradient(45deg, #dbe7ff, #d8f8f2);
}
/* Header styling */
#chatbot-header {
    display: flex;
    align-items: center;
    background-color: transparent; 
    text-align: left;
    height: 80px;
    border-bottom:none;
    background-image:url('header-new.png');
    background-size:contain;
    background-repeat: no-repeat;
}

#chatbot-logo {
    width: 90px; 
    height: 80px;
    margin-right: 10px; 
}

#chatbot-title {
    font-size: 20px;
    color: #001742; 
    font-weight: bold;
    margin: 0;
    font-family: "Open Sans";
}

#chatbot-privacy-notice {
    font-family: "Open Sans";
    font-size: 9px;
    line-height: 1.3;
    color: #001742;
    opacity: 0.6;
    text-align: center;
    padding: 8px 12px 6px;
    margin: 0;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 23, 66, 0.15);
}

#chatbot-messages {
    padding-bottom: 15px;
    height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, rgba(82, 78, 78, 0.2), transparent); 
    background-repeat: no-repeat;
    background-size: 100% 40px; 
    border-top-left-radius: 40px; 
    border-top-right-radius: 40px;
    background-color: #ffffff;
}

::placeholder {
    color: rgb(6, 18, 65);
    opacity: 1; /* Firefox */
    font-family: "Open Sans";
  }

.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #2981bd;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    animation: spin 2s linear infinite;
  }
  
    @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
    }

    #chatbot-label-0{
        background-image: url("chatbot-label-0.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin:30px;
        z-index: 9999;
        margin-bottom: 17px;
        height: 67px;
        width: 264px;
        position: fixed;
        bottom: 0px;
        right: 100px;
        cursor: pointer;
    }

    /* Remove scrollbar width but still able to scroll */
    #chatbot-messages {
        -ms-overflow-style: none;  /* Internet Explorer 10+ */
        scrollbar-width: none;  /* Firefox */
    }
    #chatbot-messages::-webkit-scrollbar { 
        display: none;  /* Safari and Chrome */
    }
