/* ===== Chatbot: isolated styles so site CSS won't break it ===== */
#chatbot-window, #chatbot-window * {
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Reset buttons ONLY inside chatbot */
#chatbot-window button,
#chatbot-launcher {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
}

/* Launcher bubble */
#chatbot-launcher{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(2,6,23,0.92);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  z-index: 999999;
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
}

/* Window */
#chatbot-window{
  position: fixed;
  right: 18px;
  bottom: 88px;
  width: 360px;
  height: 520px;
  max-height: calc(100vh - 120px);
  border-radius: 16px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 70px rgba(0,0,0,.45);
  z-index: 999999;
  display: none;
}

#chatbot-window.open{ display: block; }

/* Header */
#chatbot-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.10);
  color: #fff;
}

#chatbot-title{
  display: flex;
  gap: 10px;
  align-items: center;
}

#chatbot-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.15);
}

#chatbot-close{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.06);
}

#chatbot-close:hover{
  background: rgba(255,255,255,.10);
}

/* Messages */
#chatbot-messages{
  padding: 14px;
  height: calc(100% - 120px);
  overflow-y: auto;
}

.cb-row{ display:flex; margin: 10px 0; }
.cb-row.user{ justify-content: flex-end; }
.cb-row.bot{ justify-content: flex-start; }

.cb-bubble{
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 14px;
  color: #fff;
  line-height: 1.35;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,.10);
}

.cb-row.user .cb-bubble{
  background: rgba(59,130,246,.35);
}
.cb-row.bot .cb-bubble{
  background: rgba(255,255,255,.08);
}

/* Input area */
#chatbot-inputbar{
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  display: flex;
  gap: 8px;
}

#chatbot-input{
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: #fff;
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
}

#chatbot-send{
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(59,130,246,.95);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
}
#chatbot-send:hover{
  filter: brightness(1.05);
}

/* Mobile */
@media (max-width: 520px){
  #chatbot-window{
    right: 12px;
    left: 12px;
    width: auto;
    height: 70vh;
    bottom: 86px;
  }
  #chatbot-launcher{
    right: 12px;
    bottom: 12px;
  }
}
/* Better service formatting inside bot bubble */
.cb-services-heading{
  font-weight: 700;
  margin-bottom: 10px;
}

.cb-service{
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.cb-service:first-child{
  border-top: none;
  padding-top: 0;
}

.cb-service-title{
  font-weight: 700;
  margin-bottom: 4px;
}

.cb-service-desc{
  opacity: 0.85;
  font-size: 13px;
  line-height: 1.35;
}

