.hpp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}
.hpp-overlay[hidden] { display: none; }
.hpp-overlay.hpp-open { opacity: 1; visibility: visible; }

.hpp-box {
	position: relative;
	container-type: inline-size;
	box-sizing: border-box;
	background-color: #fff;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	transform: translateY(14px) scale(.97);
	transition: transform .25s ease;
}
.hpp-open .hpp-box { transform: none; }

.hpp-overlay .hpp-btn {
	position: absolute;
	transform: translate(-50%, -50%);
	display: inline-block;
	padding: .7em 1.4em;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	transition: filter .15s ease;
}
.hpp-overlay .hpp-btn:hover,
.hpp-overlay .hpp-btn:focus { filter: brightness(1.08); text-decoration: none; }

.hpp-overlay .hpp-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	cursor: pointer;
	line-height: 1;
	box-shadow: none;
	transition: background .15s ease;
}
.hpp-overlay .hpp-close:hover,
.hpp-overlay .hpp-close:focus { background: rgba(0, 0, 0, .8); color: #fff; }

.hpp-progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: rgba(0, 0, 0, .2);
}
.hpp-progress span {
	display: block;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, .9);
}
@keyframes hpp-shrink {
	from { width: 100%; }
	to   { width: 0; }
}

body.hpp-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.hpp-overlay, .hpp-box { transition: none; }
}
