    #chat-icon {
        position: fixed;
        bottom: 20px;
        /* right: 20px; */
        cursor: pointer;
        z-index: 1001;
        display: none;
    }
    #chat-icon.bottom_right{   right: 20px;     display: block;  }
    #chat-icon.bottom_left{   left: 20px;     display: block;  }
    #aye-chat {
        position: fixed;
        bottom: 73px;
        right: 26px;
        width: 410px;
        height: 500px;
        overflow: hidden;
        background-color: white;
        z-index: 1000;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
        border-radius: 3px;
        font-family: "IBM Plex Sans", sans-serif;
    }
    #aye-chat.bottom_left {
        left: 26px;
    }
    #aye-chat.bottom_right {
        right: 26px;
    }
    #chat-header {
        display: flex;
        gap: 10px;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        background-color: #eee;
        position: absolute;
        width: 100%;
        top: 0;
        z-index: 1002;
    }
    #chat-header span {
        font-size: 18px;
        font-weight: 500;
        color: #333;
    }
    #chat-close {
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #333;
        padding: 0px 3px;
    }
    #chat-window {
        height: calc(100% - 132px);
        overflow-y: auto;
        margin-top: 50px;
        padding: 10px 15px;
        scrollbar-width: thin;
    }
    #chat-window::-webkit-scrollbar {
        width: 8px;
    }
    #chat-window::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    #chat-window::-webkit-scrollbar-thumb {
        background-color: #007bff;
        border-radius: 10px;
        border: 2px solid #f1f1f1;
    }
    #chat-footer {
        display: flex;
        align-items: center;
        background-color: #fff;
        position: absolute;
        bottom: 0;
        width: 100%;
        z-index: 1002;
        padding: 15px 20px;
    }
    #chat-input {
        /* width: calc(100% - 70px); */
        width: 100%;
        padding: 8px;
        border: 1px solid #DEDEDE;
        min-height: 44px;
        border-radius: 3px;
        /* margin-right: 10px; */
        resize: none;
        font-family: "IBM Plex Sans", sans-serif;
    }
    #chat-send {
        min-width: 60px;
        padding: 0px 8px;
        color: white;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        font-weight: 500;
    }
    #chat-send:hover {
        background-color: #0056b3;
    }
    .user-message {
        text-align: left;
        margin: 6px 10px;
        padding: 10px 15px;
        background-color: #f0f0f0;
        border-radius: 5px;
        color: #333;
        clear: both;
        position: relative;
        max-width: 75%;
        float: right;
    }
    .user-message::after {
        content: '';
        position: absolute;
        top: 0px;
        right: -10px;
        border-style: solid;
        border-width: 13px 13px 0px 0px;
        border-color: #f0f0f0 transparent transparent transparent;
    }
    .ai-response-block {
        display: flex;
        align-items: flex-start;
        float: left;
        width: 100%;
    }
    .ai-response {
        text-align: left;
        margin: 6px 10px;
        padding: 10px 15px;
        display: inline-block;
        border-radius: 5px;
        max-width: 75%;
        position: relative;
        clear: both;
        color: #fff;
        word-wrap: break-word;
        font-weight:400;
        float: left;
    }
    .ai-response::before {
        content: '';
        position: absolute;
        top: 0px;
        left: -10px;
        border-style: solid;
        border-width: 13px 0 0px 13px;
    }
    .ai-response span {
        color: #fff;
    }
    .btnColor {
        padding: 0 15px;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        display: block;
    }
    button#btn-chat-agent {
        border-radius: 5px;
        margin-left: auto;
        color: #fff;
        font-weight: 500;
    }
    button#btn-chat-agent:hover,
    button#btn-chat-agent:focus,
    button#btn-chat-agent:active {
        color: #fff;
    }
    img.aye-icon {
        font-size: 12px;
        font-weight: 500;
        margin-top: 5px;
        max-width: 34px;
    }
    .ai-response-link {
        color: #fff;
        text-decoration: underline;
        transition: .3s ease;
    }
    .ai-response-link:hover, .ai-response-link:active, .ai-response-link:focus {
        color: #222;
        text-decoration: underline;
    }
    .ai-response-link:visited{ color: #fff; }

    /*AI typing loader*/
    .typing-indicator {
        display: none;
        width: 50px;
        height: 30px;
        position: absolute;
        top: -4px;
        left: 20px;
    }

    .typing-indicator .dot {
        width: 12px;
        height: 12px;
        background-image: linear-gradient(180deg, #EB4C94, #5459D9);
        border-radius: 50%;
        position: absolute;
        animation: typing 1s infinite ease-in-out;
    }

    .typing-indicator .dot:nth-child(1) {
        left: 0;
        animation-delay: 0s;
    }

    .typing-indicator .dot:nth-child(2) {
        left: 18px;
        animation-delay: 0.3s;
    }

    .typing-indicator .dot:nth-child(3) {
        left: 36px;
        animation-delay: 0.6s;
    }

    @keyframes typing {

        0%,
        60%,
        100% {
            transform: translateY(0);
        }

        30% {
            transform: translateY(-10px);
        }
    }

    /*chatbot note*/
    .chatbot-note{ font-size: 13px;  color: #989898;    text-align: center;        display: block;   width: 100%;     position: relative;        margin: 10px 0; }
    .chatbot-note:after, .chatbot-note:before {
        content: "";
        display: inline-block;
        position: absolute;
        width: 20%;
        height: 1px;
        background: #C8C8D4;
        left: 8px;
        top: 8px;
    }
    .chatbot-note:after {
        left: inherit;
        right: 8px;
    }
    .alert-note {
        position: absolute;
        top: -10px;
        color: red;
    }




    /* Media query for smaller screens */
    @media (max-width: 600px) {
        #aye-chat {
            width: 90%;
            height: 92%;
            bottom: 0;

        }

        #chat-header,
        #chat-footer {
            width: 100%;
        }

        #chat-window {
            margin-top: 60px;
            height: calc(100% - 165px);
        }

        #chat-footer {
            bottom: 50px;
        }
        h4.chatbot-note:after, h4.chatbot-note:before{ width: 12%; }
        img.aye-icon{ max-width:28px; }
    }
