/**
 * ABIS footer: nav + social on one bar.
 * abiselectronics.com only (enqueued by abis-footer-social.php).
 */

/* Middle column 2: legal/nav links then green social circles, same row. */
.site-footer-middle-section-2 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65em 1em;
}

/* Beat Kadence .ft-ro-dir-row … .footer-widget-area { margin-left: 30px }. */
.ft-ro-dir-row .footer-section-inner-items-2.site-footer-middle-section-2 > .footer-navigation-wrap,
.ft-ro-dir-row .footer-section-inner-items-2.site-footer-middle-section-2 > .footer-social {
	width: auto;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	flex: 0 1 auto;
}

.site-footer-middle-section-2 .footer-navigation-inner,
.site-footer-middle-section-2 .footer-menu-container > ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	margin: 0;
	gap: 0;
}

.site-footer-middle-section-2 .footer-social-inner,
.site-footer-middle-section-2 .footer-social-wrap {
	margin: 0;
}

.site-footer-middle-section-2 .footer-social-inner-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.8em;
	margin: 0;
}

/* Keep green filled circles; do not fight PhotoSwipe / other green leaks. */
.site-footer-middle-section-2 .footer-social-inner-wrap .social-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	vertical-align: middle;
}

/* Single-bar vertical rhythm (was split across middle + bottom rows). */
.site-middle-footer-inner-wrap {
	padding-top: 1rem;
	padding-bottom: 1rem;
	align-items: center;
}

.site-middle-footer-inner-wrap .site-footer-section {
	align-self: center;
}

@media all and (min-width: 1025px) {
	/* Menu anchors keep trailing padding; pull social row in to match Blog text edge. */
	.site-footer-middle-section-2 .footer-social-inner-wrap {
		margin-right: 19px;
	}
}

@media all and (max-width: 1024px) {
	.site-footer-middle-section-2 {
		justify-content: center;
	}

	.site-footer-middle-section-2 .footer-navigation-inner,
	.site-footer-middle-section-2 .footer-menu-container > ul,
	.site-footer-middle-section-2 .footer-social-inner-wrap {
		justify-content: center;
	}

	.ft-ro-dir-row .footer-section-inner-items-2.site-footer-middle-section-2 > .footer-social {
		flex: 0 0 100%;
		width: 100%;
		display: flex;
		justify-content: center;
	}

	.ft-ro-dir-row .footer-section-inner-items-2.site-footer-middle-section-2 > .footer-social .footer-social-inner,
	.ft-ro-dir-row .footer-section-inner-items-2.site-footer-middle-section-2 > .footer-social .footer-social-wrap {
		width: 100%;
		display: flex;
		justify-content: center;
	}
}
