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

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

.npm-modal {
	position: relative;
	background: #fff;
	border-radius: 8px;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 32px;
	text-align: center;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.3 );
}

.npm-modal.npm-size-small {
	max-width: 380px;
}

.npm-modal.npm-size-large {
	max-width: 680px;
}

.npm-modal.npm-has-bg {
	background-size: cover;
	background-position: center;
}

.npm-modal.npm-has-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba( 255, 255, 255, var( --npm-bg-opacity, 0.85 ) );
	border-radius: inherit;
}

.npm-modal.npm-has-bg > * {
	position: relative;
	z-index: 1;
}

.npm-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

/* Higher specificity than ".npm-modal.npm-has-bg > *" above, so the close
   button stays pinned top-right instead of falling back into normal,
   text-align:center flow when a background image is set. */
.npm-modal.npm-has-bg > .npm-close {
	position: absolute;
	top: 10px;
	right: 14px;
	z-index: 2;
}

.npm-close:hover {
	color: #000;
}

.npm-image {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin-bottom: 16px;
}

.npm-title {
	margin: 0 0 12px;
	font-size: 22px;
}

.npm-title .npm-accent {
	color: #2271b1;
}

.npm-content {
	margin-bottom: 16px;
	line-height: 1.5;
}

.npm-promo-code {
	display: inline-block;
	margin-bottom: 20px;
	padding: 8px 16px;
	border: 2px dashed #999;
	border-radius: 4px;
	font-weight: 700;
	letter-spacing: 1px;
	font-size: 18px;
}

.npm-cta {
	display: inline-block;
	padding: 12px 28px;
	background: #222;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
}

.npm-cta:hover {
	background: #444;
	color: #fff;
}

.npm-divider {
	margin: 24px 0 16px;
	border: none;
	border-top: 1px dashed #ccc;
}

.npm-badges {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 20px;
	text-align: left;
}

.npm-badge {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: #444;
}

.npm-badge-icon {
	flex: 0 0 auto;
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #2271b1;
}

.npm-badge-text strong {
	display: block;
	color: #111;
}

body.npm-modal-open {
	overflow: hidden;
}
