/* ==========================================
WP Site Assistant - Chatbot Styles
========================================== */

/* Dynamic Variables (Default Values) */

:root{

--wpsa-primary:#2271b1;

--wpsa-text:#ffffff;

--wpsa-width:360px;

--wpsa-height:600px;

}

/* ==========================================
Floating Button
========================================== */

#wpsa-button{

position:fixed;

right:20px;

bottom:20px;

width:60px;

height:60px;

display:flex;

align-items:center;

justify-content:center;

border-radius:50%;

background:var(--wpsa-primary);

color:var(--wpsa-text);

font-size:24px;

cursor:pointer;

box-shadow:0 6px 20px rgba(0,0,0,.2);

z-index:99999;

transition:.25s;

}

#wpsa-button:hover{

transform:scale(1.05);

}

/* ==========================================
Chat Window
========================================== */

#wpsa-chatbox{
    display:none;
    flex-direction:column;
    position:fixed;
    right:20px;
    bottom:90px;
    width:var(--wpsa-width);
    height:var(--wpsa-height);
    max-width:95vw;
    background:#fff;
    border:1px solid #ddd;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,.18);
    z-index:99999;
    transition:.25s ease;
}

#wpsa-chatbox.wpsa-open{

display:flex;

}

/* ==========================================
Header
========================================== */

.wpsa-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 20px;
    font-size:16px;
    letter-spacing:.3px;
    background:var(--wpsa-primary);
    color:var(--wpsa-text);
    font-weight:600;
}

#wpsa-close{

cursor:pointer;

font-size:18px;

}

/* ==========================================
Messages
========================================== */

#wpsa-messages{

flex:1;

overflow-y:auto;

padding:15px;

background:#fafafa;

}

/* ==========================================
Welcome Message
========================================== */

.wpsa-welcome{

display:flex;

align-items:flex-start;

gap:12px;

margin-bottom:20px;

}

.wpsa-avatar{

width:42px;

height:42px;

border-radius:50%;

background:var(--wpsa-primary);

color:#fff;

display:flex;

align-items:center;

justify-content:center;

font-size:20px;

flex-shrink:0;

}

.wpsa-welcome-text strong{

display:block;

margin-bottom:6px;

}

.wpsa-welcome-text p{

margin:0;

line-height:1.6;

color:#666;

font-size:14px;

}

.wpsa-user-message{

display:flex;

justify-content:flex-end;

margin-bottom:18px;

}

.wpsa-suggestion-title{

font-size:13px;

font-weight:600;

color:#666;

margin-bottom:10px;

}

#wpsa-messages::-webkit-scrollbar{

width:6px;

}

#wpsa-messages::-webkit-scrollbar-thumb{

background:#d0d0d0;

border-radius:10px;

}

.wpsa-user-message strong{

color:var(--wpsa-primary);

}

.wpsa-bot-message{

background:#ffffff;
border-radius:16px;
padding:16px;
margin-bottom:18px;
border:1px solid #ececec;

}

.wpsa-answer{

line-height:1.7;

}

#wpsa-typing{

color:#777;

font-style:italic;

}

/* ==========================================
Suggestions
========================================== */

#wpsa-suggestions{

padding:10px;

border-top:1px solid #eee;

background:#fff;

}

.wpsa-suggestion{

display:inline-block;

width:auto;

margin:5px;

padding:10px 16px;

border-radius:30px;

border:1px solid #ddd;

background:#fff;

cursor:pointer;

text-align:left;

transition:.2s;

}

.wpsa-suggestion:hover{
    background:var(--wpsa-primary);
    color:#fff;
    border-color:var(--wpsa-primary);
}

/* ==========================================
Lead Form
========================================== */
#wpsa-lead-form{

    display:none;

    padding:18px;

    background:#fff;

    border-top:1px solid #eee;

}

#wpsa-lead-form input{

    width:100%;

    padding:12px 14px;

    margin-bottom:15px;

    border:1px solid #ddd;

    border-radius:10px;

    box-sizing:border-box;

    font-size:14px;

    transition:.2s;

}


#wpsa-lead-form button{

width:100%;

box-sizing:border-box;

margin-bottom:10px;

}

.wpsa-lead-header{

    margin-bottom:18px;

}

.wpsa-lead-header strong{

    display:block;

    font-size:15px;

    margin-bottom:6px;

}

.wpsa-lead-header p{

    margin:0;

    color:#666;

    font-size:13px;

    line-height:1.5;

}

#wpsa-lead-form label{

    display:block;

    margin-bottom:6px;

    font-size:13px;

    font-weight:600;

    color:#555;

}


/* ==========================================
Chat Footer
========================================== */

#wpsa-lead-form input:focus{

    border-color:var(--wpsa-primary);

    outline:none;

    box-shadow:0 0 0 3px rgba(34,113,177,.15);

}

#wpsa-chat-footer{

border-top:1px solid #eee;

background:#fff;

padding:15px;

display:flex;

gap:10px;

align-items:center;

flex-wrap:wrap;

}

#wpsa-input{

flex:1;

box-sizing:border-box;

padding:14px 18px;

margin:0;

border:1px solid #ddd;

border-radius:30px;

outline:none;

font-size:14px;

}

#wpsa-send{

width:48px;

height:48px;

border:none;

background:var(--wpsa-primary);

color:#fff;

cursor:pointer;

border-radius:50%;

font-size:18px;

flex-shrink:0;

transition:.25s;

}

#wpsa-save-lead{

    width:100%;

    padding:14px;

    border:none;

    border-radius:10px;

    background:var(--wpsa-primary);

    color:#fff;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}


#wpsa-new-chat{

width:100%;

padding:12px;

border:none;

border-radius:6px;

cursor:pointer;

background:var(--wpsa-primary);

color:var(--wpsa-text);

transition:.2s;

margin-top: 15px;

}

#wpsa-send:hover,
#wpsa-save-lead:hover,
#wpsa-new-chat:hover{

opacity:.9;

}

/* ==========================================
Success Screen
========================================== */
.wpsa-error{

    color:#d63638;

    font-size:12px;

    margin-top:-10px;

    margin-bottom:12px;

    display:none;

}

.wpsa-input-error{

    border-color:#d63638 !important;

    box-shadow:0 0 0 3px rgba(214,54,56,.15);

}
.wpsa-success-screen{

text-align:center;

padding:40px 20px;

}

.wpsa-success-screen h3{

margin-bottom:15px;

}

/* ==========================================
Mobile
========================================== */

@media (max-width:768px){

#wpsa-chatbox{

left:10px;

right:10px;

bottom:10px;

width:auto;

height:70vh;

}

#wpsa-button{

right:15px;

bottom:15px;

}

}
.wpsa-header-actions{

    display:flex;

    align-items:center;

    gap:10px;

}

#wpsa-end-chat{

    background:rgba(255,255,255,.15);

    color:#fff;

    border:1px solid rgba(255,255,255,.3);

    padding:5px 10px;

    border-radius:20px;

    cursor:pointer;

    font-size:12px;

    transition:.2s;

}

#wpsa-end-chat:hover{

    background:#fff;

    color:var(--wpsa-primary);

}

.wpsa-primary-btn,
.wpsa-secondary-btn{

    padding:10px 18px;

    border-radius:6px;

    border:none;

    cursor:pointer;

    margin:8px 4px 0;

}

.wpsa-primary-btn{

    background:var(--wpsa-primary);

    color:#fff;

}

.wpsa-secondary-btn{

    background:#f5f5f5;

    color:#333;

    border:1px solid #ddd;

}

.wpsa-transcript-message {
    margin-top: 15px;
    padding: 10px 12px;
    background: #f0f7ff;
    border-left: 4px solid var(--wpsa-primary);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.wpsa-stars {
    font-size: 30px;
    cursor: pointer;
}
.chat-h {
    margin-bottom: 0px;
}