.rr-demo {
  background: #fffefa;
  color: var(--pine, #142b26);
  font-family: var(--sans, system-ui, sans-serif);
  padding-block: clamp(4.25rem, 7.5vw, 7.75rem);
  scroll-margin-top: 3rem;
}
.rr-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}
.rr-demo h2 {
  margin: 0;
  max-width: 12ch;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(3.2rem, 5.2vw, 5.25rem);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -.038em;
  text-wrap: balance;
}
.rr-demo-intro {
  max-width: 35ch;
  margin: 1.25rem 0 1.9rem;
  color: #486157;
  font-size: 1.02rem;
  line-height: 1.6;
}
.rr-demo-choices {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #cbd5cb;
}
.rr-demo-visually-hidden,
.rr-demo-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.rr-demo-choice {
  display: flex;
  position: relative;
  align-items: center;
  min-height: 3.5rem;
  gap: .85rem;
  padding: .55rem .65rem;
  border-bottom: 1px solid #cbd5cb;
  cursor: pointer;
}
.rr-demo-choice:hover { background: #f3f5ed; }
.rr-demo-choice:has(input:checked) { background: #e8efdf; }
.rr-demo-choice:has(input:focus-visible), .rr-demo-reply:focus-visible {
  outline: 2px solid #196044;
  outline-offset: 3px;
  z-index: 1;
}
.rr-demo-icon { display: block; flex: none; }
.rr-demo-industry-icon, .rr-demo-choice-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.65rem;
  height: 1.65rem;
}
.rr-demo-choice-arrow { color: #7e8d83; }
.rr-demo-choice:has(input:checked) .rr-demo-choice-arrow {
  border-radius: 50%;
  background: var(--pine, #142b26);
  color: #f7fbea;
}
.rr-demo-choice-arrow .rr-demo-icon { width: 15px; }
.rr-demo-name { font-weight: 600; }
.rr-demo-preview {
  margin-inline-start: auto;
  font-size: .78rem;
  color: #4c6557;
}
.rr-demo-stage {
  display: grid;
  align-content: center;
  gap: 1rem;
  min-width: 0;
  min-height: 31.5rem;
  padding: clamp(1rem, 3.8vw, 3.75rem);
  background: #e8eee1;
  border-radius: 1rem;
}
.rr-demo-chat {
  overflow: hidden;
  min-width: 0;
  background: #fffefa;
  border: 1px solid #cad4c5;
  border-radius: .8rem;
  box-shadow: 0 10px 26px -18px #2e4e3d6e;
}
@supports selector(:has(*)) {
  .rr-demo-chat { display: none; }
  .rr-demo:has([value="salon"]:checked) #demo-panel-salon,
  .rr-demo:has([value="fitness"]:checked) #demo-panel-fitness,
  .rr-demo:has([value="service"]:checked) #demo-panel-service,
  .rr-demo:has([value="property"]:checked) #demo-panel-property { display: block; }
}
.rr-demo-chat-head {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 1rem clamp(1rem, 1.8vw, 1.6rem);
  border-bottom: 1px solid #e0e5db;
}
.rr-demo-avatar {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  border-radius: 50%;
  background: #d8e5ce;
  color: #304e3b;
  font-family: var(--serif, Georgia, serif);
  font-size: 1.25rem;
}
.rr-demo-chat-head h3 {
  margin: 0;
  font: 650 1rem/1.3 var(--sans, system-ui, sans-serif);
  letter-spacing: 0;
}
/* The selected native option also themes the preview when scripting is disabled. */
.rr-demo-chat { --rr-reply-fill: #e1ebf7; }
.rr-demo-chat:has(option:checked[value="WhatsApp"]) { --rr-reply-fill: #dcebd8; }
.rr-demo-chat:has(option:checked[value="Telegram"]) { --rr-reply-fill: #ddecf2; }
.rr-demo-chat:has(option:checked[value="Instagram"]) { --rr-reply-fill: #eee3ec; }
.rr-demo-business { min-width: 0; }
.rr-demo-channel-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .15rem .35rem;
  font-size: .76rem;
  line-height: 1.4;
  color: #506558;
}
.rr-demo-channel-picker select {
  border: 1px solid #c5d1c3;
  border-radius: .3rem;
  padding: .14rem .15rem .14rem .25rem;
  min-height: 1.6rem;
  font: inherit;
  color: #294e3c;
  background: #f5f8f0;
  cursor: pointer;
}
.rr-demo-channel-picker select:focus-visible { outline: 2px solid #196044; outline-offset: 2px; }
.rr-demo-chat-head p,
.rr-demo-sample, .rr-demo-speaker, .rr-demo-prompt, .rr-demo-receipt p {
  margin: 0;
  color: #506558;
  font-size: .78rem;
  line-height: 1.5;
}
.rr-demo-sample {
  margin-inline-start: auto;
  text-align: end;
}
.rr-demo-transcript {
  display: grid;
  gap: 1.1rem;
  padding: 1.4rem clamp(1rem, 1.8vw, 1.6rem) 1.25rem;
}
.rr-demo-message { width: fit-content; max-width: 89%; }
.rr-demo-speaker {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0 0 .3rem .1rem;
  font-weight: 600;
}
.rr-demo-message p {
  margin: 0;
  padding: .65rem .88rem;
  border-radius: .67rem .67rem .67rem .15rem;
  background: #f0f1e9;
  color: #20362c;
  font-size: .94rem;
  line-height: 1.5;
}
.rr-demo-agent { justify-self: end; }
.rr-demo-agent .rr-demo-speaker { justify-content: end; }
.rr-demo-agent p {
  border-radius: .67rem .67rem .15rem .67rem;
  background: var(--rr-reply-fill, #dce9d7);
}
.rr-demo-consent {
  padding: .95rem clamp(1rem, 1.8vw, 1.6rem);
  border-top: 1px solid #e0e5db;
}
.rr-demo-reply {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 2.75rem;
  list-style: none;
  cursor: pointer;
}
.rr-demo-reply::marker, .rr-demo-reply::-webkit-details-marker { display: none; content: ''; }
.rr-demo-send, .rr-demo-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.45;
}
.rr-demo-send {
  padding: .6rem .83rem;
  border-radius: 2rem;
  background: var(--pine, #142b26);
  color: #fffefa;
}
.rr-demo-reply:hover .rr-demo-send { background: #315640; }
.rr-demo-replay { display: none; color: #385644; }
.rr-demo-replay .rr-demo-icon, .rr-demo-send .rr-demo-icon { width: 1rem; height: 1rem; }
.rr-demo-consent[open] .rr-demo-send, .rr-demo-consent[open] .rr-demo-prompt { display: none; }
.rr-demo-consent[open] .rr-demo-reply { justify-content: end; }
.rr-demo-consent[open] .rr-demo-replay { display: inline-flex; }
.rr-demo-receipt {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .78rem;
  border-radius: .45rem;
  background: #ebf4df;
}
.rr-demo-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid #789667;
  border-radius: 50%;
}
.rr-demo-check .rr-demo-icon { width: 1rem; height: 1rem; }
.rr-demo-receipt strong { font-size: .9rem; }
:lang(km) .rr-demo h2 {
  max-width: 15ch;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: clamp(2rem, 3.45vw, 3.4rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}
:lang(km) .rr-demo-intro, :lang(km) .rr-demo-message p { line-height: 1.75; }
:lang(km) .rr-demo-chat-head h3 { line-height: 1.6; }
@media (max-width: 850px) {
  .rr-demo-grid { grid-template-columns: 1fr; gap: 2rem; }
  .rr-demo h2, :lang(km) .rr-demo h2 { max-width: none; }
  .rr-demo-intro { max-width: 52ch; margin: .8rem 0 1.25rem; }
  .rr-demo-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .8rem; }
  .rr-demo-stage { min-height: 0; padding: clamp(.75rem, 5vw, 2.5rem); }
}
@media (max-width: 540px) {
  .rr-demo-grid { gap: 1.35rem; }
  .rr-demo-choices { gap: 0 .65rem; }
  .rr-demo-choice { gap: .35rem; flex-wrap: wrap; align-content: center; padding: .45rem; }
  .rr-demo-name { font-size: .87rem; }
  .rr-demo-industry-icon, .rr-demo-industry-icon .rr-demo-icon { width: 1.05rem; height: 1.05rem; }
  .rr-demo-preview { width: 100%; padding-inline-start: 1.4rem; margin: 0; font-size: .72rem; }
  .rr-demo-choice-arrow { display: none; }
  .rr-demo-choice:has(input:checked) { box-shadow: inset 2px 0 var(--pine, #142b26); }
  .rr-demo-chat-head { padding: .8rem; }
  .rr-demo-sample { flex: 0 0 auto; max-width: 9ch; font-size: .71rem; }
  .rr-demo-transcript, .rr-demo-consent { padding-inline: .8rem; }
  .rr-demo-message { max-width: 95%; }
}
