/**
 * Info Popup Styles
 */

/* Wrapper */
.limenco-mpf-popup-wrapper {
	display: inline-block !important;
	margin: 0;
	clear: none !important;
	vertical-align: baseline;
}

.limenco-mpf-popup-wrapper.position-right {
	display: inline-block !important;
	float: right !important;
	margin-left: 10px !important;
	margin-bottom: 10px !important;
	clear: right !important;
	position: relative;
	z-index: 10;
}

.limenco-mpf-popup-wrapper.position-left {
	display: inline-block !important;
	float: left !important;
	margin-right: 10px !important;
	margin-bottom: 10px !important;
	clear: left !important;
	position: relative;
	z-index: 10;
}

.limenco-mpf-popup-wrapper.position-inline {
	display: inline-block !important;
	margin: 0 5px;
	float: none !important;
}

/* Trigger Button - Match guidelines trigger exactly */
.limenco-mpf-popup-trigger {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 0 !important;
	background: none !important;
	border: none !important;
	color: #0073aa !important;
	cursor: pointer;
	font-size: 14px !important;
	font-weight: 500 !important;
	text-decoration: underline !important;
	text-transform: none !important;
	transition: color 0.2s ease;
	box-shadow: none !important;
	letter-spacing: normal !important;
}

.limenco-mpf-popup-trigger:hover {
	color: #005a87 !important;
	background: none !important;
	text-decoration: underline !important;
	box-shadow: none !important;
	transform: none !important;
}

.limenco-mpf-popup-trigger .limenco-mpf-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.limenco-mpf-popup-trigger .limenco-mpf-icon svg {
	width: 16px;
	height: 16px;
}

.limenco-mpf-popup-trigger .limenco-mpf-button-text {
	display: inline-block;
}

/* Modal */
.limenco-mpf-popup-modal {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	max-width: none !important;
	margin: 0 !important;
	z-index: 999999 !important;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.limenco-mpf-popup-modal.show {
	display: flex !important;
	opacity: 1;
}

/* Overlay */
.limenco-mpf-popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	cursor: pointer;
}

/* Content */
.limenco-mpf-popup-content {
	position: relative;
	background: #fff;
	border-radius: 8px;
	max-width: 600px;
	width: 100%;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	z-index: 1;
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.limenco-mpf-popup-modal.show .limenco-mpf-popup-content {
	transform: scale(1);
}

/* Header */
.limenco-mpf-popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 25px 0 25px;
	border-bottom: none;
	flex-shrink: 0;
}

.limenco-mpf-popup-header h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #333;
}

.limenco-mpf-popup-close {
	background: none;
	border: none;
	font-size: 32px;
	line-height: 1;
	color: #666;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.limenco-mpf-popup-close:hover {
	background: #f0f0f0;
	color: #333;
}

/* Body */
.limenco-mpf-popup-body {
	padding: 10px 25px 25px 25px !important;
	overflow-y: auto;
	flex: 1;
}

.limenco-mpf-popup-body > *:first-child {
	margin-top: 0 !important;
}

.limenco-mpf-popup-body p {
	margin: 0 0 15px 0 !important;
	line-height: 1.6;
	color: #555;
	padding: 0 !important;
}

.limenco-mpf-popup-body p:last-child {
	margin-bottom: 0 !important;
}

.limenco-mpf-popup-body ul,
.limenco-mpf-popup-body ol {
	margin: 0 0 15px 0 !important;
	padding: 0 0 0 40px !important;
	list-style-position: outside !important;
}

.limenco-mpf-popup-body ul {
	list-style-type: disc !important;
}

.limenco-mpf-popup-body ol {
	list-style-type: decimal !important;
}

.limenco-mpf-popup-body li {
	margin: 8px 0 !important;
	line-height: 1.6;
	color: #555;
	padding: 0 0 0 8px !important;
}

.limenco-mpf-popup-body h4 {
	margin: 20px 0 10px 0;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.limenco-mpf-popup-body h4:first-child {
	margin-top: 0;
}

.limenco-mpf-popup-body strong {
	color: #0073aa;
	font-weight: 600;
}

.limenco-mpf-popup-body a {
	color: #0073aa;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.limenco-mpf-popup-body a:hover {
	border-bottom-color: #0073aa;
}

/* Scrollbar */
.limenco-mpf-popup-body::-webkit-scrollbar {
	width: 8px;
}

.limenco-mpf-popup-body::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.limenco-mpf-popup-body::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

.limenco-mpf-popup-body::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* Responsive */
@media (max-width: 768px) {
	.limenco-mpf-popup-modal {
		padding: 10px;
	}
	
	.limenco-mpf-popup-content {
		max-height: 90vh;
	}
	
	.limenco-mpf-popup-header {
		padding: 15px 20px;
	}
	
	.limenco-mpf-popup-header h3 {
		font-size: 18px;
	}
	
	.limenco-mpf-popup-body {
		padding: 20px;
	}
	
	.limenco-mpf-popup-trigger {
		padding: 5px 10px;
		font-size: 13px;
	}
	
	.limenco-mpf-popup-trigger svg {
		width: 14px;
		height: 14px;
	}
	
	.limenco-mpf-popup-wrapper.position-right,
	.limenco-mpf-popup-wrapper.position-left {
		float: none;
		display: block;
		margin: 10px 0;
	}
}

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

.limenco-mpf-popup-modal.show .limenco-mpf-popup-content {
	animation: popupFadeIn 0.3s ease-out;
}

/* Accessibility */
.limenco-mpf-popup-trigger:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

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

/* Print */
@media print {
	.limenco-mpf-popup-wrapper {
		display: none;
	}
	
	.limenco-mpf-popup-modal {
		display: none !important;
	}
}
