

	/* Revive Ad Server styles */
	/* ------------------------------------------------------------- */
	.ad { display:block;position:relative }
	.ad--lb { width:100%; height:150px; margin:12px auto }
	.revive-slot, .revive-slot iframe { width:100%; height:100%; display:block; }
	.ad--sticky .ad__inner { padding-bottom: env(safe-area-inset-bottom); }
	body.has-sticky-ad { padding-bottom: 110px; }
	body.modal-open { overflow:hidden; }
	@media(max-width:576px){ .ad--lb{ height:100px max-height: 120px; max-width: 100%; } }
	.ad--mpu{width:100%;max-width:300px;height:250px;margin:12px auto}
	.ad--sticky{position:fixed;left:0;right:0;bottom:0;z-index:9999;display:none;justify-content:center;pointer-events:none}
	.ad--sticky .ad__inner{width:100%;max-width:320px;height:100px;margin:0 auto;pointer-events:auto;box-shadow:0 -2px 12px rgba(0,0,0,.2);background:#fff;border-top:1px solid rgba(0,0,0,.08)}
	@media(max-width:576px){.ad--sticky{display:flex}}
	.ad--sticky .ad__close{position:absolute;right:6px;top:-28px;line-height:22px;padding:0 8px;background:#000;color:#fff;font:600 12px/22px system-ui;border-radius:4px;cursor:pointer}
	.ad--popup{display:none;position:fixed;inset:0;z-index:9998;background:rgba(0,0,0,.5)}
	.ad--popup__box{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:350px;height:250px;max-width:90vw;max-height:80vh;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.35);border-radius:8px}
	.ad--popup__close{position:absolute;right:-10px;top:-10px;background:#000;color:#fff;border-radius:50%;width:28px;height:28px;text-align:center;line-height:28px;font:700 12px/28px system-ui;cursor:pointer}
	@media(min-width:577px) { .ad--sticky,.ad--popup{display:none!important} }
	/* ------------------------------------------------------------- */

	/* Right rail stack layout */
	.ad_block { max-width: 320px;
				display:flex;
				flex-direction:column; gap:12px;
				align-items:center;
				}

	/* Size boxes (match your existing Revive styles) */
	.ad--hpa { width:100%; max-width:300px; height:600px; margin:0 auto; }
	.ad--mpu { width:100%; max-width:300px; height:250px; margin:0 auto  12px; }
	
	/* If the 300×600 fills, hide both MPUs */
	.ad_block:has(.ad--hpa:not(.ad-empty)) .ad--mpu { display:none; }

	.ad.ad-empty { 
		display: none !important;
		height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
	}

	.ad:not(.ad--filled) {
		display: none !important;
		height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
	}

	.ad.ad--filled {
		height: auto !important;
		overflow: visible !important;
	}

	