/*
 * MH Avocado: minimal functional styles of the plugin components (BEM classes mh-*).
 * The theme styles everything else and may dequeue this file (handle "mh-avocado").
 */
.mh-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Wishlist heart: outline, filled turquoise when active (client 26.10). */
.mh-wishlist-button {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: #000;
	text-decoration: none;
	line-height: 1;
	cursor: pointer;
}
.mh-wishlist-button__icon {
	display: block;
	width: 1.5em;
	height: 1.5em;
}
.mh-wishlist-button__icon path {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	transition: fill 0.15s ease;
}
.mh-wishlist-button.is-active {
	color: #01737f;
}
.mh-wishlist-button.is-active .mh-wishlist-button__icon path {
	fill: currentColor;
}
.mh-wishlist-button.is-busy {
	opacity: 0.7;
}

/* Filters. */
.mh-filters__group {
	min-width: 0;
	margin: 0 0 1.5em;
	padding: 0;
	border: 0;
}
.mh-filters__options {
	margin: 0;
	padding: 0;
	list-style: none;
}
.mh-filters__option {
	display: flex;
	align-items: center;
	gap: 0.5em;
}
.mh-filters__label {
	cursor: pointer;
}
.mh-filters__option.is-empty {
	opacity: 0.45;
}
.mh-filters__option.is-empty .mh-filters__label {
	cursor: default;
}
.mh-filters__option--child {
	padding-left: 1em;
}
.mh-filters__swatch {
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 0.35em;
	vertical-align: middle;
	border: 1px solid rgba(0, 0, 0, 0.2);
}
.mh-filters--js .mh-filters__submit {
	display: none;
}
.mh-filters__range-wrap {
	position: relative;
	height: 1.5em;
}
.mh-filters__range {
	position: absolute;
	left: 0;
	width: 100%;
	margin: 0;
	pointer-events: none;
	background: none;
	-webkit-appearance: none;
	appearance: none;
}
.mh-filters__range::-webkit-slider-thumb {
	pointer-events: auto;
}
.mh-filters__range::-moz-range-thumb {
	pointer-events: auto;
}
.mh-filters__price-inputs {
	display: flex;
	gap: 0.5em;
}
.mh-filters__price-input {
	width: 6em;
}
html.mh-loading [data-mh-results] {
	opacity: 0.5;
	transition: opacity 0.2s ease;
}
/* While results load, the filter options wait (no clicks on a panel that is about to be replaced). */
html.mh-loading [data-mh-filters] .mh-filters__option,
html.mh-loading [data-mh-filters] .mh-filters__price {
	pointer-events: none;
	opacity: 0.6;
}

/* Prices never break inside the amount. */
.mh-price .amount,
.woocommerce-Price-amount {
	white-space: nowrap;
}

/* Checkout: the invoice checkbox is optional by nature, no "(optional)" marker. */
.mh-invoice-toggle .optional {
	display: none;
}
