﻿.chatbot_iconcard {
    position: fixed;
    z-index: 99;
    right: 30px;
    bottom: 70px;
}
    .chatbot_iconcard .chatbot_icon {
        position:relative;
    }
        .chatbot_iconcard .chatbot_icon img {
            max-width: 65px;
            border-radius: 100%;
            position: relative;
            z-index: 99;
            cursor:pointer;
        }
.chatbot_icon_smile {
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}
.chatbot_icon_pray {
    display: none;
}
.chatbot_iconcard .chatbot_icon {
    position: relative;

}
    .chatbot_iconcard .chatbot_icon .chatbot_nam_p {
        border-radius: 50px 0 0 50px;
        border: 1px solid #FF7841;
        background: #FFF;
        padding: 4px 15px;
        padding-right: 38px;
        position: absolute;
        right: 30px;
        top: 12px;
        height: 42px;
        width: 0;
        opacity: 0;
        overflow: hidden;
        transition: width 0.6s ease, opacity 0.4s ease;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
/* p tag default (hidden) */
.chatbot_iconcard .chatbot_icon p {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    align-items: center;
    display: flex;
    height: 42px;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
}
    .chatbot_iconcard .chatbot_icon p span {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        width: 165px;
    }
        .chatbot_iconcard .chatbot_icon p span a {
            color: #222;
            font-size: 11px;
        }
        .namaste_p span {
            text-align: center;
        }
/* expanded state */
.chatbot_iconcard.show-text .chatbot_icon .chatbot_nam_p {
    width: 220px; /* final width */
    opacity: 1;
}
/* stack both p on same place */
.chatbot_iconcard .chatbot_icon p {
    position: absolute;
    left: 15px;
    top: 0px;
    opacity: 0;
}

    /* first text scroll up */
    .chatbot_iconcard .chatbot_icon p:nth-child(1) {
        animation: scrollUp1 12s infinite;
    }

    /* second text scroll up */
    .chatbot_iconcard .chatbot_icon p:nth-child(2) {
        animation: scrollUp2 12s infinite;
    }

/* scroll-up animation first text */
@keyframes scrollUp1 {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    5% {
        transform: translateY(0);
        opacity: 1;
    }

    45% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* scroll-up animation second text */
@keyframes scrollUp2 {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    45% {
        transform: translateY(100%);
        opacity: 0;
    }

    50% {
        transform: translateY(0);
        opacity: 1;
    }

    95% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}


.chatbot_card {
    border-radius: 12px 12px 0px 0px;
    border: 1px solid #FB9649;
    width:360px;
    position: fixed;
    z-index: 999;
    right: 25px;
    bottom: -5px;
    overflow: hidden;
    background:#fff;
    background-image: url('../img/chatbot_background.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.chatbot_header {
    padding:10px 15px;
    background: #FF7841;
    display:flex;
    align-items:center;
    gap:10px;
    color:#fff;
    justify-content:space-between;
}

.chatbot_header_img img {
    max-width:54px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    border-radius:100%;
}
.chatbot_header_img .chatbot_icon_think {
    display: none;
}
.chatbot_content_card {
    padding:0px 15px;
    height:370px;
    overflow-y:scroll;
}
/* Hide scrollbar for Chrome, Edge, Safari */
    .chatbot_content_card::-webkit-scrollbar {
        display: none;
    }

/* Hide scrollbar for Firefox */
.chatbot_content_card {
    scrollbar-width: none;
}
.chatbot_header_subcard {
    display: flex;
    align-items: center;
    gap: 10px;
    color:#fff;
}
    .chatbot_header_subcard h5 {
        margin-top: 2px;
        font-size: 13px;
        margin-bottom: 2px;
    }
    .chatbot_header_subcard p {
        margin: 0;
        font-size: 11px;
        font-weight: 300;
    }
.close_chat {
    max-width:24px;
}
.chat_left_card, .chat_right_card {
    max-width:70%;
}
.chat_right_card {
    display:flex;
    align-items:center;
    justify-content:end;
    margin-left:30%;
}
.chat_answer {
    padding: 10px 20px;
    border-radius: 16px;
    margin: 12px 0px;
    background: #fff;
    border: 1px solid #CDCDCD;
    font-size: 12px;
    font-weight:400;
    width:fit-content;
    word-break:break-word;
}
.chat_question {
    padding: 10px 20px;
    border-radius: 16px;
    margin: 12px 0px;
    background: #CDCDCD;
    border: 1px solid #CDCDCD;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
    cursor: pointer;
    word-break: break-word;
}
.ticket_card {
    display:flex;
    align-items:center;
    gap:10px;
}
.ticket_button {
    background: #fff;
    border-radius: 4px;
    padding: 3px 8px;
    color: #FF7841 !important;
    font-weight: 500;
    font-size: 12px;
}
.active_ticket_card {
    background: #FFF;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.20);
    padding: 5px 15px;
    margin-bottom: 5px;
    display: flex;
    gap: 15px;
    align-items: center;
}
.ticket_details {
    width: calc(100% - 125px);
}
    .ticket_details p {
        font-size: 11px;
        font-weight: 500;
        margin: 4px 0px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }
.active_ticket_btn {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 110px;
    justify-content: space-between;
}
.active_ticket {
    color: #009262 !important;
    font-size: 11px;
}
.close_btn_ticket {
    font-size: 12px;
    padding: 0px 4px;
    border: none;
    background: none;
    color: #717171;
}


@media (max-width: 767px) {
    .chatbot_iconcard .chatbot_icon img {
        max-width: 55px;
    }
    .chatbot_iconcard.show-text .chatbot_icon .chatbot_nam_p {
        top: 7px;
        width: 210px;
        right: 20px;
    }
    .chatbot_iconcard .chatbot_icon p {
        font-size: 12px;
    }
    .chatbot_iconcard .chatbot_icon p span a {
        font-size: 12px;
    }
    .chatbot_iconcard.show-text .chatbot_icon p {
         /* final width */
        opacity: 1;
    }
}
@media (max-width: 479px) {
    .chatbot_iconcard .chatbot_icon img {
        max-width: 50px;
    }
    .chatbot_iconcard {
        right: 20px;
        bottom: 50px;
    }
        .chatbot_iconcard .chatbot_icon p {
            font-size: 11px;
        }
        .chatbot_iconcard .chatbot_icon p span a {
            font-size: 12px;
        }
        .chatbot_iconcard.show-text .chatbot_icon .chatbot_nam_p {
            opacity: 1;
            padding: 2px 8px;
            top: 4px;
            padding-right: 30px;
        }
    .chatbot_card {
        border-radius: 10px 10px 0px 0px;
        width: 100%;
        right: 0;
    }
}