#nsb-cb { --nsb: #0b9a41; --nsb-dark: #087a33; font-family: -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif; }
#nsb-cb * { box-sizing: border-box; }

#nsb-cb .nsb-launch {
  position: fixed; right: 24px; bottom: 24px; z-index: 99998;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--nsb); box-shadow: 0 6px 20px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
#nsb-cb .nsb-launch:hover { transform: scale(1.06); background: var(--nsb-dark); }

#nsb-cb .nsb-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 99999;
  width: 380px; max-width: calc(100vw - 24px);
  height: 580px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  display: none; flex-direction: column;
}
#nsb-cb.open .nsb-panel { display: flex; }

#nsb-cb .nsb-head { background: var(--nsb); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
#nsb-cb .nsb-head img { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: contain; }
#nsb-cb .nsb-title { flex: 1; line-height: 1.25; }
#nsb-cb .nsb-title b { display: block; font-size: 16px; }
#nsb-cb .nsb-title span { font-size: 12px; opacity: .9; }
#nsb-cb .nsb-x { background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; line-height: 1; }

#nsb-cb .nsb-body { flex: 1; overflow-y: auto; padding: 14px; background: #f5f7f6; display: flex; flex-direction: column; gap: 10px; }
#nsb-cb .nsb-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; word-wrap: break-word; }
#nsb-cb .nsb-msg.assistant { background: #fff; color: #222; border: 1px solid #e3e8e5; align-self: flex-start; border-bottom-left-radius: 4px; }
#nsb-cb .nsb-msg.user { background: var(--nsb); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

#nsb-cb .nsb-typing { display: flex; gap: 4px; padding: 14px; }
#nsb-cb .nsb-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa; animation: nsbblink 1.2s infinite; }
#nsb-cb .nsb-typing i:nth-child(2) { animation-delay: .2s; }
#nsb-cb .nsb-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes nsbblink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

#nsb-cb .nsb-card { display: flex; gap: 10px; background: #fff; border: 1px solid #e3e8e5; border-radius: 12px; padding: 10px; align-self: stretch; }
#nsb-cb .nsb-card img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #fafafa; }
#nsb-cb .nsb-info { flex: 1; min-width: 0; }
#nsb-cb .nsb-name { display: block; font-size: 13.5px; font-weight: 600; color: #111; text-decoration: none; line-height: 1.3; margin-bottom: 3px; }
#nsb-cb .nsb-price { font-size: 14px; color: var(--nsb-dark); font-weight: 700; margin-bottom: 6px; }
#nsb-cb .nsb-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#nsb-cb .nsb-add { background: var(--nsb); color: #fff !important; border: 0; border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
#nsb-cb .nsb-add:hover { background: var(--nsb-dark); }
#nsb-cb .nsb-add.done { background: #444; }
#nsb-cb .nsb-viewcart { font-size: 13px; color: var(--nsb-dark); font-weight: 600; }
#nsb-cb .nsb-out { font-size: 13px; color: #b00; font-weight: 600; }

#nsb-cb .nsb-chips { padding: 8px 12px 0; display: flex; gap: 6px; flex-wrap: wrap; background: #f5f7f6; }
#nsb-cb .nsb-chips button { background: #fff; border: 1px solid var(--nsb); color: var(--nsb-dark); border-radius: 16px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; }

#nsb-cb .nsb-form { display: flex; gap: 8px; padding: 12px; background: #f5f7f6; border-top: 1px solid #e3e8e5; }
#nsb-cb .nsb-form input { flex: 1; border: 1px solid #cfd8d3; border-radius: 22px; padding: 10px 14px; font-size: 14.5px; outline: none; background: #fff; color: #222; }
#nsb-cb .nsb-form input:focus { border-color: var(--nsb); }
#nsb-cb .nsb-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--nsb); color: #fff; font-size: 17px; cursor: pointer; }

@media (max-width: 480px) {
  #nsb-cb .nsb-panel { right: 8px; left: 8px; width: auto; bottom: 88px; height: calc(100vh - 110px); }
  #nsb-cb .nsb-launch { right: 14px; bottom: 14px; }
}
