/**
 * APFS Upgrade Banner & Popup - loads last to override theme styles
 */

/* Banner */
#apfs-upgrade-banner.apfs-upgrade-banner {
	position: sticky !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	z-index: 99999 !important;
	background: #1e3a5f !important;
	text-align: center !important;
	padding: 12px 15px !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}
#apfs-upgrade-banner .apfs-upgrade-banner-inner {
	color: #ffffff !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
}
#apfs-upgrade-banner a {
	color: #ffd93d !important;
	font-weight: 600 !important;
	text-decoration: underline !important;
	text-underline-offset: 2px !important;
}

/* Popup overlay - centered on viewport */
#apfs-upgrade-popup.apfs-upgrade-popup {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	z-index: 100000 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 20px !important;
	box-sizing: border-box !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
#apfs-upgrade-popup.apfs-upgrade-popup.apfs-popup-visible {
	opacity: 1 !important;
	visibility: visible !important;
}

#apfs-upgrade-popup .apfs-popup-backdrop {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	background: rgba(0, 0, 0, 0.5) !important;
	pointer-events: none;
}

#apfs-upgrade-popup .apfs-popup-modal {
	position: relative !important;
	background: #ffffff !important;
	border-radius: 16px !important;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
	max-width: 440px !important;
	width: 100% !important;
	padding: 40px 32px 32px !important;
	text-align: center !important;
}

#apfs-upgrade-popup .apfs-popup-close {
	position: absolute !important;
	top: 16px !important;
	right: 16px !important;
	left: auto !important;
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	border: none !important;
	background: #e8e8e8 !important;
	border-radius: 50% !important;
	color: #333 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
}

#apfs-upgrade-popup .apfs-popup-title {
	margin: 0 0 16px !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	color: #1e3a5f !important;
	text-align: center !important;
	letter-spacing: 0.02em !important;
}

#apfs-upgrade-popup .apfs-popup-desc {
	margin: 0 0 24px !important;
	font-size: 15px !important;
	line-height: 1.6 !important;
	color: #444 !important;
	text-align: center !important;
}
#apfs-upgrade-popup .apfs-popup-desc a {
	color: #2563eb !important;
	font-weight: 600 !important;
	text-decoration: underline !important;
}

#apfs-upgrade-popup .apfs-popup-cta {
	display: inline-block !important;
	padding: 14px 28px !important;
	background: #1e3a5f !important;
	color: #ffffff !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	border-radius: 10px !important;
	box-shadow: 0 4px 14px rgba(30, 58, 95, 0.35) !important;
	text-align: center !important;
}
#apfs-upgrade-popup .apfs-popup-cta:hover {
	background: #2c4f7c !important;
	color: #ffffff !important;
}
