/**
 * IncubeSocial — auto-renewal disclosure + consent checkboxes (ToS §4.3).
 *
 * ── UX REVISION 2026-09-08 ──────────────────────────────────────────────
 * Was permanently-visible inline card content; Ara's live feedback was that
 * the disclosure/checkboxes shouldn't clutter the browsing/comparison
 * experience on the cards themselves, and should instead show "when
 * somebody tries to subscribe." This is now a MODAL (backdrop + centered
 * dialog), [hidden] by default, opened by renewal-consent.js at the moment
 * the visitor clicks a "Subscribe" control. Visual language deliberately
 * matches .addon-step (addon-step.css, the sibling modal already live on
 * this same /pricing/ page for the post-Subscribe add-on step) — same fixed
 * overlay, blurred backdrop, centered white panel, [hidden]-attribute
 * toggle — so this reads as part of the same system, not a bolted-on
 * separate component. Also renders inside the portal (portal-seo tab),
 * which is why colors are pulled from design-tokens.css's global :root
 * tokens (shared by both the public marketing pages and the portal) rather
 * than anything portal- or pricing-page-scoped.
 *
 * z-index sits above .addon-step (9999) and the portal's own
 * .portal-confirm-modal (10001) deliberately — this is the LAST gate before
 * a real charge, so if any of these were ever open at once (should never
 * happen in the current flow) this one has to win.
 */

.renewal-consent-modal {
	position: fixed;
	inset: 0;
	z-index: 10010;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.renewal-consent-modal[hidden] {
	display: none;
}

.renewal-consent-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(13, 19, 43, 0.55);
	backdrop-filter: blur(2px);
}

.renewal-consent-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: var(--radius-lg, 20px);
	padding: 1.75rem 1.75rem 1.5rem;
	max-width: 460px;
	width: 100%;
	max-height: min(85vh, 640px);
	overflow-y: auto;
	box-shadow: 0 24px 64px rgba(13, 19, 43, 0.28);
}

.renewal-consent-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 32px;
	height: 32px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: var(--color-grey-light, #F2F4F7);
	border-radius: var(--radius-sm, 8px);
	color: var(--color-navy-dark, #0D132B);
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
	transition: background 0.15s ease;
}

.renewal-consent-modal__close:hover {
	background: #e4e4ea;
}

.renewal-consent-modal__eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-orange-accent, #FF8A00);
	margin: 0 0 0.4rem;
}

.renewal-consent-modal__title {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--color-navy-dark, #0D132B);
	margin: 0 0 1rem;
	padding-right: 2rem;
	line-height: 1.3;
}

.renewal-consent-modal__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--color-border, #DDDDE3);
}

.renewal-consent-modal__cancel {
	appearance: none;
	border: 1px solid var(--color-border, #DDDDE3);
	background: #fff;
	border-radius: var(--radius-pill, 999px);
	padding: 0.6rem 1.2rem;
	font-family: var(--font-heading);
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--color-navy-dark, #0D132B);
	cursor: pointer;
}

.renewal-consent-modal__confirm {
	appearance: none;
	border: none;
	background: var(--color-navy-dark, #0D132B);
	border-radius: var(--radius-pill, 999px);
	padding: 0.6rem 1.4rem;
	font-family: var(--font-heading);
	font-size: 0.85rem;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.renewal-consent-modal__confirm[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
}

/* ── The disclosure + checkboxes themselves — unchanged visually from the
   original inline block, just living inside the dialog above now. ── */

.renewal-consent {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	text-align: left;
}

.renewal-consent__disclosure {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--color-navy-dark, #0D132B);
	opacity: 0.85;
}

.renewal-consent__check {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--color-navy-dark, #0D132B);
	cursor: pointer;
}

.renewal-consent__check input[type="checkbox"] {
	margin-top: 0.15em;
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	cursor: pointer;
}

.renewal-consent__check a {
	color: inherit;
	text-decoration: underline;
}

.renewal-consent__error {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #C0392B;
}

.renewal-consent__error:not([hidden]) {
	display: block;
}

@media (max-width: 480px) {
	.renewal-consent-modal__dialog {
		padding: 1.5rem 1.25rem 1.25rem;
	}

	.renewal-consent-modal__actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.renewal-consent-modal__cancel,
	.renewal-consent-modal__confirm {
		width: 100%;
		text-align: center;
	}
}
