/*
 * Site footer (design-main 3.9, design-shop 3) and the back-to-top button.
 */

.lvt-footer {
	position: relative;
	background: var(--lvt-c-bg-footer);
}

.lvt-footer__band {
	border-top: 3px solid var(--lvt-c-primary);
}

.lvt-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding-top: 48px;
}

/* Shop footer sits in Woodmart's 1192px container (main: 1200px). */
.lvt-site-shop .lvt-footer__inner {
	max-width: 1192px;
}

.lvt-footer__cols {
	display: flex;
	flex-wrap: wrap;
}

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

.lvt-footer__col--about {
	width: 30%;
	padding-left: 10px;
}

.lvt-footer__col--nav {
	width: 23%;
	padding: 0 3% 0 7%;
}

.lvt-footer__col--links {
	width: 23%;
	padding: 0 5%;
}

.lvt-footer__col--contacts {
	width: 23%;
	padding-left: 3.5%;
}

.lvt-footer__logo {
	display: block;
	line-height: 0;
}

.lvt-footer__logo img {
	width: 142px;
	height: auto;
}

.lvt-footer__about,
.lvt-footer__eu-text {
	color: var(--lvt-c-muted);
	font-family: var(--lvt-font-body);
	font-size: 14px;
	line-height: 20px;
}

.lvt-footer__about p,
.lvt-footer__eu-text p {
	margin: 0;
}

.lvt-footer__about p + p,
.lvt-footer__eu-text p + p {
	margin-top: 10px;
}

.lvt-footer__title {
	margin: 0;
	color: var(--lvt-c-secondary);
	font-family: var(--lvt-font-accent);
	font-size: 14px;
	font-weight: 600;
	line-height: 14px;
	letter-spacing: -0.01px;
	text-transform: uppercase;
}

.lvt-footer__links,
.lvt-footer__contacts {
	display: flex;
	flex-direction: column;
	gap: 15px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lvt-footer__links li,
.lvt-footer__contacts li {
	margin: 0;
}

.lvt-footer__link,
.lvt-footer__contact {
	display: flex;
	align-items: center;
	color: #333333;
	font-family: var(--lvt-font-body);
	font-size: 14px;
	line-height: 14px;
}

.lvt-footer__link:hover,
.lvt-footer__contact:hover {
	color: var(--lvt-c-dark);
}

.lvt-footer__contact-icon {
	display: flex;
	flex: none;
	width: 18px;
	color: var(--lvt-c-primary);
}

.lvt-footer__contact-icon .lvt-icon {
	width: auto;
	height: 14px;
}

.lvt-footer__contact-icon .lvt-icon--mail {
	height: 11px;
}

.lvt-footer__contact-text {
	padding-left: 5px;
}

.lvt-footer__fsc {
	display: block;
	width: 60%;
	line-height: 0;
}

.lvt-footer__fsc img {
	width: 100%;
	height: auto;
}

/* EU funding row */
.lvt-footer__eu {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-top: 48px;
	padding: 32px 0;
	border-top: 1px solid var(--lvt-c-line-footer);
}

.lvt-footer__eu-logo {
	display: flex;
	flex: 0 0 35%;
	justify-content: flex-end;
	min-width: 0;
}

.lvt-footer__eu-logo img {
	width: 277px;
	max-width: 100%;
	height: auto;
	border-radius: var(--lvt-radius);
}

.lvt-footer__eu-text {
	flex: 1 1 63%;
	align-self: center;
	min-width: 0;
}

/* Copyright bar (Arial as live) */
.lvt-footer__copy {
	padding: 20px;
	border-top: 1px solid var(--lvt-c-line-footer);
	background: var(--lvt-c-bg-footer);
	color: var(--lvt-c-text);
	font-family: var(--lvt-font-arial);
	font-size: 14px;
	line-height: 24px;
	text-align: center;
}

.lvt-footer__copy p {
	margin: 0;
}

/* Main site: live's copyright line is 25px tall at every width (its removed
   credit link made the line box 1px taller than the 24px text line). */
.lvt-site-main .lvt-footer__copy p {
	min-height: 25px;
}

/* Shop tablet: 30 / 16 / 23 / 30 % columns with 32px outer padding,
   EU row (and its divider) edge to edge with 32px inner padding. Live's
   column row is Elementor's negative-gap box (7.5px wider on each side), so
   the percentages are taken of that box: about text at x24.5, "Payment and
   delivery" on one line at 768px. */
@media (min-width: 768px) and (max-width: 1024px) {
	.lvt-site-shop .lvt-footer__cols {
		margin: 0 -7.5px;
	}

	.lvt-site-shop .lvt-footer__col--about {
		width: 30%;
		padding-left: 32px;
	}

	.lvt-site-shop .lvt-footer__col--nav {
		width: 16%;
		padding: 0 0 0 2%;
	}

	.lvt-site-shop .lvt-footer__col--links {
		width: 23%;
		padding: 0 0 0 3%;
	}

	.lvt-site-shop .lvt-footer__col--contacts {
		width: 30%;
		padding: 0 32px 0 0;
	}

	.lvt-site-shop .lvt-footer__eu {
		margin: 48px 0 0;
		padding: 32px;
	}
}

/* Tablet: the EU logo keeps live's 82px row height when its column narrows
   (live squeezes the image; here it is scaled down inside that height). */
@media (min-width: 768px) and (max-width: 1024px) {
	.lvt-footer__eu-logo img {
		height: 82px;
		object-fit: contain;
	}
}

@media (max-width: 1024px) {
	.lvt-footer__eu {
		padding-right: 0;
		padding-left: 0;
	}
}

/* Mobile: everything stacked in column order */
@media (max-width: 767px) {
	.lvt-footer__band {
		padding: 10px;
	}

	.lvt-footer__cols {
		display: block;
	}

	.lvt-footer__col,
	.lvt-site-shop .lvt-footer__col {
		width: 100%;
		padding: 10px;
	}

	/* Only the live main EN footer spaces wrapped contact lines at 22px. */
	.lvt-site-main.lvt-lang-en .lvt-footer__contact {
		line-height: 22px;
	}

	.lvt-footer__eu {
		flex-direction: column;
		align-items: stretch;
		margin: 48px 0 0;
		padding: 42px 10px;
	}

	.lvt-footer__eu-logo {
		flex: none;
		justify-content: center;
		padding: 10px;
	}

	.lvt-footer__eu-text {
		flex: none;
		padding: 10px;
	}

	/* Shop: 16px side padding, no column padding, 32px between columns,
	   32px EU row padding (live shop footer). */
	.lvt-site-shop .lvt-footer__band {
		padding: 0 16px;
	}

	.lvt-site-shop .lvt-footer__col {
		padding: 0;
	}

	.lvt-site-shop .lvt-footer__col + .lvt-footer__col {
		margin-top: 32px;
	}

	.lvt-site-shop .lvt-footer__eu {
		margin-top: 64px;
		padding: 32px 0;
	}

	.lvt-site-shop .lvt-footer__eu-logo,
	.lvt-site-shop .lvt-footer__eu-text {
		padding: 0;
	}
}

/* Back to top (main-behaviour 13) */
.lvt-back-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: var(--lvt-z-float);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	box-shadow: var(--lvt-shadow-float);
	color: #333333;
	opacity: 0;
	pointer-events: none;
	transform: translateX(100%);
	transition: opacity .25s ease, transform .25s ease, color .25s ease;
}

.lvt-back-to-top:hover {
	color: #777777;
}

.lvt-back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}

/* Whole-pixel box (SVG sizes/positions are rounded to whole pixels). */
.lvt-back-to-top .lvt-icon {
	width: 18px;
	height: 10px;
}

@media (max-width: 1024px) {
	.lvt-back-to-top {
		right: 12px;
		bottom: 12px;
		width: 40px;
		height: 40px;
	}

	/* Live's glyph is 14/16 of the desktop size here, 1/8px above the centre. */
	.lvt-back-to-top .lvt-icon {
		transform: translateY(-.125px) scale(.875);
	}
}
