/* Newsletter band (patterns/newsletter.php). Values from the old newsletter-section.tsx. */
.sp-newsletter {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--black) 5%, transparent);
}
.sp-newsletter .sp-newsletter__container {
	padding-block: 40px;
}
@media (min-width: 1024px) {
	.sp-newsletter .sp-newsletter__container { padding-block: 60px; }
}
.sp-newsletter .sp-newsletter__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 1150px;
	margin-inline: auto;
}
@media (min-width: 768px) {
	.sp-newsletter .sp-newsletter__inner {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
	}
}
.sp-newsletter .sp-newsletter__title.sp-newsletter__title {
	margin-bottom: 16px;
	font-size: 30px;
	line-height: 36px;
	font-weight: 600;
	letter-spacing: -0.025em;
}
.sp-newsletter .sp-newsletter__text {
	max-width: 440px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.625;
	color: color-mix(in srgb, var(--wp--preset--color--black) 50%, transparent);
}
@media (min-width: 1280px) {
	.sp-newsletter .sp-newsletter__text { font-size: var(--wp--preset--font-size--body-large); }
}

.sp-newsletter__form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	max-width: 100%;
}
@media (min-width: 768px) {
	.sp-newsletter__form { max-width: 405px; }
}
@media (min-width: 1536px) {
	.sp-newsletter__form { max-width: 448px; }
}
/* The live form (October 2026) ends in an empty Turnstile slot, which adds one more 20px gap below the consent line. */
.sp-newsletter__form::after {
	content: "";
	display: block;
}
.sp-newsletter__row {
	position: relative;
	display: flex;
	align-items: flex-end;
}
.sp-newsletter__email {
	flex: 1;
	min-width: 0;
	width: 100%;
	padding: 0 0 8px;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	background: transparent;
	font: inherit;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
	color: inherit;
	outline: none;
}
.sp-newsletter__email::placeholder { color: var(--wp--preset--color--black); opacity: 1; }
.sp-newsletter__email:focus { border-color: var(--wp--preset--color--black-light); }
.sp-newsletter__submit {
	flex-shrink: 0;
	padding: 12px 24px;
	border: 1px solid var(--wp--preset--color--black-light);
	border-radius: 0;
	background: var(--wp--preset--color--black-light);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--poppins);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 16px;
	letter-spacing: -0.42px;
	white-space: nowrap;
	cursor: pointer;
	transition: box-shadow 0.2s;
}
.sp-newsletter__submit:hover { box-shadow: 4px 4px 0 0 var(--wp--preset--color--black-light); }

/* Checkbox (old form-elements/checkbox.tsx). */
.sp-checkbox {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 12px;
	cursor: pointer;
}
.sp-checkbox__box {
	position: relative;
	display: block;
	flex: none;
}
.sp-checkbox__box input {
	/* Inline, as the old checkbox: its box then takes a full text line
	   (26px), which sets the row's height when the label fits on one line. */
	display: inline-block;
	vertical-align: baseline;
	width: 20px;
	height: 20px;
	margin: 0;
	appearance: none;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--black) 40%, transparent);
	border-radius: 0;
	background: var(--wp--preset--color--white);
	outline: none;
	cursor: pointer;
}
.sp-checkbox__tick {
	position: absolute;
	inset: 0 auto auto 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--white);
	transform: scale(0);
	opacity: 0;
	transition: transform 0.2s, opacity 0.2s;
	pointer-events: none;
}
.sp-checkbox__box input:checked + .sp-checkbox__tick { transform: scale(1); opacity: 1; }
.sp-checkbox__label {
	margin-bottom: 4px;
	font-family: var(--wp--preset--font-family--poppins);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.3;
	color: color-mix(in srgb, var(--wp--preset--color--black) 70%, transparent);
}
.sp-checkbox__label a { text-decoration: underline; }
.sp-checkbox__label a:hover { text-decoration: none; }
