.fivemx-home-apple {
	--fivemx-home-blue: #0b57d0;
	--fivemx-home-blue-hover: #0847ad;
	--fivemx-home-ink: #111318;
	--fivemx-home-muted: #58616d;
	--fivemx-home-line: #dfe3e8;
	--fivemx-home-surface: #f6f7f8;
	--fivemx-home-radius-hero: 24px;
	--fivemx-home-radius-media: 18px;
	--fivemx-home-radius-card: 14px;
	--fivemx-home-radius-control: 12px;
	--fivemx-home-rail-gutter: 32px;
	color: var(--fivemx-home-ink);
}

body.home #main > .ct-container-full {
	padding-top: 12px;
}

.fivemx-home-apple *,
.fivemx-home-apple *::before,
.fivemx-home-apple *::after {
	box-sizing: border-box;
}

.fivemx-home-apple__hero,
.fivemx-home-apple__routes,
.fivemx-home-apple__newest,
.fivemx-home-apple__confidence,
.fivemx-home-apple__faq {
	width: min(calc(100% - var(--fivemx-home-rail-gutter)), 1290px);
	margin-inline: auto;
}

.fivemx-home-apple__hero {
	margin-block: 8px 28px;
	padding: clamp(24px, 3vw, 36px);
	border: 1px solid var(--fivemx-home-line);
	border-radius: var(--fivemx-home-radius-hero);
	background: var(--fivemx-home-surface);
	overflow: clip;
}

.fivemx-home-apple__hero-columns {
	gap: clamp(24px, 4vw, 58px);
	margin: 0;
}

.fivemx-home-apple__hero-copy {
	flex-basis: 48%;
}

.fivemx-home-apple__eyebrow {
	margin: 0 0 12px;
	color: var(--fivemx-home-blue);
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fivemx-home-apple__hero h1 {
	max-width: 13ch;
	margin: 0;
	color: var(--fivemx-home-ink);
	font-size: clamp(2.2rem, 4vw, 2.75rem);
	font-weight: 780;
	letter-spacing: -0.045em;
	line-height: 1.02;
}

.fivemx-home-apple__intro {
	max-width: 62ch;
	margin: 20px 0;
	color: var(--fivemx-home-muted);
	font-size: clamp(1rem, 1.4vw, 1.1rem);
	line-height: 1.65;
}

.fivemx-home-apple__search {
	max-width: 600px;
	margin: 0 0 16px;
}

.fivemx-home-apple__search .wp-block-search__inside-wrapper {
	min-height: 50px;
	border: 1px solid #c8ced6;
	border-radius: var(--fivemx-home-radius-control);
	background: #fff;
	overflow: hidden;
}

.fivemx-home-apple__search .wp-block-search__input {
	min-width: 0;
	min-height: 48px;
	padding-inline: 16px;
	border: 0;
	background: transparent;
	color: var(--fivemx-home-ink);
}

.fivemx-home-apple__search .wp-block-search__button {
	display: inline-grid;
	place-items: center;
	min-width: 50px;
	min-height: 48px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: var(--fivemx-home-blue);
	color: #fff;
}

.fivemx-home-apple__actions {
	gap: 10px;
	margin-top: 0;
}

.fivemx-home-apple .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	border-radius: var(--fivemx-home-radius-control);
	background: var(--fivemx-home-blue);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
}

.fivemx-home-apple .wp-block-button__link:hover {
	background: var(--fivemx-home-blue-hover);
	color: #fff;
}

.fivemx-home-apple .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: #b9c1cc;
	background: #fff;
	color: var(--fivemx-home-ink);
}

.fivemx-home-apple .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--fivemx-home-blue);
	color: var(--fivemx-home-blue);
}

.fivemx-home-apple__spotlight {
	min-width: 0;
	flex-basis: 52%;
}

.fivemx-home-apple .fivemx-home-apple__spotlight-products .wc-block-product-template {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) !important;
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
}

.fivemx-home-apple__spotlight-products .wc-block-product {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 12px;
	border: 1px solid var(--fivemx-home-line);
	border-radius: var(--fivemx-home-radius-card);
	background: #fff;
}

.fivemx-home-apple__spotlight-products .wc-block-product:first-child {
	grid-row: 1 / 3;
}

.fivemx-home-apple__spotlight-products .wc-block-components-product-image {
	margin: 0;
}

.fivemx-home-apple__spotlight-products .wc-block-components-product-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--fivemx-home-radius-media);
	object-fit: cover;
}

.fivemx-home-apple__spotlight-products .wc-block-product:not(:first-child) .wc-block-components-product-image img {
	aspect-ratio: 16 / 7 !important;
}

.fivemx-home-apple__spotlight-products h3 {
	margin: 10px 0 4px;
	font-size: clamp(0.88rem, 1.2vw, 1rem);
	line-height: 1.35;
}

.fivemx-home-apple__spotlight-products .wp-block-woocommerce-product-rating,
.fivemx-home-apple__spotlight-products .wp-block-woocommerce-product-button {
	margin-block: 8px 0;
}

.fivemx-home-apple__spotlight-products .wp-block-woocommerce-product-button {
	display: none !important;
}

.fivemx-home-apple__routes {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 10px;
	margin: 0 auto 48px;
}

.fivemx-home-apple__routes a {
	display: grid;
	grid-template-rows: auto 1fr;
	align-content: center;
	min-height: 92px;
	padding: 8px;
	border: 1px solid var(--fivemx-home-line);
	border-radius: var(--fivemx-home-radius-card);
	background: #fff;
	color: var(--fivemx-home-ink);
	text-decoration: none;
	overflow: hidden;
}

.fivemx-home-apple__routes a:hover {
	border-color: #a9b3bf;
	background: var(--fivemx-home-surface);
}

.fivemx-home-apple__route-image {
	width: 100%;
	aspect-ratio: 16 / 7;
	border-radius: 10px;
	object-fit: cover;
}

.fivemx-home-apple__route-copy {
	display: grid;
	align-content: center;
	padding: 10px 6px 6px;
}

.fivemx-home-apple__routes .is-text-only {
	grid-template-rows: 1fr;
	padding: 14px;
	background: var(--fivemx-home-surface);
}

.fivemx-home-apple__routes .is-text-only .fivemx-home-apple__route-copy {
	padding: 0;
}

.fivemx-home-apple__routes strong {
	font-size: 0.9rem;
	line-height: 1.2;
}

.fivemx-home-apple__route-copy > span {
	margin-top: 5px;
	color: var(--fivemx-home-muted);
	font-size: 0.76rem;
	line-height: 1.35;
}

.fivemx-home-apple__newest {
	margin-block: 0 56px;
}

.fivemx-home-apple__section-heading {
	gap: 16px;
	margin-bottom: 18px;
}

.fivemx-home-apple__section-heading h2,
.fivemx-home-apple__section-heading p {
	margin: 0;
}

.fivemx-home-apple__section-heading a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--fivemx-home-blue);
	font-weight: 700;
}

.fivemx-home-apple__newest-products .wc-block-product-template {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: clamp(14px, 2vw, 24px);
}

.fivemx-home-apple__newest-products .wc-block-product {
	margin: 0;
	padding: 12px;
	border: 1px solid var(--fivemx-home-line);
	border-radius: var(--fivemx-home-radius-card);
	background: #fff;
}

.fivemx-home-apple__newest-products .wc-block-components-product-image {
	margin: 0;
}

.fivemx-home-apple__newest-products .wc-block-components-product-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--fivemx-home-radius-card);
	object-fit: cover;
}

.fivemx-home-apple__newest-products h3 {
	min-height: 2.8em;
	margin: 12px 0 6px;
	line-height: 1.4;
}

.fivemx-home-apple__newest-products .wp-block-button__link {
	min-height: 44px;
	margin-top: 8px;
}

.fivemx-home-apple__confidence {
	gap: 12px;
	margin-block: 0 56px;
}

.fivemx-home-apple__confidence .wp-block-column {
	padding: 22px;
	border: 1px solid transparent;
	border-radius: var(--fivemx-home-radius-card);
	background: var(--fivemx-home-surface);
}

.fivemx-home-apple__confidence h3,
.fivemx-home-apple__confidence p {
	margin-block: 0 8px;
}

.fivemx-home-apple__confidence p {
	color: var(--fivemx-home-muted);
}

.fivemx-home-apple__faq {
	margin-bottom: 72px;
}

.fivemx-home-apple__faq details {
	padding: 16px 0;
	border-bottom: 1px solid var(--fivemx-home-line);
}

.fivemx-home-apple__faq summary {
	display: flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
	cursor: pointer;
}

.fivemx-home-apple :where(a, button, input, summary):focus-visible {
	outline: 3px solid var(--fivemx-home-blue);
	outline-offset: 3px;
}

@media (max-width: 1180px) {
	.fivemx-home-apple__routes {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 783px) and (max-width: 1040px) {
	.fivemx-home-apple .fivemx-home-apple__newest-products .wc-block-product-template {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 782px) {
	.fivemx-home-apple {
		--fivemx-home-rail-gutter: 24px;
	}

	.fivemx-home-apple__hero {
		margin-top: 12px;
		padding: 24px 18px;
	}

	.fivemx-home-apple__hero-columns {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.fivemx-home-apple__hero h1 {
		max-width: 15ch;
		font-size: clamp(2rem, 10vw, 2.2rem);
	}

	.fivemx-home-apple .fivemx-home-apple__spotlight-products .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		grid-template-rows: auto;
	}

	.fivemx-home-apple__spotlight-products .wc-block-product:first-child {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.fivemx-home-apple__spotlight-products .wc-block-product:not(:first-child) .wc-block-components-product-image img {
		aspect-ratio: 4 / 3 !important;
	}

	.fivemx-home-apple__routes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-bottom: 40px;
	}

	.fivemx-home-apple .fivemx-home-apple__newest-products .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 374px) {
	.fivemx-home-apple__actions .wp-block-button {
		width: 100%;
	}

	.fivemx-home-apple__actions .wp-block-button__link {
		width: 100%;
	}

	.fivemx-home-apple__routes,
	.fivemx-home-apple .fivemx-home-apple__newest-products .wc-block-product-template {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}
