/* ==========================================================================
   Niwa Chatbot – CSS Reset
   Scoped to .niwa-widget to avoid WordPress host page conflicts.
   ========================================================================== */

.niwa-widget *,
.niwa-widget *::before,
.niwa-widget *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Override WordPress theme tag-level styles that leak into the widget.
   Theme selectors like `.entry-content p` have specificity 0-1-1
   which beats the wildcard reset above (0-1-0).
   These rules have 0-1-1 + !important to guarantee the reset. */
.niwa-widget p,
.niwa-widget h1, .niwa-widget h2, .niwa-widget h3,
.niwa-widget h4, .niwa-widget h5, .niwa-widget h6,
.niwa-widget ul, .niwa-widget ol, .niwa-widget li,
.niwa-widget blockquote, .niwa-widget pre,
.niwa-widget figure, .niwa-widget figcaption,
.niwa-widget dl, .niwa-widget dt, .niwa-widget dd {
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
}

.niwa-widget button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.niwa-widget input,
.niwa-widget textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.niwa-widget ul,
.niwa-widget ol {
  list-style: none;
}

.niwa-widget a {
  color: inherit;
  text-decoration: none;
}

.niwa-widget img,
.niwa-widget svg {
  display: block;
  max-width: 100%;
}
