.bhu-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.admin-bar .bhu-popup-overlay {
	top: var(--wp-admin--admin-bar--height, 32px);
	height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
	body.admin-bar .bhu-popup-overlay {
		top: 46px;
		height: calc(100% - 46px);
	}
}

.bhu-popup-overlay.is-visible {
	opacity: 1 !important;
	visibility: visible !important;
}

.bhu-popup-modal {
	background-color: #ffffff;
	width: 90%;
	max-width: 600px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	position: relative;
	transform: scale(0.9);
	transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	display: flex;
	flex-direction: column;
	max-height: 90vh;
	overflow: hidden;
}

.bhu-popup-overlay.is-visible .bhu-popup-modal {
	transform: scale(1);
}

.bhu-popup-close-x {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
	border: none;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, transform 0.2s ease;
	z-index: 10;
}

.bhu-popup-close-x:hover {
	background: rgba(255, 255, 255, 0.4);
	transform: scale(1.1);
}

.bhu-popup-header {
	background: linear-gradient(135deg, #005daa 0%, #003b6d 100%);
	color: #ffffff;
	padding: 30px 40px;
	text-align: center;
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
}

.bhu-popup-title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.3;
}

.bhu-popup-subtitle {
	margin: 0;
	font-size: 16px;
	opacity: 0.9;
	font-weight: 500;
}

.bhu-popup-content {
	padding: 30px 40px;
	overflow-y: auto;
	color: #333333;
	font-size: 15px;
	line-height: 1.6;
}

.bhu-popup-content p {
	margin-top: 0;
	margin-bottom: 15px;
}

.bhu-popup-list {
	margin: 0 0 20px 20px;
	padding: 0;
}

.bhu-popup-list li {
	margin-bottom: 8px;
}

.bhu-popup-closing {
	margin-bottom: 0 !important;
	border-top: 1px solid #eeeeee;
	padding-top: 15px;
}

.bhu-popup-footer {
	padding: 20px 40px;
	background-color: #f9f9f9;
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
	text-align: center;
	border-top: 1px solid #eeeeee;
}

.bhu-popup-btn {
	background: linear-gradient(135deg, #005daa 0%, #003b6d 100%);
	color: #ffffff;
	border: none;
	padding: 12px 30px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: inline-block;
}

.bhu-popup-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 93, 170, 0.3);
}

@media screen and (max-width: 600px) {
	.bhu-popup-header {
		padding: 25px 20px;
	}
	.bhu-popup-content {
		padding: 20px;
	}
	.bhu-popup-footer {
		padding: 15px 20px;
	}
	.bhu-popup-title {
		font-size: 20px;
	}
}