﻿#scannerBox {
    width: 100%;
    max-width: 500px;
    margin: auto;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.2);
}

#scannerBox video {
    width: 100%;
    overflow: hidden;
}

#scannerBox__reader {
    border: none !important;
}

#scannerBox__reader img {
    display: none !important;
}

#scannerBox__reader span {
    display: none !important;
}

.scannerOverlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 24px;
    overflow: hidden;
}

.scannerOverlay::before {
    content: "";
    position: absolute;
    inset: 20%;
    border: 4px solid #ffffff;
    border-radius: 20px;
}

.scannerOverlay::after {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    height: 4px;
    background: #ffffff;
    top: 20%;
    animation: scannerMove 2s linear infinite;
    box-shadow: 0 0 20px #ffffff;
}

@keyframes scannerMove {
    0% {
        top: 20%;
    }

    50% {
        top: 80%;
    }

    100% {
        top: 20%;
    }
}

div#scannerBox__reader:empty + .scannerOverlay {
    display: none;
}

.scannerMessage {
    padding: 20px;
    text-align: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
}

.scannerRetryBtn {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    background: #ffffff;
    color: #000000;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}