/* Share button beside the product title (single product page only). */
.mw-product__pricerow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
}

.mw-product__pricerow .mw-product__price {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.mw-share {
	--mw-share-bg: #f6f1ea;
	--mw-share-line: #ddd3c6;
	--mw-share-ink: #6b5f58;
	position: relative;
	flex: none;
}

.mw-share[hidden] {
	display: none;
}

.mw-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--mw-share-line);
	border-radius: 50%;
	background: var(--mw-share-bg);
	color: var(--mw-share-ink);
	cursor: pointer;
	transition: color var(--wp--custom--transition--duration, 200ms), border-color var(--wp--custom--transition--duration, 200ms);
}

.mw-share__btn:hover,
.mw-share.is-open .mw-share__btn {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.mw-share__btn:focus-visible,
.mw-share__item:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.mw-share__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 30;
	min-width: 13rem;
	padding: 6px;
	border: 1px solid var(--wp--preset--color--border-strong, #8c8681);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mw-share__menu[hidden] {
	display: none;
}

.mw-share__item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 4px;
	background: none;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.mw-share__ico {
	flex: none;
	width: 20px;
	height: 20px;
}

.mw-share__sep {
	height: 1px;
	margin: 4px 6px;
	background: var(--wp--preset--color--border, #e4ded8);
}

.mw-share__item:hover {
	background: var(--wp--preset--color--surface, #faf7f5);
	color: var(--wp--preset--color--primary);
}

.mw-share__status {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 30;
	padding: 6px 14px;
	border-radius: var(--wp--custom--radius--pill, 999px);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 150ms;
}

.mw-share__status.is-on {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.mw-share__btn,
	.mw-share__status {
		transition: none;
	}
}
