.comprend-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

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

.comprend-popup.is-open {
	opacity: 1;
}

.comprend-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.comprend-popup__dialog {
	position: relative;
	box-sizing: border-box;
	width: calc(100% - 32px);
	max-width: 520px;
	max-height: 90vh;
	overflow: auto;
	padding: 40px 32px 32px;
	background: var(--comprend-popup-bg, #fff);
	color: #222;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	outline: none;
}

.comprend-popup__title {
	margin: 0 0 16px;
	font-size: 1.5rem;
	line-height: 1.25;
}

.comprend-popup__body {
	margin: 0 0 24px;
	font-size: 1rem;
	line-height: 1.6;
}

.comprend-popup__body p:last-child {
	margin-bottom: 0;
}

.comprend-popup__button {
	display: inline-block;
	padding: 12px 24px;
	background: var(--comprend-popup-button-bg, var(--nectar-accent-color, #333));
	color: var(--comprend-popup-button-color, #fff) !important;
	text-decoration: none !important;
	border-radius: 4px;
	font-weight: 600;
	line-height: 1.2;
	transition: opacity 0.15s ease;
}

.comprend-popup__actions {
	text-align: left;
}

.comprend-popup--align-center .comprend-popup__actions {
	text-align: center;
}

.comprend-popup--align-right .comprend-popup__actions {
	text-align: right;
}

.comprend-popup__button:hover,
.comprend-popup__button:focus {
	opacity: 0.85;
}

.comprend-popup__close {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #666;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.comprend-popup__close:hover,
.comprend-popup__close:focus {
	color: #000;
}

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

@media (max-width: 600px) {
	.comprend-popup__dialog {
		width: 100%;
		padding: 40px 20px 24px;
	}

	.comprend-popup__title {
		font-size: 1.25rem;
	}
}
