/* WP Social Share — frontend styles */

:root {
	--wss-gap: 8px;
	--wss-radius-round: 50%;
	--wss-radius-square: 2px;
	--wss-radius-rounded-square: 8px;
}

.wss-share-wrap {
	margin: 20px 0;
	clear: both;
}

.wss-button-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wss-gap);
	margin: 0;
	padding: 0;
}

.wss-button-item {
	margin: 0;
	padding: 0;
}

.wss-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-decoration: none;
	color: #fff;
	background: #666;
	padding: 0 12px;
	height: 40px;
	min-width: 40px;
	line-height: 1;
	font-size: 13px;
	font-weight: 600;
	border-radius: var(--wss-radius-round);
	transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.wss-button:hover,
.wss-button:focus {
	transform: translateY(-2px);
	opacity: .92;
	color: #fff;
	box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

.wss-shape-square .wss-button { border-radius: var(--wss-radius-square); }
.wss-shape-rounded-square .wss-button { border-radius: var(--wss-radius-rounded-square); }

/* Icon-only buttons stay perfectly circular/square */
.wss-style-icon .wss-button {
	width: 40px;
	padding: 0;
}

.wss-size-small .wss-button { height: 32px; min-width: 32px; font-size: 11px; }
.wss-size-small.wss-style-icon .wss-button { width: 32px; }
.wss-size-large .wss-button { height: 48px; min-width: 48px; font-size: 15px; }
.wss-size-large.wss-style-icon .wss-button { width: 48px; }

.wss-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	display: block;
}
.wss-size-small .wss-icon svg { width: 14px; height: 14px; }
.wss-size-large .wss-icon svg { width: 22px; height: 22px; }

.wss-color-mono .wss-button { background: #4a4a4a !important; }

.wss-count {
	font-weight: 400;
	opacity: .9;
	font-size: .85em;
}

.wss-total-count {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 10px;
}
.wss-total-number { font-size: 22px; font-weight: 700; }
.wss-total-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; opacity: .6; }

/* Copy link "copied" tooltip */
.wss-network-copy { position: relative; }
.wss-copied-tooltip {
	position: absolute;
	bottom: 110%;
	left: 50%;
	transform: translateX(-50%);
	background: #222;
	color: #fff;
	font-size: 11px;
	padding: 4px 8px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
}
.wss-copied-tooltip.wss-visible { opacity: 1; }

/* --- Floating bar --- */
.wss-context-floating {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	z-index: 9999;
	margin: 0;
	background: rgba(255,255,255,.9);
	backdrop-filter: blur(4px);
	padding: 10px 6px;
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.wss-context-floating .wss-button-list { flex-direction: column; }
.wss-floating-left { left: 16px; }
.wss-floating-right { right: 16px; }

@media (max-width: 782px) {
	.wss-floating-mobile-hide { display: none; }

	.wss-floating-mobile-bottom {
		position: fixed;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		transform: none;
		width: 100%;
		border-radius: 0;
		padding: 8px 10px;
		display: flex;
		justify-content: center;
	}
	.wss-floating-mobile-bottom .wss-button-list {
		flex-direction: row;
		width: 100%;
		justify-content: space-around;
	}
	.wss-floating-mobile-bottom .wss-total-count { display: none; }

	.wss-floating-mobile-left { left: 8px; right: auto; }
	.wss-floating-mobile-right { right: 8px; left: auto; }
}

/* Print button hides itself in the actual print stylesheet */
@media print {
	.wss-share-wrap { display: none !important; }
}
