.scanid-buttons {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 10000;
}
.scanid-buttons button:not(:last-child) {
  margin-right: 15px;
}
.scanid-overlay {
  content: "";
  display: block;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}
.scanid-wrapper {
  position: fixed;
  z-index: 10001;
  width: min(500px, calc(100vw - 30px));
  height: max(300px, calc(100vh - 30px - 50px));
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.scanid-wrapper video {
  height: 100%;
  width: 100%;
}
.scanid-wrapper .canvas {
  display: none;
}
.scanid-wrapper .scanid-buttons {
  margin: 15px 0;
  width: 100%;
  text-align: center;
  position: static;
}
body > .scanid-loading {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 2rem;
  height: 2rem;
  z-index: 1000;
  translate: -50% -50%;
}
.scanid-loading::after {
  content: "";
  display: block;
  position: absolute;
  border: 0.2rem solid #f2682b;
  border-top-color: transparent;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  animation: spin 1s linear infinite;
  z-index: 12;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
