html,
body,
bf-agent-fw-app,
openai-chatkit {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
}


.bf-agent-ui-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bf-agent-ui-backdrop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.28);
  pointer-events: auto;
}

.bf-agent-ui-info {
  width: min(520px, 100%);
  max-height: min(70vh, 620px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
  padding: 18px 20px 20px;
}

.bf-agent-ui-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.bf-agent-ui-info-title {
  font-size: 16px;
  line-height: 1.4;
}

.bf-agent-ui-info-close {
  flex: none;
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.bf-agent-ui-info-body {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
}

.bf-agent-ui-info.bf-agent-ui-image-preview {
  width: min(92vw, 1120px);
  max-height: 92vh;
}

.bf-agent-ui-image-preview .bf-agent-ui-info-body {
  display: grid;
  place-items: center;
}

.bf-agent-ui-preview-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
}

[hidden] {
  display: none !important;
}
