/* Shared by every Rivetbox page. Page look lives in each template's inline styles. */
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
@media (max-width: 560px) {
  h1 { font-size: 36px !important; }
  h2 { font-size: 28px !important; }
}
dialog.rb-dialog { border: 0; border-radius: 14px; padding: 0; width: min(440px, calc(100vw - 32px)); background: #ffffff; color: #15181d; font-family: Inter, "IBM Plex Sans", system-ui, sans-serif; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
dialog.rb-dialog::backdrop { background: rgba(10, 12, 14, .6); }
.rb-dialog form, .rb-dialog .rb-done { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.rb-dialog h2 { margin: 0; font-size: 22px !important; line-height: 1.2; font-family: inherit; text-transform: none; letter-spacing: 0; color: #15181d; }
.rb-dialog p { margin: 0; font-size: 15px; line-height: 1.5; color: #3d424b; }
.rb-dialog label { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; color: #15181d; }
.rb-dialog input { height: 48px; padding: 0 14px; border: 2px solid #15181d; border-radius: 10px; font: inherit; font-weight: 400; background: #fff; color: #15181d; }
.rb-dialog .rb-row { display: flex; gap: 10px; flex-wrap: wrap; }
.rb-dialog button { height: 48px; padding: 0 20px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.rb-dialog .rb-primary { background: #15181d; color: #fff; border: 0; flex: 1 1 160px; }
.rb-dialog .rb-secondary { background: #fff; color: #15181d; border: 2px solid #15181d; }
.rb-dialog .rb-error { color: #b3261e; font-weight: 600; min-height: 1.4em; }
.rb-dialog .rb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rb-inline-msg { font-size: 14px; font-weight: 600; margin: 0; flex: 1 1 100%; }
/* Mystery Chat: on narrow screens show the headline and form before the transcript. */
@media (max-width: 900px) {
  body[data-product="mystery"] section:first-of-type > div:first-child { order: 2; }
}
