/**
 * Share Counter Social — flex column for sidebars, row for bottom; all auto bars float fixed to viewport.
 */

.scs-share-bar {
	--scs-button-size: 48px;
	--scs-radius: 8px;
	--scs-gap: 0.5rem;
	--scs-custom-color: #1877f2;
	box-sizing: border-box;
}

.scs-share-bar *,
.scs-share-bar *::before,
.scs-share-bar *::after {
	box-sizing: border-box;
}

/* Floating vertical sidebar */
.scs-share-bar--vertical.scs-is-vertical {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	z-index: 99990;
	max-height: 90vh;
	overflow: auto;
	padding: 0.75rem;
}

.scs-share-bar--vertical.scs-is-fixed-left {
	left: 0.75rem;
}

.scs-share-bar--vertical.scs-is-fixed-right {
	right: 0.75rem;
}

/* Floating horizontal bar (all horizontal placements) */
.scs-share-bar--horizontal.scs-is-horizontal.scs-is-floating-bottom {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	margin: 0;
	padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, 0.96);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.scs-share-bar--horizontal.scs-sticky-mobile {
	padding-bottom: calc(0.65rem + env(safe-area-inset-bottom));
}

/* Inline / shortcode — not fixed */
.scs-share-bar--inline.scs-share-bar--horizontal {
	position: relative;
	left: auto;
	right: auto;
	bottom: auto;
	width: 100%;
	clear: both;
	margin-top: 1.5rem;
	padding: 0.75rem 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

.scs-share-bar__inner {
	display: flex;
	align-items: center;
	gap: var(--scs-gap);
}

.scs-share-bar--vertical .scs-share-bar__inner {
	flex-direction: column;
}

.scs-share-bar--horizontal .scs-share-bar__inner {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
}

.scs-share-bar--horizontal.scs-is-floating-bottom .scs-share-bar__inner {
	justify-content: center;
}

.scs-share-count {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 3.5rem;
	font-size: 0.75rem;
	line-height: 1.2;
	color: #1d2327;
}

.scs-share-count__value {
	font-size: 1.25rem;
	font-weight: 700;
}

.scs-share-buttons {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: var(--scs-gap);
	flex-direction: inherit;
	align-items: center;
	justify-content: inherit;
}

.scs-share-bar--vertical .scs-share-buttons {
	flex-direction: column;
}

.scs-share-bar--horizontal .scs-share-buttons {
	flex-direction: row;
	flex-wrap: wrap;
}

.scs-share-buttons__item {
	margin: 0;
	padding: 0;
}

.scs-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--scs-button-size);
	height: var(--scs-button-size);
	color: #fff;
	text-decoration: none;
	transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.scs-shape--rectangle .scs-share-btn {
	width: calc(var(--scs-button-size) * 1.85);
	min-width: calc(var(--scs-button-size) * 1.6);
	padding: 0 0.65rem;
}

.scs-share-btn:hover,
.scs-share-btn:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scs-theme--official .scs-share-btn {
	background-color: var(--scs-btn-official, #555);
}

.scs-theme--custom .scs-share-btn {
	background-color: var(--scs-custom-color);
}

.scs-size--small {
	--scs-button-size: 32px;
}

.scs-size--medium {
	--scs-button-size: 48px;
}

.scs-size--large {
	--scs-button-size: 64px;
}

.scs-shape--square .scs-share-btn {
	border-radius: 0;
}

.scs-shape--rounded .scs-share-btn {
	border-radius: var(--scs-radius);
}

.scs-shape--circle .scs-share-btn {
	border-radius: 50%;
}

/* Rectangle: wider control with modest corner radius */
.scs-shape--rectangle .scs-share-btn {
	border-radius: var(--scs-radius);
}

.scs-share-btn__icon svg {
	display: block;
	width: 55%;
	height: 55%;
}

body.scs-share-float-bottom {
	padding-bottom: 5.75rem;
}

@media (prefers-reduced-motion: reduce) {
	.scs-share-btn {
		transition: none;
	}
}
