.smp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.6);
}

.smp-overlay[hidden] {
	display: none;
}

html.smp-open {
	overflow: hidden;
}

.smp-dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 32px 28px 28px;
	background: #fff;
	color: #333;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	outline: none;
}

/* !important: il tema (WoodMart) applica stili globali ai <button>. */
.smp-dialog .smp-close {
	position: absolute !important;
	top: 8px !important;
	right: 10px !important;
	left: auto !important;
	width: 36px !important;
	height: 36px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: #666 !important;
	font-size: 28px !important;
	line-height: 36px !important;
	cursor: pointer;
}

.smp-dialog .smp-close:hover {
	color: #000 !important;
}

.smp-title {
	margin: 0 0 16px;
	padding-right: 30px;
}

.smp-content > :last-child {
	margin-bottom: 0;
}

.smp-actions {
	margin: 24px 0 0;
}

.smp-link {
	display: inline-block;
	padding: 12px 24px;
	background: var(--wd-primary-color, #1e73be);
	color: #fff !important;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
}

.smp-link:hover {
	opacity: 0.9;
}
