/* WM Site — styles for the 2026 blocks that Elementor controls cannot express. */

/* Lender logo ticker (WM Lenders ticker widget): the strip is printed twice and the track moves by
   half its width, so any strip image loops seamlessly. Each copy carries its own trailing gap. */
.wm-lenders-ticker {
	overflow: hidden;
	width: 100%;
}

.wm-lenders-track {
	display: flex;
	width: max-content;
	animation: wm-lenders-scroll var(--wm-lenders-duration, 45s) linear infinite;
}

.wm-lenders-track img {
	display: block;
	flex: none;
	width: auto;
	max-width: none;
	height: 60px;
	margin-right: 80px;
}

@keyframes wm-lenders-scroll {
	to {
		transform: translateX(-50%);
	}
}

@media (max-width: 767px) {
	.wm-lenders-track img {
		height: 40px;
		margin-right: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wm-lenders-track {
		animation: none;
	}
}

/* Sections whose content runs edge to edge (carousels, grids) have no side padding; their own heading and
   intro text get the gutter instead (class added by the build scripts to zero-padding sections). */
@media (max-width: 1024px) {
	.wm-bleed > .e-con-inner > .elementor-widget-heading,
	.wm-bleed > .e-con-inner > .elementor-widget-text-editor,
	.wm-bleed > .elementor-widget-heading,
	.wm-bleed > .elementor-widget-text-editor {
		padding-right: 20px;
		padding-left: 20px;
	}
}

@media (max-width: 767px) {
	.wm-bleed > .e-con-inner > .elementor-widget-heading,
	.wm-bleed > .e-con-inner > .elementor-widget-text-editor,
	.wm-bleed > .elementor-widget-heading,
	.wm-bleed > .elementor-widget-text-editor {
		padding-right: 16px;
		padding-left: 16px;
	}
}

/* Home hero: the 585px calculator card overlaps the H1 below 1201px, so the text and the card stack here
   (the page's own settings stack them only from the 1024px tablet breakpoint) and the text is centred.
   The `.elementor` prefix outranks Elementor's per-element `--flex-direction` / `--width` / `text-align`. */
@media (max-width: 1200px) {
	.elementor .wm-home-hero > .e-con-inner > .e-con {
		--flex-direction: column;
		--align-items: center;
	}

	.elementor .wm-home-hero > .e-con-inner > .e-con > .e-con {
		--width: 100%;
		--align-items: center;
	}

	.elementor .wm-home-hero .e-con .elementor-widget-text-editor,
	.wm-home-hero .wm-heading--align-left .wm-heading {
		text-align: center;
	}

	.elementor .wm-home-hero .e-con:has(> .elementor-widget-button) {
		--justify-content: center;
	}
}

/* Needs carousel: its 72 px mobile bottom padding made room for the former absolutely placed dots; the
   WM Cards dots are in the flow now. */
@media (max-width: 767px) {
	.elementor .elementor-element.e-con.wm-block-needs-carousel {
		--padding-bottom: 0px;
	}
}

/* Desktop line breaks in headings leave orphan words on narrow screens: let the text wrap freely instead
   (wm-site.php puts a space after each <br> so the words do not join). */
@media (max-width: 767px) {
	h1 br,
	h2 br,
	h3 br,
	h4 br,
	h5 br,
	h6 br {
		display: none;
	}
}

/* Three steps. */
.wm-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	color: #262261;
	font-family: 'Mitr', sans-serif;
}

.wm-steps__num {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #ef5a28;
	color: #fff;
	font-weight: 700;
	font-size: 24px;
	line-height: 1;
}

.wm-steps__title {
	margin: 0 0 8px;
	color: #262261;
	font: 500 24px/1.3 'Mitr', sans-serif;
	white-space: normal;
}

.wm-steps__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

/* Vertical: number on the left, a line running down to the next number. */
.wm-steps--v .wm-steps__item {
	position: relative;
	display: flex;
	gap: 24px;
	padding-bottom: 32px;
}

.wm-steps--v .wm-steps__item:last-child {
	padding-bottom: 0;
}

.wm-steps--v .wm-steps__num {
	width: 48px;
	height: 48px;
}

.wm-steps--v .wm-steps__item:not(:last-child)::before {
	content: '';
	position: absolute;
	top: 52px;
	bottom: 4px;
	left: 23.5px;
	width: 1px;
	background: #262261;
}

.wm-steps--v .wm-steps__body {
	max-width: 340px;
	padding-top: 8px;
}

/* Horizontal: three centred columns, a line between the numbers. */
.wm-steps--h {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	text-align: center;
}

.wm-steps--h .wm-steps__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.wm-steps--h .wm-steps__num {
	width: 80px;
	height: 80px;
	margin-bottom: 32px;
}

.wm-steps--h .wm-steps__item:not(:last-child)::before {
	content: '';
	position: absolute;
	top: 40px;
	left: calc(50% + 52px);
	width: calc(100% + 30px - 104px);
	height: 1px;
	background: #262261;
}

.wm-steps--h .wm-steps__body {
	max-width: 340px;
}

@media (max-width: 767px) {
	.wm-steps--h {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.wm-steps--h .wm-steps__item:not(:last-child)::before {
		display: none;
	}

	.wm-steps--h .wm-steps__num {
		width: 56px;
		height: 56px;
		margin-bottom: 16px;
	}
}

/* Cards (needs grid / carousels): equal heights, photo cropped to the design ratio. */
.wm-card {
	height: 100%;
	overflow: hidden;
}

.wm-card .elementor-widget-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.wm-team-card .elementor-widget-image img {
	aspect-ratio: 1 / 1;
	object-position: top center;
}

.elementor .e-con.wm-needs-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

@media (max-width: 1024px) {
	.elementor .e-con.wm-needs-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.elementor .e-con.wm-needs-grid {
		grid-template-columns: 1fr;
	}
}

/* Carousels (needs, team): round arrows bottom-right, as in the design. */
.wm-carousel .elementor-widget-n-carousel .elementor-swiper-button {
	top: auto !important; /* Elementor positions arrows through inline CSS variables */
	bottom: -72px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	transform: none !important;
}

.wm-carousel .elementor-widget-n-carousel .elementor-swiper-button-prev {
	right: 56px !important;
	left: auto !important;
}

.wm-carousel .elementor-widget-n-carousel .elementor-swiper-button-next {
	right: 0 !important;
}

.wm-carousel .elementor-widget-n-carousel .elementor-swiper-button.swiper-button-disabled {
	opacity: 0.38;
}

.wm-carousel .swiper-slide {
	height: auto;
}

.wm-steps--v .wm-steps__body {
	max-width: 420px;
}

/* Mobile (Figma 301:5975): steps centred, number above the title, no connecting line. */
@media (max-width: 767px) {
	.wm-steps--v .wm-steps__item {
		flex-direction: column;
		align-items: center;
		gap: 16px;
		text-align: center;
	}

	.wm-steps--v .wm-steps__item:not(:last-child)::before {
		display: none;
	}

	.wm-steps--v .wm-steps__body {
		padding-top: 0;
	}
}

/* Carousels: arrows on desktop and tablet, dots on mobile (Figma 301:5671). */
.wm-carousel .elementor-widget-n-carousel .swiper-pagination {
	display: none;
}

@media (max-width: 767px) {
	/* Doubled class: Elementor's ".elementor-element .swiper ~ .elementor-swiper-button" has the same specificity
	   and loads later. */
	.wm-carousel .elementor-widget-n-carousel .elementor-swiper-button.elementor-swiper-button {
		display: none;
	}

	.wm-carousel .elementor-widget-n-carousel .swiper-pagination {
		display: block;
		bottom: -48px !important;
	}

	/* Elementor colours bullets through .elementor-element-<id> rules; one more class wins. */
	.wm-carousel .elementor-widget-n-carousel .swiper-pagination-bullet {
		background: #fff;
		opacity: 0.38;
	}

	.wm-carousel .elementor-widget-n-carousel .swiper-pagination-bullet-active {
		opacity: 1;
	}
}

/* CTA privacy note: lock above the text on mobile (Figma 301:6553). */
@media (max-width: 767px) {
	.wm-cta-privacy .elementor-icon-list-item {
		flex-direction: column;
		gap: 8px;
		text-align: center;
	}
}

/* Journey page breadcrumbs. */
.wm-breadcrumbs {
	color: #9a98c3;
	font: 400 14px/1.5 'Mitr', sans-serif;
}

.wm-breadcrumbs a,
.wm-breadcrumbs a:hover {
	color: #fff;
}

.wm-breadcrumbs__sep {
	margin: 0 12px;
}

.elementor .wm-breadcrumbs a,
.elementor .wm-breadcrumbs a:hover {
	color: #fff;
}

/* FAQ + guides: 56px rows, radius 12, padding 16, icon on the right (Figma 56:1170).
   Elementor's own accordion rules have the same specificity and load later, hence the extra .e-n-accordion. */
.wm-block-faq {
	--wm-faq-row: #efeff4;
	--wm-faq-text: #262261;
}

.wm-block-faq-dark {
	--wm-faq-row: #3a3673;
	--wm-faq-text: #fff;
}

.wm-block-faq .e-n-accordion .e-n-accordion-item {
	border-radius: 12px;
	background: var(--wm-faq-row);
}

.wm-block-faq .e-n-accordion .e-n-accordion-item-title {
	min-height: 56px;
	padding: 16px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	gap: 8px;
}

.wm-block-faq .e-n-accordion .e-n-accordion-item-title-text,
.wm-block-faq .e-n-accordion .e-n-accordion-item-title-icon {
	color: var(--wm-faq-text);
	font: 400 16px/20px 'Mitr', sans-serif;
}

.wm-block-faq .e-n-accordion .e-n-accordion-item-title-header {
	flex: 1;
}

.wm-block-faq .e-n-accordion .e-n-accordion-item-title-icon span > svg {
	width: 16px;
	height: 16px;
	fill: var(--wm-faq-text) !important; /* Elementor colours the icon through a more specific rule */
}

/* Answer pane: no frame, text aligned with the question. */
.wm-block-faq .e-n-accordion .e-n-accordion-item > .e-con {
	border: 0;
}

.wm-guides {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wm-guides li + li {
	margin-top: 16px;
}

.wm-guides a,
.elementor .wm-guides a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 56px;
	padding: 0 16px;
	border-radius: 12px;
	background: var(--wm-faq-row);
	color: var(--wm-faq-text);
	font: 400 16px/20px 'Mitr', sans-serif;
	text-decoration: none;
}

/* Material Symbols "arrow_forward" from Figma, as a mask so it follows the link colour (hover included). */
.wm-guides a::after {
	content: '';
	flex: none;
	width: 24px;
	height: 24px;
	margin-left: 16px;
	background: currentColor;
	-webkit-mask: url('../icons/arrow_forward.svg') center / 24px no-repeat;
	mask: url('../icons/arrow_forward.svg') center / 24px no-repeat;
}

.wm-guides a:hover,
.wm-guides a:focus-visible {
	color: #ef5a28;
}

/* Hairline between sections, limited to the content width. */
.wm-rule {
	height: 0;
	margin: 0;
	border: 0;
	border-top: 1px solid #dbdde5;
}

/* Reviews (Trustindex): until the widget scrolls into view it keeps its 4-column desktop layout, and its
   controls line and hidden disclaimer stick out past the right edge on mobile (page scrolls sideways).
   Clip horizontally only; "hidden" first for browsers without overflow: clip. Two classes: Elementor's
   .e-con { overflow: var(--overflow) } loads later with the same specificity. */
.wm-block-reviews.e-con,
.wm-block-reviews {
	overflow-x: hidden;
	overflow-x: clip;
}
