/**
 * GenD Society theme — site header + footer template parts.
 *
 * Moved out of the template parts themselves (they carried their own <style>
 * blocks) so the parts are plain markup an editor or AI agent can change
 * without losing the styling, and so the styling follows the site's style
 * guide: every colour, font and font size here is a theme.json preset
 * (Appearance › Editor › Styles), never a literal brand value. Changing the
 * style guide restyles the header and footer everywhere.
 *
 * Fonts are inherited from the style guide (body + heading element styles);
 * only layout values (widths, gaps, radii, timings) are literal.
 */

:root {
	/* Legacy aliases used by older page content; they follow the style guide now. */
	--brand-magenta: var(--wp--preset--color--brand-primary);
	--brand-red: var(--wp--preset--color--brand-action);
	--brand-blue: var(--wp--preset--color--brand-secondary);
	--brand-green: var(--wp--preset--color--brand-success);
	--brand-gold: var(--wp--preset--color--brand-gold);
	--brand-electric: var(--wp--preset--color--brand-highlight);
	--glass-bg: color-mix(in srgb, var(--wp--preset--color--brand-surface) 45%, transparent);
	--glass-border: color-mix(in srgb, var(--wp--preset--color--brand-on-surface) 12%, transparent);
}

/* =========================================================================
   HEADER (parts: header — #main-3d-header)
   ========================================================================= */

.header-anchor-wrap {
	position: fixed !important;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 99999;
	background: var(--glass-bg);
	backdrop-filter: blur(40px) saturate(180%);
	-webkit-backdrop-filter: blur(40px) saturate(180%);
	border-bottom: 1px solid var(--glass-border);
	padding: 8px 30px;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	perspective: 1500px;
	gap: 12px;
	animation: gsHeaderSlideDown 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

@keyframes gsHeaderSlideDown {
	0% { transform: translateY(-100%); opacity: 0; }
	100% { transform: translateY(0); opacity: 1; }
}

@keyframes gsItemFadeBlurIn {
	0% { transform: translateY(-10px) scale(0.95); filter: blur(10px); opacity: 0; }
	100% { transform: translateY(0) scale(1); filter: blur(0); opacity: 1; }
}

.logo-container {
	order: 3;
	flex-shrink: 0;
	opacity: 0;
	animation: gsItemFadeBlurIn 0.8s ease-out forwards 1.2s;
	display: flex;
	align-items: center;
}
.logo-container img {
	height: 30px;
	filter: drop-shadow(0 0 12px color-mix(in srgb, var(--wp--preset--color--brand-secondary) 50%, transparent));
	display: block;
}

.nav-central {
	order: 1;
	display: flex;
	gap: 8px;
	align-items: center;
	flex: 1;
	justify-content: center;
	transform-style: preserve-3d;
}

.nav-pill {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: var(--wp--preset--color--brand-on-surface);
	font-weight: 800;
	font-size: clamp(0.65rem, 0.8vw, 0.75rem);
	width: 160px;
	height: 38px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--glass-border);
	opacity: 0;
	transform-style: preserve-3d;
	animation: gsItemFadeBlurIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.nav-pill:nth-child(1) { animation-delay: 0.4s; }
.nav-pill:nth-child(2) { animation-delay: 0.55s; }
.nav-pill:nth-child(3) { animation-delay: 0.7s; }

.pill-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
	filter: brightness(0.4) saturate(1.2);
	transition: 0.5s ease;
}
.pill-content {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--wp--preset--color--brand-surface-deep) 25%, transparent);
	backdrop-filter: blur(4px);
	text-transform: uppercase;
	letter-spacing: 1px;
	white-space: nowrap;
}

.nav-actions-right {
	order: 2;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	margin-right: 20px;
}
/* An injected WooCommerce cart must not push the row down. */
.nav-actions-right > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.btn-header-action {
	display: none;
	opacity: 0;
	animation: gsItemFadeBlurIn 0.6s ease-out forwards;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 6px 14px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(0.58rem, 0.68vw, 0.68rem);
	letter-spacing: 0.5px;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	white-space: nowrap;
}
.btn-pilot {
	animation-delay: 0.85s;
	background: var(--wp--preset--color--brand-action);
	color: var(--wp--preset--color--brand-on-surface) !important;
	border: 1px solid var(--wp--preset--color--brand-action);
	order: 99; /* always the last item on the right */
}

.logged-out-spacer { display: none; }
body:not(.logged-in) .logged-out-spacer { display: block; order: 0; flex: 1; }
body:not(.logged-in) .nav-central { flex: 2; }
body:not(.logged-in) .logo-container { flex: 1; }
body:not(.logged-in) .btn-header-action { display: flex !important; }
/* Members get the GenD Society app chrome instead of this marketing header. */
body.logged-in .header-anchor-wrap { display: none !important; }

/* Desktop, logged out (2026-11-19): the three pills centred on the page; cart, pilot button and logo pinned far right.
   From 1180px only: below that the centred pills would run into the right-hand group. */
@media (min-width: 1180px) {
	body:not(.logged-in) .header-anchor-wrap { justify-content: flex-end; }
	body:not(.logged-in) .logged-out-spacer { display: none; }
	body:not(.logged-in) .nav-central { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); flex: none; }
	body:not(.logged-in) .nav-actions-right { margin-left: auto; margin-right: 0; }
	body:not(.logged-in) .logo-container { flex: 0 0 auto; }
}

@media (max-width: 900px) {
	.nav-central { display: none !important; }
	.header-anchor-wrap { padding: 8px 15px; gap: 12px; align-items: center; }
	body:not(.logged-in) .logged-out-spacer { order: 1; flex: 1; }
	body:not(.logged-in) .logo-container { order: 2; flex: 0 0 auto; margin-right: 0; display: flex; align-items: center; }
	.nav-actions-right { order: 3; margin-right: 0; display: flex; align-items: center; }
}

/* Left group (2026-11-19): the trial button sits at the left, just right of the fixed 64px chat button (#bm-leo-lazy, top-left).
   padding-left + the header's own side padding keeps the button's left edge at ~76px at every width. */
.nav-actions-left {
	order: 0;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	padding-left: 46px; /* header padding 30px */
}
/* Log in: secondary (outlined) button after the cart in the right group; opens the sign-in popup (site-chrome.js). */
.btn-login {
	animation-delay: 0.8s;
	order: 99;
	background: transparent;
	color: var(--wp--preset--color--brand-on-surface) !important;
	border: 1px solid var(--glass-border);
}
.btn-login:hover,
.btn-login:focus-visible { border-color: var(--wp--preset--color--brand-on-surface); }

/* Main call to action on phones and tablets: full wording, comfortable tap target (2026-11-14). */
@media (max-width: 900px) {
	.nav-actions-left { padding-left: 61px; /* header padding 15px */ }
	.btn-header-action.btn-pilot,
	.btn-header-action.btn-login { font-size: 0.7rem; padding: 0 14px; height: 40px; align-self: center; letter-spacing: 0.4px; }
}
@media (max-width: 400px) {
	.header-anchor-wrap { gap: 6px; padding-left: 10px; padding-right: 10px; }
	.nav-actions-left { padding-left: 62px; /* header padding 10px */ }
	.btn-header-action.btn-pilot,
	.btn-header-action.btn-login { font-size: 0.58rem; padding: 0 9px; letter-spacing: 0; }
}

/* Logo far left (2026-11-23, owner): the wordmark leads the row, just right of the fixed chat button, with the trial button beside it.
   No extra left clearance (owner, 11-23): the logo sits at the header's own padding. #main-3d-header beats the body:not(.logged-in) order/flex rules above. */
#main-3d-header .logo-container { order: -1; flex: 0 0 auto; margin-right: 6px; padding-left: 0; }
#main-3d-header .nav-actions-left { padding-left: 0; }
@media (max-width: 900px) {
	#main-3d-header .logo-container { margin-right: 0; }
}
@media (max-width: 480px) {
	#main-3d-header .logo-container img { height: 22px; }
}
@media (max-width: 400px) {
	#main-3d-header .logo-container img { height: 18px; }
}

/* Sign-in popup: <dialog class="gs-login-dialog"> built by site-chrome.js around wp-login.php?interim-login=1. */
.gs-login-dialog {
	width: min(420px, calc(100vw - 32px));
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 1px solid var(--glass-border);
	border-radius: 18px;
	background: var(--wp--preset--color--brand-surface-deep);
	color: var(--wp--preset--color--brand-on-surface);
	box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--wp--preset--color--brand-primary) 45%, transparent);
	overflow: hidden;
}
.gs-login-dialog::backdrop {
	background: color-mix(in srgb, var(--wp--preset--color--brand-surface-deep) 70%, transparent);
	backdrop-filter: blur(6px);
}
.gs-login-dialog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px 0;
}
.gs-login-dialog__title { margin: 0; font-size: var(--wp--preset--font-size--large); color: inherit; }
.gs-login-dialog__close {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--glass-border);
	background: transparent;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.gs-login-dialog__close:hover,
.gs-login-dialog__close:focus-visible { border-color: var(--wp--preset--color--brand-on-surface); }
.gs-login-dialog__frame {
	display: block;
	width: 100%;
	height: 400px;
	max-height: calc(100dvh - 170px);
	border: 0;
	background: transparent;
}
.gs-login-dialog__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 0 24px 20px;
	font-size: var(--wp--preset--font-size--small);
}
.gs-login-dialog__foot a { color: color-mix(in srgb, var(--wp--preset--color--brand-on-surface) 70%, transparent); }
.gs-login-dialog__foot a:hover { color: var(--wp--preset--color--brand-on-surface); }

/* =========================================================================
   FOOTER (parts: footer — footer.site-footer)
   ========================================================================= */

.site-footer {
	position: relative;
	z-index: 10;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--brand-on-surface) 8%, transparent);
	background: radial-gradient(100% 100% at 50% 0%, color-mix(in srgb, var(--wp--preset--color--brand-surface) 40%, transparent) 0%, var(--wp--preset--color--brand-surface-deep) 100%);
	padding: 100px 20px 40px 20px;
	width: 100%;
	box-sizing: border-box;
	color: var(--wp--preset--color--brand-on-surface);
}

.footer-container {
	width: 100% !important;
	box-sizing: border-box !important;
	max-width: 1400px !important;
	margin: 0 auto !important;
	display: grid !important;
	grid-template-columns: 2fr 1fr 1fr 1fr !important;
	gap: 60px !important;
	align-items: start !important;
}

.footer-brand { display: block !important; }
.footer-brand h2 {
	font-size: var(--wp--preset--font-size--xx-large) !important;
	margin: 0 0 20px 0 !important;
	color: var(--wp--preset--color--brand-on-surface) !important;
	line-height: 1.2 !important;
}
.footer-brand h2 a { color: inherit !important; text-decoration: none !important; display: inline-flex; align-items: center; gap: 12px; }
.footer-brand h2 img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; box-shadow: 0 6px 18px color-mix(in srgb, var(--wp--preset--color--brand-primary) 35%, transparent); }
.footer-brand p {
	/* site-header-footer.css paints .site-footer with --gs-bg (a fixed dark band, !important), so the text must come from that band's own text colour (--gs-text), not from a page-palette slot that is now dark on light sites. */
	color: color-mix(in srgb, var(--gs-text, #e8edf5) 60%, transparent) !important;
	font-size: var(--wp--preset--font-size--medium) !important;
	line-height: 1.7 !important;
	max-width: 350px !important;
	margin-bottom: 30px !important;
}

.footer-col { display: block !important; }
.footer-col h4 {
	color: var(--wp--preset--color--brand-on-surface) !important;
	font-family: var(--wp--preset--font-family--fira-code, monospace) !important;
	letter-spacing: 2px !important;
	text-transform: uppercase !important;
	font-size: var(--wp--preset--font-size--small) !important;
	margin: 0 0 30px 0 !important;
	display: block !important;
}

.footer-links { list-style: none !important; padding: 0 !important; margin: 0 !important; display: block !important; }
.footer-links li { margin-bottom: 15px !important; display: block !important; text-align: left !important; }
.footer-links li::before { display: none !important; content: none !important; }
.footer-links a {
	color: color-mix(in srgb, var(--gs-text, #e8edf5) 60%, transparent) !important;
	text-decoration: none !important;
	font-size: var(--wp--preset--font-size--small) !important;
	transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
	display: inline-block !important;
}
.footer-links a:hover {
	color: var(--wp--preset--color--brand-on-surface) !important;
	transform: translateX(5px) !important;
	text-shadow: 0 0 15px color-mix(in srgb, var(--wp--preset--color--brand-on-surface) 30%, transparent) !important;
}

/* Social icons: the core Social Icons block (wp:social-links) inside .footer-socials. */
.site-footer .footer-socials {
	display: flex !important;
	gap: 10px !important;
	flex-wrap: wrap !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
/* Socials placed straight under the brand name: space them from the blurb below. */
.site-footer .footer-brand h2 + .footer-socials { margin: 0 0 24px !important; }
.site-footer .footer-socials .wp-social-link {
	width: 40px !important;
	height: 40px !important;
	border-radius: 50% !important;
	background: color-mix(in srgb, var(--wp--preset--color--brand-on-surface) 3%, transparent) !important;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--brand-on-surface) 8%, transparent) !important;
	color: var(--wp--preset--color--brand-on-surface) !important;
	transition: 0.3s ease !important;
	margin: 0 !important;
}
.site-footer .footer-socials .wp-social-link a {
	width: 100% !important;
	height: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	color: inherit !important;
}
.site-footer .footer-socials .wp-social-link svg { width: 18px !important; height: 18px !important; fill: currentColor !important; }
.site-footer .footer-socials .wp-social-link:hover {
	background: color-mix(in srgb, var(--wp--preset--color--brand-on-surface) 10%, transparent) !important;
	border-color: color-mix(in srgb, var(--wp--preset--color--brand-on-surface) 20%, transparent) !important;
	transform: translateY(-3px) !important;
}

.footer-bottom {
	width: 100% !important;
	max-width: 1400px !important;
	margin: 80px auto 0 auto !important;
	padding-top: 30px !important;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--brand-on-surface) 5%, transparent) !important;
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	color: color-mix(in srgb, var(--wp--preset--color--brand-on-surface) 40%, transparent) !important;
	font-size: var(--wp--preset--font-size--small) !important;
}
.footer-bottom-links { display: flex !important; gap: 20px !important; }
.footer-bottom-links a {
	color: color-mix(in srgb, var(--wp--preset--color--brand-on-surface) 40%, transparent) !important;
	text-decoration: none !important;
	transition: 0.3s !important;
}
.footer-bottom-links a:hover { color: var(--wp--preset--color--brand-on-surface) !important; }

/* Footer call-to-action button under the brand blurb (<a class="gft-pilot">). */
.site-footer .gft-pilot,
.site-footer .footer-cta a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 20px;
	border-radius: 999px;
	font-weight: 800;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--brand-on-surface) !important;
	background: linear-gradient(135deg, var(--wp--preset--color--brand-primary), color-mix(in srgb, var(--wp--preset--color--brand-primary) 55%, var(--wp--preset--color--brand-secondary)));
	box-shadow: 0 10px 30px -12px var(--wp--preset--color--brand-primary);
	transition: filter 0.2s ease;
}
.site-footer .gft-pilot:hover, .site-footer .footer-cta a:hover { filter: brightness(1.15); }
.site-footer .gft-pilot:focus-visible, .site-footer .footer-cta a:focus-visible { outline: 2px solid var(--wp--preset--color--brand-on-surface); outline-offset: 3px; }

/* Accepted payment methods (bottom bar): <ul class="footer-payments"><li class="pay-icon pay-visa">…
   Monochrome marks from assets/images/payments/ used as masks, so they take the style guide's text colour. */
.site-footer .footer-payments {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.site-footer .footer-payments .pay-icon {
	position: relative;
	width: 54px;
	height: 36px;
	margin: 0 !important;
	border-radius: 6px;
	background: color-mix(in srgb, var(--wp--preset--color--brand-on-surface) 3%, transparent);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--brand-on-surface) 10%, transparent);
	box-sizing: border-box;
}
.site-footer .footer-payments .pay-icon::before {
	content: "";
	position: absolute;
	inset: 5px 8px;
	background: color-mix(in srgb, var(--wp--preset--color--brand-on-surface) 75%, transparent);
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}
.site-footer .footer-payments .pay-icon::marker { content: none; }
.site-footer .pay-visa::before { -webkit-mask-image: url("../images/payments/visa.svg"); mask-image: url("../images/payments/visa.svg"); }
.site-footer .pay-mastercard::before { -webkit-mask-image: url("../images/payments/mastercard.svg"); mask-image: url("../images/payments/mastercard.svg"); }
.site-footer .pay-amex::before { -webkit-mask-image: url("../images/payments/americanexpress.svg"); mask-image: url("../images/payments/americanexpress.svg"); }
.site-footer .pay-paypal::before { -webkit-mask-image: url("../images/payments/paypal.svg"); mask-image: url("../images/payments/paypal.svg"); }
.site-footer .pay-usdc::before { -webkit-mask-image: url("../images/payments/usdc.svg"); mask-image: url("../images/payments/usdc.svg"); }
.site-footer .pay-eth::before { -webkit-mask-image: url("../images/payments/ethereum.svg"); mask-image: url("../images/payments/ethereum.svg"); }
.site-footer .pay-btc::before { -webkit-mask-image: url("../images/payments/bitcoin.svg"); mask-image: url("../images/payments/bitcoin.svg"); }

/* Brand + four link columns: five tracks on wide screens (three-column footers keep the default grid). */
@media (min-width: 1101px) {
	.footer-container:has(> .footer-col ~ .footer-col ~ .footer-col ~ .footer-col) {
		grid-template-columns: minmax(250px, 1.5fr) repeat(4, minmax(0, 1fr)) !important;
		gap: clamp(24px, 3vw, 48px) !important;
	}
}

@media (max-width: 1100px) {
	.footer-container { grid-template-columns: 1fr 1fr !important; gap: 50px !important; }
	.footer-brand { grid-column: span 2 !important; }
}
@media (max-width: 768px) {
	.footer-container { grid-template-columns: 1fr !important; gap: 40px !important; }
	.footer-brand { grid-column: span 1 !important; }
	.footer-bottom { flex-direction: column !important; gap: 20px !important; text-align: center !important; }
}

/* Bottom bar: copyright | payment chips | links. A grid keeps the chips on one row and centred; the side cells take the
   remaining width. Mid widths give the chips their own row above copyright + links; phones keep the stacked column above. */
/* Bottom bar = copyright | links on one straight row (the payment chips live under the link columns now). */
@media (min-width: 769px) {
	.footer-bottom {
		display: flex !important;
		flex-wrap: nowrap !important;
		justify-content: space-between !important;
		align-items: center !important;
		gap: 32px !important;
	}
	.footer-bottom .copyright { margin: 0 !important; }
	.footer-bottom .footer-bottom-links { flex: 0 0 auto; flex-wrap: nowrap !important; gap: 20px !important; white-space: nowrap; margin: 0 !important; }
}

/* Payment chips: a row in the footer grid, directly under the four link columns (brand column spans both rows). */
.site-footer .footer-container > .footer-payments { grid-column: 1 / -1; justify-content: flex-start !important; align-self: start; }
@media (min-width: 1101px) {
	.footer-container:has(> .footer-col ~ .footer-col ~ .footer-col ~ .footer-col) > .footer-brand { grid-row: span 2; }
	.site-footer .footer-container:has(> .footer-col ~ .footer-col ~ .footer-col ~ .footer-col) > .footer-payments { grid-column: 2 / -1; }
}

/* The footer part is real blocks (groups/headings/lists/paragraphs) so the site editor can edit it safely. Neutralise
   the flow layout's block-gap margins inside the grid/flex rows, and space the CTA paragraph. */
.site-footer .footer-container > *,
.site-footer .footer-bottom > * { margin-block: 0 !important; }
.site-footer .footer-brand p.footer-cta { margin: 0 !important; }
.site-footer .footer-bottom-links { display: flex !important; }

/* Polish pass (2026-11-21): shared edges, tighter rhythm, CTA and payment chips on one line. */
.site-footer .footer-container { padding: 0 !important; }                      /* site-header-footer.css adds 0 20px; the bottom bar has none */
.site-footer .footer-col h4 { margin: 0 0 22px 0 !important; }
.site-footer .footer-links li { margin-bottom: 12px !important; }
.site-footer .footer-links li:last-child { margin-bottom: 0 !important; }
.site-footer .footer-links a { line-height: 1.45; }
.site-footer .footer-brand p:not(.footer-cta) { font-size: var(--wp--preset--font-size--small) !important; line-height: 1.65 !important; max-width: 320px !important; margin-bottom: 28px !important; }
.site-footer .footer-cta a { min-height: 44px; padding: 0 22px; letter-spacing: 0.06em; box-sizing: border-box; }
@media (min-width: 421px) { .site-footer .footer-cta a { white-space: nowrap; } }
.site-footer .footer-bottom { margin-top: 48px !important; padding-top: 24px !important; }
.site-footer { padding-bottom: 32px !important; }
@media (min-width: 1101px) {
	/* The brand column spans both grid rows; its CTA sits at the bottom of it, level with the chips row (44px button, 36px chips → 4px). */
	.site-footer .footer-container:has(> .footer-col ~ .footer-col ~ .footer-col ~ .footer-col) > .footer-brand { display: flex !important; flex-direction: column; align-items: flex-start; align-self: stretch !important; }
	.site-footer .footer-container:has(> .footer-col ~ .footer-col ~ .footer-col ~ .footer-col) > .footer-brand > .footer-cta { margin-top: auto !important; }
	.site-footer .footer-container:has(> .footer-col ~ .footer-col ~ .footer-col ~ .footer-col) > .footer-payments { align-self: end; margin-bottom: 4px !important; }
}

@media (max-width: 768px) {
	/* Phones: link lists in two columns under the brand, chips full width, bottom bar left-aligned like the rest. */
	.site-footer .footer-container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 36px 20px !important; }
	.site-footer .footer-container > .footer-brand,
	.site-footer .footer-container > .footer-payments { grid-column: 1 / -1 !important; }
	.site-footer .footer-bottom { align-items: flex-start !important; text-align: left !important; gap: 12px !important; }
	.site-footer .footer-bottom .footer-bottom-links { flex-wrap: wrap !important; gap: 8px 20px !important; }
}

/* Signed-in pages carry gend-society's fixed bottom-left dock (.gs-float-dock: left 18px + 52px buttons). Keep footer content in a gutter clear of it at every width so nothing scrolls under the profile/cart buttons; mirror it on the right above phone width so the layout stays centred. */
body:has(.gs-float-dock) .site-footer { padding-left: 86px; padding-right: 86px; }
@media (max-width: 768px) {
	body:has(.gs-float-dock) .site-footer { padding-right: 20px; }
	.site-footer .footer-socials { gap: 6px !important; }
	.site-footer .footer-socials .wp-social-link { width: 38px !important; height: 38px !important; }
}
@media (max-width: 400px) {
	.site-footer .footer-socials { gap: 4px !important; }
	.site-footer .footer-socials .wp-social-link { width: 36px !important; height: 36px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.header-anchor-wrap, .logo-container, .nav-pill, .btn-header-action { animation: none; opacity: 1; }
}

/* Owner 2026-11-26: a visible "Payments accepted" label in front of the payment chips (the list's aria-label already
   names it for screen readers, so the CSS text is hidden from them with the alt-text form of content). */
.site-footer .footer-payments::before {
	content: "Payments accepted";
	content: "Payments accepted" / "";
	flex: 0 0 auto;
	margin-right: 8px;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--wp--preset--color--brand-on-surface) 72%, transparent);
	white-space: nowrap;
}
@media (max-width: 560px) {
	.site-footer .footer-payments::before { flex-basis: 100%; margin: 0 0 4px; }
}
