/**
 * Publisher Ads Control — style popupu/overlay.
 */

.pac-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.pac-popup[hidden] {
	display: none;
}

.pac-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.6 );
	cursor: pointer;
}

.pac-popup__dialog {
	position: relative;
	z-index: 1;
	width: min( 560px, 100% );
	max-width: 100%;
	max-height: min( 90vh, 760px );
	overflow: auto;
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.35 );
	padding: 34px 14px 14px;
}

.pac-popup__close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #374151;
	border-radius: 4px;
}

.pac-popup__close:hover,
.pac-popup__close:focus {
	background: #f3f4f6;
	outline: 2px solid #2563eb;
}

.pac-popup__body {
	display: block;
}

.pac-popup__body .pac-ad {
	margin: 0;
}

@media ( prefers-reduced-motion: reduce ) {
	.pac-popup__dialog { scroll-behavior: auto; }
}

@media ( max-width: 480px ) {
	.pac-popup__dialog {
		padding: 38px 10px 10px;
		width: 100%;
	}
}
