/* DBP-488. Guest examples in the sign-up interview: what a guest really sees, set on the existing example plate.
   One type size (1rem) throughout; yellow is the only accent; nothing here is a control. */

.gx { padding:1rem 1rem .25rem; }
.gx[hidden] { display:none; }
.gx p { margin:0; }
.gx-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.consult-demo figure:has(.gx:not([hidden])) figcaption b { font-weight:700; }
.consult-demo figure:has(.gx:not([hidden])) figcaption span { color:var(--slate); }

/* Arrival email, as it reads in a mail app. */
.gx-mail { max-width:34rem; margin:0 auto; background:#fff; border:1px solid #e4dfd2; border-radius:.65rem; box-shadow:0 1px 2px rgb(20 23 26 / .06), 0 8px 24px rgb(20 23 26 / .06); color:var(--ink); line-height:1.45; overflow:hidden; }
.gx-mail-head { padding:.9rem 1.1rem .75rem; border-bottom:1px solid #ece8de; }
.gx-mail-subject { font-weight:700; }
.gx-mail-meta { display:grid; grid-template-columns:auto 1fr; gap:0 .6rem; margin:.4rem 0 0; color:var(--slate); }
.gx-mail-meta dt { font-weight:500; }
.gx-mail-meta dd { margin:0; min-width:0; overflow-wrap:anywhere; }
.gx-mail-body { display:grid; gap:.7rem; padding:1rem 1.1rem 1.1rem; }
.gx-mail-details { display:grid; grid-template-columns:auto 1fr; gap:.45rem .9rem; margin:0; padding:.8rem .9rem; border-left:3px solid var(--yellow); background:#faf8f3; border-radius:0 .4rem .4rem 0; }
.gx-mail-details dt { font-weight:700; }
.gx-mail-details dd { margin:0; }
.gx-mail-foot { padding:.7rem 1.1rem; border-top:1px solid #ece8de; color:var(--slate); background:#faf8f3; }

/* Thread shared by site chat and text messages. The guest is on the right. */
.gx-thread { max-width:24rem; margin:0 auto; color:var(--ink); line-height:1.4; }
.gx-messages { list-style:none; display:grid; gap:.45rem; margin:0; padding:.9rem; }
.gx-msg { position:relative; display:grid; justify-items:start; max-width:85%; }
.gx-from-guest { justify-self:end; justify-items:end; }
.gx-bubble { padding:.55rem .8rem; border-radius:1rem; background:#fff; border:1px solid #e4dfd2; }
.gx-from-guest .gx-bubble { background:var(--ink); border-color:var(--ink); color:var(--chalk); }
.gx-time { margin-top:.15rem; color:var(--slate); }

/* Site chat: a website chat panel with a dark header. */
.gx-chat { background:#fff; border:1px solid #e4dfd2; border-radius:.9rem; overflow:hidden; box-shadow:0 8px 24px rgb(20 23 26 / .08); }
.gx-chat .gx-thread-head { padding:.75rem 1rem; background:var(--ink); color:var(--chalk); }
.gx-chat .gx-thread-name { font-weight:700; }
.gx-chat .gx-thread-status { display:flex; align-items:center; gap:.45rem; color:#d9d6cd; }
.gx-chat .gx-thread-status::before { content:""; width:.55rem; height:.55rem; border-radius:50%; background:var(--yellow); flex:none; }
.gx-chat .gx-messages { background:#faf8f3; }
.gx-chat .gx-from-host .gx-bubble { border-bottom-left-radius:.3rem; }
.gx-chat .gx-from-guest .gx-bubble { border-bottom-right-radius:.3rem; }

/* Text messages: a phone thread, centred contact name and day, rounder bubbles, times under them. */
.gx-sms { background:#fff; border:1px solid #d9d4c7; border-radius:1.6rem; padding:.4rem .2rem .2rem; box-shadow:0 8px 24px rgb(20 23 26 / .08); }
.gx-sms .gx-thread-head { display:grid; justify-items:center; gap:.1rem; padding:.7rem 1rem .6rem; border-bottom:1px solid #ece8de; text-align:center; }
.gx-sms .gx-thread-head::before { content:""; width:2.4rem; height:2.4rem; border-radius:50%; background:var(--chalk) url("assets/directbnb-icon-v3.svg") center / 60% no-repeat; border:1px solid #e4dfd2; }
.gx-sms .gx-thread-name { font-weight:700; }
.gx-sms .gx-thread-status { color:var(--slate); }
.gx-sms .gx-bubble { border-radius:1.2rem; background:#ecebe6; border:0; }
.gx-sms .gx-from-guest .gx-bubble { background:var(--ink); color:var(--chalk); }

/* Booking examples: the status screen a guest sees after pressing send or pay. */
.gx-status { display:grid; gap:.15rem; margin:.25rem 0 .15rem; padding:.65rem .8rem; background:#fff; border:1px solid #e4dfd2; border-radius:.55rem; }
.booking-stories .gx-status p { color:var(--ink); }
.booking-stories .gx-status p + p + p { color:var(--slate); }
.booking-stories .gx-note { color:var(--slate); }
.gx-status-head { display:flex; align-items:center; gap:.45rem; font-weight:700; }
.gx-status-head::before { content:""; flex:none; width:.7rem; height:.7rem; border-radius:50%; border:2px solid var(--slate); }
.gx-wait .gx-status-head::before { border-color:var(--yellow); background:var(--yellow); }
.gx-done .gx-status-head::before { border-color:var(--ink); background:var(--ink); }

@media(max-width:480px) {
  .gx { padding:.7rem .6rem .1rem; }
  .gx-mail-head, .gx-mail-body, .gx-mail-foot { padding-inline:.85rem; }
  .gx-mail-details { grid-template-columns:1fr; gap:0; }
  .gx-mail-details dd + dt { margin-top:.4rem; }
  .gx-messages { padding:.7rem .6rem; }
  .gx-msg { max-width:90%; }
}
