/* eBrevia "Talk to Sales" AI chat widget — scoped to .ebsc-* */
.ebsc-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 999990;
  display: inline-flex; align-items: center; gap: 9px;
  height: 52px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px; font-weight: 800; color: #fff;
  background: linear-gradient(118deg, #FA9200, #8700ff);
  box-shadow: 0 16px 34px -12px rgba(135,0,255,.55);
  transition: transform .16s ease, box-shadow .16s ease;
}
.ebsc-launcher:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(135,0,255,.6); }
.ebsc-launcher svg { width: 20px; height: 20px; }
.ebsc-launcher.ebsc-hide { display: none; }

.ebsc-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 999991;
  display: none; flex-direction: column; overflow: hidden;
  width: 374px; max-width: calc(100vw - 32px);
  height: 600px; max-height: calc(100vh - 40px);
  background: #fff; border: 1px solid #e3e8ef; border-radius: 18px;
  box-shadow: 0 40px 90px -28px rgba(7,10,18,.5);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.ebsc-panel.ebsc-open { display: flex; }

.ebsc-head {
  display: flex; align-items: center; gap: 11px; padding: 15px 16px;
  background: linear-gradient(118deg, #FA9200, #8700ff); color: #fff;
}
.ebsc-head-ic { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: grid; place-items: center; flex: none; }
.ebsc-head-ic svg { width: 18px; height: 18px; }
.ebsc-head-t { font-size: 15px; font-weight: 800; line-height: 1.1; }
.ebsc-head-s { font-size: 12px; font-weight: 600; opacity: .85; margin-top: 2px; }
.ebsc-close { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; font-size: 20px; line-height: 30px; cursor: pointer; }
.ebsc-close:hover { background: rgba(255,255,255,.3); }

.ebsc-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  background: #fbfaf7; }
.ebsc-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5;
  white-space: normal; word-wrap: break-word; }
.ebsc-msg a { color: #8700ff; font-weight: 700; }
.ebsc-bot { align-self: flex-start; background: #fff; border: 1px solid #e6eaf0; color: #253044;
  border-bottom-left-radius: 5px; }
.ebsc-user { align-self: flex-end; color: #fff; background: #FA9200; border-bottom-right-radius: 5px; }
.ebsc-bot strong, .ebsc-user strong { font-weight: 800; }
.ebsc-bot ul { margin: 6px 0 0; padding-left: 18px; }

.ebsc-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px;
  background: #fff; border: 1px solid #e6eaf0; border-radius: 14px; border-bottom-left-radius: 5px; }
.ebsc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #b7c0cd; animation: ebsc-bounce 1s infinite; }
.ebsc-typing i:nth-child(2) { animation-delay: .15s; } .ebsc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ebsc-bounce { 0%,80%,100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }

.ebsc-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 10px; background: #fbfaf7; }
.ebsc-chip { border: 1px solid #e0d3f5; background: #fff; color: #6f00d6; border-radius: 999px;
  padding: 7px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ebsc-chip:hover { background: #f6f0ff; }

.ebsc-human { display: block; width: 100%; padding: 9px 12px; border: 0; border-top: 1px solid #eef1f5;
  background: #fff; color: #6f00d6; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; text-align: center; }
.ebsc-human:hover { background: #faf7ff; }

.ebsc-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #eef1f5; background: #fff; }
.ebsc-input { flex: 1; min-width: 0; height: 42px; padding: 0 13px; border: 1px solid #d5dbe4;
  border-radius: 10px; font: inherit; font-size: 14px; color: #253044; background: #fff; }
.ebsc-input:focus { outline: none; border-color: #FA9200; box-shadow: 0 0 0 2px rgba(250,146,0,.2); }
.ebsc-send { flex: none; width: 42px; height: 42px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(118deg, #FA9200, #8700ff); color: #fff; display: grid; place-items: center; }
.ebsc-send:disabled { opacity: .5; cursor: default; }
.ebsc-send svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .ebsc-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .ebsc-launcher { right: 16px; bottom: 16px; }
}
