/**
 * Social share buttons (the atr-fse/share block) — circular brand-coloured icons.
 * Enqueued by the "Social share buttons" option (ATR Theme Options → Sharing).
 * Theme-agnostic: a child theme can override size/spacing on .atr-share.
 */
.atr-share-buttons {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.atr-share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--atr-share-size, 28px);
	height: var(--atr-share-size, 28px);
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.atr-share:hover {
	opacity: 0.85;
	color: #fff;
}

.atr-share svg {
	width: 54%;
	height: 54%;
	fill: currentColor;
	display: block;
}

.atr-share-facebook { background: #1877f2; }
.atr-share-whatsapp { background: #25d366; }
.atr-share-email    { background: #777; }
.atr-share-x        { background: #000; }
.atr-share-telegram { background: #29a9eb; }
.atr-share-linkedin { background: #0a66c2; }

/* A custom icon (chosen in the settings) is the whole button — drop the brand
   circle and let the image stand on its own. */
.atr-share--img {
	background: none;
	border-radius: 0;
	width: auto;
	height: auto;
}
.atr-share--img .atr-share__icon {
	display: block;
	width: var(--atr-share-size, 28px) !important;
	height: var(--atr-share-size, 28px) !important;
	aspect-ratio: auto !important;
	opacity: 1 !important;
	object-fit: contain;
}

/* ---- "bar" variant (Sahifa .share-post): a "Share" label + labelled buttons ---- */
.atr-share-bar {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	background: #f7f7f7;
	border-top: 1px solid #eaeaea;
}
.atr-share-bar__label {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 0 12px;
	color: #fff;
	font-size: 15px;
	white-space: nowrap;
	/* The owning theme sets the brand colour; falls back to a neutral dark. */
	background: var(--atr-share-bar-accent, #555);
}
.atr-share-bar__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
	padding: 6px 10px;
}
.atr-share-btn {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 5px;
	padding: 5px 10px;
	color: #fff;
	text-decoration: none;
	border-radius: 2px;
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
}
.atr-share-btn:hover { color: #fff; opacity: 0.9; }
.atr-share-btn svg { width: 14px; height: 14px; fill: currentColor; }
/* !important + aspect-ratio reset beats a lazy-load plugin's placeholder sizing. */
.atr-share-btn img {
	width: 14px !important;
	height: 14px !important;
	aspect-ratio: auto !important;
	opacity: 1 !important;
	object-fit: contain;
}
.atr-share-btn--facebook { background: #1877f2; }
.atr-share-btn--whatsapp { background: #25d366; }
.atr-share-btn--email    { background: #777; }
.atr-share-btn--x        { background: #000; }
.atr-share-btn--telegram { background: #29a9eb; }
.atr-share-btn--linkedin { background: #0a66c2; }
