#scs-chat-button{
position:fixed;
z-index:9999;
cursor:pointer;
transition:all .2s ease;
}

#scs-chat-button img{
display:block;
height:auto;
}

/* Popup */

#scs-popup{
display:none;
position:fixed;
background:#ffffff;
border-radius:12px;
box-shadow:0 15px 40px rgba(0,0,0,0.25);
padding:18px;
z-index:10000;
font-family:system-ui;
max-width:95%;
}

/* Header */

.scs-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:10px;
border-bottom:1px solid #f1f1f1;
padding-bottom:8px;
}

.scs-header-title{
font-size:18px;
font-weight:600;
}

.scs-header-sub{
font-size:13px;
color:#777;
}

#scs-close{
font-size:18px;
cursor:pointer;
color:#444;
line-height:1;
}

/* =========================
   STATUS (IMPROVED)
========================= */

.scs-status{
display:flex;
align-items:flex-start; /* FIX for multi-line */
font-size:13px;
margin-bottom:10px;
line-height:1.4;
}

.scs-status-dot{
width:7px;
height:7px;
background:#28c76f;
border-radius:50%;
margin-right:6px;
margin-top:4px; /* align with text */
flex-shrink:0;
}

/* Subtext (NEW) */

#scs-status small{
display:block;
font-size:11px;
color:#777;
margin-top:2px;
line-height:1.3;
}

/* Inputs */

#scs-popup input,
#scs-popup textarea{
width:100%;
padding:10px;
margin-bottom:8px;
border:1px solid #ddd;
border-radius:8px;
font-size:14px;
box-sizing:border-box;
transition:border .2s;
}

#scs-popup input:focus,
#scs-popup textarea:focus{
border-color:#25D366;
outline:none;
}

#scs-popup textarea{
min-height:90px;
resize:vertical;
}

/* Button */

#scs-popup button{
width:100%;
background:#25D366;
color:#fff;
border:none;
padding:11px;
font-size:15px;
border-radius:8px;
cursor:pointer;
font-weight:600;
transition:all .2s;
}

#scs-popup button:hover{
background:#1ebe5d;
transform:translateY(-1px);
}

/* Footer */

.scs-footer{
font-size:11px;
color:#777;
margin-top:8px;
text-align:center;
line-height:1.4;
}
/* Status Layout Fix */
#scs-status{
display:flex;
align-items:flex-start;
gap:6px;
flex-wrap:wrap;
}

#scs-status strong{
font-weight:600;
margin-right:4px;
}

/* Sub text */
.scs-status-sub{
width:100%;
font-size:11px;
color:#777;
margin-left:13px;
margin-top:2px;
}
/* =========================
   MOBILE IMPROVEMENTS
========================= */

@media(max-width:768px){

#scs-popup{
width:92%!important;
left:4%!important;
right:4%!important;
bottom:95px!important;
}

/* Use dynamic values from PHP */
#scs-chat-button img{
width:var(--scs-mobile-size,65px);
}

#scs-chat-button{
bottom:var(--scs-mobile-bottom,95px);
right:var(--scs-mobile-side,15px);
}

}