/* Smart Ad Delay — front-end */

.sad-slot {
	position: relative;
	margin: 0 auto;
}

.sad-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(90deg, #f3f4f6 25%, #e9ebee 37%, #f3f4f6 63%);
	background-size: 400% 100%;
	animation: sad-shimmer 1.4s ease infinite;
	border-radius: 4px;
	min-height: 24px;
}

@keyframes sad-shimmer {
	0%   { background-position: 100% 0; }
	100% { background-position: 0 0; }
}

.sad-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(0, 0, 0, 0.15);
	border-top-color: rgba(0, 0, 0, 0.45);
	border-radius: 50%;
	animation: sad-spin 0.7s linear infinite;
}

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

/* Custom ads render with full author control; the anchor itself takes no
   space or layout role of its own. */
.sad-custom-anchor {
	display: contents;
}

/* Banner and Custom ads each render inside their own isolated iframe so the
   same ad code can be placed in multiple locations without conflicting. */
.sad-slot iframe,
.sad-custom-anchor iframe {
	border: 0;
	display: block;
	max-width: 100%;
}

/* Admin preview box */
.sad-admin-preview {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 16px;
	border: 1px dashed #c3c4c7;
	border-radius: 8px;
	background: #f6f7f7;
	color: #1d2327;
	font-size: 13px;
	line-height: 1.4;
	margin: 0 auto;
}

.sad-admin-preview strong {
	font-size: 14px;
}

.sad-admin-preview .sad-admin-sub {
	color: #646970;
	font-size: 12px;
}
