#n365-documentation-chat {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  font-family: var(--md-text-font-family);
  font-size: 14px;
  color: var(--md-default-fg-color);
}

#n365-documentation-chat button {
  cursor: pointer;
  font: inherit;
}

#n365-documentation-chat button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.documentation-chat-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  color: var(--md-accent-fg-color);
  background: var(--md-default-bg-color);
  box-shadow: 0 3px 15px #0003;
}

.documentation-chat-toggle:hover {
  border-color: var(--md-accent-fg-color);
}

.documentation-chat-toggle:focus-visible {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 3px;
}

.documentation-chat-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.documentation-chat-panel {
  position: absolute;
  right: 0;
  bottom: 3rem;
  width: min(520px, calc(100vw - 2rem));
  height: calc(100dvh - 8rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.6rem;
  background: var(--md-default-bg-color);
  box-shadow: 0 6px 30px #0003;
}

.documentation-chat-panel[hidden] {
  display: none;
}

.documentation-chat-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.documentation-chat-panel header button {
  padding: 0.3rem;
}

.documentation-chat-content {
  flex: 1;
  min-height: 0;
}

.documentation-chat-content deep-chat {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  font-size: 14px;
}
