/* Product QR Code Widget Styles */
.aelab-qr-code-wrapper {
    text-align: center;
    margin: 20px 0;
}

.aelab-qr-icon {
    display: inline-block;
    cursor: pointer !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    line-height: 0;
    pointer-events: auto !important;
}

.aelab-qr-icon:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.aelab-qr-icon * {
    pointer-events: none;
}

.aelab-qr-icon img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.aelab-qr-icon svg {
    display: block;
    width: 60px;
    height: 60px;
    fill: #333333;
}

/* Popup Styles */
.aelab-qr-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.aelab-qr-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.aelab-qr-popup-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    overflow: auto;
}

.aelab-qr-popup-overlay.active .aelab-qr-popup-content {
    transform: scale(1);
}

.aelab-qr-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
    color: #666;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.aelab-qr-popup-close:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.aelab-qr-popup-close:active {
    transform: scale(0.95);
}

.aelab-qr-popup-close::before {
    content: '×';
    font-size: 28px;
    line-height: 1;
    display: block;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

.aelab-qr-popup-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.aelab-qr-popup-code canvas,
.aelab-qr-popup-code img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
}

.aelab-qr-popup-title {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .aelab-qr-popup-content {
        padding: 20px;
    }
    
    .aelab-qr-popup-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
    
    .aelab-qr-popup-close::before {
        font-size: 26px;
    }
    
    .aelab-qr-popup-title {
        font-size: 16px;
    }
}
