/**
 *
 * Forum SEO. An extension for the phpBB Forum Software package.
 *
 * @copyright (c) 2025, Stoker, https://phpbb3bbcodes.com
 * @license GNU General Public License, version 2 (GPL-2.0)
 *
 */

.forumseo-share {
	position: relative;
	display: inline-block;
	vertical-align: middle;
}

.forumseo-share-toggle {
	cursor: pointer;
}

.forumseo-share-toggle svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
	vertical-align: middle;
}

/* Visually hidden label kept for screen readers */
.forumseo-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;
}

.forumseo-share-menu {
	position: absolute;
	z-index: 100;
	right: 0;
	top: 100%;
	margin-top: 4px;
	min-width: 230px;
	padding: 12px;
	background: #fff;
	color: #333;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	text-align: left;
}

.forumseo-share-menu[hidden] {
	display: none;
}

.forumseo-share-heading {
	margin: 0 0 10px;
	padding: 0px;
	padding-bottom: 4px;
	font-size: 1.5em;
	line-height: 1;
	color: #47a7eb;
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.forumseo-share-networks {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.forumseo-share-net {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.15);
	color: #333;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.forumseo-share-net:hover,
.forumseo-share-net:focus {
	background: rgba(0, 0, 0, 0.06);
	text-decoration: none;
}

.forumseo-share-net svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.forumseo-share-copy {
	display: flex;
	align-items: stretch;
}

.forumseo-share-copy-btn {
	flex: 0 0 auto;
	border-radius: 3px 0 0 3px;
}

.forumseo-share-url {
	flex: 1 1 auto;
	min-width: 0;
	padding: 5px 7px;
	font-size: 0.9em;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-left: 0;
	border-radius: 0 3px 3px 0;
	background: #f7f7f7;
	color: #333;
}