/*--------Chat Container CSS-------------------*/


/* Styling for the feedback button */
.feedback-button {
     height: 50px;
     width :fit-content;
    margin-left: 10px;
    background-color: #4729a3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 14px; /* Optional: adjust text size */
}

.feedback-button:hover {
    background-color: #583bb7; /* Slightly lighter shade on hover */
}

.disabled {
    pointer-events: none; /* Prevents clicking */
    opacity: 0.5; /* Makes it look disabled */
}
.flow {
    position: relative;
    font-family: 'Open Sans', sans-serif;
    width: 420px;
    height: 600px;
    overflow-y: hidden;
    overflow-x: hidden;
    float: right;
    margin-right: 22px;
    margin-top: 15%;
    border-radius: 10px;
    background-color: #f3f9fc;
    box-shadow:0 4px 6px 0 rgb(177 156 255 / 59%);
    padding: 20px;
}
.flow.flowchat-active{background-image: linear-gradient(180deg, #d1c5f1, #fefeff)}
@media only screen and (max-width:600px) {
    .flow {
        font-family: 'Open Sans', sans-serif;
        width: 100%;
        height: 100%;
        overflow-y: hidden;
        overflow-x: hidden;
        position: relative;
        margin-top: 0;
        border-radius: 0;
        top: 0;
        left: 0;
        /*background-color: #515365;*/
    }
    .toggle-button{padding: 13px 7px !important;font-size: 14px;}
    .send-button{margin-right: 5px !important;}
    #btn-submit {
        width: 90%;
    }
    #btn-submit:hover {
        width: 90%;
    }
    .footer-chat {
        display: none;
    }
    .chat-popup {
        left: 40px;
        margin-right: 0;
    }
}


/*--------Chat Container CSS Ends-------------------*/


/*--------For Chat Icon-------------------------*/
.chat-popup{    margin-top: 80px;}

/*.chat-popup {
    position: fixed;
    right: 0;
    bottom: 0;
    margin-bottom:140px;
    margin-right: 50px;
    padding-bottom: 50px;
}*/
.chat-popup .img-bx img{width:150px;height: 150px; margin-right: 10px;}
.img-bx {
    display: flex; /* Enables flexbox */
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
    height: 100%; /* Set height of the div */
    width: 100%; /* Optional, if needed to fill the parent container */
    background-color: #f8f8f8; /* Optional, for better visualization */
}

.img-bx img {
    max-width: 100%; /* Ensures the image doesn't overflow */
    max-height: 100%; /* Ensures the image stays within the container */
    object-fit: contain; /* Scales the image proportionally */
}

.chat-popup h3 {
    text-align: center;
}

.chat-popup input {
    text-align: center;
    padding: 8px;
    border-radius: 15px;
    width: 95%;
    outline: none;
    border: none;
    margin-top: 20px;
    margin-left: 10px;
    margin-right: 10px;
}

p#closechat{
    color: #29136c;
    font-size: 30px;
    float: right;
    margin-top: -36px;
}

.chat-head p#closechat{ margin-top: 0;}

#flowchat {
    position: fixed;
    right:138px;
    bottom: 0;
    margin-bottom:14px;
}
.chat_icon {
    position: fixed;
    bottom: 0;
    width: 100%;
    right: 0px;
    z-index: 1100;
    padding: 0;
    font-size: 15px;
    color: #0080ff;
    cursor: pointer;
}

/*.chat_icon {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index:1052    ;
    cursor: pointer;
    user-select: none;
}*/
.chat_icon img#icon{height: 130px !important;width: initial!important;}

/*-------------For chat Icon Ends------------*/


/*-------------Inner Elements CSS---------------------------------------*/

ul.chat-window {
    width: 100%; /* Ensure it takes full width */
    height: 300px;
    margin-top: 0;
    overflow-y: auto;
    padding: 20px;
    list-style: none;
    margin: 0;
    box-sizing: border-box;
    position: relative; /* Ensure it is positioned relative to the flow */
    z-index: 1; /* Lower z-index than the iframe */
}

#search-iframe {
    position: absolute; /* Position it absolutely */
    top: 0; /* Align to the top */
    left: 0; /* Align to the left */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    border: none; /* Remove border */
    z-index: 1000; /* Higher z-index to overlay */
}



ul.chat-window>li .text {
    box-sizing: border-box;
    margin-bottom: 10px;
    border-radius: 10px;
    padding: 10px 15px;
    line-height: 20px;
}

ul.chat-window>li.bot .text {
    background-color: #a591e0;
    color: #fff;
    float: left;
}

ul.chat-window>li {
    clear: both;
    max-width: 80%;
    box-sizing: border-box;
    white-space: pre-wrap;
}

ul.chat-window>li.user {
    float: right;
}

ul.chat-window>li.bot {
    float: left;
}

ul.chat-window>li.user .text {
    background-color: #4729a3;
color: #ffff;
}

ul.chat-window>li.options {
    margin-top: 10px;
    list-style: none;
    max-width: 100%;
    width: 100%;
    float: left;
    text-align: right;
}

ul.chat-window>li.options>ul {
    margin-top: 0;
    padding: 0;
    list-style: none;
    margin-top: 10px;
}


ul.chat-window>li.options>ul>li {
    border-radius: 10px;
    padding: 5px 10px;
    border: 1px solid #4729a3;
    display: inline-block;
    cursor: pointer;
    color: #fff;
    margin-left: 10px;
    margin-bottom: 10px;
    background: #4729a3;
}

.typing-indicator {
    background-color: #E6E7ED;
    will-change: transform;
    width: auto;
    border-radius: 50px;
    padding: 10px;
    display: table;
    margin: 0;
    margin-left: 10px;
    position: relative;
    -webkit-animation: 2s bulge infinite ease-out;
    animation: 2s bulge infinite ease-out;
}

.typing-indicator::before,
.typing-indicator::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -2px;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background-color: #E6E7ED;
}

.typing-indicator::after {
    height: 10px;
    width: 10px;
    left: -10px;
    bottom: -10px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    float: left;
    margin: 0 1px;
    background-color: #9E9EA1;
    display: block;
    border-radius: 50%;
    opacity: 0.4;
}

.typing-indicator span:nth-of-type(1) {
    -webkit-animation: 1s blink infinite 0.3333s;
    animation: 1s blink infinite 0.3333s;
}

.typing-indicator span:nth-of-type(2) {
    -webkit-animation: 1s blink infinite 0.6666s;
    animation: 1s blink infinite 0.6666s;
}

.typing-indicator span:nth-of-type(3) {
    -webkit-animation: 1s blink infinite 0.9999s;
    animation: 1s blink infinite 0.9999s;
}

@-webkit-keyframes blink {
    50% {
        opacity: 1;
    }
}

@keyframes blink {
    50% {
        opacity: 1;
    }
}

@-webkit-keyframes bulge {
    50% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }
}

@keyframes bulge {
    50% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }
}


/*---------------Inner Element CSS Ends-------------------------------------*/


/*-----------First Page Form for user info----------------------*/

.form-container h4{    line-height:26px;
    font-weight: bold;
    text-align: center;
    font-size: 26px;
    margin-top: 50px;}

#btn-submit {
    background-color: #9374e9;
    text-align: center;
    padding: 18px;
    border-radius: 15px;
    width: 95%;
    outline: none;
    border: none;
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
    color: #ffff;
}

#btn-submit:hover {
    background-color: #967fd7;
   /* text-align: center;
    border-radius: 15px;
    width: 95%;
    outline: none;
    border: none;
    margin-left: 10px;
    margin-right: 10px;
    color: #ffff;*/
}


/*---------------First Page Form for user info------------------------------------*/


/*-----------Chat window scroll bar--------------*/

.chat-window::-webkit-scrollbar {
    width: 0.3em;
}

.chat-window::-webkit-scrollbar-track {
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
}

.chat-window::-webkit-scrollbar-thumb {
    background-color: darkgrey;
    outline: 1px solid slategrey;
}

p#closechatinside{margin-top: 0px;color: #29136c;font-size: 30px;}
.flow .mini-logo{width: 100px;margin-top: -10px;margin-left: -27px;}
.chat-head{margin-bottom: 10px;display: flex;justify-content: space-between;direction: rtl;}

/*-------------Chat window scroll bar css Ends---------------*/