@keyframes ba-ai-float {
  0% { transform: translate(0, 0); }
  25% { transform: translate(3px, -8px); }
  50% { transform: translate(0, -12px); }
  75% { transform: translate(-3px, -8px); }
  100% { transform: translate(0, 0); }
}

/* --- MODIFIED: Bubble Styles (50% bigger) --- */
#ba-ai-bubble {
  position: fixed;
  right: 65px; /* Adjusted for new 240px width */
  bottom: 90px;
  width: 240px; /* Original 160px * 1.5 */
  z-index: 99998;
  animation: ba-ai-float 4s ease-in-out infinite;
  pointer-events: none;
}
#ba-ai-bubble.ba-ai-hidden {
  display: none;
}
/* --- End Modified Styles --- */

#ba-ai-launcher{
  position:fixed;right:18px;bottom:18px;z-index:99999;
  background-size:cover;background-position:center;border-radius:50%;
  box-shadow:0 6px 20px rgba(0,0,0,.25);cursor:pointer;
  animation: ba-ai-float 4s ease-in-out infinite;
}
#ba-ai-widget{
  position:fixed;right:18px;bottom:96px;z-index:99999;width:360px;max-width:92vw;
  background:#0b1220;border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.35);color:#e6f0ff;
  overflow:hidden;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
#ba-ai-widget.ba-ai-hidden{ 
  display:none; 
}
.ba-ai-header{display:flex;align-items:center;gap:10px;padding:12px 12px;background:#0f1a33;border-bottom:1px solid rgba(255,255,255,.08);flex-shrink: 0;}
.ba-ai-avatar{border-radius:50%;object-fit:cover;flex:0 0 auto}
.ba-ai-title{font-weight:700;font-size:16px;letter-spacing:.2px}
.ba-ai-close{margin-left:auto;background:transparent;border:0;color:#e6f0ff;font-size:22px;cursor:pointer}
.ba-ai-body{
  padding:12px;
  overflow-y: auto;
}
.ba-ai-messages{
  height:280px;
  overflow:auto;
  background:#0b1220;
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  padding:8px;
  margin-bottom: 10px; 
}
.ba-ai-msg{background:#12203d;border-radius:10px;padding:8px 10px;margin:6px 0;white-space:pre-wrap;line-height:1.35}
.ba-ai-msg.user{background:#233457}

#ba-ai-form input,#ba-ai-form textarea{width:100%;padding:8px;border-radius:8px;border:1px solid rgba(255,255,255,.12);background:#0f1a33;color:#e6f0ff;margin:4px 0;outline:none}
#ba-ai-form input::placeholder,#ba-ai-form textarea::placeholder{color:#a8b5d1}
.ba-ai-row.two{display:flex;gap:8px}
.ba-ai-actions{display:flex;gap:8px;margin-top:6px}
.ba-ai-actions button{flex:1;padding:10px;border-radius:10px;border:0;background:#2b6cb0;color:#fff;cursor:pointer;font-weight:600}
.ba-ai-actions .ba-ai-save{background:#2f855a}
.ba-ai-actions .ba-ai-skip{background:#4a5568}
.ba-ai-switch{display:flex;align-items:center;gap:6px;color:#c9d7ff}

@media (max-width:480px){ 
  #ba-ai-widget{ 
    right:10px; 
    bottom:75px;
    width: 95vw;
    max-height: 85vh;
  }
  /* --- MODIFIED: Mobile Bubble Styles (50% bigger) --- */
  #ba-ai-bubble {
    right: 48px; /* Adjusted for new 195px width */
    width: 195px; /* Original 130px * 1.5 */
    bottom: 85px;
  }
  .ba-ai-messages {
    height: 200px;
  }
}