.wa-demo {
  position: relative;
  z-index: 1;
  line-height: 1.25;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.wa-demo .device-stage {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
}
.wa-demo .device-stage::before {
  position: absolute;
  z-index: -1;
  inset: -7% -6% -4%;
  content: '';
  pointer-events: none;
  background: radial-gradient(ellipse at 49% 46%, #9a561b50, #562f1920 43%, transparent 72%);
}
.wa-demo .phone {
  position: relative;
  width: min(100%, 318px);
  aspect-ratio: 9 / 17.1;
  display: grid;
  padding: 6px;
  border: 1px solid #61544a;
  border-radius: 40px;
  background: linear-gradient(145deg, #4d4541 0%, #171614 25%, #0c0c0c 67%, #48403a 100%);
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #bca99920, 0 25px 58px #000c, 0 0 75px #ee970b22;
}
.wa-demo .phone::before, .wa-demo .phone::after {
  content: '';
  position: absolute;
  width: 3px;
  background: linear-gradient(#51473d, #292522);
  border-radius: 2px;
}
.wa-demo .phone::before { left: -3px; top: 112px; height: 25px; box-shadow: 0 34px #39322c; }
.wa-demo .phone::after { right: -3px; top: 133px; height: 41px; }
.wa-demo .screen {
  display: grid;
  grid-template-rows: 34px auto 1fr auto 17px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #060708;
  border-radius: 34px;
  background: #0b141a;
}
.wa-demo .status-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 17px;
  color: #f4f5f6;
  background: #18242b;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .01em;
}
.wa-demo .camera {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 73px;
  height: 19px;
  transform: translateX(-50%);
  border-radius: 15px;
  background: #06080a;
}
.wa-demo .camera::after {
  content: '';
  position: absolute;
  right: 7px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 37% 34%, #466388, #111b2b 45%, #070a11 76%);
}
.wa-demo .indicators, .wa-demo .call-icons { display: flex; align-items: center; gap: 6px; }
.wa-demo .indicators svg { display: block; }
.wa-demo .call-icons { gap: 13px; margin-left: auto; color: #e1e9ee; }
.wa-demo .phone-header > svg { color: #e1e9ee; flex: none; }
.wa-demo .phone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 9px 12px;
  background: #18242b;
  border-bottom: 1px solid #26343b;
}
.wa-demo .avatar {
  display: grid;
  place-items: center;
  flex: 0 0 33px;
  height: 33px;
  border-radius: 50%;
  background: #f6ac30;
  color: #171106;
  font-size: 14px;
  font-weight: 750;
}
.wa-demo .contact { display: grid; gap: 1px; font-size: 14px; }
.wa-demo .status { color: #a4cdb7; font-size: 11px; }
.wa-demo .status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  vertical-align: .12em;
  border-radius: 50%;
  background: #6be5a3;
}
.wa-demo .chat {
  display: grid;
  align-content: end;
  gap: 11px;
  padding: 18px 12px 14px;
  background-color: #0b141a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='96' viewBox='0 0 112 96' fill='none' stroke='%23b0c7ce' stroke-opacity='.10' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 15h15a4 4 0 0 1 4 4v7a4 4 0 0 1-4 4h-9l-5 4v-4h-1a4 4 0 0 1-4-4v-7a4 4 0 0 1 4-4Zm2 8h11m58 26 6-3 6 3v8l-6 4-6-4v-8Zm-46 25 5-2 2-5 2 5 5 2-5 2-2 5-2-5-5-2Zm42-63 2-5 2 5 5 2-5 2-2 5-2-5-5-2 5-2Z'/%3E%3Ccircle cx='16' cy='65' r='3'/%3E%3Ccircle cx='61' cy='33' r='2'/%3E%3Cpath d='M99 79h4m-2-2v4M57 91l2-2m47-72 2 2'/%3E%3C/svg%3E");
}
.wa-demo .date {
  justify-self: center;
  padding: 4px 8px;
  border-radius: 7px;
  background: #1b272e;
  color: #b5c3c9;
  font-size: 11px;
}
.wa-demo .slot { display: grid; align-items: start; }
.wa-demo .slot > * { grid-area: 1 / 1; }
.wa-demo .bubble {
  width: fit-content;
  max-width: 89%;
  margin: 0;
  padding: 8px 10px 6px;
  border-radius: 5px 13px 13px 13px;
  background: #202d35;
  color: #edf4ef;
  font-size: 14px;
  line-height: 1.35;
}
.wa-demo .out {
  justify-self: end;
  border-radius: 13px 5px 13px 13px;
  background: #075447;
}
.wa-demo .stamp {
  display: block;
  margin-top: 3px;
  color: #b2c7c7;
  text-align: right;
  font-size: 10px;
}
.wa-demo .stamp b { color: #80c9ef; font-size: 11px; font-weight: 600; letter-spacing: -.22em; margin-right: 2px; }
.wa-demo .typing {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 4px;
  padding: 11px 13px;
  min-height: 36px;
  border-radius: 12px 5px 12px 12px;
  background: #075447;
}
.wa-demo .typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b8f2d3;
  animation: wa-demo-pulse 1s ease-in-out infinite;
}
.wa-demo .typing span:nth-child(2) { animation-delay: .13s; }
.wa-demo .typing span:nth-child(3) { animation-delay: .26s; }
.wa-demo .booking {
  display: flex;
  align-items: center;
  gap: 11px;
  justify-self: end;
  width: min(89%, 244px);
  margin: 0;
  padding: 12px;
  background: #11382e;
  border: 1px solid #448b6d;
  border-radius: 13px;
}
.wa-demo .booking-icon {
  display: grid;
  place-items: center;
  flex: 0 0 33px;
  height: 33px;
  border-radius: 9px;
  color: #a2f0bd;
  background: #26523c;
}
.wa-demo .booking div { display: grid; gap: 3px; min-width: 0; }
.wa-demo .booking strong { color: #baf3ce; font-size: 13px; font-weight: 680; }
.wa-demo .booking span:not(.booking-icon) { color: #f2faf5; font-size: 15px; font-weight: 620; }
.wa-demo .composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 3px;
  background: #0b141a;
  color: #a8b8c0;
}
.wa-demo .composer-field {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 18px;
  background: #202c34;
  font-size: 12px;
}
.wa-demo .composer > svg { flex: none; }
.wa-demo .composer .mic {
  display: grid;
  place-items: center;
  flex: 0 0 33px;
  height: 33px;
  border-radius: 50%;
  background: #36c88e;
  color: #08221a;
}
.wa-demo .home-indicator { display: grid; align-items: end; justify-items: center; padding-bottom: 5px; }
.wa-demo .home-indicator span { width: 92px; height: 3px; border-radius: 8px; background: #b9c4ca; }
.wa-demo .agenda-toast {
  position: absolute;
  right: -27px;
  bottom: 85px;
  display: none;
  grid-template-columns: 36px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  width: 196px;
  padding: 11px;
  border: 1px solid #526b59;
  border-radius: 13px;
  background: linear-gradient(145deg, #1e2c25, #141d19);
  box-shadow: 0 14px 30px #000b;
  color: #f1f7f1;
}
.wa-demo .agenda-toast small { display: block; margin-bottom: 3px; color: #afc9b8; font-size: 11px; }
.wa-demo .agenda-toast strong { display: block; font-size: 13px; }
@media (min-width: 1080px) {
  .wa-demo .agenda-toast { display: grid; }
  .wa-demo .phone {
    transform: translateX(-42px);
    transition: transform .65s cubic-bezier(.16,1,.3,1), filter .65s ease;
  }
  .wa-demo > .replay, .wa-demo > figcaption { transform: translateX(-42px); }
  .wa-demo.is-complete .phone { transform: translateX(-48px) scale(.974); filter: brightness(.9); }
}
.wa-demo .replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 13px;
  border: 1px solid #38352e;
  border-radius: 22px;
  background: #161410;
  color: #e6efe9;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}
.wa-demo .replay:hover { color: #baf3ce; }
.wa-demo :focus-visible { outline: 2px solid #f6ac30; outline-offset: 4px; }
figcaption { max-width: 34ch; text-align: center; color: #b6aea3; font-size: 13px; line-height: 1.5; }
.wa-demo .chat [hidden] { display: none; }
.wa-demo .replay[hidden] { display: inline-flex; visibility: hidden; }
.wa-demo .chat.is-ready [data-beat]:not(.is-visible) { visibility: hidden; }
.wa-demo .chat.is-ready .is-visible { animation: wa-demo-arrive .38s cubic-bezier(.2,.75,.3,1) both; }
.wa-demo .chat.is-ready .booking.is-visible { animation-duration: .56s; }
.wa-demo.is-playing .agenda-toast:not(.is-visible) { visibility: hidden; }
.wa-demo.is-playing .agenda-toast.is-visible { animation: wa-demo-toast-in .55s .17s cubic-bezier(.16,1,.3,1) both; }
@keyframes wa-demo-arrive {
  from { opacity: 0; transform: translateY(6px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wa-demo-pulse {
  0%, 60%, 100% { opacity: .48; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
@keyframes wa-demo-toast-in {
  from { opacity: 0; transform: translate(-18px,12px) rotate(-4deg) scale(.94); }
  to { opacity: 1; transform: translate(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-demo .chat *, .wa-demo .chat.is-ready .is-visible, .wa-demo.is-playing .agenda-toast.is-visible { animation: none; }
  .wa-demo .phone { transition: none; }
}
