/* =========================================================
   Custom Ad Manager Pro — Shared Stylesheet
   ========================================================= */

/* ---------- Frontend: Ad Zones ---------- */
.cam-ad {
	box-sizing: border-box;
	position: fixed;
}
.cam-ad-inner {
	max-width: 100%;
	overflow: hidden;
}
.cam-ad-inner img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

.cam-fixed-top {
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	text-align: center;
	padding: 4px 34px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.cam-fixed-bottom {
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	text-align: center;
	padding: 4px 34px;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
}

.cam-fixed-left,
.cam-fixed-right {
	top: 50%;
	transform: translateY(-50%);
	max-width: 160px;
	text-align: center;
	border-radius: 6px;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.18);
	padding: 4px;
}
.cam-fixed-left  { left: 6px; }
.cam-fixed-right { right: 6px; }

.cam-close {
	position: absolute;
	width: 16px;
	height: 16px;
	line-height: 14px;
	border-radius: 50%;
	background: rgba(34, 34, 34, 0.85);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.6);
	cursor: pointer;
	font-size: 11px;
	padding: 0;
	z-index: 2;
	opacity: 0.85;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}
.cam-close:hover {
	background: #d63638;
	opacity: 1;
	transform: scale(1.08);
}

.cam-fixed-left .cam-close,
.cam-fixed-right .cam-close { top: -7px; right: -7px; }
.cam-fixed-top .cam-close,
.cam-fixed-bottom .cam-close { top: 3px; right: 6px; }

/* ---------- Device targeting ---------- */
.cam-desktop-only { display: block; }
.cam-mobile-only  { display: none; }

@media (max-width: 768px) {
	.cam-desktop-only { display: none !important; }
	.cam-mobile-only  { display: block !important; }

	.cam-fixed-left,
	.cam-fixed-right {
		max-width: 92px;
		padding: 2px;
	}
	.cam-fixed-left  { left: 2px; }
	.cam-fixed-right { right: 2px; }

	.cam-fixed-top,
	.cam-fixed-bottom { padding: 2px 28px; }

	.cam-close {
		width: 14px;
		height: 14px;
		line-height: 12px;
		font-size: 10px;
	}
}

@media (max-width: 380px) {
	.cam-fixed-left,
	.cam-fixed-right { max-width: 72px; }
}

/* =========================================================
   Admin Settings Page
   ========================================================= */
.cam-wrap { max-width: 960px; }

.cam-title {
	display: flex;
	align-items: center;
	gap: 8px;
}
.cam-title .dashicons {
	font-size: 30px;
	width: 30px;
	height: 30px;
	color: #2271b1;
}
.cam-version {
	font-size: 13px;
	font-weight: 400;
	color: #787c82;
	background: #f0f0f1;
	padding: 2px 8px;
	border-radius: 10px;
}
.cam-subtitle {
	color: #50575e;
	max-width: 720px;
}

.cam-tabs { margin-top: 10px; }

.cam-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 16px 20px 4px;
	margin: 16px 0 24px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.cam-switch { font-weight: 600; }

.cam-image-preview { background: #f6f7f7; }

.cam-image-picker .button { margin-right: 6px; }
