/* .story-cta styles live in main.css for global reuse */

/* ── iFrame overlay ─────────────────────────────────── */
.cta-iframe-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: stretch;
}

.cta-iframe-overlay[hidden] {
	display: none;
}

.cta-iframe-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	cursor: pointer;
}

.cta-iframe-overlay__frame-wrap {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

.cta-iframe-overlay__close {
	position: absolute;
	top: 12px;
	right: 16px;
	z-index: 2;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.cta-iframe-overlay__close:hover,
.cta-iframe-overlay__close:focus-visible {
	background: rgba(0, 0, 0, 0.9);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.cta-iframe-overlay__iframe {
	flex: 1;
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

body.cta-iframe-overlay-open {
	overflow: hidden;
}
