/* Share button next to the add button (functions/share-button.php): same size as the add button, outlined and
   in the text colour, so the add button stays the main action. */
.inm-share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	margin-left: auto;
	margin-right: 14px;
	border-radius: 9999px;
	border: 1px solid color-mix(in srgb, var(--primary_text) 35%, transparent);
	color: var(--primary_text);
	background: transparent;
	text-decoration: none;
	transition: background-color 120ms ease, border-color 120ms ease;
	-webkit-tap-highlight-color: transparent;
}
.inm-share:hover,
.inm-share:focus-visible {
	border-color: var(--primary_text);
	background: color-mix(in srgb, var(--primary_text) 8%, transparent);
}
.inm-share svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
/* The add button or the "Sold out" text sits right after it, not pushed apart. */
.lp-price-wrapper .inm-share + .imx-controls,
.lp-price-wrapper .inm-share + .imx-unavailable,
li.lp-product .lp-price-wrapper .inm-share + .imx-controls,
li.lp-product .lp-price-wrapper .inm-share + .imx-unavailable {
	margin-left: 0;
}
@media (min-width: 1024px) {
	li.lp-product .inm-share {
		width: 36px;
		height: 36px;
		margin-right: 6px; /* plus the 8px gap desktop.css gives the price row: 14px, as on phones */
	}
}

.inm-share-toast {
	position: fixed;
	left: 50%;
	bottom: 96px;
	z-index: 100000;
	transform: translate(-50%, 12px);
	padding: 10px 16px;
	border-radius: 9999px;
	background: rgba(20, 20, 20, 0.9);
	color: #fff;
	font-size: 14px;
	line-height: 1.2;
	opacity: 0;
	pointer-events: none;
	transition: opacity 200ms ease, transform 200ms ease;
}
.inm-share-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}
