


#ispd-chatbox{
  position:fixed;
  bottom:20px;
  right:20px;
  width:400px;
  max-width:90vw;
  height:600px;
  max-height:85vh;
  background:#fff;
  display:flex;
  flex-direction:column;
  font-family:Arial,sans-serif;
  overflow:hidden;
  z-index:9999;
}

/* Fullscreen on small devices: take entire viewport width */
@media (max-width: 768px){
  #ispd-chatbox{
    top:0;
    left:0;
    right:0;
    bottom:0;
    width:100vw;
    height:100dvh;
    max-width:100vw;
    max-height:100dvh;
    margin:0;
    padding:0;
  }
}


/* Fullscreen on small devices */
@media (max-width: 768px){
  
#ispd-chatbox{
  position:fixed;
  bottom:20px;
  right:20px;
  width:400px;
  max-width:90vw;
  height:600px;
  max-height:85vh;
  background:#fff;
  display:flex;
  flex-direction:column;
  font-family:Arial,sans-serif;
  overflow:hidden;
  z-index:9999;
}

/* Fullscreen on small devices: take entire viewport width */
@media (max-width: 768px){
  #ispd-chatbox{
    top:0;
    left:0;
    right:0;
    bottom:0;
    width:100vw;
    height:100dvh;
    max-width:100vw;
    max-height:100dvh;
    margin:0;
    padding:0;
  }
}

}


/* Fullscreen on small devices */
@media (max-width: 768px){
  

#ispd-chatbox{
  position:fixed;
  bottom:20px;
  right:20px;
  width:400px;
  max-width:90vw;
  height:600px;
  max-height:85vh;
  background:#fff;
  display:flex;
  flex-direction:column;
  font-family:Arial,sans-serif;
  overflow:hidden;
  z-index:9999;
}

/* Fullscreen on small devices: take entire viewport width */
@media (max-width: 768px){
  #ispd-chatbox{
    top:0;
    left:0;
    right:0;
    bottom:0;
    width:100vw;
    height:100dvh;
    max-width:100vw;
    max-height:100dvh;
    margin:0;
    padding:0;
  }
}


/* Fullscreen on small devices */
@media (max-width: 768px){
  
#ispd-chatbox{
  position:fixed;
  bottom:20px;
  right:20px;
  width:400px;
  max-width:90vw;
  height:600px;
  max-height:85vh;
  background:#fff;
  display:flex;
  flex-direction:column;
  font-family:Arial,sans-serif;
  overflow:hidden;
  z-index:9999;
}

/* Fullscreen on small devices: take entire viewport width */
@media (max-width: 768px){
  #ispd-chatbox{
    top:0;
    left:0;
    right:0;
    bottom:0;
    width:100vw;
    height:100dvh;
    max-width:100vw;
    max-height:100dvh;
    margin:0;
    padding:0;
  }
}

}

}

@media(max-width:600px){


#ispd-chatbox{
  position:fixed;
  bottom:20px;
  right:20px;
  width:400px;
  max-width:90vw;
  height:600px;
  max-height:85vh;
  background:#fff;
  display:flex;
  flex-direction:column;
  font-family:Arial,sans-serif;
  overflow:hidden;
  z-index:9999;
}

/* Fullscreen on small devices: take entire viewport width */
@media (max-width: 768px){
  #ispd-chatbox{
    top:0;
    left:0;
    right:0;
    bottom:0;
    width:100vw;
    height:100dvh;
    max-width:100vw;
    max-height:100dvh;
    margin:0;
    padding:0;
  }
}


/* Fullscreen on small devices */
@media (max-width: 768px){
  
#ispd-chatbox{
  position:fixed;
  bottom:20px;
  right:20px;
  width:400px;
  max-width:90vw;
  height:600px;
  max-height:85vh;
  background:#fff;
  display:flex;
  flex-direction:column;
  font-family:Arial,sans-serif;
  overflow:hidden;
  z-index:9999;
}

/* Fullscreen on small devices: take entire viewport width */
@media (max-width: 768px){
  #ispd-chatbox{
    top:0;
    left:0;
    right:0;
    bottom:0;
    width:100vw;
    height:100dvh;
    max-width:100vw;
    max-height:100dvh;
    margin:0;
    padding:0;
  }
}

}


/* Fullscreen on small devices */
@media (max-width: 768px){
  

#ispd-chatbox{
  position:fixed;
  bottom:20px;
  right:20px;
  width:400px;
  max-width:90vw;
  height:600px;
  max-height:85vh;
  background:#fff;
  display:flex;
  flex-direction:column;
  font-family:Arial,sans-serif;
  overflow:hidden;
  z-index:9999;
}

/* Fullscreen on small devices: take entire viewport width */
@media (max-width: 768px){
  #ispd-chatbox{
    top:0;
    left:0;
    right:0;
    bottom:0;
    width:100vw;
    height:100dvh;
    max-width:100vw;
    max-height:100dvh;
    margin:0;
    padding:0;
  }
}


/* Fullscreen on small devices */
@media (max-width: 768px){
  
#ispd-chatbox{
  position:fixed;
  bottom:20px;
  right:20px;
  width:400px;
  max-width:90vw;
  height:600px;
  max-height:85vh;
  background:#fff;
  display:flex;
  flex-direction:column;
  font-family:Arial,sans-serif;
  overflow:hidden;
  z-index:9999;
}

/* Fullscreen on small devices: take entire viewport width */
@media (max-width: 768px){
  #ispd-chatbox{
    top:0;
    left:0;
    right:0;
    bottom:0;
    width:100vw;
    height:100dvh;
    max-width:100vw;
    max-height:100dvh;
    margin:0;
    padding:0;
  }
}

}

}
}
#ispd-header{display:flex;align-items:center;padding:12px;background:#4a6cf7;color:#fff;gap:14px;}
#ispd-avatar{width:56px;height:56px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;background:rgba(255,255,255,0.18);}
#ispd-avatar-col{display:flex;flex-direction:column;align-items:center;}
#ispd-name{font-size:13px;margin-top:4px;}
#ispd-messages{flex:1;padding:12px;overflow-y:auto;background:#f7f9fc;}
.msg{margin-bottom:10px;padding:8px;border-radius:0;}
.msg.user{background:#e1ecff;align-self:flex-end;}
.msg.assistant{background:#fff;border:1px solid #dfe3e8;}
#ispd-input-row{display:flex;gap:8px;padding:10px;background:#fff;}
#ispd-user-input{flex:1;padding:8px;border:1px solid #ccc;border-radius:0;}
#ispd-submit-btn{padding:8px 16px;background:#4a6cf7;color:#fff;border:none;border-radius:0;cursor:pointer;}
.ispd-file-btn{background:#e1ecff;padding:8px;border-radius:0;font-size:12px;cursor:pointer;white-space:nowrap;}
#ispd-footer{font-size:11px;text-align:center;padding:6px;background:#f0f2f5;color:#666;}


/* Center and style header lines */
#ispd-header {
  text-align: center;
  margin-bottom: 10px;
}

#ispd-title {
  font-size: 22px;
  font-weight: bold;
}

#ispd-subtitle {
  font-size: 17px;
  margin-top: 4px;
}

/* Center the file upload field under the form */
#ispd-form input[type="file"] {
  display: block;
  margin: 12px auto 0 auto;
  text-align: center;
}


.ispd-file-btn{
  display:flex;
  flex-direction:column;
  align-items:center;
  font-size:14px;
}
.ispd-file-btn span{
  display:block;
  font-size:12px;
  margin-top:2px;
}


/* GW Diagnostics: Yes/No + escalation UI */
.feedback{margin-top:10px;display:flex;gap:8px;}
.feedback button{padding:6px 10px;border-radius:8px;border:1px solid #cbd5e1;background:#f1f5f9;color:#111;cursor:pointer;}
.gw-escalation{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap;}
.gw-escalation button{padding:6px 10px;border-radius:8px;border:1px solid #cbd5e1;background:#f1f5f9;color:#111;cursor:pointer;}
.gw-contact-panel{margin-top:10px;padding:10px;border-radius:10px;border:1px solid #cbd5e1;background:#f8fafc;font-size:13px;line-height:1.35;}
.gw-contact-panel a{color:#0b57d0;text-decoration:underline;}
