/* Wells Farmshop – site footer */

:root {
	--footer-bg: var(--wells-navy);
}

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

.site-footer {
	--footer-fg: var(--wells-white);
	--footer-text: rgba(255, 255, 255, .82);
	--footer-line: rgba(255, 255, 255, .16);
	--footer-link-line: rgba(255, 255, 255, .35);
	--footer-field: rgba(255, 255, 255, .5);
	background: var(--footer-bg);
	color: var(--footer-fg);
	font: 400 14.5px/1.65 var(--font-sans);
	letter-spacing: .01em;
}
.site-footer a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	text-decoration-color: var(--footer-link-line);
	transition: text-decoration-color .2s;
}
.site-footer a:hover { text-decoration-color: currentColor; }
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.site-footer input:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.site-footer--light {
	--footer-fg: var(--wells-navy);
	--footer-text: var(--wells-ink);
	--footer-line: rgba(28, 42, 69, .12);
	--footer-link-line: rgba(28, 42, 69, .3);
	--footer-field: rgba(28, 42, 69, .4);
}
.site-footer--light .site-footer__logo { box-shadow: 0 0 0 1px rgba(28, 42, 69, .1); }

.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .8fr);
	gap: 40px clamp(28px, 4vw, 64px);
	max-width: 1320px;
	margin: 0 auto;
	padding: clamp(56px, 6vw, 88px) var(--edge) clamp(44px, 5vw, 64px);
}

.site-footer__heading {
	margin: 0 0 16px;
	font: 400 18px/1.3 var(--font-serif);
	letter-spacing: 0;
}
.site-footer__subheading {
	margin: 22px 0 8px;
	font: italic 400 15px/1.3 var(--font-serif);
	color: var(--footer-text);
}

.site-footer__logo {
	display: inline-block;
	width: 84px;
	height: 84px;
	margin-bottom: 18px;
	padding: 4px;
	border-radius: 50%;
	background: var(--wells-white);
	text-decoration: none !important;
}
.site-footer__logo picture { display: contents; }
.site-footer__logo img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
}
.site-footer__tagline {
	max-width: 300px;
	margin: 0;
	color: var(--footer-text);
	font: italic 400 15.5px/1.6 var(--font-serif);
}
.site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 20px 0 0;
}

.site-footer__address {
	margin: 0;
	font-style: normal;
	color: var(--footer-text);
}
.site-footer__address strong {
	color: var(--footer-fg);
	font-weight: 500;
}
.site-footer__contact { margin: 14px 0 0; }
.site-footer__links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin: 14px 0 0;
}

.site-footer__hours { margin: 0; }
.site-footer__hours > div {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 4px 0;
}
.site-footer__hours > div + div { border-top: 1px solid var(--footer-line); }
.site-footer__hours dt { color: var(--footer-text); }
.site-footer__hours dd {
	margin: 0;
	text-align: right;
	white-space: nowrap;
}
.site-footer__hours dd span {
	display: block;
	font-size: 14px;
	color: var(--footer-text);
	opacity: .85;
}
.site-footer__notice {
	margin-top: 4px;
}

.site-footer__menu {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-footer__menu a { text-decoration-color: transparent; }
.site-footer__menu a:hover { text-decoration-color: currentColor; }

.site-footer__newsletter {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	text-align: center;
	max-width: 1320px;
	margin: 0 auto;
	padding: clamp(28px, 3vw, 40px) var(--edge);
	border-top: 1px solid var(--footer-line);
}
.site-footer__newsletter .site-footer__heading { margin: 0; }
.site-footer__form {
	display: flex;
	width: min(100%, 460px);
}
.site-footer a.site-footer__signup {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 0 26px;
	border: 1px solid var(--footer-fg);
	color: var(--footer-fg);
	font: 500 14px/1 var(--font-sans);
	letter-spacing: .04em;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.site-footer a.site-footer__signup:hover { background: var(--footer-fg); color: var(--footer-bg); }
.site-footer__signup:focus-visible,
.site-footer__form button:focus-visible { outline: 2px solid var(--footer-fg); outline-offset: 3px; }
.site-footer__form input {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0 16px;
	border: 1px solid var(--footer-field);
	border-right: 0;
	background: transparent;
	color: var(--footer-fg);
	font: inherit;
}
.site-footer__form input::placeholder { color: var(--footer-text); opacity: .75; }
.site-footer__form button {
	height: 46px;
	padding: 0 22px;
	border: 1px solid var(--footer-fg);
	background: var(--footer-fg);
	color: var(--footer-bg);
	font: 500 14px/1 var(--font-sans);
	letter-spacing: .04em;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.site-footer__form button:hover {
	background: transparent;
	color: var(--footer-fg);
}

.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 20px var(--edge) 26px;
	border-top: 1px solid var(--footer-line);
	color: var(--footer-text);
	font-size: 13px;
}
.site-footer__base p { margin: 0; }
.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-footer__legal a { text-decoration-color: transparent; }
.site-footer__legal a:hover { text-decoration-color: currentColor; }
.site-footer__credit a { text-decoration-color: transparent; }
.site-footer__credit a:hover { text-decoration-color: currentColor; }

@media (max-width: 1000px) {
	.site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.site-footer__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
		padding-inline: 22px;
	}
	.site-footer__brand { order: 3; }
	.site-footer__newsletter,
	.site-footer__base { padding-inline: 22px; }
	.site-footer__base { flex-direction: column; align-items: flex-start; }
	.site-footer__links { flex-direction: row; flex-wrap: wrap; gap: 0 22px; }
	.site-footer__menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
	.site-footer { font-size: 15px; }
	.site-footer__form button { font-size: 15px; }
	.site-footer__menu a,
	.site-footer__links a,
	.site-footer__social a,
	.site-footer__contact a,
	.site-footer__legal a,
	.site-footer__credit a { display: inline-block; padding: 12px 0; }
	.site-footer__social { gap: 0 22px; margin-top: 8px; }
	.site-footer__contact { margin-top: 2px; }
	.site-footer__links { margin-top: 0; }
	.site-footer__base { gap: 0; font-size: 14px; padding-top: 8px; padding-bottom: 18px; }
	.site-footer__legal { gap: 0 22px; }
}

.site-footer__company { display: block; margin-top: 4px; opacity: .8; font-size: .92em; }

/* Cookie banner: a card in the style of the homepage "Today" card */
.cookie-banner {
	position: fixed;
	bottom: 24px;
	left: 24px;
	z-index: 200;
	width: min(600px, calc(100vw - 48px));
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 132px;
	grid-template-areas: "title actions" "text actions";
	align-items: center;
	gap: 0 30px;
	padding: 24px 28px 24px 30px;
	background: var(--wells-white);
	box-shadow: 0 30px 60px -30px rgba(12, 18, 32, .6), 0 2px 12px rgba(12, 18, 32, .06);
	color: var(--wells-navy);
	font: 400 14.5px/1.55 var(--font-sans);
}
.cookie-banner__inner::before {
	content: "";
	position: absolute;
	inset: 7px;
	border: 1px solid rgba(28, 42, 69, .55);
	pointer-events: none;
}
.cookie-banner__title {
	grid-area: title;
	align-self: end;
	margin: 0 0 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(28, 42, 69, .14);
	color: var(--wells-navy);
	font: italic 400 20px/1.25 var(--font-serif);
	letter-spacing: 0;
}
.cookie-banner__text { grid-area: text; align-self: start; margin: 0; color: var(--wells-ink); text-wrap: pretty; }
.cookie-banner__text a { color: var(--wells-navy); font: italic 400 14px/1 var(--font-serif); text-underline-offset: 3px; white-space: nowrap; }
.cookie-banner__actions { grid-area: actions; position: relative; display: grid; gap: 8px; }
.cookie-banner__button {
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid var(--wells-navy);
	border-radius: 999px;
	background: var(--wells-navy);
	color: var(--wells-white);
	font: 600 14px/1 var(--font-sans);
	letter-spacing: .02em;
	cursor: pointer;
	transition: background-color .2s;
}
.cookie-banner__button:hover { background: var(--wells-navy-deep); }
.cookie-banner__button[data-cookie-choice="no"] { background: var(--wells-white); color: var(--wells-navy); }
.cookie-banner__button[data-cookie-choice="no"]:hover { background: var(--wells-tint); }
.cookie-banner a:focus-visible,
.cookie-banner__button:focus-visible,
.cookie-toggle:focus-visible { outline: 2px solid var(--wells-navy); outline-offset: 3px; }
@media (max-width: 760px) {
	.cookie-banner { right: 12px; bottom: 12px; left: 12px; width: auto; }
	.cookie-banner__inner { grid-template-columns: 1fr; grid-template-areas: "title" "text" "actions"; padding: 24px 24px 22px; text-align: center; }
	.cookie-banner__title { margin-bottom: 12px; padding-bottom: 12px; }
	.cookie-banner__actions { grid-template-columns: 1fr 1fr; margin-top: 18px; }
}

/* The small cookie button that reopens the card once a choice has been made */
.cookie-toggle {
	position: fixed;
	bottom: 18px;
	left: 18px;
	z-index: 190;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wells-white);
	box-shadow: 0 6px 20px rgba(12, 18, 32, .16);
	color: var(--wells-navy);
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}
.cookie-toggle:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(12, 18, 32, .2); }
.cookie-toggle[hidden] { display: none; }
.cookie-toggle svg { width: 22px; height: 22px; }
@media (max-width: 760px) {
	.cookie-toggle { bottom: 12px; left: 12px; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
	.cookie-banner, .cookie-toggle { transition: none; transform: none; }
}

.site-footer__cookies {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	text-decoration-color: transparent;
	cursor: pointer;
	transition: text-decoration-color .2s;
}
.site-footer__cookies:hover { text-decoration-color: currentColor; }
@media (max-width: 640px) {
	.site-footer__cookies { display: inline-block; padding: 12px 0; }
}
