/*
Theme Name: MechaHub
Author: SolidBytes
Description: Storefront theme for MechaHub. Colors, type and spacing come from theme.json tokens.
Version: 0.2.0
Requires at least: 7.0
Requires PHP: 8.3
License: Proprietary
Text Domain: mechahub
*/

body {
	-webkit-font-smoothing: antialiased;
}

a:hover {
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

h1,
h2,
h3 {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

.wp-site-blocks > *,
main > .alignfull {
	margin-block: 0;
}

/* Shared */

.mh-section {
	padding-block: var(--wp--preset--spacing--70);
}

.mh-muted {
	color: var(--wp--preset--color--muted);
}

.is-style-section-dark .mh-muted {
	color: var(--wp--preset--color--muted-inverse);
}

.mh-tech {
	font-family: var(--wp--preset--font-family--tech);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--tech);
	line-height: 1.4;
	text-transform: uppercase;
}

/* 0 and O must never be confused in part numbers */
.mh-code,
.wc-block-components-product-sku,
.wc-block-components-product-price {
	font-variant-numeric: tabular-nums slashed-zero;
}

.mh-code {
	font-family: var(--wp--preset--font-family--tech);
	font-weight: 500;
	letter-spacing: 0.02em;
}

.mh-link {
	font-size: var(--wp--preset--font-size--ui);
	font-weight: 600;
}

.mh-link a {
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.mh-link a:hover {
	text-decoration-thickness: 2px;
}

.mh-display {
	font-size: var(--wp--preset--font-size--huge);
	line-height: 1.04;
}

.mh-lede {
	max-width: 60ch;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--muted);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

.is-style-section-dark .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
}

/* Header: a row of cells divided by hairlines */

.mh-hdr {
	position: relative;
	z-index: 5;
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--hairline);
}

.mh-hdr .mh-hdr__row {
	gap: 0;
	align-items: stretch;
	flex-wrap: wrap;
}

.mh-hdr__row > .mh-cell {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	min-height: 4rem;
	margin: 0;
	padding: 0 1.25rem;
	border-right: 1px solid var(--wp--preset--color--hairline);
}

.mh-hdr__row > .mh-cell--logo {
	flex: none;
	width: 14.5rem;
}

.mh-hdr__row > .mh-cell--grow {
	flex: 1 1 0;
	min-width: 0;
}

.mh-hsearch .wp-block-search__inside-wrapper {
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--base);
}

.mh-hsearch .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wp--preset--color--ink);
}

.mh-hsearch .wp-block-search__input {
	border: 0;
	padding-inline: 0.875rem;
	font-size: var(--wp--preset--font-size--ui);
}

.mh-hsearch .wp-block-search__input:focus {
	outline: 0;
}

.mh-hsearch .wp-block-search__button {
	margin: 0;
	padding-inline: var(--wp--preset--spacing--40);
	background: transparent;
	border-left: 1px solid var(--wp--preset--color--hairline);
	border-radius: 0;
	color: var(--wp--preset--color--ink);
}

.mh-hsearch .wp-block-search__input::placeholder,
.mh-bigsearch .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--muted);
}

.mh-hdr a {
	text-decoration: none;
}

.mh-hdr .wp-block-woocommerce-customer-account a,
.mh-hdr .wc-block-mini-cart__button {
	font-size: var(--wp--preset--font-size--ui);
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.mh-hdr__row > .mh-cell--rfq {
	padding: 0;
	border-right: 0;
}

.mh-cell--rfq .wp-block-button,
.mh-cell--rfq .wp-block-button__link {
	display: flex;
	align-items: center;
	height: 100%;
	border-radius: 0;
}

.mh-hdr__row > nav.mh-nav {
	order: 10;
	flex: 1 1 100%;
	min-height: 3rem;
	padding: 0;
	border-top: 1px solid var(--wp--preset--color--hairline);
	border-right: 0;
	font-size: var(--wp--preset--font-size--ui);
	font-weight: 600;
}

@media (min-width: 768px) {
	.mh-nav .wp-block-navigation__responsive-container:not(.is-menu-open),
	.mh-nav .wp-block-navigation__responsive-close,
	.mh-nav .wp-block-navigation__responsive-dialog,
	.mh-nav .wp-block-navigation__responsive-container-content {
		align-self: stretch;
		height: 100%;
	}

	.mh-nav .wp-block-navigation__container {
		align-self: stretch;
		align-items: stretch;
		gap: 0;
	}

	.mh-nav .wp-block-navigation__container > .wp-block-navigation-item {
		border-right: 1px solid var(--wp--preset--color--hairline);
	}

	.mh-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		display: flex;
		align-items: center;
		height: 100%;
		padding: 0 var(--wp--preset--spacing--50);
	}

	.mh-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-icon {
		margin-inline: -1rem 1rem;
	}

	/* First item lines up with the content column (breadcrumb, page titles) */
	.mh-hdr__row > nav.mh-nav {
		padding-inline-start: max(var(--wp--style--root--padding-left), calc((100% - var(--wp--style--global--wide-size)) / 2));
	}

	.mh-nav .wp-block-navigation__container > .wp-block-navigation-item:first-child > .wp-block-navigation-item__content {
		padding-inline-start: 0;
	}

	.mh-nav .wp-block-navigation__container > .wp-block-navigation-item:hover {
		background: var(--wp--preset--color--paper);
	}

	.mh-nav .wp-block-navigation__submenu-container {
		min-width: 20rem;
		padding: 0.5rem 0;
		background: var(--wp--preset--color--base);
		border: 1px solid var(--wp--preset--color--hairline);
		font-weight: 400;
	}

	.mh-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		padding: 0.625rem var(--wp--preset--spacing--50);
	}
}

@media (max-width: 1023px) {
	.mh-hdr__row > .mh-cell--rfq {
		display: none;
	}

	.mh-hdr .wp-block-woocommerce-customer-account .label {
		display: none;
	}
}

@media (max-width: 767px) {
	.mh-hdr__row > .mh-cell {
		min-height: 3.5rem;
		padding: 0 0.75rem;
	}

	.mh-hdr__row > .mh-cell--logo {
		flex: 1 1 auto;
		width: auto;
	}

	.mh-hdr__row > .mh-cell--account {
		display: none;
	}

	.mh-hdr__row > nav.mh-nav {
		order: 0;
		flex: none;
		min-height: 3.5rem;
		padding: 0 0.75rem;
		border-top: 0;
	}

	.mh-hdr__row > .mh-cell--grow {
		order: 20;
		flex: 1 1 100%;
		padding: 0.625rem var(--wp--preset--spacing--40);
		border-top: 1px solid var(--wp--preset--color--hairline);
		border-right: 0;
	}
}

/* Hero */

.mh-hero {
	padding-top: clamp(2rem, 6vw, 4.5rem);
}

.mh-hero__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--wp--preset--spacing--50);
}

.mh-hero__grid > * {
	margin: 0;
}

.mh-hero__copy {
	grid-column: 1 / span 7;
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	padding-bottom: 4rem;
}

.mh-hero__copy > * {
	margin: 0;
}

.mh-bigsearch {
	max-width: 45rem;
}

.mh-bigsearch .wp-block-search__inside-wrapper {
	height: 4rem;
	padding: 0;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius);
}

.mh-bigsearch .wp-block-search__input {
	border: 0;
	padding-inline: 1.125rem;
	font-size: 1.0625rem;
}

.mh-bigsearch .wp-block-search__input:focus {
	outline: 0;
}

.mh-bigsearch .wp-block-search__inside-wrapper:focus-within {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

.mh-bigsearch .wp-block-search__button {
	margin: 0;
	padding-inline: 1.75rem;
	border-radius: 0;
	font-size: var(--wp--preset--font-size--medium);
}

.mh-quick {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	font-size: var(--wp--preset--font-size--ui);
}

.mh-quick .mh-tech {
	margin-right: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--muted);
}

.mh-quick a {
	padding: 0.375rem 0.875rem;
	border-left: 1px solid var(--wp--preset--color--hairline);
}

.mh-quick .mh-tech + a {
	padding-left: 0;
	border-left: 0;
}

.mh-facts {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 1.125rem 0 0;
	border-top: 1px solid var(--wp--preset--color--hairline);
	list-style: none;
	font-size: var(--wp--preset--font-size--ui);
}

.mh-facts li {
	padding: 0 1.125rem;
	border-left: 1px solid var(--wp--preset--color--hairline);
}

.mh-facts li:first-child {
	padding-left: 0;
	border-left: 0;
}

.mh-hero__fig {
	grid-column: 9 / span 4;
	display: flex;
	flex-direction: column;
	padding-left: var(--wp--preset--spacing--50);
	border-left: 1px solid var(--wp--preset--color--hairline);
}

.mh-hero__fig > * {
	margin: 0;
}

.mh-panel {
	position: relative;
	background: var(--wp--preset--color--paper);
}

.mh-panel--sq {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
}

.mh-panel--sq .wp-block-image {
	width: 78%;
	margin: 0;
}

.mh-panel .mh-corner {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	margin: 0;
	color: var(--wp--preset--color--muted);
}

.mh-panel-meta {
	display: flex;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--30) 0;
	border-bottom: 1px solid var(--wp--preset--color--hairline);
	font-size: var(--wp--preset--font-size--ui);
}

.mh-panel-meta > * {
	margin: 0;
}

.mh-hero__fig > .mh-link {
	padding-top: var(--wp--preset--spacing--30);
}

/* Section heads */

.mh-shead {
	padding-bottom: var(--wp--preset--spacing--50);
	border-bottom: 1px solid var(--wp--preset--color--ink);
}

.mh-shead > * {
	margin: 0;
}

.mh-shead__title {
	display: flex;
	align-items: baseline;
	gap: var(--wp--preset--spacing--40);
	margin: 0;
}

.mh-shead__title .mh-tech {
	color: var(--wp--preset--color--muted);
}

.is-style-section-dark .mh-shead__title .mh-tech {
	color: var(--wp--preset--color--muted-inverse);
}

main .mh-section > .mh-shead + * {
	margin-top: 0;
}

/* Category sheet */

.mh-sheet {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	border-left: 1px solid var(--wp--preset--color--hairline);
}

.mh-sheet > .mh-sheet__cell {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
	min-height: 27.5rem;
	margin: 0;
	padding: 1.25rem 1.25rem 1.5rem;
	border-right: 1px solid var(--wp--preset--color--hairline);
	border-bottom: 1px solid var(--wp--preset--color--hairline);
}

.mh-sheet__cell > * {
	margin: 0;
}

.mh-sheet__cell:hover {
	background: var(--wp--preset--color--paper);
}

.mh-sheet__cell > .mh-tech {
	color: var(--wp--preset--color--muted);
}

.mh-sheet__ico {
	width: 6rem;
	height: 6rem;
}

.mh-sheet__name {
	font-size: 1.375rem;
	line-height: 1.2;
}

.mh-sheet__name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.mh-sheet__cell:hover .mh-sheet__name a {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.mh-sheet__subs {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.75;
}

.mh-sheet__cell > .mh-sheet__filter {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	margin-top: auto;
	padding-top: 0.875rem;
	border-top: 1px dashed var(--wp--preset--color--hairline);
	font-size: var(--wp--preset--font-size--small);
}

.mh-sheet__filter .mh-tech {
	color: var(--wp--preset--color--muted);
}

/* Applications */

.mh-apps {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--wp--preset--spacing--50);
}

.mh-apps > * {
	margin: 0;
}

.mh-apps__intro {
	grid-column: 1 / span 4;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
	padding-right: var(--wp--preset--spacing--50);
}

.mh-apps__intro > * {
	margin: 0;
}

.mh-apps__list {
	grid-column: 5 / span 8;
	border-top: 1px solid var(--wp--preset--color--ink);
}

.mh-apps__list > .mh-app-row {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr);
	gap: var(--wp--preset--spacing--50);
	align-items: start;
	margin: 0;
	padding: var(--wp--preset--spacing--50) 0;
	border-bottom: 1px solid var(--wp--preset--color--hairline);
}

.mh-app-row > * {
	margin: 0;
}

.mh-app-row h3 {
	font-size: 1.25rem;
}

.mh-app-row__parts {
	font-size: var(--wp--preset--font-size--ui);
	line-height: 1.7;
}

.mh-app-row > .mh-link {
	justify-self: end;
	white-space: nowrap;
}

/* Product cards */

.mh-cards .wc-block-product-template {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	border-left: 1px solid var(--wp--preset--color--hairline);
	list-style: none;
}

.mh-cards .wc-block-product-template .wc-block-product {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	width: auto;
	margin: 0;
	padding: 0.75rem 0.75rem 1.25rem;
	border-right: 1px solid var(--wp--preset--color--hairline);
	border-bottom: 1px solid var(--wp--preset--color--hairline);
	text-align: start;
}

.mh-cards .wc-block-product > * {
	margin: 0;
	padding-inline: 0.5rem;
}

.mh-cards .wc-block-components-product-image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	padding: 0;
	background: var(--wp--preset--color--paper);
}

.mh-cards .wc-block-components-product-image img {
	width: 62% !important;
	height: 62% !important;
	object-fit: contain !important;
}

.mh-cards .wc-block-components-product-sku {
	margin-top: 0.25rem;
	font-family: var(--wp--preset--font-family--tech);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted);
	text-transform: none;
}

.mh-cards .wp-block-post-title {
	min-height: 2.7em;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.005em;
}

.mh-cards .wc-block-product .wp-block-woocommerce-product-price {
	margin-top: auto;
}

.mh-cards .wc-block-components-product-price {
	font-size: 1.25rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	text-align: start;
}

.mh-cards .wc-block-product .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button {
	width: 100%;
	min-height: 2.75rem;
	margin: 0;
}

.mh-cards .wc-block-product .wp-block-button.wc-block-components-product-button a.wc-block-components-product-button__button {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink);
}

.mh-cards .wc-block-product .wp-block-button.wc-block-components-product-button a.wc-block-components-product-button__button:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

.mh-cards .wp-block-woocommerce-product-button {
	display: block;
}

/* Availability: colour and shape together */

.wc-block-components-product-stock-indicator {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.wc-block-components-product-stock-indicator::before {
	content: "";
	flex: none;
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 50%;
	box-sizing: border-box;
}

.wc-block-components-product-stock-indicator--in-stock::before {
	background: var(--wp--preset--color--status);
}

.wc-block-components-product-stock-indicator--available-on-backorder::before {
	border: 1.5px solid var(--wp--preset--color--ink);
}

.wc-block-components-product-stock-indicator--quote-only::before,
.wc-block-components-product-stock-indicator--out-of-stock::before {
	border: 1.5px dashed var(--wp--preset--color--muted);
}

.mh-price-none {
	font-size: var(--wp--preset--font-size--ui);
	font-weight: 500;
	color: var(--wp--preset--color--muted);
}

/* Buying paths */

.mh-paths {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border: 1px solid var(--wp--preset--color--hairline);
}

main .mh-section > .mh-paths {
	margin-top: var(--wp--preset--spacing--60);
}

.mh-paths > .mh-path {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	margin: 0;
	padding: 3rem;
}

.mh-path > * {
	margin: 0;
}

.mh-steps {
	counter-reset: step;
	padding: 0;
	border-top: 1px solid var(--wp--preset--color--hairline);
	list-style: none;
}

.mh-steps li {
	counter-increment: step;
	display: grid;
	grid-template-columns: 3rem 1fr;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--40) 0;
	border-bottom: 1px solid var(--wp--preset--color--hairline);
}

.mh-steps li::before {
	content: counter(step, decimal-leading-zero);
	padding-top: 0.125rem;
	font-family: var(--wp--preset--font-family--tech);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.is-style-section-dark .mh-steps,
.is-style-section-dark .mh-steps li {
	border-color: var(--wp--preset--color--hairline-inverse);
}

.mh-path > .wp-block-buttons {
	margin-top: auto;
}

/* Footer */

.mh-ftr {
	padding-block: 4.5rem 2rem;
	font-size: var(--wp--preset--font-size--ui);
}

.mh-ftr__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
	gap: var(--wp--preset--spacing--60);
	padding-bottom: 3.5rem;
}

.mh-ftr__grid > * {
	margin: 0;
}

.mh-ftr__brand > * + * {
	margin-top: var(--wp--preset--spacing--40);
}

.mh-ftr h2.mh-tech {
	margin: 0 0 var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--label);
	color: var(--wp--preset--color--muted-inverse);
}

.mh-ftr .wp-block-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mh-ftr li {
	padding-block: 0.3125rem;
}

/* Hanging indent so wrapped text stays clear of the code column */
.mh-ftr li:has(> .mh-code) {
	padding-left: 2.5rem;
	text-indent: -2.5rem;
}

.mh-ftr li .mh-code {
	display: inline-block;
	min-width: 2.5rem;
	text-indent: 0;
	font-size: var(--wp--preset--font-size--label);
	color: var(--wp--preset--color--muted-inverse);
}

.mh-ftr__legal {
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--hairline-inverse);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted-inverse);
}

.mh-ftr__legal > * {
	margin: 0;
}

/* Tablet */

@media (max-width: 1023px) {
	.mh-hero__copy,
	.mh-hero__fig,
	.mh-apps__intro,
	.mh-apps__list {
		grid-column: 1 / -1;
	}

	.mh-hero__copy {
		padding-bottom: 2.5rem;
	}

	.mh-hero__fig {
		padding: 0 0 var(--wp--preset--spacing--40);
		border-left: 0;
	}

	.mh-hero__fig .mh-panel--sq {
		max-width: 22rem;
	}

	.mh-apps__intro {
		padding: 0 0 var(--wp--preset--spacing--60);
	}

	.mh-sheet {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mh-cards .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mh-paths {
		grid-template-columns: 1fr;
	}

	.mh-ftr__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mh-ftr__grid > .mh-ftr__brand {
		grid-column: 1 / -1;
	}
}

/* Phone */

@media (max-width: 767px) {
	.mh-quick .mh-tech {
		width: 100%;
		margin: 0 0 0.25rem;
	}

	.mh-quick a {
		padding: 0.375rem 0.625rem;
	}

	.mh-quick .mh-tech + a {
		padding-left: 0;
	}

	.mh-bigsearch .wp-block-search__inside-wrapper {
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
		height: auto;
		border: 0;
	}

	.mh-bigsearch .wp-block-search__input {
		min-height: 3.5rem;
		border: 1px solid var(--wp--preset--color--ink);
		font-size: 1rem;
	}

	.mh-bigsearch .wp-block-search__button {
		min-height: 3.25rem;
		border-radius: var(--wp--custom--radius);
	}

	.mh-facts {
		flex-direction: column;
		gap: 0.5rem;
	}

	.mh-facts li {
		padding: 0;
		border-left: 0;
	}

	.mh-sheet {
		grid-template-columns: 1fr;
		border-left: 0;
	}

	.mh-sheet > .mh-sheet__cell {
		display: grid;
		grid-template-columns: 4.5rem 1fr;
		column-gap: var(--wp--preset--spacing--40);
		row-gap: 0.5rem;
		min-height: 0;
		padding: 1.25rem 0;
		border-right: 0;
	}

	.mh-sheet__cell > * {
		grid-column: 2;
	}

	.mh-sheet__cell > .mh-sheet__ico {
		grid-column: 1;
		grid-row: 1 / span 4;
		width: 4.5rem;
		height: 4.5rem;
	}

	.mh-sheet__cell > .mh-sheet__filter {
		margin-top: 0.25rem;
	}

	.mh-apps__list > .mh-app-row {
		grid-template-columns: 1fr;
		gap: 0.625rem;
	}

	.mh-app-row > .mh-link {
		justify-self: start;
	}

	.mh-cards .wc-block-product-template .wc-block-product {
		padding: 0.5rem 0.5rem 1rem;
		gap: 0.625rem;
	}

	.mh-cards .wc-block-product > * {
		padding-inline: 0.25rem;
	}

	.mh-cards .wp-block-post-title {
		font-size: var(--wp--preset--font-size--ui);
	}

	.mh-cards .wc-block-components-product-price {
		font-size: 1.0625rem;
	}

	.mh-cards .wc-block-product .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button {
		padding-inline: 0.5rem;
		font-size: var(--wp--preset--font-size--small);
		white-space: normal;
	}

	.mh-paths > .mh-path {
		padding: 2rem 1.25rem;
	}

	.mh-path .wp-block-button {
		flex: 1 1 100%;
	}

	.mh-path .wp-block-button__link {
		width: 100%;
	}

	.mh-ftr__grid {
		grid-template-columns: 1fr 1fr;
	}

	.mh-ftr__grid > :last-child {
		grid-column: 1 / -1;
	}

	.mh-ftr__legal {
		flex-direction: column;
	}
}

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

.mh-logo a,
.mh-logo img {
	display: block;
}

/* Policy pages */

.mh-policy__grid {
	display: grid;
	gap: var(--wp--preset--spacing--60);
}

.mh-policy__grid > * {
	margin: 0;
}

.mh-policy__nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--ink);
}

.mh-policy__nav a {
	display: flex;
	gap: var(--wp--preset--spacing--30);
	align-items: baseline;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--wp--preset--color--hairline);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--ui);
	text-decoration: none;
}

.mh-policy__nav .mh-code {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--label);
}

.mh-policy__nav a:hover,
.mh-policy__nav a[aria-current] {
	font-weight: 600;
}

.mh-policy__nav a[aria-current] .mh-code {
	color: var(--wp--preset--color--ink);
}

.mh-policy__body {
	max-width: 46rem;
}

.mh-policy__body > * + * {
	margin-top: var(--wp--preset--spacing--40);
}

.mh-policy__date {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.mh-policy__date::before {
	content: "Cập nhật lần cuối: ";
}

.mh-policy__body .wp-block-post-content {
	counter-reset: mh-sec;
	margin-top: var(--wp--preset--spacing--60);
}

.mh-policy__body .wp-block-post-content h2 {
	counter-increment: mh-sec;
	margin-top: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--x-large);
}

.mh-policy__body .wp-block-post-content h2::before {
	content: counter(mh-sec, decimal-leading-zero);
	display: block;
	margin-bottom: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--tech);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--tech);
}

.mh-policy__body .wp-block-post-content h3 {
	margin-top: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--large);
}

.mh-policy__body .wp-block-table table {
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--ui);
}

.mh-policy__body .wp-block-table :is(th, td) {
	padding: 0.625rem 0.75rem 0.625rem 0;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--hairline);
	text-align: left;
	vertical-align: top;
}

.mh-policy__body .wp-block-table th {
	font-weight: 600;
}

.mh-policy__body .wp-block-table thead th {
	border-bottom-color: var(--wp--preset--color--ink);
}

@media (min-width: 900px) {
	.mh-policy__grid {
		grid-template-columns: 14.5rem minmax(0, 1fr);
		gap: var(--wp--preset--spacing--80);
	}

	.mh-policy__nav {
		position: sticky;
		top: var(--wp--preset--spacing--50);
		align-self: start;
	}
}

@media (max-width: 899px) {
	/* Content first on small screens; the list of other policies follows it */
	.mh-policy__nav {
		order: 1;
	}
}

.woocommerce-price-suffix {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
}

/* Contact and quote pages */

.mh-formpage__grid {
	display: grid;
	gap: var(--wp--preset--spacing--70);
}

.mh-formpage__grid > *,
.mh-formpage__aside > * {
	margin: 0;
}

.mh-formpage__body {
	max-width: 46rem;
}

.mh-formpage__body > * + * {
	margin-top: var(--wp--preset--spacing--40);
}

.mh-formpage__aside {
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--ui);
}

.mh-formpage__aside > * + * {
	margin-top: var(--wp--preset--spacing--40);
}

.mh-formpage :is(p, dd, label) a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.mh-formpage__aside h2 {
	font-size: var(--wp--preset--font-size--large);
}

.mh-dl dt {
	margin-top: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.mh-dl dd {
	margin: 0;
}

.mh-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: mh-step;
}

.mh-steps li {
	counter-increment: mh-step;
	display: grid;
	grid-template-columns: 2rem 1fr;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--wp--preset--color--hairline);
}

.mh-steps li::before {
	content: counter(mh-step, decimal-leading-zero);
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--tech);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	line-height: 2;
}

@media (min-width: 900px) {
	.mh-formpage__grid {
		grid-template-columns: minmax(0, 1fr) 20rem;
		gap: var(--wp--preset--spacing--80);
	}

	.mh-formpage__aside {
		position: sticky;
		top: var(--wp--preset--spacing--50);
		align-self: start;
	}
}

.mh-form {
	display: grid;
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	margin-top: var(--wp--preset--spacing--60);
}

.mh-form > * {
	grid-column: 1 / -1;
	margin: 0;
}

@media (min-width: 600px) {
	.mh-form {
		grid-template-columns: 1fr 1fr;
	}

	.mh-form > .mh-form__field--half {
		grid-column: auto;
	}
}

.mh-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.mh-form__field > label {
	font-size: var(--wp--preset--font-size--ui);
	font-weight: 600;
}

.mh-form__opt {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

.mh-form :is(input:not([type="checkbox"]), select, textarea) {
	box-sizing: border-box;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: var(--wp--preset--font-size--ui);
}

.mh-form textarea {
	resize: vertical;
}

.mh-form :is(input, select, textarea):focus {
	border-color: var(--wp--preset--color--ink);
}

/* No error colour in the palette: a thick ink rule plus the message text marks the field */
.mh-form .is-invalid :is(input:not([type="checkbox"]), select, textarea) {
	border-color: var(--wp--preset--color--ink);
	box-shadow: inset 3px 0 0 var(--wp--preset--color--ink);
}

.mh-form__help,
.mh-form__err {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

.mh-form__help {
	color: var(--wp--preset--color--muted);
}

.mh-form__err {
	font-weight: 600;
}

.mh-form__field > .mh-form__check {
	display: flex;
	gap: var(--wp--preset--spacing--30);
	align-items: flex-start;
	font-size: var(--wp--preset--font-size--ui);
	font-weight: 400;
}

.mh-form__check input {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.2rem;
	accent-color: var(--wp--preset--color--ink);
}

.mh-form__summary,
.mh-form__done {
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--ink);
	font-weight: 600;
}

.mh-form__done {
	margin-top: var(--wp--preset--spacing--60);
	font-weight: 400;
}

.mh-form__done > * + * {
	margin-top: var(--wp--preset--spacing--40);
}

.mh-form__done h2 {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
}

.mh-form__hp {
	position: absolute;
	left: -9999px;
}
