/* Shared utility */
.hidden {
    display: none !important;
}

body.hp-protected-document-modal-open {
    overflow: hidden;
    height: 100%;
}

/* Shared spinner (visual + positioning) */
.hp-protected-document-viewer-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;

    width: 48px;
    height: 48px;
    border: 5px solid #ddd;
    border-top-color: #005baa;
    border-radius: 50%;
}

/* Shared modal overlay */
.hp-protected-document-viewer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hp-protected-document-viewer-overlay.hp-protected-document-viewer-open {
    display: flex;
    opacity: 1;
}

/* Shared modal box */
.hp-protected-document-viewer-box {
    background: #ffffff;
    width: 90%;
    max-width: 1100px;
	min-height: 0;
    height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Shared header */
.hp-protected-document-viewer-header {
    background: #005baa;
    color: #fff;
    padding: 12px 16px;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Shared close button */
.hp-protected-document-viewer-close {
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
}

/* Shared action buttons */
.hp-protected-document-viewer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 16px;
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
}
