.hype-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.hype-popup.is-visible {
	display: flex;
}

.hype-popup.is-top {
	z-index: 1000000;
}

.hype-popup__overlay {
	position: absolute;
	inset: 0;
	cursor: pointer;
}

.hype-popup__dialog {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	text-align: center;
	max-height: 90vh;
	overflow-y: auto;
}

.hype-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: 0;
	cursor: pointer;
	line-height: 1;
	padding: 4px;
	z-index: 2;
}

.hype-popup__title {
	margin: 0;
}

.hype-popup__text {
	margin: 0;
}

.hype-popup__text p:last-child {
	margin-bottom: 0;
}

.hype-popup__button {
	display: inline-block;
	text-decoration: none;
	cursor: pointer;
	border: none;
}

.hype-popup-trigger {
	display: inline-block;
	text-decoration: none;
	cursor: pointer;
	border: none;
	line-height: 1.2;
}

body.hype-popup-open {
	overflow: hidden;
}

/* Editor preview: keep popup visible for styling */
.elementor-editor-active .hype-popup.is-editor-preview {
	display: flex;
}
