/* DO Zoekassistent – erft lettertype en kleuren zoveel mogelijk van het thema */
.do-chat {
  --do-accent: #2e7d32;
  --do-border: #d9ded9;
  --do-soft: #f4f7f4;
  max-width: 760px;
  margin: 1.5em 0;
  font: inherit;
  color: inherit;
}
.do-chat__title { margin: 0 0 .3em; }

/* Het thema geeft de eerste alinea van een pagina een vette, groene intro-stijl.
   Binnen de assistent willen we gewone tekst; daarom extra specifiek. */
.do-chat.do-chat p,
.do-chat.do-chat li {
  font-weight: 400;
  color: inherit;
  font-size: inherit;
  line-height: 1.6;
}
.do-chat.do-chat .do-chat__intro { margin: 0 0 1em; opacity: .85; }
.do-chat.do-chat .do-chat__note { font-size: .8em; opacity: .7; margin-top: 1em; }

.do-chat__form { display: flex; gap: .5em; align-items: stretch; }
.do-chat__label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.do-chat__input {
  flex: 1; resize: vertical; min-height: 3em; padding: .7em .8em;
  border: 1px solid var(--do-border); border-radius: 8px; font: inherit;
}
.do-chat__input:focus { outline: 2px solid var(--do-accent); outline-offset: 1px; }
.do-chat__send {
  padding: 0 1.4em; border: 0; border-radius: 8px; background: var(--do-accent);
  color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.do-chat__send:disabled { opacity: .55; cursor: wait; }

.do-chat__examples { display: flex; flex-wrap: wrap; gap: .4em; margin: .8em 0 1.2em; }
.do-chat__chip {
  border: 1px solid var(--do-border); background: #fff; border-radius: 999px;
  padding: .35em .9em; font: inherit; font-size: .88em; cursor: pointer; color: inherit;
}
.do-chat__chip:hover { border-color: var(--do-accent); }

.do-chat__item { border-top: 1px solid var(--do-border); padding: 1em 0; }
.do-chat__q { font-weight: 600; margin-bottom: .5em; }
.do-chat__a p { margin: 0 0 .7em; }
.do-chat__a ul { margin: 0 0 .7em 1.2em; }
.do-chat__a--loading { opacity: .7; font-style: italic; }
.do-chat__a--loading::after {
  content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .5em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: do-chat-spin .8s linear infinite; vertical-align: -.1em;
}
@keyframes do-chat-spin { to { transform: rotate(360deg); } }
.do-chat__a--error { color: #b3261e; }

.do-chat__ref {
  display: inline-block; min-width: 1.4em; padding: 0 .3em; margin: 0 0 0 .15em;
  font-size: .72em; line-height: 1.5em; text-align: center; vertical-align: super;
  border-radius: 4px; background: var(--do-soft); color: var(--do-accent);
  text-decoration: none; font-weight: 600;
}
.do-chat__sources {
  margin: .6em 0 0; padding: .7em .9em .7em 2.2em; background: var(--do-soft);
  border-radius: 8px; font-size: .9em;
}
.do-chat__sources li { margin: .2em 0; }
.do-chat__date { opacity: .65; white-space: nowrap; }

@media (max-width: 520px) {
  .do-chat__form { flex-direction: column; }
  .do-chat__send { padding: .7em; }
}
