.pdfdraft-embed-pdf {
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	box-sizing: border-box;
	min-width: 0;
}

.pdfdraft-embed-pdf__toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	background: #f8f8fa;
	border-bottom: 1px solid #e2e4e7;
	flex-wrap: wrap;
}

.pdfdraft-embed-pdf__btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border: 1px solid #d0d5dd;
	background: #fff;
	color: #344054;
	border-radius: 6px;
	padding: 5px 10px;
	font-size: 12px;
	cursor: pointer;
	white-space: nowrap;
}

.pdfdraft-embed-pdf__btn:hover {
	background: #f9fafb;
}

/* Fullscreen button: show expand icon by default, compress icon when active */

.pdfdraft-embed-pdf__btn--fullscreen .pdfdraft-embed-pdf__icon-compress {
	display: none;
}

.pdfdraft-embed-pdf__btn--fullscreen[aria-pressed="true"] .pdfdraft-embed-pdf__icon-expand {
	display: none;
}

.pdfdraft-embed-pdf__btn--fullscreen[aria-pressed="true"] .pdfdraft-embed-pdf__icon-compress {
	display: block;
}

.pdfdraft-embed-pdf__status {
	font-size: 12px;
	color: #475467;
	min-width: 52px;
	text-align: center;
}

.pdfdraft-embed-pdf__spacer {
	flex: 1;
}

.pdfdraft-embed-pdf__viewport {
	position: relative;
	overflow: auto;
	background: #f2f4f7;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 12px;
	width: 100%;
	box-sizing: border-box;
}

.pdfdraft-embed-pdf__canvas {
	display: block;
	flex: none;
	background: #fff;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
}

.pdfdraft-embed-pdf.is-loading .pdfdraft-embed-pdf__canvas {
	opacity: 0;
}

.pdfdraft-embed-pdf__loader {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: rgba(242, 244, 247, 0.92);
	color: #475467;
	font-size: 13px;
}

.pdfdraft-embed-pdf__loader-spinner {
	width: 26px;
	height: 26px;
	border: 2px solid #d0d5dd;
	border-top-color: #e50001;
	border-radius: 999px;
	animation: pdfdraft-embed-spin 0.8s linear infinite;
}

.pdfdraft-embed-pdf__loader.is-error .pdfdraft-embed-pdf__loader-spinner {
	display: none;
}

.pdfdraft-embed-pdf__loader.is-error {
	color: #b42318;
}

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

/* ── Fullscreen layout ──────────────────────────────────────────────────── */

.pdfdraft-embed-pdf:fullscreen .pdfdraft-embed-pdf__viewport,
.pdfdraft-embed-pdf:-webkit-full-screen .pdfdraft-embed-pdf__viewport {
	flex: 1;
	height: auto !important;
	min-height: 0;
	background: #1a1a1a;
}

