/*
=========================================================
 Sri Sai Solutions Point
 Smart Chatbot CSS
 FINAL VERSION
=========================================================
*/


/* =====================================================
   MAIN CHATBOT
===================================================== */

#ssp-ai-chatbot {

    position: fixed !important;

    right: 90px !important;

    bottom: 20px !important;

    width: auto;

    height: auto;

    z-index: 9997 !important;

    display: block !important;

    visibility: visible !important;

    opacity: 1 !important;

    font-family: Arial, Helvetica, sans-serif;
}


/* =====================================================
   CHAT BUTTON
===================================================== */

#ssp-chatbot-button {

    position: relative !important;

    display: flex !important;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-width: 140px;

    height: 55px;

    padding: 0 18px;

    border: none;

    outline: none;

    cursor: pointer;

    background: #1769e0;

    color: #fff;

    border-radius: 50px;

    font-size: 14px;

    font-weight: 600;

    box-shadow:
        0 5px 20px rgba(0,0,0,.25);

    transition: all .25s ease;

    z-index: 9997 !important;
}


#ssp-chatbot-button:hover {

    transform: translateY(-3px);

    box-shadow:
        0 8px 25px rgba(0,0,0,.30);

}


.ssp-bot-icon {

    font-size: 23px;

}


.ssp-bot-text {

    white-space: nowrap;

}


/* =====================================================
   CHAT WINDOW
===================================================== */

#ssp-chatbot-window {

    position: fixed !important;

    right: 90px !important;

    bottom: 85px !important;

    width: 370px;

    height: 570px;

    background: #fff;

    border-radius: 18px;

    overflow: hidden;

    display: none;

    flex-direction: column;

    box-shadow:
        0 10px 45px rgba(0,0,0,.28);

    border: 1px solid #ddd;

    z-index: 9997 !important;
}


#ssp-chatbot-window.ssp-open {

    display: flex !important;

}


/* =====================================================
   HEADER
===================================================== */

.ssp-chat-header {

    height: 70px;

    min-height: 70px;

    background: #1769e0;

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 10px 14px;

}


.ssp-chat-header-info {

    display: flex;

    align-items: center;

    gap: 10px;

}


.ssp-chat-avatar {

    width: 44px;

    height: 44px;

    background: #fff;

    color: #000;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;

}


.ssp-chat-title {

    font-size: 16px;

    font-weight: 700;

}


.ssp-chat-online {

    font-size: 11px;

    margin-top: 3px;

    opacity: .95;

}


.ssp-chat-close {

    border: none;

    background: transparent;

    color: #fff;

    font-size: 30px;

    cursor: pointer;

    padding: 0 5px;

}


/* =====================================================
   MESSAGES
===================================================== */

#ssp-chat-messages {

    flex: 1;

    overflow-y: auto;

    padding: 15px;

    background: #f5f7fa;

}


.ssp-message {

    display: flex;

    margin-bottom: 12px;

}


.ssp-message.ssp-bot {

    justify-content: flex-start;

}


.ssp-message.ssp-user {

    justify-content: flex-end;

}


.ssp-message-text {

    max-width: 84%;

    padding: 11px 13px;

    font-size: 14px;

    line-height: 1.55;

    border-radius: 13px;

    word-wrap: break-word;

}


.ssp-bot .ssp-message-text {

    background: #fff;

    color: #222;

    border: 1px solid #e3e3e3;

    border-bottom-left-radius: 4px;

}


.ssp-user .ssp-message-text {

    background: #1769e0;

    color: #fff;

    border-bottom-right-radius: 4px;

}


/* =====================================================
   QUICK OPTIONS
===================================================== */

.ssp-quick-options {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 10px;

}


.ssp-quick-options button {

    background: #fff;

    color: #1769e0;

    border: 1px solid #1769e0;

    border-radius: 20px;

    padding: 7px 10px;

    cursor: pointer;

    font-size: 12px;

    transition: .2s;

}


.ssp-quick-options button:hover {

    background: #1769e0;

    color: #fff;

}


/* =====================================================
   TYPING
===================================================== */

#ssp-chat-typing {

    display: none;

    background: #fff;

    padding: 5px 14px;

    align-items: center;

    gap: 3px;

    color: #777;

    font-size: 11px;

}


#ssp-chat-typing span {

    width: 5px;

    height: 5px;

    border-radius: 50%;

    background: #777;

    display: inline-block;

    animation: sspTyping 1.2s infinite;

}


#ssp-chat-typing span:nth-child(2) {

    animation-delay: .15s;

}


#ssp-chat-typing span:nth-child(3) {

    animation-delay: .30s;

}


#ssp-chat-typing small {

    margin-left: 5px;

}


@keyframes sspTyping {

    0%,60%,100% {

        transform: translateY(0);

    }

    30% {

        transform: translateY(-4px);

    }

}


/* =====================================================
   INPUT
===================================================== */

.ssp-chat-input {

    display: flex;

    gap: 8px;

    padding: 10px;

    background: #fff;

    border-top: 1px solid #ddd;

}


#ssp-chat-input {

    flex: 1;

    height: 44px;

    border: 1px solid #ccc;

    border-radius: 25px;

    padding: 0 14px;

    outline: none;

    font-size: 14px;

}


#ssp-chat-input:focus {

    border-color: #1769e0;

}


#ssp-chat-send {

    width: 44px;

    height: 44px;

    border: none;

    border-radius: 50%;

    background: #1769e0;

    color: #fff;

    cursor: pointer;

    font-size: 18px;

}


#ssp-chat-send:hover {

    background: #0e55bd;

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    #ssp-ai-chatbot {

        right: 10px !important;

        bottom: 10px !important;

    }


    #ssp-chatbot-button {

        min-width: 58px !important;

        width: 58px !important;

        height: 58px !important;

        padding: 0 !important;

        border-radius: 50%;

    }


    .ssp-bot-text {

        display: none !important;

    }


    #ssp-chatbot-window {

        position: fixed !important;

        left: 10px !important;

        right: 10px !important;

        bottom: 75px !important;

        width: auto !important;

        height: calc(100vh - 100px);

        max-height: 650px;

        border-radius: 16px;

    }

}

/* =====================================================
   COURSE BUTTONS
===================================================== */

.ssp-chat-course-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 10px;

}


.ssp-course-btn {

    border: 1px solid #1769e0;

    background: #fff;

    color: #1769e0;

    padding: 8px 12px;

    border-radius: 20px;

    cursor: pointer;

    font-size: 13px;

    font-weight: 600;

    transition: all .2s ease;

}


.ssp-course-btn:hover {

    background: #1769e0;

    color: #fff;

    transform: translateY(-1px);

}


.ssp-course-btn:active {

    transform: scale(.97);

}

/* =====================================================
   STEP 4-B
   PROFESSIONAL COURSE BUTTONS
===================================================== */

.ssp-chat-course-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 10px;

    width: 100%;

}


/* -----------------------------------------------------
   COURSE BUTTON
----------------------------------------------------- */

.ssp-course-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

    min-height: 34px;

    padding: 7px 12px;

    margin: 0;

    border: 1px solid #1769e0;

    border-radius: 18px;

    background: #ffffff;

    color: #1769e0;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.2;

    white-space: nowrap;

    cursor: pointer;

    outline: none;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .15s ease,
        box-shadow .2s ease;

}


/* -----------------------------------------------------
   HOVER
----------------------------------------------------- */

.ssp-course-btn:hover {

    background: #1769e0;

    color: #ffffff;

    border-color: #1769e0;

    box-shadow:
        0 3px 8px rgba(23, 105, 224, .25);

    transform: translateY(-1px);

}


/* -----------------------------------------------------
   CLICK / ACTIVE
----------------------------------------------------- */

.ssp-course-btn:active {

    transform: scale(.96);

    box-shadow: none;

}


/* -----------------------------------------------------
   FOCUS
----------------------------------------------------- */

.ssp-course-btn:focus {

    outline: none;

}


/* -----------------------------------------------------
   MOBILE
----------------------------------------------------- */

@media (max-width: 480px) {

    .ssp-chat-course-buttons {

        gap: 6px;

    }

    .ssp-course-btn {

        min-height: 33px;

        padding: 7px 10px;

        font-size: 12px;

    }

}