/* ── Shared ─────────────────────────────────────────────────────────────── */

.aema-pdf-embed-wrapper {
	width: 100%;
	position: relative;
}

.aema-pdf-embed-container {
	width: 100%;
}

/* ── Inline mode ────────────────────────────────────────────────────────── */

.aema-pdf-embed-inline {}

/* ── Full Window mode ───────────────────────────────────────────────────── */

/*
 * FULL_WINDOW mode needs the container to fill the viewport.
 * We stretch the wrapper to cover the screen; the theme's padding/margin
 * on the content area is negated with a negative margin trick so the
 * viewer truly fills edge-to-edge.
 */
.aema-pdf-embed-fullwindow {
	position: fixed;
	inset: 0;
	z-index: 9990;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.aema-pdf-embed-container--fullwindow {
	width: 100%;
	height: 100%;
}

/* Hide everything behind the full-window viewer */
body:has(.aema-pdf-embed-fullwindow) {
	overflow: hidden;
}

/* ── "View Full Window" link ────────────────────────────────────────────── */

.aema-pdf-embed-fullwindow-link {
	margin-top: 10px;
	text-align: right;
}

.aema-pdf-embed-fullwindow-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	background: #1a1a1a;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	border-radius: 4px;
	line-height: 1;
	transition: background 0.15s ease;
}

.aema-pdf-embed-fullwindow-btn:hover,
.aema-pdf-embed-fullwindow-btn:focus {
	background: #cc1818;
	color: #fff;
	text-decoration: none;
}

.aema-pdf-embed-fullwindow-btn svg {
	flex-shrink: 0;
}

/* ── Admin notice ───────────────────────────────────────────────────────── */

.aema-pdf-embed-notice {
	padding: 12px 16px;
	background: #fff8e5;
	border-left: 4px solid #f0b849;
	color: #3c3c3c;
	font-size: 14px;
}

.aema-pdf-embed-notice a {
	color: inherit;
	font-weight: 600;
}
