/**
 * M50 Footer — based on CrocoBuilder template #2 "Footer Main".
 */
.m50-footer {
	--m50-footer-bg: var(--c-m50-grey, #f9f9f9);
	--m50-footer-font: "Larsseit", "Helvetica Neue", Arial, sans-serif;
	--m50-footer-color: #1f2124;
	--m50-footer-gap: 10px;

	box-sizing: border-box;
	width: 100%;
	margin: 0 auto;
	padding: 50px 0;
	background: var(--m50-footer-bg);
	color: var(--m50-footer-color);
	font-family: var(--m50-footer-font);
}

.m50-footer *,
.m50-footer *::before,
.m50-footer *::after {
	box-sizing: border-box;
}

.m50-footer__inner {
	width: 100%;
	max-width: var(--m50-footer-max);
	margin: 0 auto;
	padding: 0 20px;
}

/* 4-column grid */
.m50-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--m50-footer-gap);
}

.m50-footer__col {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	row-gap: 20px;
	min-width: 0;
}

.m50-footer__logo-link {
	display: inline-block;
	line-height: 0;
}

.m50-footer__logo {
	display: block;
	width: auto;
	height: 64px !important;
	margin: 0 0 20px;
}

.m50-footer .m50-footer__heading {
	margin: 0;
	font-family: var(--m50-footer-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	color: inherit;
	text-transform: none;
	letter-spacing: normal;
}

.m50-footer__text {
	font-family: var(--m50-footer-font);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.m50-footer a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.m50-footer a:hover,
.m50-footer a:focus-visible {
	opacity: 0.6;
}

/* WP menus */
.m50-footer__menu {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.m50-footer__menu li {
	margin: 0;
	padding: 0;
}

.m50-footer__menu a {
	font-family: var(--m50-footer-font);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.5;
}

.m50-footer__menu .current-menu-item > a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Shipping */
.m50-footer__shipping {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	row-gap: 10px;
}

.m50-footer__shipping-img {
	display: block;
	width: 100px;
	height: auto;
	filter: grayscale(1);
}

.m50-footer__pickup {
	margin-top: 30px;
}

/* Payments */
.m50-footer__payments {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 30px 0 0;
	padding: 0 20px;
}

.m50-footer__payments-img {
	display: block;
	width: 500px !important;
	max-width: 100%;
	height: auto;
        margin-top: 50px;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
	.m50-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 40px;
	}
}

/* Mobile: 1 column, centred (as in the template) */
@media (max-width: 767px) {
	.m50-footer {
		padding: 50px 1%;
	}

	.m50-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.m50-footer__col,
	.m50-footer__shipping {
		align-items: center;
		text-align: center;
	}

	.m50-footer__menu {
		align-items: center;
	}
}
