/* Boutik Clickable PDF */
.bcp-viewer {
	--bcp-bg: #e9eaee;
	--bcp-bar: #ffffff;
	--bcp-text: #1f2328;
	--bcp-muted: #6b7280;
	--bcp-border: #d6d8de;
	--bcp-accent: #2b6cb0;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: var(--bcp-height, 800px);
	border: 1px solid var(--bcp-border);
	border-radius: 6px;
	overflow: hidden;
	background: var(--bcp-bg);
	color: var(--bcp-text);
	font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
}
.bcp-viewer *,
.bcp-viewer *::before,
.bcp-viewer *::after { box-sizing: border-box; }

.bcp-viewer:fullscreen { height: 100vh; border: 0; border-radius: 0; }

/* Toolbar (reset theme/Elementor button styles) */
.bcp-viewer .bcp-toolbar {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	padding: 6px 10px;
	background: var(--bcp-bar);
	border-bottom: 1px solid var(--bcp-border);
}
.bcp-viewer .bcp-group { display: flex; align-items: center; gap: 4px; }
.bcp-viewer .bcp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 4px;
	background: transparent;
	color: var(--bcp-text);
	box-shadow: none;
	text-decoration: none;
	line-height: 1;
	cursor: pointer;
}
.bcp-viewer .bcp-btn:hover:not(:disabled),
.bcp-viewer .bcp-btn:focus-visible { background: var(--bcp-bg); color: var(--bcp-text); border-color: var(--bcp-border); }
.bcp-viewer .bcp-btn:focus-visible,
.bcp-viewer .bcp-page:focus-visible,
.bcp-viewer .bcp-zoom:focus-visible { outline: 2px solid var(--bcp-accent); outline-offset: 1px; }
.bcp-viewer .bcp-btn:disabled { opacity: .35; cursor: default; }
.bcp-viewer .bcp-btn svg { display: block; }
.bcp-viewer .bcp-page,
.bcp-viewer .bcp-zoom {
	height: 30px;
	margin: 0;
	padding: 0 6px;
	border: 1px solid var(--bcp-border);
	border-radius: 4px;
	background: #fff;
	color: var(--bcp-text);
	font: inherit;
	box-shadow: none;
}
.bcp-viewer .bcp-page { width: 56px; text-align: center; -moz-appearance: textfield; }
.bcp-viewer .bcp-page::-webkit-inner-spin-button,
.bcp-viewer .bcp-page::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bcp-viewer .bcp-count { color: var(--bcp-muted); white-space: nowrap; margin-right: 2px; }
.bcp-viewer .bcp-zoom { width: auto; min-width: 96px; }

/* Document area – PDF.js requires an absolutely positioned scroll container */
.bcp-viewer .bcp-stage { position: relative; flex: 1 1 auto; min-height: 0; }
.bcp-viewer .bcp-scroll {
	position: absolute;
	inset: 0;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}
.bcp-viewer .pdfViewer { padding: 12px 0; }
.bcp-viewer .pdfViewer .page { box-shadow: 0 1px 4px rgba(0,0,0,.18); border: 0; margin: 0 auto 12px; }

/* Auto-detected links (TOC lines, plain-text URLs) live in the text layer */
.bcp-viewer .textLayer span.bcp-autolink { cursor: pointer; }
.bcp-viewer .textLayer span.bcp-inline { position: static; } /* part of a text span, stays in flow */
/* The text layer is drawn at 25% opacity, so a strong colour gives a light highlight. */
.bcp-viewer .textLayer span.bcp-autolink:hover,
.bcp-viewer .textLayer span.bcp-autolink:focus-visible { background: rgba(43,108,176,.7); outline: none; }

/* Clickable links: hand cursor + subtle highlight on hover */
.bcp-viewer .annotationLayer .linkAnnotation > a { cursor: pointer; }
.bcp-viewer .annotationLayer .linkAnnotation > a:hover { background: rgba(43,108,176,.15); box-shadow: 0 0 0 1px rgba(43,108,176,.35); }

.bcp-viewer .bcp-status {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
	padding: 20px;
	text-align: center;
	color: var(--bcp-muted);
	pointer-events: none;
}
.bcp-viewer .bcp-status.bcp-error { color: #9b1c1c; pointer-events: auto; background: var(--bcp-bg); }
.bcp-viewer .bcp-status a { color: var(--bcp-accent); text-decoration: underline; }
.bcp-viewer .bcp-progress {
	position: absolute;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	background: var(--bcp-accent);
	transition: width .2s;
}
.bcp-viewer [hidden] { display: none !important; }

@media (max-width: 600px) {
	.bcp-viewer .bcp-toolbar { justify-content: center; padding: 4px 6px; }
	.bcp-viewer .bcp-zoom { min-width: 84px; }
	.bcp-viewer .bcp-btn { width: 32px; height: 32px; }
}
