/* ================= ROOT ================= */
#bgmbot-root{
  position: fixed !important;
  left: 18px !important;
  bottom: 18px !important;
  z-index: 2147483647 !important;
  font-family: Arial, sans-serif !important;
}

/* ================= FLOAT BUTTON ================= */
.bgmbot-btn{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #111;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* ================= PANEL ================= */
.bgmbot-panel{
  position: fixed;
  left: 18px;
  bottom: 86px;
  width: 340px;
  height: 460px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
  display: none;
  overflow: hidden;
}

/* ================= HEADER ================= */
.bgmbot-header{
  background: #111;
  color: #fff;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bgmbot-title{ font-size: 14px; font-weight: bold; }
.bgmbot-close{
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* ================= MESSAGES ================= */
.bgmbot-messages{
  height: 300px;
  padding: 12px;
  overflow-y: auto;
  background: #f5f5f7;
}

/* ================= BUBBLES ================= */
.bgmbot-bubble{
  max-width: 85%;
  padding: 10px;
  border-radius: 12px;
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.bgmbot-bot{
  background: #fff;
  border: 1px solid #ddd;
  color: #111 !important;
}

.bgmbot-user{
  background: #111;
  color: #fff !important;
  margin-left: auto;
}

/* ================= ACTIONS ================= */
.bgmbot-actions{
  padding: 10px;
  border-top: 1px solid #eee;
  background: #fff;
}

.bgmbot-inputrow{
  display: flex;
  gap: 8px;
}

.bgmbot-input{
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
  background: #fff !important;
  color: #111 !important;
}

.bgmbot-input::placeholder{
  color: #666 !important;
}

.bgmbot-send{
  background: #111;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

/* ================= WHATSAPP BUTTON ================= */
.bgmbot-wa{
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  background: #25D366;
  color: #fff !important;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
}

/* ================= MOBILE ================= */
@media (max-width: 520px){
  .bgmbot-panel{
    width: calc(100vw - 20px);
    left: 10px;
    height: 65vh;
  }
  .bgmbot-messages{
    height: calc(65vh - 120px);
  }
}
