/* Webbler Footer – colors and sizes come from CSS variables set by the
 * widget's style controls; every var() has a fallback. */

.wft {
	box-sizing: border-box;
	width: 100%;
	padding: 80px 80px 40px;
	background: var(--wft-bg, #1e3530);
	color: var(--wft-text, #e6eeec);
	font-size: 20px;
	line-height: 1.5;
}

.wft *,
.wft *::before,
.wft *::after {
	box-sizing: border-box;
}

.wft__inner {
	width: 100%;
	max-width: var(--wft-max, none);
	margin: 0 auto;
}

/* Links keep the footer colors in every state (site-wide link colors must
 * not change them). */
.wft .wft__inner a:link,
.wft .wft__inner a:visited {
	color: inherit;
	text-decoration: none;
}

.wft .wft__inner a:hover,
.wft .wft__inner a:focus-visible {
	color: var(--wft-hover, #6bcbc2);
	text-decoration: none;
}

.wft .wft__inner a:focus-visible,
.wft .wft__toggle:focus-visible {
	outline: 2px solid var(--wft-hover, #6bcbc2);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Parts & rows (order set in the widget) ---------- */
.wft__row {
	margin-bottom: var(--wft-part-gap, 40px);
}

.wft__row:last-child {
	margin-bottom: 0;
}

/* Parts placed next to each other */
.wft__row--split {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--wft-col-gap, 40px);
}

.wft__part {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.wft__part--left {
	align-items: flex-start;
	text-align: left;
}

.wft__part--center {
	align-items: center;
	text-align: center;
}

.wft__part--right {
	align-items: flex-end;
	text-align: right;
}

.wft__row--split > .wft__part {
	flex: 0 1 auto;
}

.wft__row--split > .wft__part--columns {
	flex: 1 1 auto;
}

.wft__row--split > .wft__part--promo {
	align-self: var(--wft-promo-align, center);
}

/* The columns part always fills its space */
.wft__part--columns {
	align-items: stretch;
	text-align: left;
}

.wft__part--logo {
	gap: 20px;
}

.wft__part--center .wft__socials {
	justify-content: center;
}

.wft__part--right .wft__socials {
	justify-content: flex-end;
}

.wft__part--bottom {
	align-items: stretch;
}

.wft__row--bottom {
	margin-top: calc(var(--wft-part-gap, 40px) * 0.6);
}

.wft__logo {
	width: var(--wft-logo-w, 210px);
	max-width: 100%;
	line-height: 0;
}

.wft__logo img,
.wft .wft__logo-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
}

.wft__tagline {
	max-width: 420px;
	margin: 0;
	opacity: 0.85;
}

/* ---------- Columns ---------- */
.wft__cols {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: var(--wft-cols, repeat(var(--wft-count, 4), minmax(0, 1fr)));
	column-gap: var(--wft-col-gap, 40px);
	row-gap: var(--wft-row-gap, 40px);
	min-width: 0;
}

.wft__col {
	min-width: 0;
}

.wft .wft__heading {
	margin: 0 0 24px;
	padding: 0;
	color: var(--wft-heading, #6bcbc2);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
}

.wft .wft__heading a.wft__heading-text:link,
.wft .wft__heading a.wft__heading-text:visited {
	color: var(--wft-heading, #6bcbc2);
}

.wft .wft__heading a.wft__heading-text:hover {
	color: var(--wft-hover, #6bcbc2);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* The fold-out button is only used on mobile */
.wft__toggle {
	display: none;
}

.wft .wft__list {
	display: flex;
	flex-direction: column;
	gap: var(--wft-item-gap, 14px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wft .wft__list > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wft .wft__list > li::before,
.wft .wft__list > li::marker {
	content: none;
}

.wft__item {
	color: var(--wft-text, #e6eeec);
	font-size: 20px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.wft__a {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	transition: color 200ms ease;
}

.wft__item > .wft__icon {
	margin-right: 8px;
}

.wft__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	height: 1.5em;
	color: var(--wft-icon, #6bcbc2);
}

.wft__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.wft .wft__label {
	margin-top: 10px;
	color: var(--wft-label, #6bcbc2);
	font-size: 18px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.wft .wft__label:first-child {
	margin-top: 0;
}

/* ---------- Promo image ---------- */
.wft__promo {
	width: var(--wft-promo-w, 300px);
	max-width: 100%;
	line-height: 0;
}

.wft__promo img,
.wft .wft__promo-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
}

/* ---------- Social icons ---------- */
.wft .wft__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wft .wft__socials > li {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wft .wft__socials > li::before,
.wft .wft__socials > li::marker {
	content: none;
}

.wft .wft__inner a.wft__soc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--wft-soc, 44px);
	height: var(--wft-soc, 44px);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wft-soc-bg, rgba(255, 255, 255, 0.08));
	color: var(--wft-soc-color, #e6eeec);
	font-size: calc(var(--wft-soc, 44px) * 0.42);
	font-size: round(calc(var(--wft-soc, 44px) * 0.42), 1px);
	line-height: 1;
	text-decoration: none;
	box-shadow: none;
	/* Own paint layer: stops the icon flickering while the colors change */
	transform: translateZ(0);
	backface-visibility: hidden;
	/* Only the colors animate – site-wide link transitions are ignored */
	transition: background-color 200ms ease, color 200ms ease;
}

.wft .wft__inner a.wft__soc:hover,
.wft .wft__inner a.wft__soc:focus-visible {
	background: var(--wft-soc-hover-bg, #6bcbc2);
	color: var(--wft-soc-hover, #1e3530);
	text-decoration: none;
	box-shadow: none;
}

.wft .wft__soc svg,
.wft .wft__soc i {
	display: block;
	flex-shrink: 0;
	width: 1em;
	height: 1em;
	margin: 0;
	font-size: inherit;
	line-height: 1;
	fill: currentColor;
	color: inherit;
	pointer-events: none;
	transition: none;
}

.wft .wft__soc svg * {
	transition: none;
}

.wft__panel .wft__socials {
	margin-top: 24px;
}

/* ---------- Bottom bar ---------- */
.wft__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding-top: 24px;
	border-top: 1px solid var(--wft-line, rgba(255, 255, 255, 0.14));
	color: var(--wft-bottom, rgba(230, 238, 236, 0.7));
	font-size: 15px;
	line-height: 1.5;
}

.wft__copy {
	margin: 0;
}

.wft .wft__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wft .wft__legal > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wft .wft__legal > li::before,
.wft .wft__legal > li::marker {
	content: none;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.wft__row--split {
		flex-direction: column;
	}

	.wft__row--split > .wft__part {
		width: 100%;
	}

	.wft__row--split > .wft__part--promo {
		align-self: auto;
	}

	.wft__cols {
		grid-template-columns: var(--wft-cols, repeat(2, minmax(0, 1fr)));
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.wft__part--hide-m {
		display: none;
	}

	.wft__row:has(> .wft__part--hide-m):not(:has(> .wft__part:not(.wft__part--hide-m))) {
		display: none;
	}

	.wft__row--split {
		gap: 24px;
	}

	.wft__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.wft__cols {
		grid-template-columns: var(--wft-cols, minmax(0, 1fr));
	}

	/* Fold-out columns: always one column */
	.wft--fold .wft__cols {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 0;
	}

	.wft--fold .wft__heading {
		margin: 0;
	}

	.wft--fold .wft__heading-text {
		display: none;
	}

	.wft--fold .wft__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
		margin: 0;
		padding: 18px 0;
		border: 0;
		border-bottom: 1px solid var(--wft-line, rgba(255, 255, 255, 0.14));
		border-radius: 0;
		background: none;
		color: inherit;
		font: inherit;
		letter-spacing: inherit;
		text-align: left;
		text-transform: inherit;
		cursor: pointer;
	}

	.wft--fold .wft__toggle:hover,
	.wft--fold .wft__toggle:focus {
		background: none;
		color: inherit;
	}

	.wft__chev {
		flex-shrink: 0;
		transition: transform 250ms ease;
	}

	.wft__toggle[aria-expanded="true"] .wft__chev {
		transform: rotate(180deg);
	}

	.wft--fold .wft__panel {
		padding: 18px 0 24px;
	}

	.wft--fold .wft__panel[hidden] {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wft *,
	.wft *::before {
		transition: none !important;
	}
}
