/*SHARE BUTTONS*/
/* Allping product sharing controls. Add under Appearance > Customize > Additional CSS. */

[data-allping-product-share] {
	--allping-share-size: 35px;
	--allping-share-gap: 6px;
	--allping-share-whatsapp: #55eb4c;
	--allping-share-messenger: #0084ff;
	--allping-share-google-ai: #000000;
	--allping-share-telegram: #2ca5e0;
	--allping-share-addtoany: #0166ff;
	position: absolute;
	top: 5px;
	right: 8px;
	z-index: 30;
	display: inline-flex;
	align-items: center;
	gap: var(--allping-share-gap);
	line-height: 1;
	visibility: hidden;
}

[data-allping-product-share].is-positioned {
	visibility: visible;
}

[data-allping-product-share] a,
[data-allping-product-share] button {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}

[data-allping-product-share] .allping-product-share__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--allping-share-size);
	height: var(--allping-share-size);
	border-radius: 5px;
	overflow: hidden;
	box-shadow: none;
	transition: transform 140ms ease, filter 140ms ease;
}

[data-allping-product-share] .allping-product-share__button:hover,
[data-allping-product-share] .allping-product-share__button:focus-visible {
	filter: brightness(0.92);
	transform: translateY(-1px);
}

[data-allping-product-share] .allping-product-share__button:focus-visible {
	outline: 3px solid rgba(1, 102, 255, 0.35);
	outline-offset: 2px;
}

[data-allping-product-share] .allping-product-share__button svg {
	display: block;
	width: 100%;
	height: 100%;
}

[data-allping-product-share] .allping-product-share__button--whatsapp svg {
	transform: scale(1.65);
	transform-origin: center;
}

[data-allping-product-share] .allping-product-share__toggle svg {
	transform: scale(0.75);
	transform-origin: center;
}

[data-allping-product-share] .allping-product-share__button--whatsapp {
	background-color: #f8fafc;
}

[data-allping-product-share] .allping-product-share__toggle {
	background-color: #f8fafc;
	color: #000000;
}

[data-allping-product-share] .allping-product-share__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	display: grid;
	grid-template-columns: repeat(4, var(--allping-share-size));
	gap: var(--allping-share-gap);
	padding: 6px;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

[data-allping-product-share] .allping-product-share__menu[hidden] {
	display: none;
}

[data-allping-product-share] .allping-product-share__button--messenger {
	background-color: var(--allping-share-messenger);
}

[data-allping-product-share] .allping-product-share__button--google-ai {
	background-color: var(--allping-share-google-ai);
}

[data-allping-product-share] .allping-product-share__button--telegram {
	background-color: var(--allping-share-telegram);
}

[data-allping-product-share] .allping-product-share__button--addtoany {
	background-color: var(--allping-share-addtoany);
}

[data-allping-product-share] .allping-product-share__status {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: max-content;
	max-width: 180px;
	padding: 6px 9px;
	border-radius: 5px;
	background: #111827;
	color: #ffffff;
	font-size: 12px;
	line-height: 1.2;
	pointer-events: none;
}

[data-allping-product-share] .allping-product-share__status:empty {
	display: none;
}

/* The existing mobile heading owns the title and star-rating row. */
@media (max-width: 767px) {
	[data-allping-product-share] .allping-product-share__button--whatsapp svg {
		transform: scale(1.59);
	}

	.allping-mobile-product-heading--with-share {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		row-gap: 4px;
		position: relative;
	}

	.allping-mobile-product-heading--with-share > .product_title,
	.allping-mobile-product-heading--with-share > .entry-title {
		grid-column: 1 / -1;
		min-width: 0;
	}

	.allping-mobile-product-heading--with-share > .woocommerce-product-rating {
		grid-column: 1;
		min-width: 0;
	}

	.allping-mobile-product-heading--with-share > [data-allping-product-share] {
		position: relative;
		top: auto;
		right: auto;
		grid-column: 2;
		grid-row: 2;
		align-self: center;
		justify-self: end;
	}

	.allping-mobile-product-heading--with-share [data-allping-product-share] .allping-product-share__menu {
		top: calc(100% + 8px);
	}
}

@media (prefers-reduced-motion: reduce) {
	[data-allping-product-share] .allping-product-share__button {
		transition: none;
	}
}

/* Final treatment for the two visible share controls. The expanded menu is
 * deliberately excluded so its existing service colors remain intact. */
[data-allping-product-share] > .allping-product-share__button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 35px !important;
	height: 35px !important;
	min-width: 35px !important;
	min-height: 35px !important;
	box-sizing: border-box;
	background-color: #FFFFFF !important;
	color: #000000 !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: 0 2px 6px rgba(10, 25, 48, 0.16) !important;
	font-size: 0;
	line-height: 0;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease !important;
}

[data-allping-product-share] > .allping-product-share__button:hover,
[data-allping-product-share] > .allping-product-share__button:focus-visible {
	color: #0064D2 !important;
	filter: none !important;
	transform: scale(1.05) !important;
}

[data-allping-product-share] > .allping-product-share__button:focus-visible {
	outline: 3px solid rgba(0, 100, 210, 0.35);
	outline-offset: 2px;
}

[data-allping-product-share] > .allping-product-share__button svg {
	display: block;
	width: 35px !important;
	height: 35px !important;
	transform-origin: center;
	transition: none !important;
}

[data-allping-product-share] > .allping-product-share__button--whatsapp svg {
	transform: scale(1.3) !important;
}

[data-allping-product-share] > .allping-product-share__toggle svg {
	transform: scale(0.75) !important;
}

/* The WhatsApp artwork contains hard-coded black fills. Rebind only those
 * paths to currentColor so the icon can follow the hover color. */
[data-allping-product-share] > .allping-product-share__button--whatsapp svg path[fill="#000000"],
[data-allping-product-share] > .allping-product-share__button--whatsapp svg path[fill="#000"] {
	fill: currentColor !important;
}

@media (prefers-reduced-motion: reduce) {
	[data-allping-product-share] > .allping-product-share__button {
		transition: none !important;
		transform: none !important;
	}
}











