/*
 * Site Foundation – frontend styles
 *
 * Intentionally scoped under .sf-newsletter so the plugin plays nicely with
 * any theme. Override styles by targeting the same selectors with higher
 * specificity in your child theme or a custom CSS plugin.
 */

.sf-newsletter {
	max-width: 480px;
	margin: 1.5rem 0;
	font-family: inherit;
	color: inherit;
}

.sf-newsletter__field {
	margin-bottom: 0.875rem;
}

.sf-newsletter__label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
	font-size: 0.95rem;
}

.sf-newsletter__input {
	width: 100%;
	padding: 0.625rem 0.75rem;
	border: 1px solid #c4c4c7;
	border-radius: 6px;
	font-size: 1rem;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sf-newsletter__input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.sf-newsletter__consent {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-size: 0.9rem;
	line-height: 1.4;
	color: inherit;
	cursor: pointer;
}

.sf-newsletter__checkbox {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.sf-newsletter__consent-text a {
	color: #2271b1;
	text-decoration: underline;
}

.sf-newsletter__consent-text a:hover,
.sf-newsletter__consent-text a:focus {
	color: #135e96;
}

.sf-newsletter__disclosure {
	margin: 0 0 0.875rem;
	font-size: 0.85rem;
	color: #50575e;
}

.sf-newsletter__disclosure summary {
	cursor: pointer;
	padding: 0.25rem 0;
	text-decoration: underline dotted;
}

.sf-newsletter__disclosure-body {
	margin-top: 0.5rem;
	padding: 0.75rem 0.875rem;
	background: #f6f7f7;
	border: 1px solid #e2e4e7;
	border-radius: 6px;
	line-height: 1.45;
}

.sf-newsletter__disclosure-body p {
	margin: 0 0 0.4rem;
}

.sf-newsletter__disclosure-body p:last-child {
	margin-bottom: 0;
}

.sf-newsletter__version code {
	font-size: 0.85em;
	word-break: break-all;
}

.sf-newsletter__unsubscribe {
	font-size: 0.9rem;
	color: #2271b1;
	text-decoration: underline;
}

.sf-newsletter__unsubscribe:hover,
.sf-newsletter__unsubscribe:focus {
	color: #135e96;
}

.sf-newsletter__submit {
	display: inline-block;
	padding: 0.65rem 1.25rem;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.sf-newsletter__submit:hover,
.sf-newsletter__submit:focus {
	background: #135e96;
	outline: none;
}

.sf-newsletter__submit:disabled {
	opacity: 0.6;
	cursor: progress;
}

.sf-newsletter__message {
	margin-top: 0.875rem;
	padding: 0.625rem 0.875rem;
	border-radius: 6px;
	font-size: 0.95rem;
}

.sf-newsletter__message.is-success {
	background: #dff5e1;
	color: #1a6b2f;
	border: 1px solid #aee3b4;
}

.sf-newsletter__message.is-error {
	background: #fde2e2;
	color: #8a1a1a;
	border: 1px solid #f3b5b5;
}
