.efivest-flipbook-lock {
	overflow: hidden !important;
}

.efivest-flipbook {
	position: fixed;
	z-index: 2147483000;
	inset: 0;
	display: grid;
	grid-template-rows: auto 1fr auto;
	background: rgba(8, 8, 8, .97);
	color: #fff;
	font-family: inherit;
}

.efivest-flipbook[hidden] {
	display: none !important;
}

.efivest-flipbook__header,
.efivest-flipbook__toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 58px;
	padding: 8px 16px;
	background: #151515;
	box-shadow: 0 1px 0 rgba(255,255,255,.1);
}

.efivest-flipbook__title {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	font-size: 16px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #fff !important;
}

.efivest-flipbook__close {
	margin-left: auto;
}

.efivest-flipbook__stage {
	--efivest-zoom: 1;
	position: relative;
	display: grid;
	place-items: center;
	min-height: 0;
	overflow: auto;
	padding: 18px;
}

.efivest-flipbook__book {
	--efivest-cover-shift: 0;
	width: min(1180px, calc(100vw - 36px));
	height: calc(100vh - 154px);
	min-height: 360px;
	overflow: hidden !important;
	transform: translateX(var(--efivest-cover-shift)) !important;
	transform-origin: 50% 0;
	transition: none !important;
}

.efivest-flipbook__book.is-opening-cover {
	transition: transform 1000ms ease-in-out !important;
}

.efivest-flipbook .stf__wrapper,
.efivest-flipbook .stf__block {
	height: 100% !important;
	overflow: hidden !important;
}

.efivest-flipbook .stf__wrapper {
	padding-bottom: 0 !important;
}

.efivest-flipbook .stf__item {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.efivest-flipbook__book.is-aligning {
	visibility: hidden;
}

.efivest-flipbook__book.is-first-page {
	--efivest-cover-shift: 0px;
	transform-origin: 75% 0;
}

.efivest-flipbook__stage.is-zoomed .efivest-flipbook__book {
	transform: translateX(var(--efivest-cover-shift)) scale(var(--efivest-zoom)) !important;
}

.efivest-flipbook__page {
	display: grid;
	place-items: center;
	overflow: hidden;
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

.efivest-flipbook__page canvas {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.efivest-flipbook__loading,
.efivest-flipbook__error {
	position: absolute;
	z-index: 5;
	top: 50%;
	left: 50%;
	width: min(430px, calc(100% - 40px));
	transform: translate(-50%, -50%);
	padding: 20px;
	border-radius: 12px;
	background: #fff;
	color: #1d2327;
	text-align: center;
	box-shadow: 0 16px 60px rgba(0,0,0,.35);
}

.efivest-flipbook__loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	width: min(250px, calc(100% - 40px));
	padding: 25px 26px 22px;
	border: 1px solid rgba(255,255,255,.14);
	background: rgba(20,20,20,.94);
	color: #fff;
	box-shadow: 0 18px 60px rgba(0,0,0,.55);
	backdrop-filter: blur(7px);
}

.efivest-flipbook__loading[hidden] {
	display: none !important;
}

.efivest-flipbook__loader-book {
	position: relative;
	display: block;
	width: 74px;
	height: 52px;
	perspective: 500px;
	transform: rotate(-4deg);
	transform-style: preserve-3d;
}

.efivest-flipbook__loader-book::before,
.efivest-flipbook__loader-book::after {
	content: '';
	position: absolute;
	top: 3px;
	bottom: 3px;
	width: 36px;
	border: 3px solid #ef0a17;
	background: #fff;
	box-shadow: 0 5px 14px rgba(0,0,0,.35);
}

.efivest-flipbook__loader-book::before {
	left: 0;
	border-right-width: 1px;
	border-radius: 6px 1px 1px 6px;
}

.efivest-flipbook__loader-book::after {
	right: 0;
	border-left-width: 1px;
	border-radius: 1px 6px 6px 1px;
}

.efivest-flipbook__loader-page {
	position: absolute;
	z-index: 2;
	top: 6px;
	left: 37px;
	width: 32px;
	height: 40px;
	border: 1px solid #ff6972;
	border-left: 0;
	border-radius: 0 4px 4px 0;
	background:
		linear-gradient(rgba(255,255,255,.78), rgba(255,255,255,.78)) 9px 11px / 16px 2px no-repeat,
		linear-gradient(rgba(255,255,255,.58), rgba(255,255,255,.58)) 9px 18px / 13px 2px no-repeat,
		linear-gradient(90deg, #8e0009 0, #ef0a17 22%, #ff4a55 100%);
	box-shadow: 4px 3px 9px rgba(0,0,0,.38);
	transform-origin: left center;
	animation: efivest-page-turn 1.05s cubic-bezier(.45,.05,.25,1) infinite;
	backface-visibility: visible;
}

.efivest-flipbook__loader-page:nth-child(2) { animation-delay: .18s; background-color: #c6000c; }
.efivest-flipbook__loader-page:nth-child(3) { animation-delay: .36s; background-color: #ff4a55; }

.efivest-flipbook__loading-text {
	font-size: 15px;
	font-weight: 650;
	letter-spacing: .01em;
}

@keyframes efivest-page-turn {
	0%, 12% { transform: rotateY(0deg) translateZ(2px); opacity: 1; }
	55% { transform: rotateY(-100deg) translateZ(7px); opacity: 1; }
	88%, 100% { transform: rotateY(-180deg) translateZ(2px); opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
	.efivest-flipbook__loader-page { animation: none; }
}

.efivest-flipbook__error a {
	display: inline-block;
	margin-top: 12px;
}

.efivest-flipbook__toolbar {
	justify-content: center;
	box-shadow: 0 -1px 0 rgba(255,255,255,.1);
}

.efivest-flipbook button,
.efivest-flipbook a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 40px;
	box-sizing: border-box;
	padding: 8px 12px;
	border: 1px solid rgba(255,255,255,.28);
	border-radius: 8px;
	background: #ef0a17;
	color: #fff;
	font: inherit;
	font-weight: 650;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.efivest-flipbook button:hover,
.efivest-flipbook button:focus-visible,
.efivest-flipbook a:hover,
.efivest-flipbook a:focus-visible {
	border-color: #ff6b73;
	background: #b8000c;
	color: #fff;
	outline: 2px solid #ff6b73;
}

.efivest-flipbook .efivest-flipbook__download,
.efivest-flipbook .efivest-flipbook__download:link,
.efivest-flipbook .efivest-flipbook__download:visited {
	color: #fff !important;
}

.efivest-flipbook__counter {
	min-width: 92px;
	text-align: center;
}

.efivest-flipbook__rotate {
	display: none !important;
}

.efivest-flipbook__orientation-hint {
	position: absolute;
	z-index: 8;
	top: 18px;
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
	max-width: calc(100% - 28px);
	padding: 10px 14px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 999px;
	background: rgba(20,20,20,.95);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	box-shadow: 0 8px 28px rgba(0,0,0,.45);
}

.efivest-flipbook__orientation-hint[hidden] {
	display: none !important;
}

@media (max-width: 760px) {
	.efivest-flipbook__header { min-height: 52px; padding: 6px 10px; }
	.efivest-flipbook__stage { padding: 8px; }
	.efivest-flipbook__book { --efivest-cover-shift: 0; width: calc(100vw - 16px); height: calc(100vh - 136px); min-height: 280px; }
	.efivest-flipbook__toolbar { min-height: 52px; gap: 6px; padding: 6px 8px; }
	.efivest-flipbook__toolbar .efivest-flipbook__label { display: none; }
	.efivest-flipbook__rotate { display: inline-flex !important; }
	.efivest-flipbook__stage.is-zoomed .efivest-flipbook__book { transform: translateX(0) scale(var(--efivest-zoom)) !important; }
}

@media (max-width: 420px) {
	.efivest-flipbook__toolbar { gap: 4px; padding-right: 4px; padding-left: 4px; }
	.efivest-flipbook__toolbar button,
	.efivest-flipbook__toolbar a { min-width: 40px; width: 40px; padding: 6px; }
	.efivest-flipbook__counter { min-width: 56px; font-size: 13px; }
	.efivest-flipbook .efivest-flipbook__download { font-size: 0; }
	.efivest-flipbook .efivest-flipbook__download::before { content: '\2193'; font-size: 21px; line-height: 1; }
}
