/**
 * Adobe full-window viewer shell styles.
 *
 * @package WebEquipe\PDFSearch
 */

.webequipe-adobe-viewer-shell {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: #1a1a1a;
	display: flex;
	flex-direction: column;
}

.webequipe-adobe-viewer-shell[hidden] {
	display: none !important;
}

.webequipe-adobe-viewer-close {
	position: absolute;
	top: 8px;
	right: 50px;
	z-index: 100001;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.webequipe-adobe-viewer-close:hover,
.webequipe-adobe-viewer-close:focus {
	background: rgba(0, 0, 0, 0.85);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.webequipe-adobe-dc-view {
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	min-height: 100%;
}

html.webequipe-adobe-viewer-open,
body.webequipe-adobe-viewer-open {
	overflow: hidden;
}

/*
 * Logged-in WP admin bar is 32px (46px ≤782px) with z-index 99999.
 * Offset the shell so the bar stays usable and PDF chrome isn't buried.
 */
body.admin-bar .webequipe-adobe-viewer-shell {
	top: 32px !important;
	height: calc(100% - 32px) !important;
	max-height: calc(100% - 32px) !important;
}

@media screen and (max-width: 782px) {
	body.admin-bar .webequipe-adobe-viewer-shell {
		top: 46px !important;
		height: calc(100% - 46px) !important;
		max-height: calc(100% - 46px) !important;
	}
}
