/* Deactivation feedback popup - shown on wp-admin's plugins.php when this
 * plugin's own "Deactivate" link is clicked. See deactivate-popup.js.
 * Ported from integrazo-form-connectors' assets/css/deactivate-popup.css -
 * same mechanism, this plugin's own brand color, fmit- prefixed classes. */

.fmit-deactivate-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	justify-content: center;
	align-items: center;
}

.fmit-deactivate-overlay.fmit-deactivate-visible {
	display: flex;
	animation: fmitDeactivateFadeIn 0.2s ease;
}

@keyframes fmitDeactivateFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* This popup lives on WP core's plugins.php page, outside the plugin's own
 * admin app shell, so colors are hardcoded to match the brand rather than
 * pulled from design/tokens.css's --fmit-* custom properties (those are
 * only loaded on the plugin's own admin page). */
.fmit-deactivate-modal {
	background: #ffffff;
	width: 480px;
	max-width: 95%;
	max-height: calc(100vh - 80px);
	border-radius: 8px;
	border-top: 4px solid #ec3013;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: fmitDeactivateSlideUp 0.25s ease;
}

@keyframes fmitDeactivateSlideUp {
	from { transform: translateY(30px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

.fmit-deactivate-header {
	padding: 18px 25px;
	border-bottom: 1px solid #eee;
	position: relative;
}

.fmit-deactivate-title {
	font-size: 16px;
	font-weight: 700;
	color: #1d2327;
	margin: 0 0 4px;
	padding-right: 30px;
}

.fmit-deactivate-subtitle {
	font-size: 13px;
	color: #50575e;
	margin: 0;
}

.fmit-deactivate-close {
	position: absolute;
	top: 14px;
	right: 18px;
	font-size: 22px;
	font-weight: bold;
	color: #666;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	line-height: 1;
}

.fmit-deactivate-close:hover {
	color: #ec3013;
}

.fmit-deactivate-body {
	position: relative;
	flex: 1 1 auto;
	overflow: hidden;
	text-align: center;
}

.fmit-deactivate-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	border: 3px solid #e0e0e0;
	border-top-color: #ec3013;
	border-radius: 50%;
	animation: fmitDeactivateSpin 0.8s linear infinite;
	transform: translate(-50%, -50%);
	box-sizing: border-box;
	z-index: 1;
}

@keyframes fmitDeactivateSpin {
	to { transform: translate(-50%, -50%) rotate(360deg); }
}

.fmit-deactivate-iframe {
	display: block;
	width: 100%;
	height: 370px;
	border: none;
}

.fmit-deactivate-footer {
	text-align: center;
	border-top: 1px solid #eee;
	padding: 12px 25px;
}

.fmit-deactivate-skip {
	background: none;
	border: none;
	color: #787c82;
	cursor: pointer;
	font-size: 13px;
	padding: 0;
}

.fmit-deactivate-skip:hover {
	color: #1d2327;
	text-decoration: underline;
}
