qrcode-reader {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  display: grid; }

qrcode-reader-data .qrcode-reader-data--retry-button, .qrcode-reader--close-popup-button {
  margin: 5px 10px 10px 10px;
  padding: 5px;
  font-size: 1.2rem; }

.qrcode-reader--video-wrapper {
  grid-area: 1 / 1 / 2 / 2;
  width: fit-content;
  height: fit-content;
  display: grid;
  justify-self: center;
  align-self: center; }

.qrcode-reader--video {
  grid-area: 1 / 1 / 2 / 2;
  justify-self: center;
  align-self: center;
  width: 100%;
  height: auto;
  max-height: 100%; }
  .fullscreen .qrcode-reader--video {
    height: 100vh; }

.qrcode-reader--fullscreen-button {
  z-index: 1;
  grid-area: 1 / 1 / 2 / 2;
  width: 1.8rem;
  height: 1.8rem;
  align-self: end;
  justify-self: end;
  border: none;
  fill: white;
  margin: 5px; }

.fullscreen .qrcode-reader--enter-fullscreen-icon {
  display: none; }

.qrcode-reader--exit-fullscreen-icon {
  display: none; }
  .fullscreen .qrcode-reader--exit-fullscreen-icon {
    display: block; }

.qrcode-reader--popup {
  grid-area: 1 / 1 / 2 / 2;
  align-self: center;
  justify-self: stretch;
  z-index: 1;
  overflow: hidden;
  --border-color: #47752F;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  margin: 10px;
  box-shadow: 0 0 10px 3px #ffffff;
  background: white;
  display: flex;
  flex-direction: column;
  justify-items: center; }
  .qrcode-reader--popup.error {
    --border-color: #C4381C; }
  .qrcode-reader--popup.closed {
    display: none; }
  .qrcode-reader--popup.invalid-qrcode qrcode-reader-validity,
  .qrcode-reader--popup.invalid-qrcode qrcode-reader-data,
  .qrcode-reader--popup.invalid-qrcode qrcode-reader-tally {
    display: none; }

.qrcode-reader--popup-errors {
  display: none;
  padding: 5px;
  background-color: #FCECE8;
  text-align: center;
  font-weight: 1.2rem;
  font-weight: bold;
  color: #C4381C; }
  .error .qrcode-reader--popup-errors:not(:empty) {
    display: block; }

@keyframes spinner-keyframes {
  100% {
    transform: rotate(360deg); } }

.qrcode-reader-section {
  --color: #47752F;
  --background-color: #F2F7EE;
  display: grid;
  gap: 3px;
  margin-bottom: 10px; }
  .qrcode-reader-section--header {
    padding: 0 5px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 5px;
    background: var(--background-color);
    font-size: 1.1rem;
    color: var(--color);
    fill: var(--color); }
  .qrcode-reader-section--spinner, .qrcode-reader-section--ok-icon, .qrcode-reader-section--error-icon {
    grid-area: 1 / 1 / 2 / 2; }
  .qrcode-reader-section--spinner {
    display: none; }
  .qrcode-reader-section--spinner-animation {
    transform-origin: center;
    animation: spinner-keyframes .75s infinite linear; }
  .qrcode-reader-section--error-icon {
    display: none; }
  .qrcode-reader-section--title {
    font-size: 1.2rem;
    grid-area: 1 / 2 / 2 / 3; }
  .qrcode-reader-section--errors {
    display: none;
    color: #C4381C;
    margin: 0 15px; }
  .qrcode-reader-section--content {
    margin: 0 15px; }
  .qrcode-reader-section.error {
    --color: #C4381C;
    --background-color: #FCECE8; }
    .qrcode-reader-section.error .qrcode-reader-section--errors {
      display: block; }
    .qrcode-reader-section.error .qrcode-reader-section--ok-icon {
      display: none; }
    .qrcode-reader-section.error .qrcode-reader-section--error-icon {
      display: block; }
  .qrcode-reader-section.loading {
    --color: black;
    --background-color: #CECECE; }
    .qrcode-reader-section.loading .qrcode-reader-section--ok-icon {
      display: none; }
    .qrcode-reader-section.loading .qrcode-reader-section--error-icon {
      display: none; }
    .qrcode-reader-section.loading .qrcode-reader-section--spinner {
      display: block; }

qrcode-reader-validity .qrcode-reader-section--content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 5px; }

qrcode-reader-validity .qrcode-reader-validity--label {
  align-self: end;
  font-weight: bold; }

qrcode-reader-data .qrcode-reader-section--content {
  display: grid; }

qrcode-reader-data .qrcode-reader-data--retry-button {
  font-size: 1rem;
  display: none; }

qrcode-reader-data .qrcode-reader-data--items {
  display: grid;
  grid-template-columns: auto 1fr; }

qrcode-reader-data .qrcode-reader-data--item-label {
  font-weight: bold;
  justify-self: end; }

qrcode-reader-data .qrcode-reader-data--item-value {
  display: flex;
  flex-wrap: wrap; }

qrcode-reader-data .qrcode-reader-section.error .qrcode-reader-data--retry-button {
  display: block; }
