.adb-copy-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-inline-start: 0.5em;
	padding: 0.15em 0.35em;
	border: 0;
	border-radius: 0.2em;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	opacity: 0.7;
	vertical-align: middle;
	transition: opacity 120ms ease, background-color 120ms ease;
}

.adb-copy-link__icon {
	display: block;
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

@media (hover: hover) {
	.adb-copy-link--hover-only {
		visibility: hidden;
	}

	.wp-block-details > summary:hover > .adb-copy-link--hover-only,
	.wp-block-details > summary:focus-within > .adb-copy-link--hover-only,
	main h2:hover > .adb-copy-link--hover-only,
	main h2:focus-within > .adb-copy-link--hover-only,
	main h3:hover > .adb-copy-link--hover-only,
	main h3:focus-within > .adb-copy-link--hover-only,
	main h4:hover > .adb-copy-link--hover-only,
	main h4:focus-within > .adb-copy-link--hover-only,
	.adb-copy-link--hover-only:focus-visible,
	.adb-copy-link--hover-only.is-copied {
		visibility: visible;
	}
}

.adb-copy-link:hover,
.adb-copy-link:focus-visible,
.adb-copy-link.is-copied {
	opacity: 1;
	background-color: color-mix(in srgb, currentColor 10%, transparent);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
