/* =====================================================================
   TandT Subscribers, public "manage email preferences" page.
   Uses the theme's CSS custom properties with fallbacks, matching the
   convention set by inc/forms/assets/css/forms.css.
   ===================================================================== */

.tandt-em-preferences {
	max-width: 560px;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background: var(--tandt-white, #fff);
	border: 1px solid var(--tandt-border, #E2E8F0);
	border-radius: var(--tandt-radius-md, 8px);
}

.tandt-em-preferences h2 {
	margin-top: 0;
	color: var(--tandt-navy, #0F172A);
}

.tandt-em-preferences__email {
	font-weight: 600;
	color: var(--tandt-primary, #0E7CB5);
	margin-bottom: 1.5rem;
}

.tandt-em-preferences__categories {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.tandt-em-preferences__categories li {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--tandt-border, #E2E8F0);
}

.tandt-em-preferences__save {
	background: var(--tandt-primary, #0E7CB5);
	color: #fff;
	border: none;
	border-radius: var(--tandt-radius-md, 8px);
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	cursor: pointer;
}

.tandt-em-preferences__unsubscribe-all {
	margin-top: 1.5rem;
	text-align: center;
}

.tandt-em-preferences__unsubscribe-all a {
	color: var(--tandt-error, #DC2626);
}

.tandt-em-notice {
	background: var(--tandt-soft-blue, #E6F4FB);
	border-radius: var(--tandt-radius-md, 8px);
	padding: 1rem;
	margin-bottom: 1.5rem;
}

.tandt-em-notice--success {
	background: #F0FDF4;
	color: #14532D;
}
