/* Ecomail Newsletter Widget – base styles */

.ecm-nl-form {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
}

/* ── Inline layout ─────────────────────── */
.ecm-nl-layout-inline .ecm-nl-input {
	flex: 1 1 auto;
	min-width: 0;
}

.ecm-nl-layout-inline .ecm-nl-btn {
	flex: 0 0 auto;
}

/* ── Stacked layout ────────────────────── */
.ecm-nl-layout-stacked {
	flex-direction: column;
}

.ecm-nl-layout-stacked .ecm-nl-input,
.ecm-nl-layout-stacked .ecm-nl-btn {
	width: 100%;
	flex: none;
}

/* ── Input ─────────────────────────────── */
.ecm-nl-input {
	padding: 10px 14px;
	font-size: 15px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #fff;
	color: #333;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.ecm-nl-input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

/* ── Button ────────────────────────────── */
.ecm-nl-btn {
	padding: 10px 22px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	background-color: #2271b1;
	color: #fff;
	border: 1px solid transparent;
	border-radius: 4px;
	transition: background-color 0.2s, box-shadow 0.2s, opacity 0.2s;
	white-space: nowrap;
	box-sizing: border-box;
	line-height: 1.4;
}

.ecm-nl-btn:hover {
	background-color: #135e96;
}

.ecm-nl-btn:active {
	background-color: #0d4a77;
}

.ecm-nl-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
}

/* ── Messages ──────────────────────────── */
.ecm-nl-msg {
	width: 100%;
	margin: 2px 0 0;
	font-size: 14px;
	min-height: 1.2em;
	transition: color 0.2s;
}

.ecm-nl-msg:empty {
	display: none;
}

.ecm-nl-msg.success {
	color: #1e7e34;
}

.ecm-nl-msg.error {
	color: #c0392b;
}

