.csp-qr-artwork-widget {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
}

/* This stylesheet only loads on QR-config product pages (see
   maybeEnqueue()), so this rule never reaches non-QR products. Hides the
   global "Digital Proof?" add-on immediately, before JS pre-selects "No";
   see autoSelectNoDigitalProof() in csp-qr-artwork.js. */
.product-addon-digital-proof {
    display: none !important;
}

.csp-qr-artwork-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.csp-qr-upload-button {
    display: inline-block;
    padding: 10px 18px;
    background: #2c3e50;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.csp-qr-upload-button:hover {
    background: #1a252f;
}

.csp-qr-status {
    font-size: 14px;
}

.csp-qr-status-ok {
    color: #2e7d32;
}

.csp-qr-status-error {
    color: #c62828;
    font-weight: 600;
}

.csp-qr-preview-panel {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #ddd;
}

.csp-qr-preview-label {
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 10px;
}

.csp-qr-preview-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.csp-qr-toggle-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #2c3e50;
    cursor: pointer;
}

.csp-qr-toggle-btn:hover {
    border-color: #2c3e50;
}

.csp-qr-toggle-active {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
}

.csp-qr-preview-large {
    width: 100%;
}

.csp-qr-preview-img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    cursor: zoom-in;
    transition: box-shadow 0.15s ease;
}

.csp-qr-preview-img:hover {
    box-shadow: 0 0 0 2px #2c3e50;
}

.csp-qr-preview-hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: #666;
}

.csp-qr-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.csp-qr-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.csp-qr-lightbox-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 30px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.csp-qr-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

body.csp-qr-lightbox-open {
    overflow: hidden;
}
