.pn-share-row {
	position: relative;
	margin-block-end: 24px;
	padding-inline-end: 56px;
}

.pn-share-row--project {
	margin-block-end: 29px;
}

.pn .pn-share-row > p {
	min-width: 0;
	margin-block-end: 0;
}

.pn-share-row .pw-project-hero__eyebrow {
	flex-wrap: wrap;
	row-gap: 4px;
}

.pn-share {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 0;
	translate: 0 -50%;
}

.pn-share__trigger {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: var(--pn-steel-blue);
	background: var(--pn-light-ice);
	cursor: pointer;
	transition: background-color .15s, color .15s;
}

.pn-share__trigger:is(:hover, [aria-expanded="true"]) {
	color: #fff;
	background: var(--pn-steel-blue);
}

.pw-project-hero:not(.pw-project-hero--no-image) .pn-share__trigger {
	color: #fff;
	background: rgb(255 255 255 / 16%);
}

.pw-project-hero:not(.pw-project-hero--no-image) .pn-share__trigger:is(:hover, [aria-expanded="true"]) {
	background: rgb(255 255 255 / 26%);
}

.pn-share__trigger svg {
	width: 21px;
	height: 21px;
}

.pn-share__tooltip {
	position: absolute;
	z-index: 10;
	right: 0;
	bottom: calc(100% + 8px);
	padding: 6px 10px;
	border-radius: 6px;
	color: #f3f4f6;
	background: rgb(2 2 2 / 90%);
	font: 400 14px/1.35 "Open Sans", sans-serif;
	opacity: 0;
	pointer-events: none;
	transition: opacity .12s;
	white-space: nowrap;
}

.pn-share__tooltip::after {
	position: absolute;
	top: 100%;
	right: 16px;
	border: 6px solid transparent;
	border-top-color: rgb(2 2 2 / 90%);
	content: "";
}

.pn-share__trigger[aria-expanded="false"]:focus-visible + .pn-share__tooltip {
	opacity: 1;
}

@media (hover: hover) {
	.pn-share__trigger[aria-expanded="false"]:hover + .pn-share__tooltip {
		opacity: 1;
	}
}

.pn-share__panel {
	position: fixed;
	z-index: 1050;
	box-sizing: border-box;
	width: 276px;
	max-width: calc(100% - 24px);
	padding: 8px;
	border: 1px solid var(--pn-light-ice);
	border-radius: 12px;
	color: var(--pn-river-blue);
	background: #fff;
	box-shadow: 0 10px 28px rgb(18 47 61 / 20%);
	font: 400 13px/1.4 "Open Sans", sans-serif;
}

.pn-share__panel:not([hidden]) {
	animation: pn-share-open .15s ease-out;
}

.pn-share__links {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 2px;
}

.pn-share__links noindex {
	display: contents;
}

.pn-share__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 8px 0;
	font-size: 11px;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
}

.pn-share__link:hover {
	color: var(--pn-river-blue);
	background: var(--pn-milk-gray);
	text-decoration: none;
}

.pn-share__icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: #fff;
	background: #229ed9;
}

.pn-share__icon--vk {
	background: #0077ff;
}

.pn-share__icon--ok {
	background: #ee8208;
}

.pn-share__icon--mail {
	background: #64748b;
}

.pn-share__icon--max {
	background: linear-gradient(135deg, #2e7cf6, #7650da);
}

.pn-share__icon svg {
	width: 20px;
	height: 20px;
}

.pn-share__copy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	min-height: 42px;
	margin-top: 6px;
	padding: 6px;
	border: 0;
	border-radius: 8px;
	color: var(--pn-steel-blue);
	background: var(--pn-light-ice);
	font: inherit;
	cursor: pointer;
}

.pn-share__copy:hover {
	color: #fff;
	background: var(--pn-steel-blue);
}

.pn-share__copy svg {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
}

.pn-share__status:not(:empty) {
	margin: 6px 0 0;
	text-align: center;
}

.pn-share__status:empty {
	margin: 0;
}

.pn-share__url {
	box-sizing: border-box;
	width: 100%;
	margin-top: 6px;
}

.pn-share__trigger:focus-visible,
.pn-share__panel :focus-visible {
	outline: 2px solid var(--pn-steel-blue);
	outline-offset: 2px;
}

@keyframes pn-share-open {
	from { opacity: 0; translate: 0 3px; }
	to { opacity: 1; translate: 0 0; }
}

@media (max-width: 768px) {
	.pn-share-row {
		margin-block-end: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pn-share__trigger,
	.pn-share__tooltip {
		transition: none;
	}

	.pn-share__panel:not([hidden]) {
		animation: none;
	}
}
