/* CHAT ICON */
#mentor-chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 15px;
    width: 50px;
    height: 50px;
    /* background: #5C2EDE; */
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99999;
}

#mentor-chatbot-icon img {
     width: 100%; 
     display: block;
    }

/* CHAT POPUP */
#mentor-chatbot-box {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: calc(100% - 40px);
    max-width: 460px;
    max-height: 600px;
    height: calc(100vh - 144px);
    background: #F8F9FA;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999999;
    font-family: 'Inter', sans-serif;
}

/* HEADER */
.mentor-chat-header {
    background: #673092;
    padding: 16px 24px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mentor-chat-title {
    flex: 1;
    font-size: 24px;
    font-weight: 700;
}

.mentor-chat-close {
    height: 26px;
    width: 26px;
    font-size: 0;
    text-indent: -9999px;
    cursor: pointer;
    background-image: url(../images/minus-cirlce-icons.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

/* BODY */
#mentor-chat-body {
    padding: 24px;
    overflow-y: auto;
    height: 400px;
    max-height: calc(100% - 190px);
    padding-bottom: 0;
    background-image: url(../images/GS-bg-logo.png);
    background-repeat: no-repeat;
    background-position: center 25px;
    background-size: 160px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}


.mentor-chat-welcome p {
    font-size: 15px;
    margin-bottom: 10px;
}

.mentor-chat-welcome {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: auto;
    margin-right: auto;
}
.question-select-head {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.question-select-head .mentor-chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 100px;
    margin-right: 10px;
}
.question-select-head p{
    font-size: 12px;
    font-weight: 600;
    color: #000;
}

/* Starter Questions */
#mentor-starter-questions button {
    font-size: 12px;
    font-weight: 600;
    color: #444444;
    width: 100%;
    border: 1px solid #D1D5DB;
    padding: 16px;
    padding-right: 30px;
    margin-bottom: 8px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
    background-color: #FFF;
    position: relative;
}
#mentor-starter-questions button::before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    right: 15px;
    left: auto;
    bottom: 15px;
    display: block;
    cursor: pointer;
    background-image: url(../images/external_arrow_icon.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 9px auto;
    min-width: 10px;
}
#mentor-starter-questions button:hover::before{
    filter: brightness(0) saturate(100%) invert(21%) sepia(15%) saturate(7421%) hue-rotate(253deg) brightness(99%) contrast(92%);
}
#mentor-starter-questions button:last-child{
    margin-bottom: 0;
}
#mentor-starter-questions button:hover {
   color: #673092;
   border-color: #673092;
}

/* INPUT BAR */
.mentor-chat-input-bar {
    display: flex;
    border-top: 1px solid #ddd;
    background-color: #FFFFFF;
    box-shadow: 0px -4px 16px 0px #00000014;
    padding: 16px;
    position: relative;
    margin-top: 10px;
}
#mentor-chat-input {
    background-color: #E8EBF0;
    font-size: 18px;
    font-weight: 400;
    color: #444444;
    padding: 22px;
    height: auto;
    padding-right: 46px;
    height: 64px;
}

#mentor-chat-send {
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 32px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
}

#mentor-chat-send:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.mentorbot-message:not(:last-child) {
    margin-bottom: 8px;
}
.mentorbot-message.user-message {
    display: flex;
    flex-direction: column-reverse;
}
.user-message .message-bubble.user-bubble {
    background-color: #E3E3E3;
    padding: 16px 20px;
    border-radius: 12px;
    max-width: 370px;
    width: 100%;
    margin-left: auto;
    position: relative;
}
.user-message .message-bubble .message-text{
    font-size: 15px;
    font-weight: 400;
    color: #363636;
    line-height: 130%;
}
.user-message .message-bubble .message-time{
    font-size: 15px;
    font-weight: 400;
    color: #363636;
}
.user-message .message-bubble.user-bubble::before {
    position: absolute;
    content: "";
    bottom: -26px;
    right: 0;
    left: auto;
    z-index: -1;
    width: 0;
    height: 0;
    border-top: 45px solid #E3E3E3;
    border-left: 45px solid transparent;
}
.message-bubble .message-text h2,
.message-bubble .message-text h3{
    margin-bottom: 10px;
}
.message-bubble .message-text li{
    margin-bottom: 10px;
}
.message-avatar.bot-avatar,
.message-avatar.user-avatar {
    height: 48px;
    width: 48px;
    display: block;
    border-radius: 100px;
    overflow: hidden;
    margin-left: auto;
    position: relative;
    left: 10px;
    margin-top: 6px;
}
.message-avatar.bot-avatar {
    left: -10px;
    right: auto;
    margin-left: unset;
    margin-top: 8px;
}
.message-avatar.bot-avatar img
.message-avatar.user-avatar img{
    display: block;
    object-fit: cover;
}
.mentorbot-message.bot-message {
    display: flex;
    flex-direction: column-reverse;
    margin-right: auto;
}
.message-bubble.bot-bubble{
    background-color: #673092;
    padding: 16px 20px 32px;
    border-radius: 12px;
    max-width: 350px;
    width: 100%;
    position: relative;
    box-shadow: 0px 2px 1px 0px #0000000D;
}
.message-bubble.bot-bubble::before {
    position: absolute;
    content: "";
    bottom: -26px;
    right: auto;
    left: 0;
    z-index: -1;
    width: 0;
    height: 0;
    border-top: 100px solid #673092;
    border-right: 100px solid transparent;
}
.bot-message .message-bubble .message-text{
    font-size: 15px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 130%;
}
.bot-message .message-bubble .message-text * {
    color: #FFF;
}
.bot-message .message-bubble .message-time{
    font-size: 15px;
    font-weight: 400;
    color: #FFFFFF;
}
.mentorbot-message .message-bubble .message-text p,
.mentorbot-message .message-bubble .message-text ul li{
    font-size: inherit;
    line-height: inherit;
}
.mentorbot-typing {
    display: flex;
    align-items: center;
    width: 100%;
}
.typing-bubble .typing-dots {
    padding: 8px 0 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #555;
    border-radius: 50%;
    display: inline-block;
    margin: 0 3px;
    animation: blink 1.4s infinite both;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% {
        opacity: 0.2;
        transform: translateY(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-3px);
    }
    100% {
        opacity: 0.2;
        transform: translateY(0);
    }
}

.sticky-notes-floating-button{
    bottom: 80px;
    right: 20px;
}
.mentorbot-message .message-text ul {
    padding-left: 15px;
}

.mentorbot-message .message-dislike {
    position: absolute;
    right: 20px;
    left: auto;
    bottom: -12px;
}
.message-dislike a.dislike-icon {
    height: 24px;
    width: 24px;
    background-color: #FFF;
    border-radius: 8px;
    background-image: url(../images/dislike.svg);
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    transition: 0.3s ease all;
    cursor: pointer;
}
.message-dislike a.dislike-icon.flagged {
    background-image: url(../images/dislike-fill.svg);
}

@media (max-width: 767px) {
#mentor-chatbot-icon{
    height: 50px;
    width: 50px;
}
#mentor-chatbot-box{
    bottom: 85px;
}
.mentor-chat-header {
    padding: 15px
}
.mentor-chat-header img.mentor-chat-avatar {
    width: 100%;
    max-width: 38px;
}
.mentor-chat-title{
    font-size: 16px;
}
#mentor-chat-body {
    padding: 18px;
    height: 360px;
    padding-bottom: 0;
}
#mentor-starter-questions button{
    padding: 12px;
}
#mentor-chat-input {
    background-color: #E8EBF0;
    font-size: 14px;
    font-weight: 400;
    color: #444444;
    padding: 15px;
    height: auto;
    padding-right: 42px;
    height: 48px;
}
}
