/**
 * Printess order-item lightbox styles
 * Loaded via: Printess_PrintessDesigner::css/printess-lightbox.css
 *
 * All selectors scope under .printess-lightbox so they never
 * leak into the rest of the page.
 */

/* ── Shell ── */
.printess-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    overflow: hidden;
    font-family: inherit;
}

/* ── Header bar ── */
.printess-lightbox .plb-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    box-sizing: border-box;
    background: #fff;
}

/* Zoom buttons — plain text, no border */
.printess-lightbox .plb-zoom-in,
.printess-lightbox .plb-zoom-out {
    background: none;
    border: none;
    padding: 0 4px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    flex-shrink: 0;
}
.printess-lightbox .plb-zoom-in:hover,
.printess-lightbox .plb-zoom-out:hover {
    color: #000;
}

/* Title */
.printess-lightbox .plb-title {
    flex: 1;
    font-size: 13px;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 8px;
}

/* Close button — top-right, no border */
.printess-lightbox .plb-close {
    position: absolute;
    top: 8px; right: 12px;
    background: none;
    border: none;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #333;
}
.printess-lightbox .plb-close:hover {
    color: #000;
}

/* ── Main viewport ── */
.printess-lightbox .plb-viewport {
    position: absolute;
    top: 44px; left: 0; right: 0; bottom: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.printess-lightbox .plb-img {
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform .2s ease;
}

/* ── Side arrows ── */
.printess-lightbox .plb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0 8px;
    font-size: 52px;
    line-height: 1;
    cursor: pointer;
    color: rgba(0, 0, 0, .18);
    transition: color .15s;
    z-index: 2;
    user-select: none;
}
.printess-lightbox .plb-arrow:hover {
    color: rgba(0, 0, 0, .45);
}
.printess-lightbox .plb-prev { left: 0; }
.printess-lightbox .plb-next { right: 0; }
.printess-lightbox .plb-arrow.plb-hidden { display: none; }

/* ── Thumbnail strip — bottom-left ── */
.printess-lightbox .plb-thumbs {
    position: absolute;
    bottom: 12px; left: 12px;
    display: flex;
    gap: 6px;
    align-items: flex-end;
}
.printess-lightbox .plb-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
    opacity: .65;
    transition: opacity .15s, border-color .15s;
}
.printess-lightbox .plb-thumb:hover { opacity: .9; }
.printess-lightbox .plb-thumb.plb-active {
    border-color: #333;
    opacity: 1;
}