.hotel-demo-backdrop {
  --frame-space: clamp(7px, 1.5vw, 20px);
  padding: var(--frame-space);
  border: 1px solid #c3d9ed;
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 0%, #c7e3fa, transparent 75%), #edf5fd;
  box-shadow: 0 10px 36px rgb(75 135 190 / 18%);
}

.hotel-demo-backdrop #demo {
  box-shadow: 0 3px 12px rgb(36 58 88 / 10%);
  scroll-margin-top: calc(var(--frame-space) + 1px);
}

#demo .product-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

#demo[data-enhanced] .product-top,
#demo[data-enhanced] .hotel-call .segment-head,
#demo #play-label,
#demo[data-enhanced] .transcript:not(.transcript-available, [open], :focus-within) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#hotel-example .player-bar:has(audio[hidden]) {
  gap: 12px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--play);
}

#hotel-example .button-play {
  position: relative;
  flex: none;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  color: var(--paper);
  background: var(--play-ink);
  box-shadow: 0 0 0 3px rgb(36 70 104 / 14%), 0 2px 5px rgb(36 70 104 / 23%);
}

#hotel-example .button-play:hover,
#hotel-example .button-play:focus-visible { background: #305a82; }
#hotel-example #play-icon { flex: none; line-height: 1; }

@media (prefers-reduced-motion: no-preference) {
  #hotel-example .button-play { transition: transform 140ms ease; }
  #hotel-example .button-play:hover { transform: scale(1.05); }
  #hotel-example .button-play:active { transform: scale(.95); }

  #hotel-example .play-invitation::after {
    position: absolute;
    inset: -1px;
    border: 2px solid #286da3;
    border-radius: inherit;
    box-shadow: 0 0 0 3px rgb(40 109 163 / 24%);
    content: "";
    opacity: 0;
    pointer-events: none;
    animation: hotel-play-pulse 1.1s ease-out .22s 2;
  }

  #hotel-example .play-invitation #play-icon {
    animation: hotel-play-nudge 1.1s ease-in-out .22s 2;
  }

  @keyframes hotel-play-pulse {
    from { opacity: .72; transform: scale(1); }
    to { opacity: 0; transform: scale(1.43); }
  }

  @keyframes hotel-play-nudge {
    0%, 48%, 100% { transform: none; }
    18% { transform: translate(2px, -2px) rotate(-10deg) scale(1.17); }
    32% { transform: translateX(-.5px) scale(.96); }
  }
}

#demo[data-enhanced] #hotel-example { grid-template-columns: minmax(0, 1fr); }
#demo[data-enhanced] #hotel-example .segment + .segment {
  border-left: 0;
  border-top: 1px solid var(--line);
}

#hotel-example .badge[data-state="confirmed"] { background: var(--review); color: var(--review-ink); }
.hotel-caption { margin-block: 8px; }
.hotel-caption.message strong {
  display: inline;
  font-size: inherit;
  font-weight: 700;
  color: inherit;
}
.hotel-call-event {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 7px;
  background: var(--soft);
  overflow-wrap: anywhere;
}
.hotel-call-event p { font-size: 16px; }

@media (max-width: 620px) {
  .hotel-demo-backdrop { border-radius: 17px; }
}

@media (forced-colors: active) {
  .hotel-demo-backdrop { border-color: CanvasText; }
  #hotel-example .button-play { border-color: ButtonText; }
}
