.nle-pdf-viewer {
	width: 100%;
	margin: 1.5rem 0;
}

.nle-pdf-viewer__frame {
	display: block;
	width: 100%;
	height: var(--nle-pdf-viewer-height, 720px);
	min-height: 320px;
	border: 1px solid #d8d8d8;
	background: #f7f7f7;
}

.nle-pdf-viewer__fallback {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
}

@media (max-width: 782px) {
	.nle-pdf-viewer__frame {
		height: min(var(--nle-pdf-viewer-height, 720px), 70vh);
	}
}

html.nle-pdf-modal-is-open,
body.nle-pdf-modal-is-open {
	overflow: hidden;
}

.nle-pdf-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	padding: 32px;
}

.nle-pdf-modal.is-open {
	display: flex;
	align-items: center;
	justify-content: center;
}

.nle-pdf-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
}

.nle-pdf-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(1120px, 100%);
	height: min(860px, 92vh);
	background: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.nle-pdf-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	border-bottom: 1px solid #e2e2e2;
}

.nle-pdf-modal__title {
	margin: 0;
	overflow: hidden;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nle-pdf-modal__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
}

.nle-pdf-modal__zoom {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.nle-pdf-modal__zoom[hidden] {
	display: none;
}

.nle-pdf-modal .nle-pdf-modal__icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0 !important;
	border-radius: 0 !important;
	appearance: none;
	background: transparent !important;
	box-shadow: none !important;
	color: #111 !important;
	cursor: pointer;
	line-height: 0;
	outline: 0;
}

.nle-pdf-modal .nle-pdf-modal__icon-button:hover,
.nle-pdf-modal .nle-pdf-modal__icon-button:focus,
.nle-pdf-modal .nle-pdf-modal__icon-button:active {
	background: transparent !important;
	box-shadow: none !important;
	color: #111 !important;
	outline: 0;
}

.nle-pdf-modal .nle-pdf-modal__icon-button::before,
.nle-pdf-modal .nle-pdf-modal__icon-button::after {
	display: none !important;
	content: none !important;
}

.nle-pdf-modal .nle-pdf-modal__icon-button:disabled {
	opacity: 0.38;
	cursor: not-allowed;
}

.nle-pdf-modal .nle-pdf-modal__icon-button svg {
	color: #111 !important;
	display: block;
	width: 28px;
	height: 28px;
	fill: none;
	stroke: #111 !important;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.nle-pdf-modal .nle-pdf-modal__icon-button svg circle,
.nle-pdf-modal .nle-pdf-modal__icon-button svg path {
	stroke: #111 !important;
}

.nle-pdf-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 8px 14px;
	border: 1px solid #111;
	border-radius: 4px;
	background: #111;
	color: #fff;
	font: inherit;
	line-height: 1;
	cursor: pointer;
}

.nle-pdf-modal__close:hover,
.nle-pdf-modal__close:focus {
	border-color: #333;
	background: #333;
	color: #fff;
}

.nle-pdf-modal__body {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	background: #f7f7f7;
}

.nle-pdf-modal__frame {
	display: block;
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	min-height: 0;
	border: 0;
	background: #f7f7f7;
}

.nle-pdf-modal__pdfjs {
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	overflow: auto;
	padding: 14px;
	background: #525659;
}

.nle-pdf-modal__pdfjs[hidden],
.nle-pdf-modal__frame[hidden] {
	display: none;
}

.nle-pdf-modal__status {
	width: min(760px, 100%);
	margin: 24px auto;
	padding: 14px 16px;
	border-radius: 4px;
	background: #fff;
	color: #111;
	font-size: 15px;
	line-height: 1.45;
	text-align: center;
}

.nle-pdf-modal__status.is-error {
	border-left: 4px solid #b00020;
	text-align: left;
}

.nle-pdf-modal__pages {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	width: 100%;
}

.nle-pdf-modal__page {
	display: flex;
	justify-content: center;
	width: max-content;
	min-width: 100%;
}

.nle-pdf-modal__page canvas {
	display: block;
	height: auto;
	background: #fff;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
}

@media (max-width: 782px) {
	.nle-pdf-modal {
		padding: 12px;
	}

	.nle-pdf-modal__dialog {
		height: 88vh;
	}

	.nle-pdf-modal__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.nle-pdf-modal__title {
		width: 100%;
		font-size: 16px;
		white-space: normal;
	}

	.nle-pdf-modal__actions {
		justify-content: space-between;
		width: 100%;
	}

	.nle-pdf-modal__pdfjs {
		padding: 8px;
	}

	.nle-pdf-modal__pages {
		gap: 8px;
	}
}
