#scanner-video > #qr-shaded-region > div:nth-child(1),#scanner-video > #qr-shaded-region > div:nth-child(2){
  width: 18px !important;
  height: 3px !important;
  top: -3px !important;
  border: 0;
}

#scanner-video > #qr-shaded-region > div:nth-child(3),#scanner-video > #qr-shaded-region > div:nth-child(4){
  width: 18px !important;
  height: 3px !important;
  bottom: -3px !important;
}

#scanner-video > #qr-shaded-region > div:nth-last-child(-n+4){
  width: 3px !important;
  height: 18px !important;
  border: 0;
}

#scanner-video > #qr-shaded-region > div:nth-child(1){
  left: -3px !important;
  border-radius: 5px 3px 3px 0;
}
#scanner-video > #qr-shaded-region > div:nth-child(5){
  top: -3px !important;
  left: -3px !important;
  border-radius: 5px 0 3px 3px;
}

#scanner-video > #qr-shaded-region > div:nth-child(2){
  right: -3px !important;
  border-radius: 3px 5px 0 3px;
}
#scanner-video > #qr-shaded-region > div:nth-child(7){
  top: -3px !important;
  right: -3px !important;
  border-radius: 0 5px 3px 3px;
}

#scanner-video > #qr-shaded-region > div:nth-child(3){
  left: -3px !important;
  border-radius: 0 3px 3px 5px;
}
#scanner-video > #qr-shaded-region > div:nth-child(6){
  bottom: -3px !important;
  left: -3px !important;
  border-radius: 3px 3px 0 5px;
}

#scanner-video > #qr-shaded-region > div:nth-child(4){
  right: -3px !important;
  border-radius: 3px 0 5px 3px;
}
#scanner-video > #qr-shaded-region > div:nth-child(8){
  bottom: -3px !important;
  right: -3px !important;
  border-radius: 3px 3px 5px 0;
}

#scanner-video > #qr-shaded-region{
  position: relative;
}

#scanner-video > #qr-shaded-region::before{
  content: "";
  position: absolute;
  top: 2%;
  left: 4%;
  width: 92%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  box-shadow: 0 0 8px 2px rgba(23, 162, 184, 0.8);
  animation: scannerAnimation 1s linear infinite alternate;
}

@keyframes scannerAnimation {
  0% {
    top: 4%;
  }
  50% {
    top: 50%;
  }
  100% {
    /* transform: translateX(0); */
    top: 96%;
  }
}

#scanner-video > #qr-shaded-region + div{
  display: none !important;
}