/* PCU — Lightbox ảnh tuỳ biến (vanilla) + badge góc thumbnail cart */

#pcu-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

#pcu-lightbox-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pcu-lightbox-inner {
    position: relative;
    max-height: 92vh;
    border-radius: 1.6rem;
    background: var(--background);
}

.pcu-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pcu-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    border: none;
    color: #333;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    background:transparent;
}

/* Badge SVG — overlay góc trên ảnh sản phẩm (woocommerce_cart_item_thumbnail) */

.pcu-cart-thumb-badge {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    z-index: 2;
    width: 2rem;
    height: auto;
    line-height: 0;
    pointer-events: none;
}

.pcu-cart-thumb-badge img {
    width: 100%;
    height: auto;
    display: block;
}

.pcu-custom-img-link {
    text-decoration: underline;
    font-weight: 500;
}

.pcu-order-custom-wrap {
    margin: 0.5rem 0 0;
}
