/* HTML Email Template Generator styles. */

.aah-email__top {
	margin-bottom: 12px;
}

.aah-email__type {
	display: block;
	font-weight: 700;
}

.aah-email__type select {
	display: block;
	width: 100%;
	max-width: 320px;
	box-sizing: border-box;
	margin-top: 4px;
}

.aah-email__fields {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.aah-email__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 700;
	font-size: 0.95em;
}

.aah-email__field input,
.aah-email__field textarea {
	font-weight: 400;
	width: 100%;
	box-sizing: border-box;
}

.aah-email__hint {
	font-weight: 400;
	font-size: 0.85em;
	color: var(--aah-muted, #5c5c5c);
}

.aah-email__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.aah-email__preview {
	margin-bottom: 12px;
}

.aah-email__preview label,
.aah-email__output label {
	display: block;
	font-weight: 700;
	margin-bottom: 4px;
}

.aah-email__output {
	margin-bottom: 12px;
}

.aah-email__preview iframe {
	width: 100%;
	box-sizing: border-box;
	min-height: 420px;
	border: 1px solid var(--aah-border, #d9d9d9);
	border-radius: var(--aah-radius, 8px);
	background: #ffffff;
}

.aah-email__output textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 420px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
	white-space: pre;
}

.aah-email__status {
	font-weight: 600;
}

.aah-email__warnings {
	color: var(--aah-muted, #5c5c5c);
}
