/* Chatbot popup (هدبة #9) — RTL-first; completed chrome (our-part
   round): backdrop, centering, button styling — ported from the live
   demo's scoped pass. */
.mos-chatbot-launcher--stub {
  position: relative;
  inline-size: auto;
}

/* Dialog centering + backdrop (native <dialog> showModal). */
dialog.mos-chatbot-dialog {
  max-inline-size: 40rem;
  inline-size: 90vw;
  margin: auto;
  border: none;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 12px 40px rgb(0 0 0 / 25%);
  background: var(--cs-surface, #fff);
  color: inherit;
}
dialog.mos-chatbot-dialog::backdrop {
  background: rgb(0 0 0 / 45%);
  backdrop-filter: blur(2px);
}

/* Content chrome. */
.mos-chatbot-dialog h3 {
  margin-block: 0 0.25rem;
  font-size: 1.05rem;
}
.mos-chatbot-dialog .mos-chatbot-note {
  margin-block: 0 0.5rem;
  font-size: 0.8rem;
  opacity: 0.75;
}
.mos-chatbot-dialog .mos-chatbot-proposal {
  margin-block: 1rem;
  padding: 0.9rem;
  background: rgb(0 0 0 / 4%);
  border: 1px solid rgb(0 0 0 / 8%);
  border-radius: 8px;
  line-height: 1.9;
  white-space: pre-wrap;
  max-block-size: 50vh;
  overflow-y: auto;
}

/* Button chrome. */
.mos-chatbot-dialog .mos-chatbot-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  margin-block-start: 0.75rem;
}
.mos-chatbot-dialog .mos-chatbot-actions .button {
  border-radius: 8px;
  border: 1px solid rgb(0 0 0 / 15%);
  padding: 0.45rem 1rem;
  cursor: pointer;
}
.mos-chatbot-dialog .mos-chatbot-actions .button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.mos-chatbot-dialog .mos-chatbot-actions .mos-chatbot-accept:not([disabled]) {
  background: var(--cs-accent, #0069d9);
  border-color: transparent;
  color: #fff;
}
