body {
  margin: 0;
  background: #222;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* The company's website: the screenshot at the page's width; the page scrolls it. */
#backdrop {
  display: block;
  width: 100%;
  height: auto;
}

/* A card fixed over the website, on its left. */
.demo-card {
  position: fixed;
  left: 24px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(20, 24, 36, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.demo-card-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9fb0c8;
}

#phone {
  bottom: 24px;
}

#phone-number {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

/* A line between two sections of a card. */
.demo-card-divider {
  height: 1px;
  margin: 14px 0;
  background: rgba(255, 255, 255, 0.18);
}

/* The restaurant's QR codes, in the phone card below the number. */
#qr-codes {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.qr-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-code-image {
  width: 120px;
  height: 120px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
}

.qr-code-image svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Avatar viewport: fixed bottom-right so it stays in place while the backdrop scrolls. Visual
   chrome (background, radius, shadow) is owned by the widget. */
#avatar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  height: 540px;
}

/* Minimized viewport — same anchor and margins, smaller. "Loading Avatar…" shows until the widget
   replaces it with its own chrome. */
#avatar-min {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 120px;
  height: 170px;
  box-sizing: border-box;
  padding-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  text-align: center;
}

/* Narrow: the avatar viewport spans the screen with equal margins, capped to the screen's height,
   at the desktop viewport's 2:3. */
@media (max-width: 640px) {
  #avatar {
    left: 24px;
    right: 24px;
    width: auto;
    height: auto;
    aspect-ratio: 2 / 3;
    max-height: calc(100vh - 48px);
  }

  .demo-card {
    left: 12px;
  }

  #phone {
    bottom: 12px;
  }

  .qr-code-image {
    width: 84px;
    height: 84px;
  }
}
