/* Homepage Popup Announcement Styles */

.hpa-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background-color: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	box-sizing: border-box;
}

.hpa-popup-overlay.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.hpa-popup-modal {
	position: relative;
	width: 100%;
	max-width: 540px;
	max-height: 85vh;
	overflow-y: auto;
	background-color: #ffffff;
	color: #1e293b;
	border-radius: 12px;
	padding: 2rem 2rem 1.75rem;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	transform: translateY(12px) scale(0.97);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

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

.hpa-popup-close-icon {
	position: absolute;
	top: 0.875rem;
	right: 0.875rem;
	width: 2rem;
	height: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: #64748b;
	font-size: 1.5rem;
	line-height: 1;
	border-radius: 6px;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.hpa-popup-close-icon:hover,
.hpa-popup-close-icon:focus-visible {
	background-color: #f1f5f9;
	color: #0f172a;
	outline: none;
}

.hpa-popup-title {
	margin: 0 1.75rem 1rem 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	color: #0f172a;
}

.hpa-popup-body {
	font-size: 1rem;
	line-height: 1.6;
	color: #334155;
	margin-bottom: 1.5rem;
}

.hpa-popup-body p:first-child {
	margin-top: 0;
}

.hpa-popup-body p:last-child {
	margin-bottom: 0;
}

.hpa-popup-body img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.hpa-popup-footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 1.25rem;
}

.hpa-popup-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.25;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.1s ease;
	text-decoration: none;
}

.hpa-popup-button:hover {
	filter: brightness(0.92);
}

.hpa-popup-button:active {
	transform: scale(0.98);
}

.hpa-popup-button:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

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

@media (max-width: 480px) {
	.hpa-popup-modal {
		padding: 1.5rem 1.25rem 1.25rem;
	}

	.hpa-popup-title {
		font-size: 1.25rem;
	}

	.hpa-popup-footer {
		justify-content: stretch;
	}

	.hpa-popup-button {
		width: 100%;
	}
}
