/* Mobile footer (PLAN 41). Loaded after the approved-*-reference sheets, which all carry the
 * desktop footer; only the phone layout changes here. */

@media (max-width: 650px) {
	#macaroma-footer .mf-wrap { padding: 36px 20px 24px; }
	#macaroma-footer .mf-upper { gap: 30px; }

	/* Logo above "Информация", centred and larger. */
	#macaroma-footer .mf-left { flex-direction: column; align-items: stretch; gap: 26px; padding-bottom: 28px; }
	#macaroma-footer .mf-brand { order: -1; flex: 0 0 auto; width: min(230px, 66%); max-width: none; margin: 0 auto; }
	#macaroma-footer .mf-brand img { max-height: none; }
	#macaroma-footer .mf-left-title { font-size: 19px; letter-spacing: -.03em; margin-bottom: 16px; }
	#macaroma-footer .mf-links { gap: 12px; }
	#macaroma-footer .mf-links a { font-size: 15px; }

	/* Newsletter heading at a readable size instead of poster size. */
	#macaroma-footer .mf-newsletter-title { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; font-weight: 800; max-width: 340px; margin-bottom: 18px; }
	#macaroma-footer .mf-email-wrap { height: 54px; padding-left: 18px; }
	#macaroma-footer .mf-socials { margin-top: 22px; }
	#macaroma-footer .mf-lower { margin-top: 28px; }

	/* Everything centred on the logo's axis. */
	#macaroma-footer .mf-left,
	#macaroma-footer .mf-right,
	#macaroma-footer .mf-lower { text-align: center; }
	#macaroma-footer .mf-links { align-items: center; }
	#macaroma-footer .mf-newsletter-title,
	#macaroma-footer .mf-form,
	#macaroma-footer .mf-form-status { margin-inline: auto; }
	#macaroma-footer .mf-socials,
	#macaroma-footer .mf-legal,
	#macaroma-footer .mf-pays { justify-content: center; }
	#macaroma-footer .mf-lower { justify-items: center; }
	#macaroma-footer .mf-locality { justify-self: center; }
}

@media (max-width: 380px) {
	#macaroma-footer .mf-wrap { padding-inline: 16px; }
	#macaroma-footer .mf-brand { width: min(200px, 70%); }
	#macaroma-footer .mf-newsletter-title { font-size: 18px; }
}

/* PLAN 54: the legal links sit on the right, after the "Изработено от err.or" badge
 * (copyright | badge | legal); payment icons, when present, stay above them. */
#macaroma-footer .mf-lower { align-items: center; }
#macaroma-footer .mf-lower-end { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 0; }
#macaroma-footer :is(.mf-lower-end, .mf-pays):empty { display: none; }
#macaroma-footer .mf-lower-end .mf-legal { justify-content: flex-end; margin-top: 0; text-align: right; }
@media (max-width: 1040px) {
	#macaroma-footer .mf-lower-end { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
	#macaroma-footer .mf-lower-end { grid-column: auto; align-items: center; }
	#macaroma-footer .mf-lower-end .mf-legal { justify-content: center; text-align: center; }
}

/* review.448: Klaviyo newsletter form in the theme design – status line under the field. */
#macaroma-footer form.mf-form { margin:0; }
#macaroma-footer .mf-form-status.is-error { color:#b42318; }
#macaroma-footer .mf-submit:disabled { cursor:progress; opacity:.7; }

/* review.449: the „Изработено от err.or“ badge links to error.bg. */
#macaroma-footer a.mf-credit { transition:border-color .25s ease, background-color .25s ease; }
#macaroma-footer a.mf-credit:hover { border-color:var(--mf-pink); background:#fff; }

/* review.461: ProPix cookie banner with a transparent backdrop (.propix-consent-scrim--visible) covers the whole
 * page with an invisible layer, so taps on the menu and links did nothing until the visitor chose. That
 * transparent layer lets taps through; the banner card stays clickable. The dimmed (blur) mode is untouched. */
#propix-consent-root .propix-consent-layer--banner:has(> .propix-consent-scrim--visible),
#propix-consent-root .propix-consent-layer--banner > .propix-consent-scrim--visible { pointer-events: none; }
#propix-consent-root .propix-consent-layer--banner:has(> .propix-consent-scrim--visible) > .propix-consent { pointer-events: auto; }
