html.iap-pending,
html.iap-pending body,
html.iap-locked,
html.iap-locked body {
	overflow: hidden !important;
	overscroll-behavior: none;
}

.iap-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 24px;
	background: rgba(12, 12, 12, 0.72);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	opacity: 1;
	transition: opacity 180ms ease;
}

.iap-overlay[hidden] {
	display: none !important;
}

.iap-modal {
	box-sizing: border-box;
	width: min(620px, 100%);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: clamp(28px, 5vw, 48px);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
	color: #171717;
	font-family: inherit;
	text-align: center;
}

.iap-modal h2 {
	margin: 0 0 20px;
	color: #171717;
	font-size: clamp(26px, 4vw, 36px);
	line-height: 1.15;
}

.iap-body {
	font-size: 16px;
	line-height: 1.65;
}

.iap-body > :first-child {
	margin-top: 0;
}

.iap-body > :last-child {
	margin-bottom: 0;
}

.iap-body-toggle {
	cursor: pointer;
	transition: opacity 150ms ease;
}

.iap-body-toggle:hover {
	opacity: .72;
}

.iap-body-toggle:focus-visible {
	border-radius: 4px;
	outline: 3px solid #2f6fed;
	outline-offset: 5px;
}

.iap-body a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.iap-body a:focus-visible {
	border-radius: 2px;
	outline: 3px solid #2f6fed;
	outline-offset: 3px;
}

.iap-info-link {
	margin: 20px 0 0;
}

.iap-info-link a {
	color: #171717;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.iap-info-details {
	margin-top: 18px;
	padding: 20px;
	border-radius: 8px;
	background: #f3f3f3;
	font-size: 14px;
	line-height: 1.6;
	text-align: left;
}

.iap-info-details[hidden] {
	display: none !important;
}

.iap-info-details h3 {
	margin: 0 0 12px;
	color: #171717;
	font-size: 18px;
	line-height: 1.3;
}

.iap-info-details > :first-child {
	margin-top: 0;
}

.iap-info-details > :last-child {
	margin-bottom: 0;
}

.iap-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 30px;
}

.iap-button {
	min-width: 160px;
	padding: 14px 22px;
	border: 2px solid #171717;
	border-radius: 6px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.iap-button:hover {
	transform: translateY(-1px);
}

.iap-button:focus-visible,
.iap-info-link a:focus-visible {
	outline: 3px solid #2f6fed;
	outline-offset: 3px;
}

.iap-button-primary {
	background: #171717;
	color: #fff;
}

.iap-button-secondary {
	background: #fff;
	color: #171717;
}

@media (max-width: 560px) {
	.iap-overlay {
		padding: 16px;
	}

	.iap-modal {
		max-height: calc(100vh - 32px);
		padding: 28px 20px;
	}

	.iap-actions {
		flex-direction: column;
	}

	.iap-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.iap-overlay,
	.iap-button {
		transition: none;
	}
}
