@layer react-barcode-scanner {
  @keyframes rbs-camera-loading-spin {
    to {
      transform: rotate(360deg);
    }
  }

  .rbs\:camera-loading {
    background-color: var(--rbs-camera-loading-background, #00000073);
    z-index: 1;
    justify-content: center;
    align-items: center;
    display: flex;
    position: absolute;
    inset: 0;
  }

  .rbs\:camera-loading-icon {
    color: var(--rbs-camera-loading-icon-color, #fff);
    width: var(--rbs-camera-loading-icon-size, 72px);
    height: var(--rbs-camera-loading-icon-size, 72px);
    animation: .75s linear infinite rbs-camera-loading-spin;
  }

  @media (prefers-reduced-motion: reduce) {
    .rbs\:camera-loading-icon {
      animation: none;
    }
  }
}
@layer react-barcode-scanner {
  .rbs\:camera-off {
    border-width: var(--rbs-camera-off-border-width, 8px);
    border-style: solid;
    border-color: var(--rbs-camera-off-border-color, #eee);
    border-radius: var(--rbs-camera-off-border-radius, var(--rbs-border-radius, 5px));
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    display: flex;
    position: absolute;
    inset: 0;
  }

  .rbs\:camera-off-icon {
    width: var(--rbs-camera-off-icon-size, 65%);
    height: var(--rbs-camera-off-icon-size, 65%);
    opacity: var(--rbs-camera-off-icon-opacity, .2);
    color: var(--rbs-camera-off-icon-color, currentColor);
    margin: 0 auto;
    display: block;
  }
}
@layer react-barcode-scanner {
  .rbs\:flashlight-toggle-button {
    z-index: 2;
    aspect-ratio: 1;
    cursor: pointer;
    width: 50px;
    height: 50px;
    color: var(--rbs-flashlight-icon, #000);
    background-color: var(--rbs-flashlight-background, #fff);
    border: none;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    padding: 0;
    font-size: 20px;
    display: flex;
    position: absolute;
    bottom: 7px;
    right: 7px;
  }

  .rbs\:flashlight-toggle-button.rbs\:flashlight-on {
    color: var(--rbs-flashlight-background, #fff);
    background-color: var(--rbs-flashlight-icon, #000);
    box-shadow: 0 0 8px 2px var(--rbs-flashlight-background, #fff);
  }
}
@layer react-barcode-scanner {
  .rbs\:viewfinder {
    width: 100%;
    height: 100%;
    stroke: var(--rbs-viewfinder-stroke, #ff000080);
    stroke-width: var(--rbs-viewfinder-stroke-width, 3);
    position: absolute;
    top: 0;
    left: 0;
  }

  .rbs\:viewfinder-mask {
    fill: var(--rbs-viewfinder-overlay, #0000004d);
    stroke: none;
  }
}
@layer react-barcode-scanner {
  .rbs\:container {
    aspect-ratio: var(--rbs-aspect-ratio, 1);
    width: var(--rbs-width, 100%);
    border-radius: var(--rbs-border-radius, 0);
    position: relative;
    overflow: hidden;
  }

  .rbs\:video-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  .rbs\:video {
    object-fit: var(--rbs-video-object-fit, cover);
    width: 100%;
    height: 100%;
    display: block;
  }

  .rbs\:video-mirrored {
    scale: -1 1;
  }
}
