/* Smart AdSense Placement — frontend styles */

.sap-ad {
	margin: 28px 0;
	clear: both;
	text-align: center;
	line-height: 0;
	max-width: 100%;
	overflow: hidden;
}

.sap-ad__label {
	display: block;
	font-size: 10px;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .5;
	margin-bottom: 6px;
	font-family: inherit;
}

.sap-ad__box {
	line-height: normal;
	min-height: 1px;
}

.sap-ad .adsbygoogle {
	display: block;
	margin: 0 auto;
}

.sap-ad--top { margin-top: 0; }
.sap-ad--sidebar { margin: 0 0 24px; }
.sap-ad--infeed { margin: 20px 0; }

/* Desktop par sidebar scroll ke saath chipka rehta hai */
@media (min-width: 1025px) {
	.sap-ad--sticky {
		position: -webkit-sticky;
		position: sticky;
		top: 30px;
	}
}

/* ---------- Bottom anchor ---------- */

#sap-anchor-wrap {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	background: #fff;
	box-shadow: 0 -1px 12px rgba(0, 0, 0, .14);
	padding: 2px 0;
	text-align: center;
	transform: translateY(110%);
	transition: transform .28s ease;
}

#sap-anchor-wrap.is-in { transform: translateY(0); }
#sap-anchor-wrap[hidden] { display: none; }
#sap-anchor-wrap .sap-ad { margin: 0; }
#sap-anchor-wrap .sap-ad__label { margin-bottom: 2px; }

.sap-ad__close {
	position: absolute;
	top: -26px;
	right: 10px;
	width: 26px;
	height: 26px;
	line-height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .62);
	color: #fff;
	font-size: 17px;
	cursor: pointer;
	z-index: 2;
}

.sap-ad__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

body.sap-anchor-on { padding-bottom: 100px; }

/* ---------- Ad blocker notice ---------- */

#sap-adblock {
	position: fixed;
	inset: 0;
	z-index: 99995;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .55);
	padding: 20px;
}

#sap-adblock[hidden] { display: none; }

.sap-adblock__inner {
	background: #fff;
	color: #111;
	max-width: 420px;
	padding: 24px;
	border-radius: 10px;
	line-height: 1.55;
	text-align: center;
}

.sap-adblock__close {
	margin-top: 14px;
	padding: 9px 20px;
	border: 0;
	border-radius: 6px;
	background: #111;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
	#sap-anchor-wrap { transition: none; }
}
