.qr-scanner-wrapper-5ef7028f {
    display: inline-block;
}

.qr-scan-trigger-5ef7028f {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.qr-scan-trigger-5ef7028f:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.qr-scan-trigger-5ef7028f:active {
    transform: translateY(1px);
}

.qr-btn-icon-5ef7028f svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Modal styling */
.qr-modal-5ef7028f {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.admin-bar .qr-modal-5ef7028f {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}
@media screen and (max-width: 782px) {
    body.admin-bar .qr-modal-5ef7028f {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.qr-modal-overlay-5ef7028f {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.qr-modal-content-5ef7028f {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-modal-close-5ef7028f {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 28px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.qr-modal-close-5ef7028f:hover {
    color: #1a1a1a;
}

.qr-modal-title-5ef7028f {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.qr-reader-container-5ef7028f {
    width: 100%;
    aspect-ratio: 1;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

#qr-reader-5ef7028f {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

#qr-reader-5ef7028f video {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* Hide html5-qrcode library UI details to keep look clean */
#qr-reader-5ef7028f img {
    display: none !important;
}

.qr-modal-hint-5ef7028f {
    margin: 16px 0 0 0;
    font-size: 14px;
    color: #666;
    text-align: center;
}
