/* Dark plum footer (variant B), markup in include/footer-v2.php.
   Every selector is scoped under .sg-foot so it outranks Astra's global
   heading, link, list and button rules and the newsletter form's own
   light-background styles in sg24-mautic.css.

   Mobile state (collapsed columns, closed shop list) uses the hidden
   attribute set by footer-v2.js, never a class, so Perfmatters' used CSS
   cannot drop it. Without JS everything simply stays open. */

.sg-foot {
	--sg-foot-bg: #1a0a12;
	--sg-foot-band: #3a0d24;
	--sg-foot-panel: #26101b;
	--sg-foot-line: #3a2230;
	--sg-foot-line-strong: #4a2a3a;
	--sg-foot-text: #f7eef2;
	--sg-foot-soft: #d4c0ca;
	--sg-foot-muted: #a88e9b;
	--sg-foot-accent: #f2a7cd;
	--sg-foot-serif: "EB Garamond", Georgia, serif;
	background: var(--sg-foot-bg);
	color: var(--sg-foot-text);
	font-size: 15px;
	line-height: 1.5;
}

.sg-foot *,
.sg-foot *::before,
.sg-foot *::after {
	box-sizing: border-box;
}

.sg-foot a {
	color: var(--sg-foot-soft);
	text-decoration: none;
	transition: color 0.2s ease;
}

.sg-foot a:hover,
.sg-foot a:focus-visible {
	color: #ffffff;
}

.sg-foot a:focus-visible,
.sg-foot button:focus-visible {
	outline: 2px solid var(--sg-foot-accent);
	outline-offset: 3px;
}

.sg-foot ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sg-foot p {
	margin: 0;
}

.sg-foot img {
	display: block;
	max-width: none;
}

/* Side padding only: the band and rows set their own top/bottom padding,
   and a shorthand here (or in a wider media query) would reset it. */
.sg-foot .sg-foot__inner {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* ---------- Newsletter band ---------- */

.sg-foot .sg-foot__band {
	background: var(--sg-foot-band);
}

.sg-foot .sg-foot__band-inner {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-top: 30px;
	padding-bottom: 30px;
}

.sg-foot .sg-foot__band-copy {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sg-foot h2.sg-foot__band-title {
	margin: 0;
	font-family: var(--sg-foot-serif);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0;
	text-transform: none;
	color: #ffffff;
}

.sg-foot .sg-foot__band-text {
	font-size: 15px;
	color: #e6d3dc;
}

.sg-foot .sg-foot__band-text strong {
	font-weight: 600;
	color: var(--sg-foot-accent);
}

.sg-foot .sg24-newsletter {
	text-align: left;
}

.sg-foot .sg24-newsletter form {
	gap: 12px;
}

.sg-foot .sg24-newsletter .sg24-email-field {
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1.5px solid #b98aa2;
}

.sg-foot .sg24-newsletter .sg24-email-field input[type="email"] {
	flex: 1;
	min-width: 0;
	min-height: 54px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #ffffff;
	font-size: 17px;
}

.sg-foot .sg24-newsletter .sg24-email-field input[type="email"]::placeholder {
	color: #c7a9b7;
	opacity: 1;
}

.sg-foot .sg24-newsletter .sg24-email-field button[type="submit"] {
	position: static;
	transform: none;
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	margin: 0 0 4px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--sg-foot-accent);
	color: var(--sg-foot-bg);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.sg-foot .sg24-newsletter .sg24-email-field button[type="submit"]:hover {
	background: #ffffff;
}

.sg-foot .sg24-newsletter .sg24-email-field button[type="submit"] svg {
	width: 20px;
	height: 20px;
}

.sg-foot .sg24-newsletter .sg24-exit-check {
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: #ffffff;
}

.sg-foot .sg24-newsletter .sg24-exit-check input {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--sg-foot-accent);
}

.sg-foot .sg24-newsletter .sg24-exit-check span {
	color: #ffffff;
}

.sg-foot .sg24-newsletter .sg24-exit-legal {
	font-size: 12px;
	line-height: 1.5;
	color: #c7a9b7;
}

.sg-foot .sg24-newsletter .sg24-exit-legal a {
	color: #e6d3dc;
	text-decoration: underline;
}

.sg-foot .sg24-newsletter .sg24-note {
	margin: 0;
	color: var(--sg-foot-accent);
}

.sg-foot .sg24-newsletter .sg24-note:empty {
	display: none;
}

/* ---------- Link columns (accordion on phones) ---------- */

.sg-foot .sg-foot__cols {
	padding-top: 8px;
}

.sg-foot .sg-foot__col {
	border-bottom: 1px solid var(--sg-foot-line);
}

.sg-foot h3.sg-foot__col-title {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
	letter-spacing: 0;
	text-transform: none;
}

.sg-foot button.sg-foot__toggle {
	width: 100%;
	min-height: 60px;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: #ffffff;
	font-family: var(--sg-foot-serif);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.15;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.sg-foot button.sg-foot__toggle:hover,
.sg-foot button.sg-foot__toggle:focus {
	background: none;
	color: #ffffff;
}

/* Wide-screen column title; on phones the toggle button carries the title. */
.sg-foot .sg-foot__col-label {
	display: none;
}

.sg-foot .sg-foot__chevron {
	flex: 0 0 18px;
	color: var(--sg-foot-accent);
	transition: transform 0.2s ease;
}

.sg-foot .sg-foot__toggle[aria-expanded="true"] .sg-foot__chevron {
	transform: rotate(180deg);
}

.sg-foot .sg-foot__links {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-bottom: 18px;
}

.sg-foot .sg-foot__links li {
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.35;
}

/* Menu items with no title (icon-only entries in some shop menus). */
.sg-foot .sg-foot__links li:has(> a:empty) {
	display: none;
}

.sg-foot .sg-foot__links a {
	display: inline-block;
	padding: 0;
	color: var(--sg-foot-soft);
	font-weight: 400;
	text-transform: none;
}

/* ---------- Brand, contact, social ---------- */

.sg-foot .sg-foot__brand {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 28px 0;
	border-bottom: 1px solid var(--sg-foot-line);
}

.sg-foot .sg-foot__id {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.sg-foot .sg-foot__logo img {
	width: auto;
	height: 40px;
}

.sg-foot .sg-foot__rule {
	display: none;
	width: 1px;
	height: 36px;
	background: var(--sg-foot-line);
}

.sg-foot .sg-foot__tag {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.sg-foot .sg-foot__tagline {
	font-family: var(--sg-foot-serif);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	color: #ffffff;
}

.sg-foot .sg-foot__subline {
	font-size: 13px;
	color: var(--sg-foot-muted);
}

.sg-foot .sg-foot__contact {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.sg-foot .sg-foot__contact a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-size: 15px;
}

.sg-foot .sg-foot__contact .sg-foot__contact-link {
	gap: 8px;
	color: var(--sg-foot-accent);
	font-weight: 600;
}

.sg-foot .sg-foot__contact .sg-foot__contact-link:hover {
	color: #ffffff;
}

.sg-foot .sg-foot__icon {
	flex: 0 0 auto;
}

.sg-foot .sg-foot__social {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.sg-foot .sg-foot__social-label {
	margin-right: 4px;
	font-size: 13px;
	color: var(--sg-foot-muted);
}

.sg-foot .sg-foot__social-link {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--sg-foot-line-strong);
	border-radius: 50%;
	color: var(--sg-foot-text);
	transition: border-color 0.2s ease, color 0.2s ease;
}

.sg-foot .sg-foot__social-link:hover {
	border-color: var(--sg-foot-accent);
	color: var(--sg-foot-accent);
}

/* ---------- Shops, payments ---------- */

.sg-foot .sg-foot__meta {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px 0;
}

.sg-foot .sg-foot__stores {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sg-foot .sg-foot__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sg-foot-muted);
}

.sg-foot button.sg-foot__stores-btn {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--sg-foot-line-strong);
	border-radius: 12px;
	background: var(--sg-foot-panel);
	box-shadow: none;
	color: #ffffff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.sg-foot button.sg-foot__stores-btn:hover,
.sg-foot button.sg-foot__stores-btn:focus {
	background: var(--sg-foot-panel);
	color: #ffffff;
}

.sg-foot .sg-foot__flag {
	display: block;
	flex: 0 0 auto;
	border-radius: 2px;
	overflow: hidden;
}

.sg-foot .sg-foot__stores-btn span {
	flex: 1;
}

.sg-foot .sg-foot__stores-btn[aria-expanded="true"] .sg-foot__chevron {
	transform: rotate(180deg);
}

/* :not([hidden]) so the browser's own [hidden] rule closes the list; no
   closed-state rule exists that Perfmatters' used CSS could leave out. */
.sg-foot .sg-foot__stores-list:not([hidden]) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
	padding: 8px;
	border: 1px solid var(--sg-foot-line);
	border-radius: 12px;
	background: var(--sg-foot-panel);
}

.sg-foot .sg-foot__stores-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 4px 10px;
	border-radius: 8px;
	font-size: 14px;
}

.sg-foot .sg-foot__stores-list a[aria-current="page"] {
	color: #ffffff;
	font-weight: 600;
}

/* Phone list: country name over its domain, so long names don't wrap. */
.sg-foot .sg-foot__store-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}

.sg-foot .sg-foot__store-domain {
	font-size: 12px;
	font-weight: 400;
	color: var(--sg-foot-muted);
}

.sg-foot .sg-foot__pay {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.sg-foot .sg-foot__pay img {
	width: auto;
	height: 28px;
	border-radius: 4px;
}

/* ---------- Copyright, review badges ---------- */

.sg-foot .sg-foot__bottom {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 0 0 28px;
}

.sg-foot .sg-foot__copyright,
.sg-foot .sg-foot__copyright p,
.sg-foot .sg-foot__copyright .ast-footer-copyright {
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
	color: var(--sg-foot-muted);
}

.sg-foot .sg-foot__copyright a {
	color: var(--sg-foot-soft);
}

/* Some shops' Copyright element wraps the text in a span with an inline
   black colour (HR); only !important beats an inline style. */
.sg-foot .sg-foot__copyright p span {
	color: inherit !important;
}

/* Text left, any trust badge from the same element (HR) on its right. */
.sg-foot .sg-foot__copyright .ast-footer-copyright {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
}

.sg-foot .sg-foot__copyright {
	flex: 1 1 auto;
	min-width: 0;
}

.sg-foot .sg24-footer-badge {
	justify-content: flex-start;
	gap: 10px;
	margin: 0;
}

.sg-foot .sg24-footer-badge a {
	padding: 6px 10px;
	border-radius: 8px;
	background: #ffffff;
}

.sg-foot .sg24-footer-badge img {
	height: 28px;
}

/* ---------- Tablet ---------- */

@media (min-width: 768px) {
	.sg-foot .sg-foot__inner {
		padding-left: 40px;
		padding-right: 40px;
	}

	.sg-foot .sg-foot__band-inner {
		gap: 24px;
		padding-top: 44px;
		padding-bottom: 44px;
	}

	.sg-foot .sg-foot__band-form {
		max-width: 560px;
	}

	.sg-foot h2.sg-foot__band-title {
		font-size: 40px;
	}

	.sg-foot .sg-foot__band-text {
		font-size: 17px;
	}

	.sg-foot .sg24-newsletter .sg24-email-field input[type="email"] {
		min-height: 56px;
		font-size: 18px;
	}

	.sg-foot .sg24-newsletter .sg24-email-field button[type="submit"] {
		flex-basis: 48px;
		width: 48px;
		height: 48px;
	}

	.sg-foot .sg-foot__cols {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 44px 40px;
		padding-top: 56px;
	}

	.sg-foot .sg-foot__col {
		border-bottom: 0;
	}

	.sg-foot button.sg-foot__toggle {
		display: none;
	}

	.sg-foot .sg-foot__col-label {
		display: block;
		margin-bottom: 18px;
		font-family: var(--sg-foot-serif);
		font-size: 23px;
		font-weight: 600;
		line-height: 1.15;
		color: #ffffff;
	}

	.sg-foot .sg-foot__links {
		gap: 12px;
		padding-bottom: 0;
	}

	.sg-foot .sg-foot__brand {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 24px 40px;
		margin-top: 52px;
		padding: 26px 0;
		border-top: 1px solid var(--sg-foot-line);
	}

	.sg-foot .sg-foot__id {
		flex-direction: row;
		align-items: center;
		gap: 22px;
	}

	.sg-foot .sg-foot__rule {
		display: block;
	}

	.sg-foot .sg-foot__tagline {
		font-size: 19px;
	}

	.sg-foot .sg-foot__contact {
		flex-direction: row;
		align-items: center;
		gap: 24px;
	}

	.sg-foot .sg-foot__contact a {
		min-height: 40px;
		font-size: 14px;
	}

	.sg-foot .sg-foot__social-link {
		width: 40px;
		height: 40px;
	}

	.sg-foot .sg-foot__meta {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 20px 32px;
	}

	.sg-foot .sg-foot__stores {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px 20px;
	}

	.sg-foot button.sg-foot__stores-btn {
		display: none;
	}

	.sg-foot .sg-foot__stores-list:not([hidden]) {
		display: flex;
		flex-wrap: wrap;
		gap: 8px 20px;
		padding: 0;
		border: 0;
		background: none;
	}

	.sg-foot .sg-foot__stores-list a {
		gap: 7px;
		min-height: 0;
		padding: 0 0 3px;
		border-bottom: 2px solid transparent;
		border-radius: 0;
	}

	.sg-foot .sg-foot__stores-list a[aria-current="page"] {
		border-bottom-color: var(--sg-foot-accent);
	}

	.sg-foot .sg-foot__store-text {
		display: inline;
	}

	.sg-foot .sg-foot__store-name {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.sg-foot .sg-foot__store-domain {
		font-size: 14px;
		color: inherit;
	}

	.sg-foot .sg-foot__bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* ---------- Desktop ---------- */

@media (min-width: 1024px) {
	.sg-foot .sg-foot__band-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 48px;
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.sg-foot .sg-foot__band-copy {
		flex: 1 1 0;
		max-width: 560px;
	}

	.sg-foot .sg-foot__band-form {
		flex: 0 1 460px;
		max-width: none;
	}

	.sg-foot h2.sg-foot__band-title {
		font-size: 46px;
	}

	.sg-foot .sg-foot__cols {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 48px;
		padding-top: 64px;
	}
}

@media (min-width: 1200px) {
	.sg-foot .sg-foot__inner {
		padding-left: 60px;
		padding-right: 60px;
	}

	.sg-foot .sg-foot__band-inner {
		gap: 72px;
	}

	.sg-foot .sg-foot__band-form {
		flex-basis: 560px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sg-foot *,
	.sg-foot *::before,
	.sg-foot *::after {
		transition: none !important;
	}
}