/* Noxbot — page assistant plein écran (visiteurs) */

.noxbot-page-body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--nox-bg);
  overflow: hidden;
}

.noxbot-page__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--nox-border);
  background: var(--nox-header-bg);
  flex-shrink: 0;
}

.noxbot-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--nox-muted);
  text-decoration: none;
}

.noxbot-page__back:hover {
  color: var(--nox-cyan);
}

.noxbot-page__top-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.noxbot-page__main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
}

.noxbot--page {
  position: static;
  inset: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  height: 100%;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

.noxbot--page .noxbot__fab {
  display: none !important;
}

.noxbot--page .noxbot__panel {
  position: static;
  display: flex !important;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  max-height: none;
  bottom: auto;
  right: auto;
  border-radius: 1rem;
}

.noxbot--page .noxbot__messages {
  min-height: 0;
  flex: 1;
}

.noxbot--page .noxbot__head {
  padding: 1rem 1.15rem;
}

.noxbot--page .noxbot__title {
  font-size: 1.15rem;
}

.noxbot--page .noxbot__form {
  padding: 0.85rem 1.15rem 1rem;
}

.noxbot--page .noxbot__input {
  font-size: 1rem;
}

@media (max-width: 640px) {
  .noxbot-page__main {
    padding: 0;
  }

  .noxbot--page .noxbot__panel {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}
