.scan-demo { position: relative; }
.scan-demo [hidden] { display: none !important; }
.scan-demo__toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 42, 64, .65);
  cursor: pointer;
  transition: opacity .15s ease, background-color .15s ease;
}
.scan-demo__toggle:hover { background: rgba(20, 42, 64, .85); }
.scan-demo__toggle:focus-visible { outline: 3px solid #26a2ff; outline-offset: 3px; }
.scan-demo__icon { display: none; width: 20px; height: 20px; fill: currentColor; }
.scan-demo__toggle[data-state="play"] .scan-demo__icon--play,
.scan-demo__toggle[data-state="pause"] .scan-demo__icon--pause { display: block; }
@media (hover: hover) and (pointer: fine) {
  .scan-demo__toggle[data-state="pause"]:not(:focus-visible) { opacity: 0; pointer-events: none; }
  .scan-demo:hover .scan-demo__toggle[data-state="pause"] { opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .scan-demo__toggle { transition: none; }
}
.scan-demo__status {
  position: absolute;
  right: 16px;
  bottom: 68px;
  left: 16px;
  padding: 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(20, 42, 64, .88);
  font-size: 13px;
  text-align: center;
}
