.bwgr-monetization-sticky {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	z-index: 999999;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(100vw - 16px, 980px);
	max-width: 980px;
	pointer-events: none;
}

.bwgr-monetization-sticky--sticky-top {
	top: max(0px, env(safe-area-inset-top, 0px));
}

.bwgr-monetization-sticky--sticky-footer {
	bottom: max(0px, env(safe-area-inset-bottom, 0px));
}

.bwgr-monetization-sticky[hidden] {
	display: none !important;
}

.bwgr-monetization-sticky__panel {
	pointer-events: auto;
}

.bwgr-monetization-sticky__panel {
	position: relative;
	min-height: 100px;
	width: 100%;
	padding: 5px 14px 5px;
	border: 1px solid rgba(15, 23, 42, 0.14);
	background: var(--wp--preset--color--white);
}

.bwgr-monetization-sticky__slot {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.bwgr-monetization-sticky__slot > div[id^="div-gpt-ad-"] {
	margin: 0 auto;
}

.bwgr-monetization-sticky__close {
	position: absolute;
	right: 0;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--accent);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	font-weight: 700;
	cursor: pointer;
}

.bwgr-monetization-sticky--sticky-footer .bwgr-monetization-sticky__close {
	top: -34px;
}

.bwgr-monetization-sticky--sticky-top .bwgr-monetization-sticky__close {
	bottom: -34px;
}

@media (max-width: 640px) {
	.bwgr-monetization-sticky {
		width: min(100vw - 12px, 336px);
	}

	.bwgr-monetization-sticky__panel {
		padding: 10px 10px 8px;
		min-height: 70px;
	}

	.bwgr-monetization-sticky__close {
		width: 32px;
		height: 32px;
		min-width: 32px;
		font-size: 20px;
	}

	.bwgr-monetization-sticky--sticky-footer .bwgr-monetization-sticky__close {
		top: -32px;
	}

	.bwgr-monetization-sticky--sticky-top .bwgr-monetization-sticky__close {
		bottom: -32px;
	}
}
