.wp-block-acs-pdf-slide-viewer-pdf-slide.psv-block,
.psv-block {
	--psv-bg: #0f172a;
	--psv-panel: #111827;
	--psv-text: #f8fafc;
	--psv-muted: #cbd5e1;
	--psv-accent: #f59e0b;
	--psv-border: rgba(148, 163, 184, 0.38);
	box-sizing: border-box;
	margin-bottom: 1.5rem;
	margin-top: 1.5rem;
}

.psv-block *,
.psv-block *::before,
.psv-block *::after {
	box-sizing: border-box;
}

.psv-shell {
	background: var(--psv-bg);
	border: 1px solid var(--psv-border);
	border-radius: 8px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
	overflow: hidden;
}

.psv-stage {
	aspect-ratio: var(--psv-aspect-ratio, 16 / 9);
	background: var(--psv-bg);
	max-height: var(--psv-height, 560px);
	overflow: hidden;
	position: relative;
	width: 100%;
}

.psv-block.is-zoomed .psv-stage {
	overflow: auto;
}

.psv-frame-wrap {
	align-items: center;
	background: #111827;
	display: flex;
	height: 100%;
	inset: 0;
	justify-content: center;
	position: absolute;
	width: 100%;
}

.psv-canvas {
	background: #ffffff;
	display: block;
	height: auto;
	max-height: 100%;
	max-width: 100%;
	width: auto;
}

.psv-block.is-zoomed .psv-canvas {
	max-height: none;
	max-width: none;
}

.psv-loading {
	align-items: center;
	background: rgba(15, 23, 42, 0.82);
	color: var(--psv-text);
	display: flex;
	font-size: 0.95rem;
	font-weight: 700;
	inset: 0;
	justify-content: center;
	padding: 1rem;
	position: absolute;
	text-align: center;
}

.psv-loading[hidden] {
	display: none;
}

.psv-toolbar {
	align-items: center;
	background: var(--psv-panel);
	border-top: 1px solid var(--psv-border);
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: center;
	padding: 0.9rem;
}

.psv-toolbar button,
.psv-download {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 1px solid var(--psv-border);
	border-radius: 6px;
	color: var(--psv-text);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	gap: 0.45rem;
	justify-content: center;
	line-height: 1;
	min-height: 42px;
	min-width: 44px;
	padding: 0.62rem 0.82rem;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.psv-prev,
.psv-next {
	font-size: 1.4rem;
}

.psv-toolbar button:hover,
.psv-toolbar button:focus-visible,
.psv-download:hover,
.psv-download:focus-visible {
	background: #fbbf24;
	color: #111827;
	outline: 2px solid transparent;
}

.psv-toolbar button:disabled {
	cursor: not-allowed;
	opacity: 0.42;
}

.psv-status,
.psv-zoom-status {
	color: var(--psv-muted);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	min-width: 4.2rem;
	text-align: center;
}

.psv-zoom-status {
	min-width: 3.4rem;
}

.psv-download {
	font-size: 0.92rem;
	margin-left: 0.2rem;
}

.psv-block.alignwide {
	margin-left: auto;
	margin-right: auto;
	max-width: min(1200px, 100%);
}

.psv-block.alignfull .psv-shell {
	border-left: 0;
	border-radius: 0;
	border-right: 0;
}

@media (max-width: 640px) {
	.psv-block {
		--psv-height: none;
	}

	.psv-toolbar {
		gap: 0.45rem;
		padding: 0.7rem;
	}

	.psv-toolbar button,
	.psv-download {
		min-height: 38px;
		min-width: 38px;
		padding: 0.52rem 0.66rem;
	}

	.psv-status,
	.psv-zoom-status {
		min-width: 3.4rem;
	}

	.psv-download {
		flex-basis: 100%;
		margin-left: 0;
	}
}
