/* sst-signup-incentive r1 — welcome-points block on register form / checkout / order received.
 *
 * Contract (DESIGN §5, tests/contract.test.js checks these numbers):
 *   - the conditions line (.sst-signup-inc__terms) is >= 85% of the body text size:
 *       body 14px -> terms 13px (92.9%), lead body 15px -> terms 13px (86.7%)
 *   - every text colour has >= 4.5:1 contrast on the block background, light and dark.
 *   - no horizontal overflow at 320-430px: min-width 0, long tokens wrap.
 * Plain <div>/<span> only (no <p>): checkout variant A styles `.sst-account-required-notice p`.
 */
.sst-signup-inc {
	--sst-si-bg: #f6f7f9;
	--sst-si-border: #d8dbe0;
	--sst-si-accent: #ac004d;
	--sst-si-title: #16181b;
	--sst-si-body: #2a2d31;
	--sst-si-terms: #3f444a;
	box-sizing: border-box;
	display: block;
	min-width: 0;
	max-width: 100%;
	margin: 0 0 18px;
	border: 1px solid var(--sst-si-border);
	border-left: 4px solid var(--sst-si-accent);
	border-radius: 6px;
	padding: 14px 16px;
	background: var(--sst-si-bg);
	color: var(--sst-si-body);
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
	overflow-wrap: anywhere;
	word-break: normal;
}

.sst-signup-inc[hidden] {
	display: none !important;
}

.sst-signup-inc__title {
	display: block;
	margin: 0 0 6px;
	color: var(--sst-si-title);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
}

.sst-signup-inc__body {
	display: block;
	margin: 0;
	color: var(--sst-si-body);
	font-size: 14px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.5;
}

.sst-signup-inc__body--lead {
	color: var(--sst-si-title);
	font-size: 15px;
	font-weight: 600;
}

.sst-signup-inc__terms {
	display: block;
	margin: 8px 0 0;
	color: var(--sst-si-terms);
	font-size: 13px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.5;
	opacity: 1;
}

.sst-signup-inc__actions {
	margin: 12px 0 0;
}

.sst-signup-inc .sst-signup-inc__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	max-width: 100%;
	min-height: 44px;
	white-space: normal;
	text-align: center;
}

/* Inside the ACF "Create account?" section (moved there by the r1 script). */
.sst-account-required-notice .sst-signup-inc--checkout {
	margin: 12px 0 0;
}

/* Register form: sits above the email field. */
.woocommerce-form-register .sst-signup-inc--register-form {
	margin: 0 0 16px;
}

/* Order received: same rhythm as the order details sections around it. */
.sst-signup-inc--thankyou {
	margin: 20px 0 24px;
}

@media (max-width: 480px) {
	.sst-signup-inc {
		padding: 12px 12px 12px 13px;
	}
	.sst-signup-inc .sst-signup-inc__cta {
		display: flex;
		width: 100%;
	}
}

/* Site dark mode (theme sets html[data-sst-theme="dark"] on purchase routes). */
html[data-sst-theme="dark"] .sst-signup-inc {
	--sst-si-bg: #1a1a1c;
	--sst-si-border: #3d3d42;
	--sst-si-accent: #bd3d76;
	--sst-si-title: #f0f0f2;
	--sst-si-body: #dcdce0;
	--sst-si-terms: #c9c9cf;
}
