:root {
	color-scheme: light;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
}

body {
	align-items: center;
	background: var(--ncp-background, #f4f6f8);
	color: #172033;
	display: flex;
	justify-content: center;
	margin: 0;
	padding: 24px;
}

.ncp-loading {
	max-width: 520px;
	text-align: center;
	width: 100%;
}

.ncp-progress {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ncp-spinner {
	animation: ncp-spin 0.8s linear infinite;
	border: 4px solid #d7dce3;
	border-radius: 50%;
	border-top-color: var(--ncp-spinner-color, #2563eb);
	height: var(--ncp-spinner-size, 48px);
	width: var(--ncp-spinner-size, 48px);
}

.ncp-message {
	font-size: 16px;
	line-height: 1.5;
	margin: 0;
}

.ncp-error,
.ncp-status {
	background: #ffffff;
	border: 1px solid #d9dee7;
	border-radius: 8px;
	box-shadow: 0 12px 34px rgba(23, 32, 51, 0.08);
	margin: 0 auto;
	max-width: 620px;
	padding: 32px;
	text-align: center;
	width: 100%;
}

.ncp-error h1,
.ncp-status h1 {
	font-size: 26px;
	line-height: 1.25;
	margin: 0 0 12px;
}

.ncp-error p,
.ncp-status p {
	color: #536078;
	line-height: 1.6;
	margin: 0 0 22px;
}

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

.ncp-retry,
.ncp-return,
.ncp-primary-link {
	align-items: center;
	border: 1px solid #2563eb;
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	text-decoration: none;
}

.ncp-retry,
.ncp-primary-link {
	background: #2563eb;
	color: #ffffff;
}

.ncp-return {
	background: #ffffff;
	color: #1d4ed8;
}

@keyframes ncp-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ncp-spinner {
		animation-duration: 1.8s;
	}
}

