  /**
 * Time-Based Popup Styles
 */

.time-based-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.time-based-popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.75);
	cursor: pointer;
}

.time-based-popup-content {
	position: relative;
	background: #fff;
	border-radius: 8px;
	max-width: 600px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	z-index: 1;
	animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.time-based-popup-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	font-size: 32px;
	line-height: 1;
	color: #333;
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
	z-index: 10;
	padding: 0;
}

.time-based-popup-close:hover {
	background-color: #f0f0f0;
	color: #000;
	transform: rotate(90deg);
}

.time-based-popup-close:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

.time-based-popup-inner {
	padding: 40px;
}

.time-based-popup-inner h1,
.time-based-popup-inner h2,
.time-based-popup-inner h3,
.time-based-popup-inner h4,
.time-based-popup-inner h5,
.time-based-popup-inner h6 {
	margin-top: 0;
	margin-bottom: 1em;
}

.time-based-popup-inner p {
	margin-bottom: 1em;
}

.time-based-popup-inner p:last-child {
	margin-bottom: 0;
}

.time-based-popup-inner img {
	max-width: 100%;
	height: auto;
}

.time-based-popup-inner a {
	color: #0073aa;
	text-decoration: underline;
}

.time-based-popup-inner a:hover {
	color: #005177;
}

.time-based-popup-cta {
	margin-top: 30px;
	text-align: center;
}

.time-based-popup-cta .button {
	display: inline-block;
	text-decoration: none;
}

/* Prevent body scroll when popup is open */
body.popup-open {
	overflow: hidden;
}

/* Responsive styles */
@media (max-width: 768px) {
	.time-based-popup-content {
		width: 95%;
		max-height: 95vh;
	}
	
	.time-based-popup-inner {
		padding: 30px 20px;
	}
	
	.time-based-popup-close {
		top: 10px;
		right: 10px;
		font-size: 28px;
		width: 35px;
		height: 35px;
	}
}

