.wildprey-rag {
  margin: 3rem 0 1rem;
}
.wildprey-rag__card {
  border: 1px solid rgba(112, 22, 34, .16);
  border-radius: 18px;
  padding: 1.25rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  color: #701622;
}
.wildprey-rag__card h2 {
  margin-top: 0;
  margin-bottom: .4rem;
  color: #701622;
}
.wildprey-rag__notice {
  font-size: .92rem;
  opacity: .78;
  margin-bottom: 1rem;
}
.wildprey-rag__messages {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: .5rem 0 1rem;
}
.wildprey-rag__message {
  border-radius: 14px;
  padding: .8rem .95rem;
  line-height: 1.5;
  max-width: 86%;
  word-break: break-word;
  color: #111;
}
.wildprey-rag__message a {
  color: #111;
  text-decoration: underline;
}
.wildprey-rag__message--bot {
  background: rgba(0,0,0,.045);
  align-self: flex-start;
}
.wildprey-rag__message--user {
  background: rgba(100,35,35,.10);
  align-self: flex-end;
}
.wildprey-rag__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  align-items: start;
}
.wildprey-rag__input {
  width: 100%;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid rgba(112, 22, 34, .28);
  padding: .8rem;
  font: inherit;
  color: #701622;
}
.wildprey-rag__input::placeholder {
  color: rgba(112, 22, 34, .72);
}
.wildprey-rag__button {
  justify-self: end;
  border: 0;
  border-radius: 12px;
  padding: .9rem 1.35rem;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #701622;
  color: #fff;
}
.wildprey-rag__button:disabled {
  opacity: .65;
  cursor: wait;
}
@media (max-width: 640px) {
  .wildprey-rag__message { max-width: 100%; }
  .wildprey-rag__button { width: 100%; justify-self: stretch; }
}

/* v4: force question and answer bubble text to monochrome, overriding theme styles */
.wildprey-rag .wildprey-rag__messages,
.wildprey-rag .wildprey-rag__message,
.wildprey-rag .wildprey-rag__message *,
.wildprey-rag .wildprey-rag__message p,
.wildprey-rag .wildprey-rag__message span,
.wildprey-rag .wildprey-rag__message li,
.wildprey-rag .wildprey-rag__message strong,
.wildprey-rag .wildprey-rag__message em,
.wildprey-rag .wildprey-rag__message a {
  color: #111111 !important;
}

.wildprey-rag .wildprey-rag__input {
  color: #111111 !important;
}

.wildprey-rag .wildprey-rag__input::placeholder {
  color: #555555 !important;
}

/* v9: centered two-paragraph greeting */
.wildprey-rag .wildprey-rag__messages {
  align-items: center;
}
.wildprey-rag .wildprey-rag__message--bot {
  align-self: center;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.wildprey-rag .wildprey-rag__message--user {
  align-self: flex-end;
  text-align: left;
}


/* v11: clean shortcode layout; no automatic greeting bubble */
.wildprey-rag {
  margin: 0 auto 70px;
  max-width: 860px;
}
.wildprey-rag__card {
  padding: 28px 28px 26px;
}
.wildprey-rag__card h2 {
  text-align: center;
  color: #7a1020 !important;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  margin-bottom: 26px;
}
.wildprey-rag__messages:empty {
  display: none;
}
.wildprey-rag__input {
  min-height: 110px;
}
