/* Minimal Account: wishlist heart, header link and count */

button.mawc-wl-btn.mawc-wl-btn,
button.mawc-wl-btn.mawc-wl-btn:hover,
button.mawc-wl-btn.mawc-wl-btn:focus,
button.mawc-wl-btn.mawc-wl-btn:active {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: auto;
	min-width: 48px;
	min-height: 48px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #2d2d2d !important;
	border-radius: 4px;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #2d2d2d !important;
	font: inherit;
	line-height: 1;
	text-transform: none;
	opacity: 1;
	cursor: pointer;
}

button.mawc-wl-btn.mawc-wl-btn:focus-visible {
	outline: 2px solid #2d2d2d;
	outline-offset: 2px;
}

.mawc-wl-btn .mawc-wl-icon {
	display: block;
	width: 22px;
	height: 22px;
	fill: none !important;
	stroke: #2d2d2d !important;
	transition: transform 0.15s ease;
}

.mawc-wl-btn:hover .mawc-wl-icon {
	transform: scale(1.08);
}

.mawc-wl-btn.is-active .mawc-wl-icon {
	fill: #2d2d2d !important;
}

/* Product page: the button fills the row, the heart is a small square on its right */

.mawc-wl-wrap {
	display: flex !important;
	flex: 1 1 auto;
	flex-wrap: nowrap !important;
	align-items: stretch;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

.mawc-wl-wrap .mawc-wl-partner {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
}

/* Themes and page builders stretch every button in the form: keep the heart small. */
.mawc-wl-wrap button.mawc-wl-btn.mawc-wl-btn,
.mawc-wl-wrap button.mawc-wl-btn.mawc-wl-btn:hover,
.mawc-wl-wrap button.mawc-wl-btn.mawc-wl-btn:focus {
	flex: 0 0 48px !important;
	width: 48px !important;
	min-width: 48px !important;
	max-width: 60px !important;
	height: auto !important;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
}

.mawc-wl-wrap .mawc-wl-text {
	display: none;
}

/* Out-of-stock products: heart with a label */

button.mawc-wl-btn.mawc-wl-btn--standalone,
button.mawc-wl-btn.mawc-wl-btn--standalone:hover,
button.mawc-wl-btn.mawc-wl-btn--standalone:focus {
	gap: 8px;
	margin-top: 12px;
	padding: 0 16px;
}

/* Product listings */

/* Position and size come from the settings (inline CSS variables on the button). */
button.mawc-wl-btn.mawc-wl-btn.mawc-wl-btn--loop,
button.mawc-wl-btn.mawc-wl-btn.mawc-wl-btn--loop:hover,
button.mawc-wl-btn.mawc-wl-btn.mawc-wl-btn--loop:focus,
button.mawc-wl-btn.mawc-wl-btn.mawc-wl-btn--loop:active {
	position: absolute !important;
	top: var(--mawc-wl-top, 12px) !important;
	right: var(--mawc-wl-right, 12px) !important;
	left: auto !important;
	bottom: auto !important;
	z-index: 2;
	width: var(--mawc-wl-size, 24px) !important;
	min-width: 0 !important;
	max-width: none !important;
	height: var(--mawc-wl-size, 24px) !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none;
	line-height: 0;
}

button.mawc-wl-btn.mawc-wl-btn--loop .mawc-wl-icon {
	width: 100%;
	height: 100%;
}

/* Header link from the [mawc_wishlist] shortcode */

.mawc-wl-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: inherit;
	line-height: 1;
	text-decoration: none;
}

.mawc-wl-link svg {
	display: block;
	width: 24px;
	height: 24px;
}

.mawc-wl-count {
	position: absolute;
	top: -6px;
	right: -10px;
	box-sizing: border-box;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #1a1a1a;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

.mawc-wl-count[hidden] {
	display: none;
}
