/**
 * Hero Banner Module — mobile-first, loaded only on pages that render it.
 * BEM root: .myio-hero-banner. Ported from the UI reference's .hero-* /
 * .hero-chooser-* / .hero-rating-* / .hero-trust-badge* rules onto this
 * module's own class names (kept separate from hero-section's .myio-hero__*
 * so both modules' CSS can never collide if ever loaded on the same page).
 */

.myio-hero-banner {
	background: #ffe6ee94 !important;
	padding: 24px 0px 28px;
}

.myio-hero-banner__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	align-items: center;
}

/* Text column */
.myio-hero-banner__eyebrow {
	margin: 0;
	font-size: 12.5px;
	font-weight: 600;
	color: #f43f68;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.myio-hero-banner__heading {
	font-size: 34px;
	line-height: 45px;
	font-weight: 600;
	color: #16162a;
	margin: 12px 0 14px;
}

.myio-hero-banner__desc {
	font-size: 15px;
	line-height: 24px;
	color: #5a5a6e;
	margin: 0 0 22px;
	max-width: 520px;
}

/* Rating pill */
.myio-hero-banner__rating-card {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
	flex-wrap: wrap;
}

.myio-hero-banner__rating-icon {
	display: flex;
    align-items: center;
    gap: 10px;
}

.myio-hero-banner__rating-icon-text {
	font-size: 14px;
	font-weight: 600;
	color: #76717a;
	line-height: 0;
}

.myio-hero-banner__rating-info {
	flex: 1;
	min-width: 0;
}

.myio-hero-banner__rating-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.myio-hero-banner__rating-score {
	font-size: 15px;
	font-weight: 600;
	color: #17131a;
}

.myio-hero-banner__rating-stars {
	display: flex;
	gap: 1px;
}

.myio-hero-banner__rating-count {
	font-size: 13px;
	color: #76717a;
}

.myio-hero-banner__rating-caption {
	display: block;
	font-size: 12.5px;
	color: #76717a;
	width: 100%;
}

/* Trust badges */
.myio-hero-banner__trust-badges {
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 0;
}

.myio-hero-banner__trust-badge {
	padding: 0 10px;
	text-align: center;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	position: relative;
}
.myio-hero-banner__trust-badge::after{
	position: absolute;
	content: '';
	width: 1px;
	height: 100%;
	background-color: #c7c4c9;
	top: 0;
	right: -2px;
}

.myio-hero-banner__trust-badge:first-child{
	padding-left: 0;
}
.myio-hero-banner__trust-badge:last-child::after{
	display: none;
}
.myio-hero-banner__trust-badge:last-child{
	padding-right: 0;
	border: none;
}

.myio-hero-banner__trust-badge-icon {
	display: inline-flex;
	flex-shrink: 0;
	color: #f43f68;
}

.myio-hero-banner__trust-badge-text {
	font-size: 12px;
	font-weight: 400;
	color: #76717a;
	line-height: 1.3;
}

/* Chooser column */
.myio-hero-banner__chooser {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.myio-hero-banner__chooser-card,
.myio-hero-banner__chooser-card--featured {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px;
	background: #fff;
	border-radius: 14px;
	text-decoration: none;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.myio-hero-banner__chooser-card {
	border: 1px solid #ede7e9;
}



.myio-hero-banner__chooser-card:hover,
.myio-hero-banner__chooser-card--featured:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(23, 19, 26, 0.1);
}

.myio-hero-banner__chooser-icon {
	width: 54px;
	height: 54px;
	border-radius: 14px;
	background: #fff4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}

.myio-hero-banner__chooser-icon img {
	width: 26px;
	height: 26px;
	object-fit: contain;
	display: block;
}

.myio-hero-banner__chooser-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.myio-hero-banner__chooser-title-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.myio-hero-banner__chooser-title {
	font-size: 16px;
	font-weight: 600;
	color: #16162a;
	line-height: 1.25;
}

.myio-hero-banner__chooser-badge {
	font-size: 10px;
	font-weight: 600;
	color: #f43f68;
	background: #fff4f6;
	border: 1px solid #ffc9d6;
	padding: 2px 6px;
	border-radius: 20px;
	white-space: nowrap;
}

.myio-hero-banner__chooser-desc {
	font-size: 13px;
	color: #76717a;
	line-height: 1.35;
	padding-bottom: 3px;
}

.myio-hero-banner__chooser-price {
	font-size: 13px;
	color: #17131a;
	line-height: 1.3;
}

.myio-hero-banner__chooser-price-strong {
	font-weight: 600;
	color: #FF7396;
	font-size: 14px;
}

.myio-hero-banner__chooser-arrow {
	flex-shrink: 0;
}

.myio-hero-banner__chooser-footer {
	text-align: center;
	margin-top: 4px;
}

.myio-hero-banner__chooser-footer-link {
	font-size: 14px;
	font-weight: 500;
	color: #f43f68;
	text-decoration: none;
}
.myio-hero-banner__chooser-footer-link:hover {
	text-decoration: underline;
	color: #f43f68;
}
.myio-hero-banner__chooser-footer-link:visited{
	color: #f43f68;
}

@media (max-width: 868px) {
	.myio-hero-banner__desc,
	.myio-hero-banner__trust-badges {
		max-width: 100%;
	}
}

@media (max-width: 544px) {
	.myio-hero-banner {
		padding:0;
	}
	.myio-hero-banner__chooser-card,
	.myio-hero-banner__chooser-card--featured {
		padding: 10px;
		gap: 10px;
	}
	.myio-hero-banner__chooser-title-row {
		min-width: 0;
		flex-wrap: wrap;
	}

	.myio-hero-banner__heading{
		font-size: 26px;
    	line-height: 32px;
		margin-top: 5px;
		margin-bottom: 5px;
	}
	.myio-hero-banner__desc{
		font-size: 14px;
    	line-height: 21px;
		margin-bottom: 12px;
	}

	.myio-hero-banner__chooser{
		flex-direction: row;
		padding: 0 15px;
		padding-bottom: 20px;
		align-items: center;
		overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
	}
	.myio-hero-banner__chooser-card, .myio-hero-banner__chooser-card--featured{
		min-width: 154px;
		border: 1px solid #ffcbd8;
        border-radius: 30px;
		gap: 0;
	}
	.myio-hero-banner__chooser-title{
		font-size: 12px;
	}
	.myio-hero-banner__inner{
		padding: 0 !important;
		gap: 15px;
	}
	.myio-hero-banner__text{
		padding: 0 15px;
	}
	.myio-hero-banner__chooser-footer{
		min-width: 160px;
	}
	.myio-hero-banner__rating-score{
		font-size: 24px;
		line-height: 0;
	}
	.myio-hero-banner__rating-stars{
		width: 90px;
	}
	.myio-hero-banner__rating-card{
		align-items: flex-start;
		margin-bottom: 0;
	}
	.myio-hero-banner__rating-count,
	.myio-hero-banner__rating-caption{
		position: relative;
		font-size: 12px;
	}

	.myio-hero-banner__rating-caption,
	.myio-hero-banner__chooser-desc,
	.myio-hero-banner__chooser-price,
	.myio-hero-banner__chooser-badge{
		display: none;
	}
	.myio-hero-banner__rating-row{
		gap: 3px;
	}
	.myio-hero-banner__rating-card{
		gap: 10px;
		flex-direction: column;
		align-items: center;
	}
	.myio-hero-banner__rating-stars{
		width: auto;
	}
	.myio-hero-banner__rating-stars svg{
		width: 20px;
		height: 20px;
	}
}

/* ── Tablet and up ── */
@media (min-width: 768px) {
	.myio-hero-banner {
		padding: 48px 0;
	}
	.myio-hero-banner__inner {
		grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
		gap: 40px;
	}
}

/* ─────────────────────────────────────────────
 * Homepage v2 (Category Style) — single hero image instead of the chooser
 * grid (hero-banner.php only renders this markup when hb_hero_image is set,
 * which only exists on the homepage's field group, so this rule has nothing
 * to match on category pages either way).
 * ───────────────────────────────────────────── */
.myio-hero-banner__image {
	border-radius: 16px;
	overflow: hidden;
	/* Matches the actual uploaded image's real pixel dimensions (1953x1999,
	   ~square) at every breakpoint — object-fit:cover only crops when the
	   container ratio doesn't match the image's own ratio, so keeping this
	   exact everywhere means it never has to crop anything. */
	aspect-ratio: 1953 / 1999;
	max-width: 480px;
	margin: 0 auto;
}
.myio-hero-banner__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
}
@media (max-width: 544px) {
	/* Homepage's mobile hero had zero section padding (fine for the chooser,
	   which supplies its own 0 15px via .myio-hero-banner__chooser) and the
	   image had no horizontal inset at all, so it bled edge-to-edge while
	   .myio-hero-banner__text sat inset 15px above it — inconsistent, and the
	   image's border-radius looked cut off with no margin to show it against.
	   Scoped to --homepage only; category pages' chooser layout is untouched. */
	.myio-hero-banner--homepage {
		padding: 20px 0 28px;
	}
	.myio-hero-banner__image {
		border-radius: 12px;
		max-width: none;
		margin: 0 15px;
	}
	.myio-hero-banner__image img {
		border-radius: 12px;
	}
}
@media (min-width: 768px) {
	.myio-hero-banner__image {
		max-width: none;
		margin: 0;
		/* Grid column can get up to ~1fr wide on large screens — cap height so a
		   perfectly square image doesn't become disproportionately tall next to
		   the text column. aspect-ratio is preserved either way (both width and
		   height scale down together), so this still never crops. */
		max-height: 480px;
		justify-self: center;
	}
}