.ptik-share-wrap {
	display: inline-block;
}

.ptik-share-open {
	cursor: pointer;
}

.ptik-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--border1_hover, #e5e5ea);
	border-radius: var(--radius1, 10px);
	background: var(--border1, #f5f5f7);
	color: var(--text, #222);
	font: inherit;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	direction: rtl;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ptik-share-btn:hover,
.ptik-share-btn:focus-visible {
	background: var(--border1_hover, #ececf0);
}

.ptik-share-btn[data-share-tip] {
	position: relative;
}

.ptik-share-btn[data-share-tip]:hover::after,
.ptik-share-btn[data-share-tip]:focus-visible::after {
	content: attr(data-share-tip);
	position: absolute;
	bottom: calc(100% + 8px);
	right: 50%;
	transform: translateX(50%);
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.5;
	white-space: nowrap;
	pointer-events: none;
	z-index: 20;
}

.ptik-share-btn__text {
	color: var(--text, #222);
	opacity: 0.75;
}

.ptik-share-btn__share-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--text, #495057);
}

.ptik-share-btn__share-icon svg {
	display: block;
	width: 16px;
	height: 16px;
}

.ptik-share-btn__icon-slot {
	width: 22px;
	height: 22px;
	overflow: hidden;
	flex-shrink: 0;
}

.ptik-share-btn__icon-track {
	display: flex;
	flex-direction: column;
	transition: transform 0.45s ease;
}

.ptik-share-btn__icon-item {
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ptik-share-btn__icon-item svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* ---------- مودال ---------- */

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

.ptik-share-modal__box {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: var(--radius1, 10px);
	padding: 28px 24px 20px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.ptik-share-modal__title {
	margin: 0 0 22px;
	text-align: center;
	font-size: 16px;
	font-weight: 500;
	color: var(--text, #222);
	line-height: 1.8;
}

.ptik-share-modal__socials--cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.ptik-share-modal--template1 .ptik-share-modal__social {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: var(--radius1, 10px);
	background: var(--ptik-share-color);
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: opacity 0.2s ease;
}

.ptik-share-modal__social:hover,
.ptik-share-modal__social:focus-visible {
	opacity: 0.9;
	color: #fff;
}

.ptik-share-modal__social-icon {
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ptik-share-modal__social-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.ptik-share-modal__copy,
.ptik-share-modal__qr {
	border: 1px solid var(--border1_hover, #e5e5ea);
	border-radius: var(--radius1, 10px);
	background: #fff;
}

.ptik-share-modal__copy {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 40px;
	padding: 8px 14px;
	margin-bottom: 14px;
	font: inherit;
	cursor: pointer;
	direction: ltr;
	text-align: left;
}

.ptik-share-modal__copy-url {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--text, #222);
	opacity: 0.75;
	font-size: 13px;
	text-align: left;
}

.ptik-share-modal__copy-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	direction: rtl;
	color: var(--text, #222);
}

.ptik-share-modal__copy-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ptik-share-modal__copy-icon svg {
	display: block;
	width: 16px;
	height: 16px;
}

.ptik-share-modal__copy-label {
	font-weight: 500;
	font-size: 14px;
	color: var(--text, #222);
}

.ptik-share-modal__qr {
	padding: 16px;
	margin-bottom: 16px;
	text-align: center;
}

.ptik-share-modal__qr-text {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.8;
	color: var(--text, #222);
	opacity: 0.75;
}

.ptik-share-modal__qr-image {
	display: inline-block;
	border-radius: var(--radius1, 10px);
}

.ptik-share-modal__close-btn.ptik-modal-btn {
	display: block;
	height: 40px;
	padding: 0 30px;
	max-width: 120px;
	margin: 4px auto 0;
	width: 100%;
	background: var(--bs-danger, #dc3545);
	color: #fff;
	border: none;
	border-radius: var(--radius1, 10px);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ptik-share-modal__close-btn.ptik-modal-btn:hover,
.ptik-share-modal__close-btn.ptik-modal-btn:focus-visible {
	background: var(--bs-gray-dark, #343a40);
	color: #fff;
}

/* ---------- توست ---------- */

.ptik-share-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	z-index: 100001;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	padding: 12px 20px;
	border-radius: var(--radius1, 10px);
	font-size: 14px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.ptik-share-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ---------- قالب ۲ — دایره‌ای (varzesh3) ---------- */

.ptik-share-modal--template2 {
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ptik-share-modal--template2 .ptik-share-modal__box {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: var(--radius1, 10px);
	padding: 0 0 20px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	overflow: hidden;
}

.ptik-share-modal--template2 .ptik-share-modal__header {
	position: relative;
	padding: 18px 48px 14px;
	border-bottom: 1px solid var(--border1_hover, #e5e5ea);
}

.ptik-share-modal--template2 .ptik-share-modal__header-close {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	color: #888;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.ptik-share-modal--template2 .ptik-share-modal__header-close:hover,
.ptik-share-modal--template2 .ptik-share-modal__header-close:focus-visible {
	color: #333;
}

.ptik-share-modal--template2 .ptik-share-modal__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.ptik-share-modal--template2 .ptik-share-modal__subtitle {
	margin: 18px 0 14px;
	text-align: center;
	font-size: 14px;
	color: #888;
}

.ptik-share-public-count__value.odometer {
	font-weight: 600;
	display: inline-block;
	min-width: 1ch;
	direction: rtl;
	vertical-align: baseline;
	position: relative;
	top: -2px;
}

.ptik-share-modal--template2 .ptik-share-modal__socials--circle {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px 24px;
	padding: 0 20px;
	margin: 0 0 20px;
}

.ptik-share-modal__social-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 72px;
}

.ptik-share-modal--template2 a.ptik-share-modal__social-circle {
	width: 56px !important;
	height: 56px !important;
	border-radius: 56px !important;
	color: #fff !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	flex-shrink: 0;
	box-sizing: border-box;
}

.ptik-share-modal--template2 a.ptik-share-modal__social-circle--telegram { background: #0088cc !important; }
.ptik-share-modal--template2 a.ptik-share-modal__social-circle--whatsapp { background: #25D366 !important; }
.ptik-share-modal--template2 a.ptik-share-modal__social-circle--bale { background: #00b894 !important; }
.ptik-share-modal--template2 a.ptik-share-modal__social-circle--eitaa { background: #ef7f1a !important; }
.ptik-share-modal--template2 a.ptik-share-modal__social-circle--linkedin { background: #0A66C2 !important; }
.ptik-share-modal--template2 a.ptik-share-modal__social-circle--facebook { background: #1877F2 !important; }
.ptik-share-modal--template2 a.ptik-share-modal__social-circle--x { background: #000000 !important; }

.ptik-share-modal__social-name {
	font-size: 13px;
	color: var(--text, #444);
	line-height: 1.4;
}

.ptik-share-public-count {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--text, #444);
	opacity: 0.85;
}

.ptik-share-modal--template2 a.ptik-share-modal__social-circle:hover,
.ptik-share-modal--template2 a.ptik-share-modal__social-circle:focus-visible {
	opacity: 0.92;
	color: #fff !important;
	transform: translateY(-2px);
}

.ptik-share-modal--template2 .ptik-share-modal__social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.ptik-share-modal--template2 .ptik-share-modal__social-icon svg {
	width: 26px;
	height: 26px;
	display: block;
}

.ptik-share-modal--template2 .ptik-share-modal__copy-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 20px 16px;
	border: 1px solid var(--border1_hover, #e5e5ea);
	border-radius: var(--radius1, 8px);
	padding: 10px;
	direction: ltr;
	background: #fff;
}

.ptik-share-modal--template2 .ptik-share-modal__copy-input {
	flex: 1;
	min-width: 0;
	border: none;
	padding: 0;
	font: inherit;
	font-size: 13px;
	color: var(--text, #444);
	background: transparent;
	text-align: left;
	direction: ltr;
	outline: none;
}

.ptik-share-modal--template2 .ptik-share-modal__copy-btn {
	border: none;
	background: var(--primary, #008b8b);
	color: #fff !important;
	padding: 8px 16px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	border-radius: calc(var(--radius1, 8px) - 2px);
	line-height: 1.4;
}

.ptik-share-modal--template2 .ptik-share-modal__copy-btn:hover,
.ptik-share-modal--template2 .ptik-share-modal__copy-btn:focus-visible {
	filter: brightness(0.92);
}

.ptik-share-modal--template2 .ptik-share-modal__qr-block {
	max-width: 420px;
	margin: 0 auto;
	padding: 0 20px;
	text-align: center;
}

.ptik-share-modal--template2 .ptik-share-modal__qr-text {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.8;
	color: var(--text, #222);
	opacity: 0.75;
}

@media (max-width: 480px) {
	.ptik-share-modal--template2 .ptik-share-modal__socials--circle {
		gap: 16px;
	}
}
