/* Bobasoftware Publisher Paywall — warm neutral reader overlay */

.sp-paywall {
	box-sizing: border-box;
	max-width: 560px;
	margin: 1.75rem auto 2rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sp-paywall-preview {
	position: relative;
	margin-bottom: 1.25rem;
	border-radius: 12px;
	border: 1px solid #e6d9c4;
	background: #fbf6ee;
	overflow: hidden;
	min-height: 14rem;
	max-height: 26rem;
}

.sp-paywall-preview::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 6rem;
	background: linear-gradient(to bottom, rgba(251, 246, 238, 0), #fbf6ee 80%);
	pointer-events: none;
}

.sp-paywall-preview__inner {
	padding: 1.15rem 1.35rem 1.75rem;
	min-height: 12.5rem;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: #2b2118;
	filter: blur(3.5px);
	user-select: none;
	pointer-events: none;
	opacity: 0.95;
}

.sp-paywall-cta {
	box-sizing: border-box;
	max-width: 560px;
	margin: 0 auto;
	padding: 32px;
	background: #ffffff;
	border: 1px solid #e6d9c4;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	text-align: center;
}

.sp-paywall-cta__title {
	margin: 0 0 8px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #2b2118;
	line-height: 1.3;
	text-align: center;
}

.sp-paywall-cta__lede {
	margin: 0 0 12px;
	font-size: 15px;
	color: #7a6a5a;
	line-height: 1.45;
	text-align: center;
}

.sp-paywall-divider {
	border: 0;
	border-top: 1px solid #e6d9c4;
	margin: 12px 0;
}

/* Subline → first divider (with optional free-indicator between). */
.sp-paywall-cta__lede + .sp-paywall-divider,
.sp-paywall-cta__lede + .sp-paywall-free-indicator + .sp-paywall-divider,
.sp-paywall-free-indicator + .sp-paywall-divider {
	margin-top: 0;
}

.sp-paywall-cta__lede + .sp-paywall-free-indicator {
	margin-bottom: 0;
}

.sp-paywall-free-indicator {
	margin: 0 0 16px;
	padding: 10px 16px;
	border: 1px solid #e6d9c4;
	border-radius: 8px;
	background: #fbf6ee;
	color: #2b2118;
	font-size: 14px;
	line-height: 1.45;
	text-align: center;
}

/* Free-member overlay: quota banner dot + spacing to unlock button. */
.sp-paywall-cta > .sp-paywall-free-indicator {
	margin-bottom: 0;
}

.sp-paywall-cta > .sp-paywall-free-indicator::before {
	content: "● ";
	color: #e8a87c;
}

.sp-paywall-cta > .sp-paywall-free-indicator + .sp-paywall-status + .sp-paywall-divider,
.sp-paywall-cta > .sp-paywall-free-indicator + .sp-paywall-status:empty + .sp-paywall-divider {
	margin-top: 12px;
	margin-bottom: 0;
}

.sp-paywall-cta > .sp-paywall-free-indicator + .sp-paywall-status + .sp-paywall-divider + .sp-paywall-actions,
.sp-paywall-cta > .sp-paywall-free-indicator + .sp-paywall-status:empty + .sp-paywall-divider + .sp-paywall-actions {
	margin-top: 0;
}

.sp-paywall-free-indicator--inline {
	max-width: 560px;
	margin: 0 auto 1rem;
	padding: 10px 16px;
	border: 1px solid #e6d9c4;
	border-radius: 8px;
	background: #fbf6ee;
	color: #2b2118;
	font-size: 14px;
}

.sp-paywall-anon-block {
	text-align: center;
	margin-bottom: 0;
}

.sp-paywall-anon-prompt {
	margin: 0 0 12px;
	padding: 12px 16px;
	border: none;
	border-radius: 8px;
	background: #fbf6ee;
	color: #2b2118;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	text-align: center;
	cursor: default;
	pointer-events: none;
}

.sp-paywall-anon-prompt::before {
	content: "● ";
	color: #e8a87c;
}

.sp-paywall-anon-helper {
	margin: 0 0 12px;
	color: #7a6a5a;
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
}

.sp-paywall-anon-helper a {
	color: #2b2118;
}

.sp-paywall-returning-login {
	margin: 16px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: #7a6a5a;
	text-align: center;
}

.sp-paywall-returning-login a {
	color: #2b2118;
	font-weight: 600;
	text-decoration: underline;
}

.sp-paywall-returning-login a:hover,
.sp-paywall-returning-login a:focus {
	color: #3d3026;
}

.sp-paywall-returning-login-form-wrap {
	margin-top: 12px;
	text-align: left;
}

.sp-paywall-anon-login {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	margin: 0;
	text-align: left;
}

.sp-paywall-anon-login__label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 400;
	color: #7a6a5a;
	text-align: left;
}

.sp-paywall-anon-login input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #e6d9c4;
	border-radius: 8px;
	padding: 11px 16px;
	font-size: 15px;
	color: #2b2118;
	background: #fafafa;
}

.sp-paywall-status {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	min-height: 0;
	text-align: center;
}

.sp-paywall-status:not(:empty) {
	margin-bottom: 12px;
	min-height: 1.25rem;
}

.sp-paywall-status:empty {
	display: none;
}

/* Send login link → divider above bottom actions. */
.sp-paywall-anon-block + .sp-paywall-status + .sp-paywall-divider,
.sp-paywall-anon-block + .sp-paywall-status:empty + .sp-paywall-divider {
	margin-top: 16px;
}

.sp-paywall-status--success {
	color: #166534;
}

.sp-paywall-status--warn {
	color: #92400e;
}

.sp-paywall-status--info {
	color: #7a6a5a;
}

.sp-paywall-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

.sp-paywall-actions-primary {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.sp-paywall-actions-row {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 8px;
	width: 100%;
}

.sp-paywall-actions-row > .sp-paywall-btn,
.sp-paywall-actions-row > a.sp-paywall-btn,
.sp-paywall-actions-row > a.sp-paywall-btn--secondary {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1.3;
	border-radius: 999px;
}

.sp-paywall-btn__lines {
	display: block;
	text-align: center;
	line-height: 1.3;
}

.sp-paywall-actions .button,
.sp-paywall-actions a.sp-paywall-btn,
.sp-paywall-anon-login .button {
	display: inline-block;
	box-sizing: border-box;
	font-family: inherit;
	line-height: 1.35;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sp-paywall-btn--primary,
.sp-paywall-anon-login .sp-paywall-btn--primary {
	width: 100%;
	padding: 13px 24px;
	border: none;
	border-radius: 999px;
	background: #2b2118;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
}

.sp-paywall-btn--primary:hover,
.sp-paywall-anon-login .sp-paywall-btn--primary:hover {
	background: #3d3026;
	color: #ffffff;
}

.sp-paywall-btn--secondary,
.sp-paywall-actions a.sp-paywall-btn--secondary,
.sp-paywall-actions-row a.sp-paywall-btn--secondary {
	padding: 11px 18px;
	border: 1.5px solid #2b2118;
	border-radius: 999px;
	background: #ffffff;
	color: #2b2118;
	font-size: 14px;
	font-weight: 600;
	box-sizing: border-box;
}

.sp-paywall-btn--secondary:hover,
.sp-paywall-actions a.sp-paywall-btn--secondary:hover {
	background: #fbf6ee;
	color: #2b2118;
}

.sp-paywall-free-unlock-form {
	margin: 0;
	width: 100%;
}

.sp-paywall-free-unlock-form .sp-paywall-btn--primary {
	width: 100%;
}

.sp-paywall-actions .sp-paywall-tip-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
}

.sp-paywall-actions .sp-paywall-tip-form label {
	font-size: 14px;
	color: #7a6a5a;
}

.sp-paywall-actions .sp-paywall-tip-form input[type="number"] {
	width: 5rem;
	padding: 11px 12px;
	border: 1px solid #e6d9c4;
	border-radius: 8px;
	font-size: 15px;
	color: #2b2118;
	background: #fafafa;
}

.sp-paywall-actions .sp-paywall-tip-form .button {
	padding: 11px 18px;
	border: 1.5px solid #2b2118;
	border-radius: 999px;
	background: #ffffff;
	color: #2b2118;
	font-size: 14px;
	font-weight: 600;
}

.sp-paywall-magic {
	margin-top: 12px;
	font-size: 13px;
	color: #7a6a5a;
}

.sp-paywall-magic a {
	color: #2b2118;
}

.sp-paywall-actions a:focus,
.sp-paywall-actions .button:focus,
.sp-paywall-anon-login input:focus,
.sp-paywall-actions input:focus {
	outline: none;
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #2b2118;
}

.sp-paywall-actions a:focus:not(:focus-visible),
.sp-paywall-actions .button:focus:not(:focus-visible),
.sp-paywall-anon-login input:focus:not(:focus-visible),
.sp-paywall-actions input:focus:not(:focus-visible) {
	box-shadow: none;
}

@media (max-width: 480px) {
	.sp-paywall-cta {
		padding: 24px 20px;
	}

	.sp-paywall-actions-row {
		flex-direction: column;
	}

	.sp-paywall-actions-row > .sp-paywall-btn,
	.sp-paywall-actions-row > a.sp-paywall-btn {
		flex: 1 1 auto;
		width: 100%;
	}
}

/* Subscriber utility note after unlocked article content (not the free-quota card). */
.bspp-manage-subscription-note {
	box-sizing: border-box;
	margin: 2.25rem 0 0;
	padding: 0.85rem 0 0;
	border: 0;
	border-top: 1px solid currentColor;
	border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	background: transparent;
	box-shadow: none;
	font-size: 13px;
	line-height: 1.5;
	color: inherit;
}

.bspp-manage-subscription-note__line {
	margin: 0;
}

.bspp-manage-subscription-note__label {
	opacity: 0.72;
}

.bspp-manage-subscription-note__link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.bspp-manage-subscription-note__link:hover,
.bspp-manage-subscription-note__link:focus {
	text-decoration-thickness: 0.12em;
}
