#lp-pdf-modal { display: none; }

.lp-pdf-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
}

.lp-pdf-modal-box {
    position: relative;
    width: 85%; height: 90%;
    background: #525659;
    border-radius: 8px;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.lp-pdf-toolbar {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #333;
    padding: 8px;
    color: #fff;
    z-index: 3;
    flex-shrink: 0;
}

.lp-pdf-toolbar button {
    background: #555;
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.lp-pdf-toolbar button:hover {
    background: #777;
}

#lp-zoom-level {
    min-width: 45px;
    text-align: center;
    font-size: 14px;
}

.lp-pdf-modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 26px;
    cursor: pointer;
    color: #fff;
    z-index: 2;
    line-height: 1;
}

#lp-pdf-pages {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    min-height: 0; /* required so flex children can center properly when scrollable */
}

.lp-pdf-page {
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    max-width: 100%;
    height: auto;
}

.lp-pdf-loader {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 16px;
}

.lp-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lp-spin 0.8s linear infinite;
}

@keyframes lp-spin {
    to { transform: rotate(360deg); }
}



/* single page view */


