/* Pop-up promocional da página inicial (OP-55) */

html.home-popup-open,
html.home-popup-open body {
	overflow: hidden;
}

.home-popup {
	position: fixed;
	inset: 0;
	z-index: 100010; /* acima de .cookie_overlay (100000) */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.6);
}

.home-popup[hidden],
.home-popup__slot[hidden] {
	display: none !important;
}

.home-popup__dialog {
	position: relative;
	display: inline-block;
	line-height: 0;
}

.home-popup__slot a {
	display: block;
}

.home-popup__image {
	display: block;
	width: auto;
	height: auto;
	max-width: min(1210px, calc(100vw - 64px));
	max-height: calc(100vh - 64px);
	object-fit: contain;
	border-radius: 8px;
}

.home-popup__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: #fff;
	color: #1a1a1a;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* X geométrico — o glifo &times; desalinha por métricas da fonte */
.home-popup__close-icon {
	position: relative;
	display: block;
	width: 14px;
	height: 14px;
}

.home-popup__close-icon::before,
.home-popup__close-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
}

.home-popup__close-icon::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.home-popup__close-icon::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.home-popup__close:hover,
.home-popup__close:focus-visible {
	background: #ff5000;
	color: #fff;
	outline: none;
}

@media (max-width: 767.98px) {
	.home-popup {
		padding: 16px 0;
	}

	.home-popup__image {
		width: calc(100vw - 32px);
		max-width: calc(100vw - 32px);
		max-height: calc(100vh - 32px);
		max-height: calc(100dvh - 32px);
	}

	.home-popup__close {
		width: 36px;
		height: 36px;
	}

	.home-popup__close-icon {
		width: 12px;
		height: 12px;
	}

	.home-popup__close-icon::before,
	.home-popup__close-icon::after {
		width: 14px;
	}
}
