.barcode-scanner-button, .barcode-scanner-button:hover{
    display: flex;
    justify-content: center;
    align-items: center;
    padding:3px 0;
    width: 50px;
    height: 100%;
    position: absolute;
    right: 25px;
    top: 0;
    background: unset;
    fill: dimgray;
}

.barcode-scanner-main {
    position: fixed;
    display:none;
    justify-content: center;
    z-index: 100000;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.950);

}

.barcode-scanner-modal {
    width: 100%;
    padding: 10px 10px;
}

@media (min-width: 768px) {
    .barcode-scanner-modal {
        max-width: 767px;
    }
}

.barcode-buttons {
    display: flex;
    padding: 10px 0px;
    gap: 10px;

}
.barcode-torch-toggle, .barcode-exit-button {
    width: 100%;
    padding: 20px 5px;
}

.barcode-video-wrapper, .barcode-scanner-video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    overflow: hidden;
    position: relative;
}

.barcode-link-button {
    display: none;
    flex-direction: column;
    padding: 10px 0px;
    width: 100%;
    max-height: 40%;
    padding: 10px;
    overflow: hidden;
    word-break: break-word;
    word-wrap: break-word;
}

.barcode-link-button .barcode-link-button-text {
    padding-bottom: 10px;
}

.barcode-video-wrapper {
    padding: 10px 0px;
}
/* Horizontal line overlay */
.barcode-video-wrapper::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    height: 2px;
    background: rgba(255, 0, 0, 0.5);
    transform: translateY(-50%);
    pointer-events: none;
}

.amsearch-loader-block {
    right: 75px !important;
}