/**
 * dwmailerlite — BASE styles only.
 *
 * Deliberately minimal + token-driven so each site's design system (per the Kant
 * rule) can restyle the form from its own global classes/variables without fighting
 * specificity. Sites override via the CSS variables below or by targeting `.dwml-*`.
 * No colours are hard-coded except sensible fallbacks; inherit from the theme first.
 */
.dwml {
	--dwml-gap: 0.75rem;
	--dwml-radius: 6px;
	--dwml-border: #c9c9c9;       /* input borders */
	--dwml-accent: #1a1a1a;       /* button background (NOT currentColor — it collides with the button's own text colour) */
	--dwml-accent-text: #ffffff;  /* button text */
	--dwml-accent-hover: #333333; /* button hover */
	max-width: 32rem;
}

.dwml-title { margin: 0 0 0.35em; }
.dwml-desc  { margin: 0 0 var(--dwml-gap); }

.dwml-form {
	display: flex;
	flex-direction: column;
	gap: var(--dwml-gap);
}

.dwml-field-email input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6em 0.75em;
	border: 1px solid var(--dwml-border);
	border-radius: var(--dwml-radius);
	font: inherit;
	color: inherit;
	background: transparent;
}

.dwml-field-groups {
	border: 0;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.dwml-groups-label { padding: 0; margin: 0 0 0.2rem; font-weight: 600; }
.dwml-group { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; }
.dwml-group input { margin: 0.15em 0 0; flex: none; }
/* two-line option: bold name over a muted one-line description */
.dwml-group .g-text { display: flex; flex-direction: column; gap: 1px; }
.dwml-group .g-name { font-weight: 600; }
.dwml-group .g-desc { font-size: 0.85em; opacity: 0.7; }
.dwml-message .m-lab { font-weight: 600; }

.dwml-privacy { font-size: 0.8em; opacity: 0.8; margin: 0; }

.dwml-submit {
	font: inherit;
	cursor: pointer;
	padding: 0.6em 1.1em;
	border: 1px solid var(--dwml-accent);
	border-radius: var(--dwml-radius);
	background: var(--dwml-accent);
	color: var(--dwml-accent-text);
}
.dwml-submit:hover { background: var(--dwml-accent-hover); border-color: var(--dwml-accent-hover); }
.dwml-submit.is-loading { opacity: 0.6; cursor: progress; }

.dwml-message:empty { display: none; }
.dwml-ok  { margin: 0; }
.dwml-err { margin: 0; color: #b00020; }

/* When a submission has succeeded, collapse the inputs and keep only the message. */
.dwml-form.dwml-is-done .dwml-field,
.dwml-form.dwml-is-done .dwml-actions,
.dwml-form.dwml-is-done .dwml-privacy { display: none; }

/* Honeypot — visually + a11y hidden, still submittable by bots. */
.dwml-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
