/**
 * Social Icons block in footer widgets.
 *
 * Parent theme styles target section.footer-top .widget ul li a (menu-style links).
 * Social Icons render one icon per <li>, so those rules break layout, colors, and icons.
 */

section.footer-top .widget .wp-block-social-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	border: none;
	background: transparent;
}

section.footer-top .widget .wp-block-social-links > li {
	padding: 0;
	margin: 0;
	background: transparent;
	list-style: none;
}

section.footer-top .widget .wp-block-social-links > li:hover {
	margin-left: 0;
	color: inherit;
}

section.footer-top .widget .wp-block-social-links .wp-block-social-link-anchor,
section.footer-top .widget .wp-block-social-links li a {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: inherit;
	letter-spacing: normal;
	font-weight: normal;
	line-height: 0;
	padding: 0.25em;
	position: static;
	z-index: auto;
	color: currentColor;
	transition: transform 0.1s ease;
}

section.footer-top .widget .wp-block-social-links .wp-block-social-link-anchor::before,
section.footer-top .widget .wp-block-social-links li a::before {
	content: none;
	display: none;
	width: auto;
	height: auto;
	background: none;
	transform: none;
}

section.footer-top .widget .wp-block-social-links .wp-block-social-link-anchor:hover,
section.footer-top .widget .wp-block-social-links li a:hover {
	color: currentColor;
}

section.footer-top .widget .wp-block-social-links .wp-block-social-link-anchor svg {
	fill: currentColor;
}

/* Default colours: theme primary when no custom block colours are set in the editor */
section.footer-top .widget .wp-block-social-links:not(.has-icon-background-color):not(.is-style-logos-only) .wp-social-link {
	background-color: var(--primary-color, #59a2ff);
	color: #fff;
}

section.footer-top .widget .wp-block-social-links.is-style-logos-only:not(.has-icon-color) .wp-social-link {
	background: none;
	color: var(--primary-color, #59a2ff);
}
