/**
 * AdForge front-end ad styles.
 * Goal: invisible presentation + zero layout shift. Wrappers reserve space,
 * media stays fluid, and positional variants (anchor/sticky) are opt-in per
 * zone. Keep specificity low so themes can override if needed.
 */

.adforge-ad {
	display: block;
	margin: 1.2em auto;
	max-width: 100%;
	text-align: center;
	line-height: 0;
}

.adforge-ad > * {
	line-height: normal;
}

.adforge-ad img,
.adforge-ad video,
.adforge-ad iframe {
	max-width: 100%;
	height: auto;
}

/* Anchor / sticky-footer overlay. */
.adforge-ad--anchor {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	margin: 0;
	padding: 6px 0;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
	.adforge-ad--anchor {
		background: rgba(20, 20, 22, 0.96);
		box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.5);
	}
}

/* Sticky sidebar. */
.adforge-ad--sticky {
	position: sticky;
	top: 90px;
}

/* Floating box (corner). */
.adforge-ad--floating {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 9990;
	margin: 0;
	max-width: 340px;
}

@media (max-width: 782px) {
	.adforge-ad--floating {
		right: 8px;
		bottom: 8px;
		max-width: 92vw;
	}
}
