.ntm-article-share {
	--ntm-share-ink: #1e315b;
	--ntm-share-surface: #fff9f5;
	--ntm-share-hover: #fce8de;
	position: relative;
	width: fit-content;
	max-width: 100%;
	color: var(--ntm-share-ink);
	font-size: 1rem;
	line-height: 1.3;
}

.ntm-article-share[open] {
	z-index: 20;
}

.ntm-article-share > summary {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.55rem 0.9rem;
	border: 1px solid var(--ntm-share-ink);
	border-radius: 999px;
	background: var(--ntm-share-surface);
	color: var(--ntm-share-ink);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.ntm-article-share > summary::-webkit-details-marker {
	display: none;
}

.ntm-article-share > summary::marker {
	content: "";
}

.ntm-article-share > summary svg {
	flex: none;
}

.ntm-article-share__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 1;
	width: min(17rem, calc(100vw - 2rem));
	padding: 0.5rem;
	border: 1px solid rgb(30 49 91 / 20%);
	border-radius: 14px;
	background: var(--ntm-share-surface);
	box-shadow: 0 10px 28px rgb(30 49 91 / 16%);
}

.ntm-article-share--above .ntm-article-share__panel {
	top: auto;
	bottom: calc(100% + 8px);
}

.ntm-article-share__caption {
	margin: 0;
	padding: 0.4rem 0.65rem 0.22rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.ntm-article-share__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ntm-article-share__links a,
.ntm-article-share .ntm-article-share__copy {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 44px;
	padding: 0.4rem 0.65rem;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--ntm-share-ink);
	font: inherit;
	text-align: left;
	text-decoration: none;
}

.ntm-article-share .ntm-article-share__copy {
	margin-top: 0.25rem;
	border-top: 1px solid rgb(30 49 91 / 15%);
	cursor: pointer;
}

.ntm-article-share > summary:hover,
.ntm-article-share[open] > summary,
.ntm-article-share__links a:hover,
.ntm-article-share .ntm-article-share__copy:hover {
	background: var(--ntm-share-hover);
	color: var(--ntm-share-ink);
}

.ntm-article-share :is(summary, a, button, input):focus-visible {
	outline: 2px solid var(--ntm-share-ink);
	outline-offset: 2px;
}

.ntm-article-share [hidden],
.ntm-article-share .ntm-article-share__copy[hidden] {
	display: none;
}

.ntm-article-share__url {
	width: 100%;
	padding: 0.45rem 0.6rem;
}

.ntm-article-share__feedback {
	margin: 0;
	font-size: 0.875rem;
}

.ntm-article-share__feedback:not(:empty) {
	padding: 0.25rem 0.65rem 0.55rem;
}
