/* Footer columns: shared title row + shared content row.
   Brand CSS uses align-items:center, which drops shorter columns.
   Do not put this in teixidets-brand.css. */
.txd-footer__grid {
	align-items: start !important;
	justify-content: space-between !important;
	grid-template-columns: repeat(4, max-content) !important;
	column-gap: 0 !important;
	width: 100% !important;
}

.txd-footer__brand,
.txd-footer__contact,
.txd-footer__legal,
.txd-footer__social {
	width: max-content;
	max-width: 100%;
}

.txd-footer__brand {
	align-self: center !important;
	align-items: center !important;
	padding-top: 0;
}

.txd-footer__contact,
.txd-footer__legal,
.txd-footer__social {
	display: grid !important;
	grid-template-rows: auto 1fr;
	align-content: start;
	align-items: start;
	justify-items: start;
}

.txd-footer__contact > .txd-footer__label,
.txd-footer__legal > .txd-footer__label,
.txd-footer__social > .txd-footer__label,
.txd-footer__label.wp-block-heading {
	margin-top: 0 !important;
	margin-bottom: 0.8rem !important;
	min-height: 1.26em;
}

.txd-footer__contact > :not(.txd-footer__label),
.txd-footer__legal > :not(.txd-footer__label),
.txd-footer__social > :not(.txd-footer__label) {
	margin-top: 0 !important;
}

.txd-footer-socials.wp-block-social-links {
	gap: 0.95rem !important;
}

.txd-footer-socials .wp-social-link,
.txd-footer-socials .wp-social-link a,
.txd-footer-socials .wp-social-link a svg,
.txd-footer-socials .wp-social-link-instagram a::before,
.txd-footer-socials .wp-social-link-chain a[href*="wallapop"]::before,
.txd-footer-socials .txd-wallapop a::before {
	width: 52px !important;
	height: 52px !important;
}

.txd-footer-socials .wp-social-link-instagram a::before,
.txd-footer-socials .wp-social-link-chain a[href*="wallapop"]::before,
.txd-footer-socials .txd-wallapop a::before {
	border-radius: 14px;
}

@media (max-width: 781px) {
	.txd-footer__grid {
		grid-template-columns: 1fr !important;
		justify-content: center !important;
		column-gap: 0 !important;
	}

	.txd-footer__brand {
		padding-top: 0;
		align-items: center !important;
	}

	.txd-footer__contact,
	.txd-footer__legal,
	.txd-footer__social {
		justify-items: center;
	}
}
