.ss-interest-subscribe-wrap {
	display: inline-block;
}

.ss-interest-subscribe-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ss-interest-subscribe-btn:hover,
.ss-interest-subscribe-btn:focus {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
	color: #fff;
}

.ss-interest-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ss-interest-modal.is-open {
	display: flex;
}

.ss-interest-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.ss-interest-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow: hidden;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
	display: flex;
	flex-direction: column;
}

.ss-interest-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid #e5e7eb;
}

.ss-interest-modal__header h2 {
	margin: 0;
	font-size: 22px;
	color: #111827;
}

.ss-interest-modal__close {
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
}

.ss-interest-modal__body {
	padding: 20px 24px;
	overflow-y: auto;
}

.ss-interest-modal__intro {
	margin: 0 0 20px;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.6;
}

.ss-interest-field {
	margin-bottom: 18px;
}

.ss-interest-field label,
.ss-interest-field__label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #111827;
}

.ss-interest-field input[type="text"],
.ss-interest-field input[type="email"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
}

.ss-interest-checkboxes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
	max-height: 160px;
	overflow-y: auto;
	padding: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f9fafb;
}

.ss-interest-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #374151;
	cursor: pointer;
}

.ss-interest-checkbox input {
	margin: 0;
}

.ss-interest-empty {
	margin: 0;
	font-size: 13px;
	color: #6b7280;
}

.ss-interest-plans {
	display: grid;
	gap: 10px;
}

.ss-interest-plan {
	display: block;
	cursor: pointer;
}

.ss-interest-plan input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ss-interest-plan__content {
	display: block;
	padding: 14px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.ss-interest-plan input:checked + .ss-interest-plan__content {
	border-color: #667eea;
	background: #eef2ff;
}

.ss-interest-plan strong {
	display: block;
	margin-bottom: 4px;
	color: #111827;
}

.ss-interest-plan__price {
	display: block;
	font-style: normal;
	font-size: 14px;
	color: #667eea;
	margin-bottom: 4px;
}

.ss-interest-plan__covers {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 4px 0 2px;
}

.ss-interest-plan__covers::before {
	/* label generated inline, nothing extra needed */
}

/* Render each covered term as a small pill */
.ss-interest-plan__covers {
	font-size: 12px;
	font-weight: 500;
	color: #374151;
	line-height: 1.4;
}

.ss-interest-plan small,
.ss-interest-plan__desc {
	display: block;
	color: #6b7280;
	font-size: 12px;
	line-height: 1.5;
	margin-top: 2px;
}

.ss-interest-message {
	min-height: 20px;
	margin-top: 8px;
	font-size: 14px;
}

.ss-interest-message.is-error {
	color: #dc2626;
}

.ss-interest-message.is-success {
	color: #059669;
}

.ss-interest-modal__footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 24px 24px;
	border-top: 1px solid #e5e7eb;
}

.ss-interest-btn {
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	border: none;
}

.ss-interest-btn--secondary {
	background: #f3f4f6;
	color: #374151;
}

.ss-interest-btn--primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

.ss-interest-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

body.ss-interest-modal-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.ss-interest-modal__dialog {
		max-height: 95vh;
	}

	.ss-interest-checkboxes {
		grid-template-columns: 1fr;
	}
}

/* ── Floating subscribe button ─────────────────────────────────────────────── */
.ss-interest-floating-btn {
	position: fixed;
	z-index: 99999;
	padding: 14px 22px;
	border-radius: 50px;
	box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ss-interest-floating-btn:hover,
.ss-interest-floating-btn:focus {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.ss-floating--bottom-right {
	bottom: 28px;
	right: 28px;
}

.ss-floating--bottom-left {
	bottom: 28px;
	left: 28px;
}

.ss-floating--bottom-center {
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
}

.ss-floating--bottom-center:hover,
.ss-floating--bottom-center:focus {
	transform: translateX(-50%) translateY(-2px);
}

/* ── Context badge (pre-selected from current post) ────────────────────────── */
.ss-interest-checkbox--context {
	background: #f0f4ff;
	border-radius: 6px;
	padding: 2px 4px;
}

.ss-context-badge {
	font-size: 11px;
	font-style: normal;
	font-weight: 600;
	color: #667eea;
	background: #e0e7ff;
	border-radius: 4px;
	padding: 1px 6px;
	margin-left: 4px;
	vertical-align: middle;
}

/* ── Logged-in greeting ─────────────────────────────────────────────────────── */
.ss-interest-modal__intro--loggedin {
	font-weight: 500;
	color: #1d2327;
}

/* ── Guest panel (not logged in) ───────────────────────────────────────────── */
.ss-interest-guest {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 40px 32px 28px;
	gap: 12px;
}

.ss-interest-guest__icon {
	color: #667eea;
	opacity: 0.85;
}

.ss-interest-guest__heading {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #1d2327;
}

.ss-interest-guest__desc {
	margin: 0;
	color: #646970;
	font-size: 14px;
	line-height: 1.6;
	max-width: 340px;
}

.ss-interest-guest__footer {
	justify-content: center;
	gap: 10px;
}

.ss-interest-btn--ghost {
	background: transparent;
	border: 1px solid #c3c4c7;
	color: #646970;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: border-color 0.15s, color 0.15s;
	text-decoration: none;
	display: inline-block;
}

.ss-interest-btn--ghost:hover,
.ss-interest-btn--ghost:focus {
	border-color: #8c8f94;
	color: #1d2327;
}

.ss-interest-btn--login {
	text-decoration: none;
	display: inline-block;
}

@media (max-width: 600px) {
	.ss-interest-floating-btn {
		bottom: 16px;
		right: 16px;
		left: auto;
		padding: 12px 18px;
		font-size: 14px;
	}

	.ss-floating--bottom-left {
		right: auto;
		left: 16px;
	}

	.ss-floating--bottom-center {
		left: 50%;
	}
}
