/* BGR site chatbot widget */
.bgr-cb-root {
  font-family: system-ui, "Segoe UI", sans-serif;
}

.bgr-cb-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: #0ea5e9;
  color: #041018;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.bgr-cb-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 99999;
  width: min(380px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 120px));
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #0b1220;
  color: #e5e7eb;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.bgr-cb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #0ea5e9;
  color: #041018;
  font-weight: 700;
}

.bgr-cb-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}

.bgr-cb-log {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #030712;
}

.bgr-cb-bubble {
  max-width: 88%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.bgr-cb-bubble--user {
  align-self: flex-end;
  background: #0c4a6e;
}

.bgr-cb-bubble--bot {
  align-self: flex-start;
  background: #1f2937;
}

.bgr-cb-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #1f2937;
}

.bgr-cb-input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid #374151;
  background: #111827;
  color: #fff;
  padding: 10px 12px;
  font-size: 14px;
}

.bgr-cb-send {
  border: 0;
  border-radius: 10px;
  background: #0ea5e9;
  color: #041018;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
}

.bgr-cb-send:disabled {
  opacity: 0.6;
  cursor: wait;
}

.bgr-cb-send--block {
  width: 100%;
  padding: 10px 12px;
  margin-top: 0.35rem;
}

.bgr-cb-panel--lead .bgr-cb-log {
  display: none !important;
}

.bgr-cb-lead {
  display: none;
  padding: 14px 14px 16px;
  background: #0b1220;
  flex: 1;
  overflow: auto;
  min-height: 0;
}

.bgr-cb-panel--lead .bgr-cb-lead {
  display: block;
}

.bgr-cb-lead-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

.bgr-cb-lead-intro {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #94a3b8;
}

.bgr-cb-lead-form {
  display: grid;
  gap: 0.45rem;
}

.bgr-cb-lead-label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.bgr-cb-lead-label input {
  border-radius: 8px;
  border: 1px solid #374151;
  background: #111827;
  color: #fff;
  padding: 8px 10px;
  font-size: 13px;
}

@media (max-width: 480px) {
  .bgr-cb-fab {
    right: 14px;
    bottom: 14px;
  }

  .bgr-cb-panel {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: 78px;
  }
}
