/* Popup Overlay */
.pb-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(45, 3, 58, 0.7); /* Using #2D033A with transparency */
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.pb-popup-overlay.pb-show {
	opacity: 1;
}

/* Popup Container */
.pb-popup-container {
	position: relative;
	max-width: 90%;
	width: auto;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	transform: scale(0.9);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pb-popup-overlay.pb-show .pb-popup-container {
	transform: scale(1);
}

/* Close Button */
.pb-popup-close {
	position: absolute;
	top: -15px;
	right: -15px;
	width: 36px;
	height: 36px;
	background: linear-gradient(135deg, #ff4c88, #ff8a63);
	color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(255, 76, 136, 0.3);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}

.pb-popup-close:hover {
	transform: scale(1.1) rotate(90deg);
}

/* Content Area */
.pb-popup-content-area {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	/* No background to allow transparent PNGs */
}

.pb-popup-image {
	max-width: 100%;
	max-height: 70vh;
	object-fit: contain;
	display: block;
}

.pb-popup-custom-html {
	background: #fff;
	padding: 30px;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0,0,0,0.2);
	max-width: 600px;
	color: #2D033A;
}

/* Premium eCommerce Countdown Timer */
.pb-popup-countdown-wrapper {
	margin-top: -20px;
	z-index: 5;
	position: relative;
	background: linear-gradient(135deg, #2D033A, #8030A5);
	padding: 15px 25px;
	border-radius: 50px;
	box-shadow: 0 10px 25px rgba(128, 48, 165, 0.4);
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.pb-popup-countdown {
	display: flex;
	gap: 15px;
	align-items: center;
}

.pb-cd-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 45px;
}

.pb-cd-item span {
	font-size: 24px;
	font-weight: 800;
	color: #fff;
	line-height: 1;
	text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.pb-cd-item small {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #ff8a63;
	margin-top: 4px;
	font-weight: 600;
}

/* Footer / Do not show again */
.pb-popup-footer {
	margin-top: 15px;
	background: rgba(255, 255, 255, 0.9);
	padding: 8px 16px;
	border-radius: 20px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.pb-dont-show-again {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #2D033A;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}

.pb-dont-show-checkbox {
	accent-color: #8030A5;
	width: 16px;
	height: 16px;
	cursor: pointer;
}
