/**
 * MyInvitation login hero panel.
 * Brand color: #FF7396.
 */

.mal-myio-hero {
	display: block;
	max-width: 1080px;
	margin: 0 auto;
	padding: 16px;
	box-sizing: border-box;
}

.mal-myio-hero__layout {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
	align-items: stretch;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(20, 20, 43, 0.06);
	overflow: hidden;
}

.mal-myio-hero__panel {
	padding: 24px 22px;
	background: linear-gradient(180deg, #fff7f3 0%, #ffeef1 100%);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.mal-myio-hero__panel--product {
	background: linear-gradient(180deg, #fff5f7 0%, #ffe4ea 100%);
}

.mal-myio-hero__form {
	padding: 24px 22px;
	background: #fff;
}

/* ---- Product context ---- */
.mal-myio-hero__product {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 14px;
	background: #fff;
	border: 1px solid #ffd6df;
	border-radius: 14px;
	padding: 12px;
}

.mal-myio-hero__product-media {
	flex: 0 0 88px;
	width: 88px;
	height: 110px;
	border-radius: 10px;
	overflow: hidden;
	background: #fbeef2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mal-myio-hero__product-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mal-myio-hero__product-meta {
	flex: 1 1 auto;
	min-width: 0;
}

.mal-myio-hero__badge {
	display: inline-block;
	color: #FF7396;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.2px;
	margin-bottom: 4px;
}

.mal-myio-hero__product-title {
	font-size: 18px;
	font-weight: 700;
	color: #14142b;
	margin: 0 0 6px;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.mal-myio-hero__product-sub {
	margin: 0;
	color: #6e6e84;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.mal-myio-hero__pencil {
	color: #FF7396;
}

/* ---- Generic hero ---- */
.mal-myio-hero__generic {
	text-align: left;
}

.mal-myio-hero__headline {
	font-size: 24px;
	line-height: 1.2;
	margin: 0 0 10px;
	color: #14142b;
	font-weight: 800;
}

.mal-myio-hero__headline-accent {
	color: #FF7396;
}

.mal-myio-hero__lede {
	color: #4e4b66;
	font-size: 14px;
	margin: 0 0 16px;
	line-height: 1.5;
}

.mal-myio-hero__benefits {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.mal-myio-hero__benefits li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
}

.mal-myio-hero__benefits strong {
	display: block;
	color: #14142b;
	font-weight: 700;
}

.mal-myio-hero__benefits em {
	display: block;
	color: #6e6e84;
	font-style: normal;
	font-size: 12.5px;
}

.mal-myio-hero__benefit-icon {
	color: #FF7396;
	font-size: 16px;
	line-height: 1.2;
	flex: 0 0 auto;
}

/* ---- Trust bar + footnote ---- */
.mal-myio-hero__trustbar {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 18px auto 0;
	max-width: 1080px;
	padding: 14px 16px;
	background: transparent;
	border-radius: 14px;
}

.mal-myio-hero__trust-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	font-size: 12px;
	color: #4e4b66;
	line-height: 1.4;
	gap: 4px;
	padding: 12px 8px;
	background: #fff5f7;
	border: 1px solid #ffd6df;
	border-radius: 12px;
}

.mal-myio-hero__trust-item strong {
	color: #14142b;
	font-weight: 700;
	font-size: 13px;
}

.mal-myio-hero__trust-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: #fff;
	border-radius: 50%;
	margin-bottom: 2px;
	border: 1px solid #ffd6df;
}

.mal-myio-hero__footnote {
	max-width: 1080px;
	margin: 12px auto 0;
	text-align: center;
	color: #6e6e84;
	font-size: 13px;
}

.mal-myio-hero__footnote-accent {
	color: #FF7396;
	font-weight: 600;
}

/* ---- Desktop ---- */
@media (min-width: 992px) {
	.mal-myio-hero__layout {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
	}

	.mal-myio-hero__panel {
		padding: 36px 32px;
	}

	.mal-myio-hero__panel--product .mal-myio-hero__product {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 18px;
	}

	.mal-myio-hero__panel--product .mal-myio-hero__product-media {
		width: 100%;
		height: 240px;
		flex: 0 0 auto;
	}

	.mal-myio-hero__product-title {
		font-size: 22px;
		-webkit-line-clamp: 3;
	}

	.mal-myio-hero__form {
		padding: 36px 32px;
	}

	.mal-myio-hero__headline {
		font-size: 30px;
	}

	.mal-myio-hero__trustbar {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ---- Mobile overrides ---- */
/*
 * On mobile the theme's .container already applies 15px horizontal gutters.
 * Remove the extra horizontal padding from .mal-myio-hero so the card
 * fills the available width without double-guttering.
 *
 * Also strip the standalone-card chrome from .mal-inline-form when it is
 * rendered inside the hero (it gets its card context from the hero wrapper).
 */
@media (max-width: 767px) {
	.mal-myio-hero {
		padding: 8px 0 16px;
	}

	.mal-myio-hero__panel {
		padding: 16px;
	}

	.mal-myio-hero__form {
		padding: 16px;
	}

	/* Strip standalone-card chrome from the inline form */
	.mal-myio-hero__form .mal-inline-form {
		padding: 0;
		background: transparent;
		border-radius: 0;
		box-shadow: none;
		max-width: none;
	}

	.mal-myio-hero__trustbar {
		margin-top: 12px;
		padding: 0;
		gap: 8px;
	}

	.mal-myio-hero__trust-item {
		padding: 10px 6px;
	}

	.mal-myio-hero__trust-icon {
		width: 30px;
		height: 30px;
	}

	.mal-myio-hero__trust-icon svg {
		width: 16px;
		height: 16px;
	}
}

/* ---- Page-level chrome suppression ---- */
/*
 * Hide the theme's .contact_banner (page title + hero image) when our login
 * hero occupies the screen — applies to both the product detail page and
 * the WooCommerce my-account page.  form-style.css covers the product page
 * only (it loads only on [mivb_video_form] pages); this rule covers the rest.
 */
body:has(.mal-myio-hero) .contact_banner {
        display: none !important;
}

/*
 * On the WooCommerce my-account page the .woocommerce wrapper has a large
 * bottom margin.  When only the hero is shown (logged-out state) that margin
 * creates asymmetric spacing compared to the product detail page.
 */
.woocommerce-account .woocommerce:has(.mal-myio-hero) {
        margin-bottom: 0;
}

/* Inside-modal: skip the heavy left panel since space is tight. */
.mal-modal .mal-myio-hero__panel,
.mal-modal .mal-myio-hero__trustbar,
.mal-modal .mal-myio-hero__footnote {
	display: none;
}
.mal-modal .mal-myio-hero__layout {
	grid-template-columns: 1fr;
	box-shadow: none;
}
.mal-modal .mal-myio-hero {
	padding: 0;
}
