/*
  xLocums compact footer
  Enqueued when xl_footer_compact_enabled is on.
  Scope every rule under body.xl-footer-compact.
  Do not put less-than or greater-than signs in comments.
*/

/* ----- White separator when a navy block sits directly above the footer ----- */
body.xl-footer-compact.xl-footer-needs-band #content::after {
	content: "";
	display: block;
	width: 100%;
	height: 48px;
	background: #ffffff;
	pointer-events: none;
}

/* ----- Collapse the original full-width badge row (badges are moved by JS) ----- */
body.xl-footer-compact #colophon .elementor-element-72695c0a {
	padding: 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	height: 0 !important;
	overflow: visible !important;
	background-color: transparent !important;
}

body.xl-footer-compact #colophon .elementor-element-72695c0a .elementor-container,
body.xl-footer-compact #colophon .elementor-element-72695c0a .elementor-widget-wrap,
body.xl-footer-compact #colophon .elementor-element-91b19fe,
body.xl-footer-compact #colophon .elementor-element-91b19fe .elementor-widget-container {
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	height: auto !important;
}

/* ----- Badges sit under For Employers and Jobs, 12px above the divider ----- */
body.xl-footer-compact #colophon .elementor-element-bd7a2d6 {
	position: relative;
	/* 54px badge height plus a 12px gap above the divider line */
	padding-bottom: 66px !important;
}

body.xl-footer-compact .xl-footer-compact-badges {
	position: absolute;
	right: 20px;
	bottom: 12px;
	z-index: 3;
	margin: 0;
	transform: none;
	pointer-events: auto;
}

body.xl-footer-compact .xl-footer-compact-badges .xl-plate {
	width: auto;
	max-width: none;
	margin: 0 !important;
	padding: 0 !important;
	justify-content: flex-end;
	gap: 10px;
}

/* ----- Tighter main columns (keep two-color heading colors as they are) ----- */
body.xl-footer-compact #colophon .elementor-element-978ff07 {
	padding-top: 8px !important;
}

body.xl-footer-compact #colophon .elementor-widget-heading .elementor-widget-container {
	margin-bottom: 6px !important;
	padding-bottom: 0 !important;
}

body.xl-footer-compact #colophon .elementor-heading-title {
	line-height: 1.2 !important;
	height: auto !important;
}

body.xl-footer-compact #colophon .elementor-element-723daf3 .elementor-heading-title {
	line-height: 1.1 !important;
	height: auto !important;
}

body.xl-footer-compact #colophon .elementor-element-3a5e7d8,
body.xl-footer-compact #colophon .elementor-element-3a5e7d8 p {
	line-height: 1.45 !important;
	margin-bottom: 8px !important;
}

body.xl-footer-compact #colophon .footer-col .elementor-icon-list-item {
	margin: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.xl-footer-compact #colophon .footer-col .elementor-icon-list-item > .elementor-icon-list-text,
body.xl-footer-compact #colophon .footer-col .elementor-icon-list-item > a {
	line-height: 22px !important;
}

/* Hide leftover spacers that only add height in the column row */
body.xl-footer-compact #colophon .elementor-element-2c223ee,
body.xl-footer-compact #colophon .elementor-element-4ad1768,
body.xl-footer-compact #colophon .elementor-element-2de62cd,
body.xl-footer-compact #colophon .elementor-element-466fde7,
body.xl-footer-compact #colophon .elementor-element-5dcfa16 {
	--spacer-size: 0px !important;
	display: none !important;
}

/* Keep the light divider line, drop the extra spacer height */
body.xl-footer-compact #colophon .elementor-element-25c3cef {
	padding: 0 !important;
	margin: 0 !important;
}

body.xl-footer-compact #colophon .elementor-element-3ab5de2 {
	--spacer-size: 0px !important;
}

body.xl-footer-compact #colophon .elementor-element-3ab5de2 > .elementor-widget-container {
	padding: 0 !important;
}

/* ----- Phone and social icons: one tight row ----- */
body.xl-footer-compact #colophon .elementor-element-4df2351 {
	padding-top: 18px !important;
	padding-bottom: 0 !important;
	margin: 0 !important;
}

body.xl-footer-compact #colophon .elementor-element-cc43d81 .elementor-icon-list-item > .elementor-icon-list-text,
body.xl-footer-compact #colophon .elementor-element-cc43d81 .elementor-icon-list-item > a {
	line-height: 1.3 !important;
}

/* ----- Legal links and copyright: one compact row, smaller type ----- */
body.xl-footer-compact #colophon .elementor-element-c1005e0 {
	margin-top: 4px !important;
	margin-bottom: 0 !important;
	padding: 8px 20px 14px 20px !important;
}

body.xl-footer-compact #colophon .xl-footer-compact-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
}

body.xl-footer-compact #colophon .xl-footer-compact-legal-links {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	flex: 1 1 640px;
	min-width: 0;
}

body.xl-footer-compact #colophon .xl-footer-compact-legal a,
body.xl-footer-compact #colophon .xl-footer-compact-legal .hfe-copyright-wrapper,
body.xl-footer-compact #colophon .xl-footer-compact-legal .hfe-copyright-wrapper span {
	font-family: "Work Sans", Sans-serif !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: #99A0AD !important;
}

body.xl-footer-compact #colophon .xl-footer-compact-legal .hfe-copyright-wrapper {
	flex: 0 0 auto;
	margin-left: auto;
	white-space: nowrap;
}

/* Original legal stacks and the leftover copyright section are emptied by JS */
body.xl-footer-compact #colophon .elementor-element-2681fc5,
body.xl-footer-compact #colophon .elementor-element-f53e1b9,
body.xl-footer-compact #colophon .elementor-element-a3e8967 {
	display: none !important;
}

/* Script-only HTML widgets in the footer should not add height */
body.xl-footer-compact #colophon .elementor-element-031cc8d,
body.xl-footer-compact #colophon .elementor-element-3879254 {
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}

/* ----- Tablet (1024px and down, not the phone range) ----- */
@media (max-width: 1024px) {
	body.xl-footer-compact .xl-footer-compact-badges {
		right: 16px;
		bottom: 12px;
	}

	body.xl-footer-compact #colophon .elementor-element-bd7a2d6 {
		padding-bottom: 66px !important;
	}

	body.xl-footer-compact #colophon .elementor-element-4df2351 {
		padding-top: 18px !important;
	}

	body.xl-footer-compact #colophon .elementor-element-c1005e0 {
		padding: 8px 16px 14px 16px !important;
	}
}

/* ----- Phone (767px and down) ----- */
@media (max-width: 767px) {
	/* In normal flow so one or two badge rows stay above the line with a 12px gap */
	body.xl-footer-compact #colophon .elementor-element-bd7a2d6 {
		padding-bottom: 0 !important;
	}

	body.xl-footer-compact .xl-footer-compact-badges {
		position: relative;
		left: auto;
		right: auto;
		bottom: auto;
		display: flex;
		justify-content: center;
		width: 100%;
		margin: 8px 0 12px;
		transform: none;
	}

	body.xl-footer-compact .xl-footer-compact-badges .xl-plate {
		justify-content: center;
		flex-wrap: wrap;
	}

	body.xl-footer-compact #colophon .xl-footer-compact-legal {
		justify-content: center;
		text-align: center;
		gap: 4px 10px;
	}

	body.xl-footer-compact #colophon .xl-footer-compact-legal .hfe-copyright-wrapper {
		margin-left: 0;
		width: 100%;
		text-align: center;
	}

	body.xl-footer-compact #colophon .xl-footer-compact-legal a,
	body.xl-footer-compact #colophon .xl-footer-compact-legal .hfe-copyright-wrapper,
	body.xl-footer-compact #colophon .xl-footer-compact-legal .hfe-copyright-wrapper span {
		white-space: normal;
	}
}
