/**
 * PDF Flipbook for Elementor
 * Every colour, size and radius here is a fallback: the Elementor Style tab
 * writes over them with the values set on the widget.
 */

.lj-flipbook {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.lj-flipbook__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.lj-flipbook__stage {
	position: relative;
	width: 100%;
	max-width: 900px;
	--lj-arrow-offset: 10px;
}

.lj-flipbook:not(.lj-flipbook--ready) .lj-flipbook__stage {
	min-height: 320px;
}

.lj-flipbook__book {
	width: 100%;
	margin: 0 auto;
}

/* ---------------------------------------------------------------- pages */

.lj-flipbook__page {
	background-color: #ffffff;
	overflow: hidden;
	box-sizing: border-box;
	border-radius: 0 4px 4px 0;
	box-shadow: 0 10px 30px -6px rgba(17, 17, 17, 0.22);
}

.lj-flipbook__page-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: 0;
	border: 0;
	border-radius: inherit;
	pointer-events: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
	max-width: none;
}

/* The left-hand page of a spread mirrors the radius. */
.lj-flipbook__page.--left {
	border-radius: 4px 0 0 4px;
}

/* ------------------------------------------------------------- loading */

.lj-flipbook__loader {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	text-align: center;
	pointer-events: none;
	z-index: 3;
}

.lj-flipbook__spinner {
	width: 34px;
	height: 34px;
	border: 3px solid #dfc4dd;
	border-top-color: #762970;
	border-right-color: #762970;
	border-radius: 50%;
	animation: lj-flipbook-spin 0.9s linear infinite;
}

.lj-flipbook__loading-text {
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #858585;
}

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

@media (prefers-reduced-motion: reduce) {
	.lj-flipbook__spinner {
		animation-duration: 2.5s;
	}
}

.lj-flipbook__error {
	padding: 18px 20px;
	border-radius: 8px;
	background-color: #fdf4fc;
	color: #762970;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.lj-flipbook__placeholder {
	padding: 48px 24px;
	border: 1px dashed #dfc4dd;
	border-radius: 8px;
	text-align: center;
	color: #858585;
	font-size: 14px;
}

/* -------------------------------------------------------------- arrows */

.lj-flipbook__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background-color: #dfc4dd;
	color: #762970;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	line-height: 0;
	flex: 0 0 auto;
}

.lj-flipbook__arrow svg {
	width: 18px;
	height: 18px;
	display: block;
}

.lj-flipbook__arrow:hover,
.lj-flipbook__arrow:focus-visible {
	background-color: #762970;
	color: #ffffff;
}

.lj-flipbook__arrow:focus-visible {
	outline: 2px solid #058181;
	outline-offset: 2px;
}

.lj-flipbook__arrow.is-disabled,
.lj-flipbook__arrow:disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.lj-flipbook--arrows-overlay .lj-flipbook__arrow--prev,
.lj-flipbook--arrows-overlay .lj-flipbook__arrow--next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
}

.lj-flipbook--arrows-overlay .lj-flipbook__arrow--prev {
	left: calc(var(--lj-arrow-offset) * -1);
}

.lj-flipbook--arrows-overlay .lj-flipbook__arrow--next {
	right: calc(var(--lj-arrow-offset) * -1);
}

/* On small screens pull the overlay arrows back inside the page edges. */
@media (max-width: 575px) {
	.lj-flipbook--arrows-overlay .lj-flipbook__arrow--prev {
		left: 4px;
	}

	.lj-flipbook--arrows-overlay .lj-flipbook__arrow--next {
		right: 4px;
	}
}

/* ----------------------------------------------------------------- bar */

.lj-flipbook__bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 18px;
	flex-wrap: wrap;
}

.lj-flipbook__counter {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #858585;
	min-width: 7em;
	text-align: center;
}

/* ---------------------------------------------------------- fullscreen */

.lj-flipbook--fullscreen {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #111111;
	padding: 24px;
	overflow: auto;
}

.lj-flipbook--fullscreen .lj-flipbook__inner {
	max-width: 1400px;
	margin: auto;
}

.lj-flipbook--fullscreen .lj-flipbook__stage {
	max-width: min(1400px, 92vw);
}

.lj-flipbook--fullscreen .lj-flipbook__counter {
	color: #ffffff;
}

/* Keep the book from stealing page scroll on touch devices. */
.lj-flipbook__book.stf__parent {
	touch-action: pan-y;
}
