/* MailerLite newsletter embed (form q2i1j8, pasted into a Beaver Builder HTML module with the class mv-ml-form),
   restyled for the brand. Used on „Apie mane“ and the homepage; each page may recolour it through the --mv-* custom
   properties of its rows or override it in its own stylesheet. Loaded by inc/apie-mane.php and inc/homepage.php. */

:where(.mv-ml-form) div.ml-form-embedContainer,
:where(.mv-ml-form) div.ml-form-align-left,
:where(.mv-ml-form) div.ml-form-embedWrapper,
:where(.mv-ml-form) div.ml-form-embedBody {
	width: 100%;
	margin: 0;
	padding: 0;
}
:where(.mv-ml-form) form.ml-block-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
:where(.mv-ml-form) div.ml-form-formContent,
:where(.mv-ml-form) div.ml-form-horizontalRow,
:where(.mv-ml-form) div.ml-field-group {
	margin: 0;
}
:where(.mv-ml-form) div.ml-form-horizontalRow {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
:where(.mv-ml-form) div.ml-input-horizontal {
	display: flex;
	gap: 10px;
	flex: 1 1 300px;
	flex-wrap: wrap;
}
:where(.mv-ml-form) div.horizontal-fields {
	width: auto !important;
	flex: 1 1 140px;
}
:where(.mv-ml-form) div.ml-button-horizontal {
	flex: 0 0 auto;
}
:where(.mv-ml-form) div.ml-field-group input.form-control {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0 18px;
	border: 1.5px solid rgba(81, 0, 0, .3);
	border-radius: 999px;
	background: var(--mv-ground, #f9f6ed);
	box-shadow: none;
	font-family: inherit;
	font-size: 16px;
	color: var(--mv-ink, #510000);
}
:where(.mv-ml-form) div.ml-field-group input.form-control::placeholder {
	color: rgba(81, 0, 0, .55);
	opacity: 1;
}
:where(.mv-ml-form) div.ml-field-group input.form-control:focus {
	border-color: var(--mv-ink, #510000);
	outline: 2px solid var(--mv-accent, #f4af14);
	outline-offset: 1px;
}
:where(.mv-ml-form) div.ml-field-group.ml-error input.form-control {
	border-color: #b3261e;
}
:where(.mv-ml-form) div.ml-button-horizontal button.primary {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0 26px;
	border: none;
	border-radius: 999px;
	background: var(--mv-accent, #f4af14);
	color: var(--mv-ink, #510000);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background .15s ease;
}
:where(.mv-ml-form) div.ml-button-horizontal button.primary:hover,
:where(.mv-ml-form) div.ml-button-horizontal button.primary:focus-visible {
	background: var(--mv-accent-hover, #ffd577);
	color: var(--mv-ink, #510000);
}
:where(.mv-ml-form) div.ml-mobileButton-horizontal {
	display: none;
}
:where(.mv-ml-form) div.ml-form-checkboxRow label.checkbox {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	color: rgba(81, 0, 0, .75);
	cursor: pointer;
}
:where(.mv-ml-form) div.ml-form-checkboxRow input[type="checkbox"] {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 3px 0 0;
	accent-color: var(--mv-ink, #510000);
}
:where(.mv-ml-form) div.label-description p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
}
:where(.mv-ml-form) div.label-description a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}
:where(.mv-ml-form) div.ml-form-successContent h4 {
	margin: 0 0 6px;
	font-family: inherit;
	font-size: 22px;
	text-transform: none;
	color: var(--mv-ink, #510000);
}
:where(.mv-ml-form) div.ml-form-successContent p {
	margin: 0;
	font-size: 16px;
}
:where(.mv-ml-form) div.ml-form-embedSubmitLoad {
	display: inline-block;
	width: 20px;
	height: 20px;
}
:where(.mv-ml-form) span.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 768px) {
	:where(.mv-ml-form) div.ml-button-horizontal {
		flex: 1 1 100%;
	}
}
@media (max-width: 640px) {
	/* Name and email one under the other, so an address stays readable while typing */
	:where(.mv-ml-form) div.horizontal-fields {
		flex-basis: 100%;
	}
}
