.lyor-pdf-simple {
	--lps-max-width: 860px;
	--lps-radius: 16px;
	--lps-surface: #EDE8E1;
	--lps-text: #1C1A17;
	--lps-btn-bg: #1C1A17;
	--lps-btn-text: #FFFFFF;
	--lps-aspect: 210 / 297;
	width: min(100%, var(--lps-max-width));
	margin-inline: auto;
	color: var(--lps-text);
}

.lyor-pdf-simple.is-empty {
	padding: 28px;
	border-radius: var(--lps-radius);
	background: var(--lps-surface);
	text-align: center;
	opacity: 0.75;
}

.lyor-pdf-simple__title {
	margin: 0 0 14px;
	font-size: clamp(1.2rem, 2vw, 1.7rem);
	line-height: 1.2;
	letter-spacing: -0.02em;
	font-weight: 650;
}

.lyor-pdf-simple__frame {
	position: relative;
	width: 100%;
	aspect-ratio: var(--lps-aspect);
	/* Fallback before JS: full A4 height for ~860px width */
	min-height: 1200px;
	height: auto;
	border-radius: var(--lps-radius);
	overflow: hidden;
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--lps-surface) 70%, #cfc7bc);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.55) inset,
		0 18px 40px rgba(28, 26, 23, 0.1);
}

/* Absolute fill — height:100% on iframes collapses to 150px when parent height comes from aspect-ratio/min-height. */
.lyor-pdf-simple__iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #fff;
}

.lyor-pdf-simple__actions {
	display: flex;
	justify-content: center;
	margin-top: 16px;
}

.lyor-pdf-simple__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	background: var(--lps-btn-bg);
	color: var(--lps-btn-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 650;
	letter-spacing: 0.01em;
	box-shadow: 0 10px 24px rgba(28, 26, 23, 0.16);
	transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.lyor-pdf-simple__button:hover {
	transform: translateY(-1px);
	opacity: 0.96;
	box-shadow: 0 14px 28px rgba(28, 26, 23, 0.18);
	color: var(--lps-btn-text);
}

.lyor-pdf-simple__button-icon {
	font-size: 15px;
	line-height: 1;
	opacity: 0.9;
}

@media (max-width: 767px) {
	.lyor-pdf-simple {
		width: 100%;
	}

	.lyor-pdf-simple__frame {
		/* Mobile: page height from viewport width */
		min-height: calc(100vw * 297 / 210);
	}

	.lyor-pdf-simple__button {
		width: 100%;
	}
}
