/*
  xLocums job ad CTA trim (DE-77).
  Enqueued when xl_job_cta_trim_enabled is on, on single job pages and Basecamp.
  Scope every rule under body.xl-jct-on.
  Do not put less-than or greater-than signs in comments.
  No yellow hovers.
*/

/* -------------------------------------------------------------------------
   1. Single job ads
   ------------------------------------------------------------------------- */

/* Hide the duplicate title that sits above the featured photo. The title
   below the photo (h2.title-detail, moved into the layout column) stays. */
body.xl-jct-on.xl-jct-job h1.jobTitle {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}

/* Top sidebar: Apply Now stays the main button. Submit Your CV is a text link under it. */
body.xl-jct-on.xl-jct-job .xl-jl__actions .btn-feature {
	display: flex !important;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
	float: none !important;
}

body.xl-jct-on.xl-jct-job .xl-jl__actions .btn-feature > button {
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
	margin: 0 !important;
}

body.xl-jct-on.xl-jct-job .xl-jl__actions #xl-submit-cv-btn {
	flex: 0 0 auto;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	align-self: center;
	width: auto;
	min-width: 0;
	min-height: 0 !important;
	height: auto;
	padding: 2px 0 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: "Work Sans", "Inter", sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	color: #4169E1 !important;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
}

body.xl-jct-on.xl-jct-job .xl-jl__actions #xl-submit-cv-btn:hover,
body.xl-jct-on.xl-jct-job .xl-jl__actions #xl-submit-cv-btn:focus {
	background: transparent !important;
	color: #365ACF !important;
	text-decoration: underline !important;
	box-shadow: none !important;
}

/* Bottom of the description: keep Apply Now, drop the Contact button. */
body.xl-jct-on.xl-jct-job .single-apply-jobs .btn-border,
body.xl-jct-on.xl-jct-job .single-apply-jobs button[onclick*="jobbank_call_popup"] {
	display: none !important;
}

/* Job alerts float: stay hidden until the script adds xl-jct-ja-in after scroll
   (or the URL hash is #xl-job-alerts). */
body.xl-jct-on.xl-jct-job .xl-ja.xl-ja--float:not(.xl-jct-ja-in):not(.is-dismissed) {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transform: translateY(20px);
}

body.xl-jct-on.xl-jct-job .xl-ja.xl-ja--float.xl-jct-ja-in:not(.is-dismissed) {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
	body.xl-jct-on.xl-jct-job .xl-ja.xl-ja--float:not(.xl-jct-ja-in):not(.is-dismissed),
	body.xl-jct-on.xl-jct-job .xl-ja.xl-ja--float.xl-jct-ja-in:not(.is-dismissed) {
		transition: none;
		transform: none;
	}
}

/* -------------------------------------------------------------------------
   2. Footer photo band on single job ads
   Hide Get Coverage. Restyle Join Now as the light outlined button.
   "or sign in" stays, centered under the single button.
   ------------------------------------------------------------------------- */

body.xl-jct-on.xl-jct-job .xl-footer-band__btn--outline {
	display: none !important;
}

body.xl-jct-on.xl-jct-job .xl-footer-band__btn--primary {
	background: #ffffff;
	border: 1.5px solid #4169E1;
	color: #4169E1;
}

body.xl-jct-on.xl-jct-job .xl-footer-band__btn--primary:hover,
body.xl-jct-on.xl-jct-job .xl-footer-band__btn--primary:focus {
	background: #EEF3FF;
	border-color: #365ACF;
	color: #365ACF;
}

body.xl-jct-on.xl-jct-job .xl-footer-band__actions {
	justify-content: center;
}

/* -------------------------------------------------------------------------
   3. Basecamp, signed in: hide the whole photo band.
   PHP also turns the band switch off so the markup is not printed.
   These rules cover a cached band and the local preview mock.
   ------------------------------------------------------------------------- */

body.xl-jct-on.xl-jct-hide-band .xl-footer-band,
body.xl-jct-on.logged-in.xl-jct-portal .xl-footer-band {
	display: none !important;
}
