/* Sales-demo chrome only; product screens keep their own styles. */
.demo-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 5vw;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
}
.demo-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.demo-bar-text {
  opacity: 0.85;
  white-space: nowrap;
}
.demo-steps {
  display: flex;
  gap: 10px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
  font-size: 13px;
}
.demo-steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}
.demo-steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 11px;
}
.demo-steps li:not(:last-child)::after {
  content: "→";
  margin-left: 4px;
  opacity: 0.5;
}
.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
}
.demo-live:not(:empty)::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7bd88f;
  box-shadow: 0 0 0 3px rgba(123, 216, 143, 0.25);
}
.demo-live.offline::before {
  background: #f0a35e;
  box-shadow: 0 0 0 3px rgba(240, 163, 94, 0.25);
}
.demo-live.pending::before {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}
.demo-bar-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.demo-steps ~ .demo-bar-actions,
.demo-live ~ .demo-bar-actions {
  margin-left: 0;
}
.demo-bar .button.small {
  min-height: 36px;
  padding: 7px 14px;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
}
.demo-bar .button.outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.demo-tag {
  margin-left: 12px;
  background: var(--lime);
  border-color: transparent;
}
.demo-billing {
  margin-top: 12px;
}
.demo-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.demo-order-alert {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(23, 47, 41, 0.28);
  animation: demo-pop 0.25s ease-out;
}
.demo-order-alert[hidden] {
  display: none;
}
@keyframes demo-pop {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
}
.demo-qr-dialog {
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}
.demo-qr-dialog::backdrop {
  background: rgba(23, 47, 41, 0.55);
}
.demo-qr-dialog form {
  display: grid;
  gap: 14px;
  padding: 20px 22px 22px;
  text-align: center;
}
.demo-qr-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.demo-qr-head .eyebrow {
  margin: 0;
}
.demo-qr-head .order-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
.demo-qr-dialog h2 {
  font-size: clamp(28px, 7vw, 36px);
}
.demo-qr-code {
  width: min(250px, 66vw);
  margin: 2px auto 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.demo-qr-code svg {
  display: block;
  width: 100%;
  height: auto;
}
.demo-qr-code.waiting {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: #f6f5f0;
}
.demo-qr-wait {
  margin: 0;
  padding: 0 16px;
  font-size: 14px;
  color: var(--muted, #625b50);
}
.demo-qr-dialog [data-demo-open][aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}
/* Until the relay has this demo, the product's own QR code waits and its sharing actions say so (demo-ui.js). */
.demo-relay-pending #menu-qr {
  position: relative;
}
.demo-relay-pending #menu-qr > * {
  visibility: hidden;
}
.demo-relay-pending #menu-qr::after {
  content: "Preparing your live menu…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f6f5f0;
  font-size: 14px;
  color: var(--muted, #625b50);
}
.demo-relay-pending :is([data-publish="copy"], [data-publish="download"], [data-publish="print"], #publish-panel a[target="_blank"], [data-tables="preview"], [data-tables="pdf"], [data-demo-guest]) {
  opacity: 0.45;
  cursor: progress;
}
.demo-qr-table {
  font-size: 18px;
  font-weight: 600;
}
.demo-qr-tables {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.demo-qr-tables .tag {
  min-height: 36px;
  padding: 6px 12px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}
.demo-qr-tables .tag[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.demo-qr-dialog .cloud-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.demo-qr-dialog .cloud-actions .button {
  padding: 12px 14px;
}
.demo-qr-status:empty {
  display: none;
}
.demo-guest-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  background: #172f29;
  color: #fff;
  font-size: 12.5px;
  text-align: center;
}
.demo-check {
  margin: 0;
  font-size: 13px;
  color: #5d6b63;
}
.demo-ended {
  margin: 12px 0 18px;
}
@media (max-width: 980px) {
  .demo-steps {
    display: none;
  }
  .demo-live ~ .demo-bar-actions {
    margin-left: auto;
  }
}
@media (max-width: 620px) {
  .demo-bar {
    gap: 10px;
    padding: 8px 16px;
  }
  .demo-bar-text,
  .demo-live {
    display: none;
  }
  .demo-bar-actions {
    margin-left: auto;
  }
  .demo-bar .button.small {
    padding: 6px 11px;
  }
  .demo-order-alert {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: space-between;
  }
  .demo-tag {
    margin: 8px 0 0;
  }
}
