/**
 * Единый блок «Поделиться» (товар + блог).
 */

/* Круглые иконки мессенджеров (share, контакты, header WHB) */
.wd-social-icons.peptide-messenger-icons {
	gap: 8px;
}

.wd-social-icons.peptide-messenger-icons .wd-social-icon {
	align-items: center;
	border-radius: 50% !important;
	box-sizing: border-box;
	display: inline-flex;
	height: 30px !important;
	justify-content: center;
	overflow: hidden;
	padding: 0 !important;
	width: 30px !important;
}

.wd-social-icons.peptide-messenger-icons .wd-icon {
	align-items: center;
	display: inline-flex;
	height: 100%;
	justify-content: center;
	width: 100%;
}

.wd-social-icons.peptide-messenger-icons .wd-icon:before {
	display: inline-block;
	font-family: "woodmart-font";
	font-size: 14px;
	line-height: 30px;
	vertical-align: middle;
}

.wd-social-icons.peptide-messenger-icons .social-max.peptide-share-max .wd-icon:before {
	font-family: inherit;
	font-size: 0;
	line-height: 1;
}

.wd-social-icons.peptide-messenger-icons.icons-design-colored .social-whatsapp {
	--social-color: #25d366;
	background-color: #25d366 !important;
}

.wd-social-icons.peptide-messenger-icons.icons-design-colored .social-tg {
	background-color: var(--social-color, #37aee2) !important;
}

.wd-social-icons.peptide-messenger-icons .social-max.peptide-share-max {
	--social-color: #7c3aed;
	background-color: #7c3aed !important;
}

.wd-social-icons.peptide-messenger-icons .social-max.peptide-share-max .wd-icon:before {
	background: center / contain no-repeat var(--peptide-max-icon-url, url("../brand/max-messenger-icon.png"));
	content: "";
	display: block;
	height: 16px;
	width: 16px;
}

.wd-social-icons.peptide-share-unified {
	align-items: center;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 2px 0;
	line-height: 1;
	vertical-align: middle;
}

.wd-social-icons.peptide-share-unified.wd-layout-inline .wd-label {
	display: inline-block;
	margin-bottom: 0;
	margin-inline-end: 8px;
	vertical-align: middle;
}

.wd-social-icons.peptide-share-unified .wd-social-icon {
	flex-shrink: 0;
	margin: 4px;
	vertical-align: middle;
}

/* Порядок: MAX → Telegram → WhatsApp (независимо от разметки WoodMart) */
.wd-social-icons.peptide-share-unified.wd-layout-inline .wd-label {
	order: 0;
}

.wd-social-icons.peptide-share-unified .social-max.peptide-share-max {
	order: 1;
}

.wd-social-icons.peptide-share-unified .social-tg {
	order: 2;
}

.wd-social-icons.peptide-share-unified .social-whatsapp,
.wd-social-icons.peptide-share-unified .whatsapp-desktop,
.wd-social-icons.peptide-share-unified .whatsapp-mobile {
	order: 3;
}

/* WhatsApp — фирменный зелёный (#25D366), не салатовый WoodMart (#1EBEA5) */
.wd-social-icons.peptide-share-unified .social-whatsapp {
	--social-color: #25d366;
}

.wd-social-icons.peptide-share-unified.icons-design-colored .social-whatsapp {
	background-color: #25d366 !important;
}

/* MAX — тот же размер, что у icons-size-small + colored */
.wd-social-icons.peptide-share-unified .social-max.peptide-share-max {
	--social-color: #7c3aed;
	align-items: center;
	background-color: var(--social-color) !important;
	box-sizing: border-box;
	display: inline-flex;
	height: 30px !important;
	justify-content: center;
	padding: 0 !important;
	width: 30px !important;
}

.wd-social-icons.peptide-share-unified .social-max.peptide-share-max .wd-icon {
	align-items: center;
	display: inline-flex;
	height: 100%;
	justify-content: center;
	width: 100%;
}

.wd-social-icons.peptide-share-unified .social-max.peptide-share-max .wd-icon:before {
	background: center / contain no-repeat var(--peptide-max-icon-url, url("../brand/max-messenger-icon.png"));
	content: "";
	display: block;
	height: 16px;
	margin: 0;
	width: 16px;
}

.wd-social-icons.peptide-share-unified .social-max.peptide-share-max:hover {
	box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.15);
}

/* Товар: подпись и иконки в одну линию слева */
.summary-inner .product-share.peptide-share-unified,
.product-image-summary .product-share.peptide-share-unified {
	margin-bottom: var(--margin-bottom, 20px);
	text-align: start;
}

/* Блог: блок у правого края footer, подпись + иконки в ряд */
.wd-single-footer .single-post-social.peptide-share-unified {
	flex: 0 0 auto;
	justify-content: flex-end;
	margin-inline-start: auto;
	max-width: 100%;
}

.wd-single-footer:has(.single-meta-tags) .single-post-social.peptide-share-unified {
	margin-inline-start: auto;
}
