/* GeoTarget Ads Pro - Front-end */

.gtap-ad {
	max-width: 100%;
	line-height: 0;
	margin: 0;
}

.gtap-ad img {
	max-width: 100%;
	height: auto;
	display: block;
}

.gtap-ad a {
	line-height: 1.4;
}

/* Floating / sticky ads */
.gtap-floating-wrap {
	position: fixed;
	z-index: 99998;
	max-width: 420px;
	width: 92%;
}

.gtap-floating-bottom-right { bottom: 18px; right: 18px; }
.gtap-floating-bottom-left  { bottom: 18px; left: 18px; }
.gtap-floating-top-right    { top: 18px; right: 18px; }
.gtap-floating-top-left     { top: 18px; left: 18px; }

@media (max-width: 640px) {
	.gtap-floating-wrap {
		width: 100%;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
	}
}

/* Close button */
.gtap-close {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 26px;
	height: 26px;
	border: none;
	border-radius: 50%;
	background: #1d2327;
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.gtap-close:hover {
	background: #b32d2e;
}

.gtap-floating-wrap .gtap-close {
	top: -10px;
	right: -10px;
}

/* Popup */
.gtap-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, .65);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: gtap-fade-in .25s ease;
}

.gtap-popup-overlay.gtap-hidden {
	display: none;
}

.gtap-popup-modal {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 26px;
	max-width: 520px;
	width: 100%;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
	animation: gtap-pop-in .3s ease;
}

.gtap-popup-modal .gtap-popup-close {
	top: 8px;
	right: 8px;
}

.gtap-popup-modal .gtap-ad {
	line-height: 1.5;
}

@keyframes gtap-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes gtap-pop-in {
	from { transform: scale(.92); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.gtap-popup-overlay,
	.gtap-popup-modal {
		animation: none;
	}
}

/* In-content ad spacing */
.gtap-zone-in-content {
	margin: 1.5em 0;
}
