/**
 * أزرار المشاركة الاجتماعية.
 */

.aioatr-share {
	--aioatr-share-radius: 999px;
	--aioatr-share-height: 42px;
	--aioatr-share-font: 14px;
	--aioatr-share-gap: 8px;
	--aioatr-share-padding: 15px;
	box-sizing: border-box;
	margin: 28px 0;
	width: 100%;
	clear: both;
	font-family: inherit;
}

.aioatr-share *,
.aioatr-share *::before,
.aioatr-share *::after {
	box-sizing: border-box;
}

.aioatr-share__heading {
	margin: 0 0 12px;
	color: inherit;
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.5;
}

.aioatr-share__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--aioatr-share-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.aioatr-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--aioatr-share-height);
	padding: 0 var(--aioatr-share-padding);
	border: 1px solid transparent;
	border-radius: var(--aioatr-share-radius);
	background: var(--aioatr-share-color, #374151);
	color: #ffffff;
	font-family: inherit;
	font-size: var(--aioatr-share-font);
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.aioatr-share__btn:hover {
	background: var(--aioatr-share-color, #374151);
	color: #ffffff;
	filter: brightness(1.08);
	text-decoration: none;
	transform: translateY(-1px);
}

.aioatr-share__btn:active {
	transform: translateY(0);
}

.aioatr-share__btn:focus-visible {
	outline: 2px solid var(--aioatr-share-color, #2271b1);
	outline-offset: 3px;
}

.aioatr-share__btn[hidden] {
	display: none !important;
}

.aioatr-share__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 4px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	color: inherit;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0;
	flex: 0 0 auto;
}

.aioatr-share__label {
	display: inline-block;
	line-height: 1.2;
}

.aioatr-share__status {
	min-height: 1.4em;
	margin: 8px 0 0;
	color: inherit;
	font-size: 12px;
	line-height: 1.4;
	opacity: 0;
	transition: opacity 160ms ease;
}

.aioatr-share__status:not(:empty) {
	opacity: 0.85;
}

.aioatr-share__btn.is-copied {
	background: #15803d;
	color: #ffffff;
}

.aioatr-share--icons .aioatr-share__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.aioatr-share--icons .aioatr-share__btn {
	padding: 0;
	width: var(--aioatr-share-height);
}

.aioatr-share--icons .aioatr-share__mark {
	min-width: 26px;
	height: 26px;
	background: transparent;
	font-size: 13px;
}

.aioatr-share--outline .aioatr-share__btn {
	border-color: var(--aioatr-share-color, #374151);
	background: transparent;
	color: var(--aioatr-share-color, #374151);
}

.aioatr-share--outline .aioatr-share__btn:hover {
	border-color: var(--aioatr-share-color, #374151);
	background: var(--aioatr-share-color, #374151);
	color: #ffffff;
}

.aioatr-share--outline .aioatr-share__mark {
	background: var(--aioatr-share-color, #374151);
	color: #ffffff;
}

.aioatr-share--outline .aioatr-share__btn:hover .aioatr-share__mark {
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
}

.aioatr-share--circle {
	--aioatr-share-radius: 50%;
}

.aioatr-share--circle .aioatr-share__btn {
	width: var(--aioatr-share-height);
	padding: 0;
}

.aioatr-share--circle .aioatr-share__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.aioatr-share--square {
	--aioatr-share-radius: 10px;
}

.aioatr-share--small {
	--aioatr-share-height: 34px;
	--aioatr-share-font: 12px;
	--aioatr-share-gap: 6px;
	--aioatr-share-padding: 11px;
}

.aioatr-share--small .aioatr-share__mark {
	min-width: 18px;
	height: 18px;
	font-size: 9px;
}

.aioatr-share--large {
	--aioatr-share-height: 50px;
	--aioatr-share-font: 16px;
	--aioatr-share-gap: 10px;
	--aioatr-share-padding: 19px;
}

.aioatr-share--large .aioatr-share__mark {
	min-width: 26px;
	height: 26px;
	font-size: 12px;
}

.aioatr-share--center .aioatr-share__list {
	justify-content: center;
}

.aioatr-share--center .aioatr-share__heading,
.aioatr-share--center .aioatr-share__status {
	text-align: center;
}

.aioatr-share--end .aioatr-share__list {
	justify-content: flex-end;
}

.aioatr-share--end .aioatr-share__heading,
.aioatr-share--end .aioatr-share__status {
	text-align: end;
}

.aioatr-share__btn--facebook {
	--aioatr-share-color: #1877f2;
}

.aioatr-share__btn--x {
	--aioatr-share-color: #111111;
}

.aioatr-share__btn--whatsapp {
	--aioatr-share-color: #128c4a;
}

.aioatr-share__btn--telegram {
	--aioatr-share-color: #168ac0;
}

.aioatr-share__btn--linkedin {
	--aioatr-share-color: #0a66c2;
}

.aioatr-share__btn--pinterest {
	--aioatr-share-color: #bd081c;
}

.aioatr-share__btn--reddit {
	--aioatr-share-color: #e34a17;
}

.aioatr-share__btn--email {
	--aioatr-share-color: #52525b;
}

.aioatr-share__btn--print {
	--aioatr-share-color: #4b5563;
}

.aioatr-share__btn--copy {
	--aioatr-share-color: #0f766e;
}

.aioatr-share__btn--native {
	--aioatr-share-color: #7c3aed;
}

@media (max-width: 520px) {
	.aioatr-share {
		--aioatr-share-gap: 7px;
	}

	.aioatr-share__btn {
		min-height: 40px;
	}
}

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

@media print {
	.aioatr-share {
		display: none !important;
	}
}
