.modal.fade.show .modal-dialog {
    padding: 5px 0 5px 5px !important;
}

.modal.show .modal-dialog {
    margin-top: 140px !important;
    padding: 5px !important;
    height: 550px;
}

.modal-body {
    font-size: 14px;
    text-align: center;
    font-weight: 400;
}
.chat-space{
    padding: 10px;
}
.chat-head{
    margin-left: 7rem !important;
    color: #2c2c2c !important;
    font-weight: 500;
    font-size: 16px;
}
.chat-p{
    text-align: center;
    color: #2c2c2c !important;
    font-weight: 400;
    font-size: 14px;
}
.chat-btn {
    margin-left:108px !important ;
}

.modal-open {
    overflow: auto !important;
}

.modal-open .modal {
    overflow-x: auto;
    overflow-y: auto;
}

/* width */
::-webkit-scrollbar {
    width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.popup-header{
    height: 50px !important;
}

.popup-btn {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
}
.chatbot-bg-color{
    background-color: #18cde0;
}
.chatbot-bg-color:focus{
    background-color: #18cde0;
}
.chatbot-bg-color:hover{
    background-color: #18cde0;
}
/* Style for the popup icon/button */
.popup-icon {
    position: fixed;
    bottom: -20px !important;
    right: 20px;
    z-index: 1000;
}

.fix-btn-left {
    position: fixed;
    bottom: -25px;
    left: 20px;
    z-index: 1000;
}

.popup-body {
    padding-top: 5px;
}

/* Style for the popup chat box */
.popup-chat-box {
    display: none;
    position: fixed;
    bottom: 33px;
    right: 6px;
    height:330px !important;
    width: 280px;
    /* background: rgb(255, 255, 255); */
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(89, 58, 213, 1) 0%, rgba(24, 205, 224, 1) 81%);
    color: #fff !important;;
    /* border: 1px solid #cccccc; */
    border-radius: 15px;
    box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}
/* Style for the close button in the popup chat box */
.popup-close-btn {
    position: absolute;
    height: 25px !important;
    width: 25px;
    right: 10px;
    cursor: pointer;
    border: 1px solid;
    border-radius: 50%;
    font-size: 14px !important;
}

.avatar {
    height: 40px !important;
    width: 40px;

}

.unread {
    cursor: pointer;
    background-color: #f4f4f4;
}

.messages-box {
    border-top: 1.5px solid #eeeeee;
    overflow: auto;
    height: 220px !important;
    border-bottom: 1.5px solid #eeeeee;
    padding-top: 20px;

}


.online-circle {
    border-radius: 5rem;
    width: 5rem;
    height: 5rem !important;
}

.messages-title {
    float: right;
    margin: 0px 5px;
    font-size: 12px;
    font-weight: 500;
    font-display: uppercase;
}

.message-img {
    float: right;
    margin: 0px 5px;
}

.message-header {
    text-align: right;
    width: 100%;
    margin-bottom: 0.5rem;
}



.messages-list li.messages-you .messages-title {
    float: left;
}

.messages-list li.messages-you .message-img {
    float: left;
}

.messages-list li.messages-you p {
    float: left;
    text-align: left;
    border-radius: 50px;
    padding: 20px;
    background-color: #e7e6ef;
    color:#515151;
    transition: all cubic-bezier(0.175, 0.885, 0.32, 1.275);

    animation-duration: 1s;
    animation-fill-mode: both;
    -webkit-animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-name: fadeInUp;
    -webkit-animation-name: fadeInUp;
}

.messages-list li.messages-you .message-header {
    text-align: left;
}

.messages-list li p {
    max-width: 78%;
    padding: 5px;
    border: #e6e7e9 1px solid;
}

.messages-list li {
    opacity: 0;
    /* Initially set opacity to 0 */
    transform: translateY(10px);
    /* Move messages down by 10px */
    animation: fadeInUpAnimation 0.5s ease forwards;
    /* Use fadeInUpAnimation with 0.5s duration */
}

@keyframes fadeInUpAnimation {
    from {
        opacity: 0;
        /* Start with opacity 0 */
        transform: translateY(10px);
        /* Start from translateY(10px) */
    }

    to {
        opacity: 1;
        /* End with opacity 1 */
        transform: translateY(0);
        /* End at translateY(0) */
    }
}

.popup-chat-box {
    opacity: 0;
    /* Initially set opacity to 0 */
    transform: translateY(10px);
    /* Move messages down by 10px */
    animation: popupbox 0.5s ease forwards;

}

@keyframes popupbox {
    from {
        opacity: 0;
        /* Start with opacity 0 */
        transform: translateY(10px);
        /* Start from translateY(10px) */
    }

    to {
        opacity: 1;
        /* End with opacity 1 */
        transform: translateY(0);
        /* End at translateY(0) */
    }
}

.messages-list li.messages-me p {
    float: right;
    border-radius: 50px;
    padding: 20px;
    color: #515151;
    border-color: 1px solid #c6c6c6 !important;
}

.ql-editor p {
    font-size: 1rem;
}

.txt-body-header {
    display: flex;
    justify-content: center;
    margin: 10px auto;
    color: #ffffff !important;
    font-weight: 500;
    background-color: transparent;
    font-size: 15px !important;


}

.txt-body {
    padding-top: 10px;
    margin-left: 34%;
    font-weight: 500;
    padding: 2px;
    background-color: white;


}
.txt-link{
    color: #212529;
}
.txt-body-link {
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto !important;
    font-weight: 500;
    font-size: 11px;

}

.txt-link:hover{
    color:#3490dc;
    text-decoration: none;
}
.chat-link{
    color:#212529;
}
.chat-link:hover{
    color:#3490dc;
    text-decoration: none;
}
.minutes {
    font-size: 8px;

}

.messages-p {
    font-size: 11px;
    animation-delay: 2s;
}

.card-body {
    padding: none;
}

#popup-chat-box .card {
    margin:0;
    border: 0;
    border-radius: 0px 0px 15px 15px !important;
}

#input-me {
    font-size: 11px !important;
    transition: border-color 0.3s ease;
    height: 50px !important;
    padding-left: 10px;

    /* Smooth transition for border color change */

}

/* Input style when focused */
#input-me:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    /* Remove default outline */
}

.input_css {
    border-radius: 0px 0px 15px 15px;

    background-color: white;
    border: none;
}


.send {
    border: none;
    padding-right: 10px;
}

.send:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.send:hover {
    opacity: 90%;

}

.popup-minimize-btn {
    position: absolute;
    left: 10px;
    cursor: pointer;
}

#popup-chat-box .arrow {
    border: solid #ffffff;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 4px;
}

.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    margin-left: 5px;
    margin-top: 10px;
}

.loading-spinner {
    display: inline-block;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #000;
    border-radius: 50%;
    width: 24px;
    height: 24px !important;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 350px) {
    .popup-chat-box
    {
        width:280px !important;
    }

}
