.acpf-flipbook {
	width: var(--acpf-width, 100%);
	max-width: 100%;
	margin: 0 auto 24px;
	background: transparent;
	font-family: inherit;
}

.acpf-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 360px;
	height: var(--acpf-height, 720px);
	padding: 24px;
	background: var(--acpf-bg, #50575e);
	overflow: hidden;
	outline: none;
	box-sizing: border-box;
}

.acpf-stage:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: -2px;
}

.acpf-loader[hidden],
.acpf-error[hidden],
.acpf-page-info[hidden] {
	display: none !important;
}

.acpf-pages-ready .acpf-loader {
	display: none !important;
}

.acpf-flipbook:fullscreen {
	width: 100%;
	height: 100%;
	background: #111;
}

.acpf-flipbook:fullscreen .acpf-stage {
	height: calc(100vh - 58px);
}

.acpf-book {
	position: relative;
	max-width: 100%;
	max-height: 100%;
	margin: 0 auto;
	transform-style: preserve-3d;
}

.acpf-book::before {
	content: "";
	position: absolute;
	inset: -14px;
	z-index: -1;
	background: radial-gradient(circle at center, rgb(255 255 255 / 16%), transparent 62%);
	pointer-events: none;
}

.acpf-pageflip-page {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	overflow: hidden;
	box-sizing: border-box;
	box-shadow: 0 16px 38px rgb(0 0 0 / 22%);
}

.acpf-pageflip-page-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	overflow: hidden;
	box-sizing: border-box;
}

.acpf-pageflip-page-inner::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(90deg, rgb(0 0 0 / 9%), transparent 8%, transparent 92%, rgb(0 0 0 / 7%));
	mix-blend-mode: multiply;
	opacity: 0.36;
}

.acpf-rendered-page {
	display: block;
	max-width: 100%;
	max-height: 100%;
	background: #fff;
}

.acpf-page-number {
	position: absolute;
	right: 12px;
	bottom: 10px;
	z-index: 2;
	min-width: 24px;
	padding: 2px 6px;
	background: var(--acpf-page-number-bg, rgb(255 255 255 / 76%));
	color: var(--acpf-page-number-color, #475467);
	font-size: 11px;
	line-height: 1.4;
	text-align: center;
}

.acpf-pageflip-page:nth-child(even) .acpf-page-number {
	right: auto;
	left: 12px;
}

.acpf-loader {
	position: absolute;
	z-index: 20;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: rgb(255 255 255 / 92%);
	color: #1d2327;
	font-size: 14px;
	box-shadow: 0 8px 20px rgb(0 0 0 / 16%);
}

.acpf-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid rgb(0 0 0 / 18%);
	border-top-color: #1d2327;
	border-radius: 50%;
	animation: acpf-spin 0.7s linear infinite;
}

.acpf-error {
	max-width: 520px;
	padding: 18px 20px;
	background: #fff;
	color: #1d2327;
	text-align: center;
	box-shadow: 0 12px 36px rgb(0 0 0 / 22%);
}

.acpf-error strong,
.acpf-error a {
	display: block;
	margin: 6px 0;
}

.acpf-toolbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 56px;
	padding: 8px 12px;
	background: var(--acpf-toolbar-bg, #fff);
	border: 1px solid #e5e7eb;
	border-top: 0;
	flex-wrap: wrap;
}

.acpf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid #d0d5dd;
	background: #fff;
	color: #1f2937;
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.acpf-button:hover,
.acpf-button:focus {
	background: #f3f4f6;
	color: #111827;
	outline: 2px solid transparent;
}

.acpf-button:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.acpf-button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.acpf-open-pdf {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.acpf-page-info {
	min-width: 112px;
	padding: 0 8px;
	text-align: center;
	font-size: 13px;
	color: #344054;
}

.acpf-separator {
	width: 1px;
	height: 24px;
	background: #d0d5dd;
	margin: 0 4px;
}

.acpf-notice {
	padding: 12px 14px;
	border-left: 4px solid #d63638;
	background: #fff;
	color: #1d2327;
}

@keyframes acpf-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.acpf-spinner {
		animation: none;
	}
}

@media (max-width: 767px) {
	.acpf-stage {
		height: min(var(--acpf-height, 720px), 72vh);
		min-height: 420px;
		padding: 16px;
	}

	.acpf-toolbar {
		gap: 6px;
		padding: 8px;
	}

	.acpf-button {
		min-width: 32px;
		height: 32px;
		font-size: 16px;
	}

	.acpf-page-info {
		order: -1;
		width: 100%;
		min-width: 100%;
		margin-bottom: 4px;
	}
}

/* v2.1.0: PageFlip containment fixes.
 * Prevents the generated PageFlip layers from leaking below the book area on landscape PDFs.
 */
.acpf-book,
.acpf-book.stf__parent,
.acpf-book .stf__wrapper,
.acpf-book .stf__block,
.acpf-book .stf__item,
.acpf-book .stf__page,
.acpf-book .stf__page-wrapper {
	overflow: hidden !important;
	box-sizing: border-box;
}

.acpf-book.stf__parent,
.acpf-book .stf__wrapper,
.acpf-book .stf__block {
	max-width: 100% !important;
	max-height: 100% !important;
}


.acpf-book.acpf-is-building {
	overflow: hidden !important;
}

.acpf-book.acpf-is-building .acpf-pageflip-page {
	visibility: hidden;
}

.acpf-pageflip-page,
.acpf-pageflip-page-inner {
	width: var(--acpf-page-width, 100%) !important;
	height: var(--acpf-page-height, 100%) !important;
	max-width: var(--acpf-page-width, 100%) !important;
	max-height: var(--acpf-page-height, 100%) !important;
	overflow: hidden !important;
}

.acpf-pageflip-page * {
	box-sizing: border-box;
}

.acpf-pageflip-page canvas,
.acpf-rendered-page {
	object-fit: contain;
}
