/**
 * The InvestEngine partner banner.
 *
 * Ships with the plugin, like the shortcode that renders it, so it also styles
 * correctly on the sites still running Elementor where no theme stylesheet is
 * enqueued. InvestEngine's own brand colours are used for the mark and the
 * accent bar; everything else follows the page.
 */

.leis-ie {
	--leis-ie-blue: #3a26d4;
	--leis-ie-pink: #ff3d8c;
	--leis-ie-ink: #101828;
	--leis-ie-muted: #667085;
	--leis-ie-surface: #fafafb;

	position: relative;
	display: flex;
	overflow: hidden;
	margin: 0 auto;
	max-width: 1040px;
	border-radius: 0;
	background: var(--leis-ie-surface);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px -18px rgba(16, 24, 40, .45);
	text-align: left;
}

/* The pink spine down the left edge. */
.leis-ie__accent {
	flex: 0 0 26px;
	background: var(--leis-ie-pink);
}

.leis-ie__body {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 26px 30px 24px;
	min-width: 0;
}

/* --- left: the pitch --- */

.leis-ie__intro {
	flex: 1 1 42%;
	min-width: 0;
}

.leis-ie__title {
	margin: 0;
	font-size: 27px;
	line-height: 1.24;
	font-weight: 400;
	color: var(--leis-ie-ink);
	letter-spacing: -.01em;
}

/* The brand name sits on its own line, bold and in InvestEngine blue. */
.leis-ie__brand {
	display: block;
	font-weight: 700;
	color: var(--leis-ie-blue);
}

.leis-ie__lead {
	margin: 14px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--leis-ie-muted);
}

/* --- middle: the three features --- */

.leis-ie__features {
	flex: 0 1 auto;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.leis-ie__features li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--leis-ie-ink);
	white-space: nowrap;
}

/* Kill the theme's list bullets, which would otherwise sit beside the icons. */
.leis-ie__features li:before {
	content: none;
}

.leis-ie__icon {
	flex: none;
	width: 21px;
	height: 21px;
	color: var(--leis-ie-blue);
}

/* --- right: logo over the small print --- */

.leis-ie__aside {
	flex: 0 0 auto;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	text-align: right;
}

.leis-ie__logo {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--leis-ie-blue);
}

.leis-ie__logo-mark {
	width: 21px;
	height: 21px;
	transform: rotate(-12deg);
}

.leis-ie__logo-text {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--leis-ie-blue);
}

.leis-ie__disclaimer {
	margin: 0;
	font-size: 10.5px;
	line-height: 1.4;
	color: var(--leis-ie-muted);
}

/* --- narrower --- */

@media (max-width: 900px) {
	.leis-ie__body {
		flex-wrap: wrap;
		gap: 22px;
		padding: 22px 24px;
	}

	.leis-ie__intro {
		flex: 1 1 100%;
	}

	.leis-ie__features {
		flex: 1 1 auto;
	}

	.leis-ie__aside {
		align-self: flex-end;
	}
}

@media (max-width: 560px) {
	.leis-ie__accent {
		flex-basis: 14px;
	}

	.leis-ie__title {
		font-size: 22px;
	}

	.leis-ie__features li {
		white-space: normal;
	}

	.leis-ie__aside {
		flex: 1 1 100%;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		text-align: left;
	}
}
