html.spc-is-open,
html.spc-is-open body {
	overflow: hidden;
}

.spc-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.spc-popup[hidden] {
	display: none;
}

.spc-popup.spc-visible {
	opacity: 1;
}

.spc-popup *,
.spc-popup *::before,
.spc-popup *::after {
	box-sizing: border-box;
}

.spc-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
}

.spc-dialog {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 32px 28px 28px;
	background: #fff;
	color: #222;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	text-align: center;
	transform: translateY(12px);
	transition: transform 0.25s ease;
}

.spc-visible .spc-dialog {
	transform: translateY(0);
}

.spc-title {
	margin: 0 0 16px;
	padding: 0;
	font-size: 1.4em;
	line-height: 1.4;
	border: 0;
	background: none;
}

.spc-title::before,
.spc-title::after {
	display: none;
}

.spc-content {
	margin: 0 0 24px;
	line-height: 1.8;
}

.spc-content > :first-child {
	margin-top: 0;
}

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

.spc-content img {
	max-width: 100%;
	height: auto;
}

.spc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.spc-btn {
	min-width: 140px;
	margin: 0;
	padding: 12px 24px;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.4;
	border: 2px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.spc-btn:hover {
	opacity: 0.85;
}

.spc-btn:focus-visible {
	outline: 3px solid #4a90e2;
	outline-offset: 2px;
}

.spc-btn-primary {
	background: #222;
	color: #fff;
}

.spc-btn-secondary {
	background: #fff;
	color: #222;
	border-color: #222;
}

@media (max-width: 480px) {
	.spc-dialog {
		padding: 24px 18px 20px;
	}

	.spc-btn {
		flex: 1 1 100%;
	}
}
