/* MWP Checkout — Remove Item Button */
.mwp-remove-item {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 1.5rem;
	height: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	border-radius: 50%;
	background: #fff;
	color: #666;
	font-size: 0.875rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	z-index: 1;
}

.mwp-remove-item:hover {
	background: #dc3545;
	color: #fff;
	border-color: #dc3545;
}

.mwp-remove-item:disabled {
	opacity: 0.5;
	cursor: wait;
}

/* ------------------------------------------------------------------ */
/* Migrate Site — Learn More button                                     */
/* ------------------------------------------------------------------ */

.mwp-learn-more-btn {
	background: none;
	border: none;
	color: var(--wp--preset--color--primary, #1572b6);
	cursor: pointer;
	font-size: 0.8em;
	font-weight: 500;
	margin-left: 0.5em;
	padding: 0;
	text-decoration: underline;
	vertical-align: middle;
}

.mwp-learn-more-btn:hover {
	opacity: 0.75;
}

/* ------------------------------------------------------------------ */
/* Migrate Site — Modal                                                 */
/* ------------------------------------------------------------------ */

.mwp-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.mwp-modal-overlay.is-open {
	display: flex;
}

.mwp-modal {
	background: var(--wp--preset--color--card, #fff);
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	max-width: 480px;
	width: 100%;
	padding: 2rem;
	position: relative;
}

.mwp-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: 1px solid var(--wp--preset--color--border, #ddd);
	border-radius: 50%;
	color: var(--wp--preset--color--muted-foreground, #666);
	cursor: pointer;
	font-size: 1.1rem;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 0;
	transition: background 0.15s, color 0.15s;
}

.mwp-modal__close:hover {
	background: var(--wp--preset--color--primary, #1572b6);
	border-color: var(--wp--preset--color--primary, #1572b6);
	color: #fff;
}

.mwp-modal__icon {
	color: var(--wp--preset--color--primary, #1572b6);
	margin-bottom: 1rem;
}

.mwp-modal__title {
	color: var(--wp--preset--color--foreground, #212630);
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
}

.mwp-modal__lead {
	color: var(--wp--preset--color--foreground, #212630);
	font-size: 0.95rem;
	margin: 0 0 1rem;
}

.mwp-modal__list {
	color: var(--wp--preset--color--foreground, #212630);
	font-size: 0.9rem;
	margin: 0 0 1rem;
	padding-left: 1.25rem;
}

.mwp-modal__list li {
	margin-bottom: 0.4rem;
}

.mwp-modal__note {
	background: var(--wp--preset--color--secondary, #f0f1f3);
	border-left: 3px solid var(--wp--preset--color--primary, #1572b6);
	border-radius: 0 6px 6px 0;
	color: var(--wp--preset--color--foreground, #212630);
	font-size: 0.875rem;
	margin: 0 0 1.5rem;
	padding: 0.75rem 1rem;
}

.mwp-modal__cta {
	background: var(--wp--preset--color--primary, #1572b6);
	border: none;
	border-radius: 6px;
	color: var(--wp--preset--color--primary-foreground, #fff);
	cursor: pointer;
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 0.65rem 1.75rem;
	transition: opacity 0.15s;
	width: 100%;
}

.mwp-modal__cta:hover {
	opacity: 0.85;
}
