.lightshare-container {
	margin: 20px 0;
	clear: both;
}

.lightshare-label {
	display: block;
	margin-bottom: 10px;
	font-weight: bold;
	font-size: 0.9em;
}

.lightshare-nudge {
	margin: 0 0 10px 0;
	font-size: 0.9em;
	color: #555;
}

.lightshare-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.lightshare-button {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 4px;
	text-decoration: none !important;
	color: #fff !important;
	font-size: 14px;
	line-height: 1;
	transition: opacity 0.2s ease;
	border: none;
	box-shadow: none;
}

.lightshare-button:hover {
	opacity: 0.9;
	color: #fff !important;
}

.lightshare-icon {
	display: inline-flex;
	margin-right: 8px;
}

.lightshare-icon svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* Styles */

/* Rounded */
.lightshare-style-rounded .lightshare-button {
	border-radius: 20px;
}

/* Circle (Icon only usually, but let's adapt) */
.lightshare-style-circle .lightshare-button {
	border-radius: 50%;
	width: 40px;
	height: 40px;
	padding: 0;
	justify-content: center;
}

.lightshare-style-circle .lightshare-text {
	display: none;
}

.lightshare-style-circle .lightshare-icon {
	margin-right: 0;
}

/* Responsive */
@media (max-width: 480px) {
	.lightshare-text {
		display: none;
	}

	.lightshare-icon {
		margin-right: 0;
	}

	.lightshare-button {
		padding: 10px;
	}
}

/* Floating Bar */
.lightshare-floating {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	z-index: 9999;
	background: #fff;
	padding: 10px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	margin: 0; /* Reset default margin */
	opacity: 1;
	visibility: visible;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
}

.lightshare-floating.lightshare-floating-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.lightshare-floating.lightshare-floating-scroll-gated {
	display: none;
}

.lightshare-floating .lightshare-buttons {
	flex-direction: column;
	gap: 5px;
}

.lightshare-floating-left {
	left: 15px;
}

.lightshare-floating-right {
	right: 15px;
}

.lightshare-floating .lightshare-button {
	width: 40px;
	height: 40px;
	padding: 0;
	justify-content: center;
	border-radius: 4px;
}

.lightshare-floating.lightshare-style-rounded .lightshare-button,
.lightshare-floating.lightshare-style-circle .lightshare-button {
	border-radius: 50%;
}

.lightshare-floating-size-small .lightshare-button {
	width: 32px;
	height: 32px;
}

.lightshare-floating-size-medium .lightshare-button {
	width: 40px;
	height: 40px;
}

.lightshare-floating-size-large .lightshare-button {
	width: 48px;
	height: 48px;
}

.lightshare-floating-size-small .lightshare-icon svg {
	width: 14px;
	height: 14px;
}

.lightshare-floating-size-medium .lightshare-icon svg {
	width: 16px;
	height: 16px;
}

.lightshare-floating-size-large .lightshare-icon svg {
	width: 18px;
	height: 18px;
}

.lightshare-floating .lightshare-text,
.lightshare-floating .lightshare-label {
	display: none;
}

.lightshare-floating .lightshare-icon {
	margin: 0;
}

.lightshare-floating .lightshare-floating-count {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
	line-height: 1.1;
}

.lightshare-floating .lightshare-floating-count-value {
	font-size: 16px;
	font-weight: 700;
	color: #111;
}

.lightshare-floating .lightshare-floating-count-label {
	font-size: 11px;
	font-weight: 500;
	color: #666;
	text-transform: lowercase;
}

.lightshare-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(17, 17, 17, 0.9);
	color: #fff;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 13px;
	z-index: 99999;
	opacity: 0;
	transition: opacity 0.2s ease-in-out;
	pointer-events: none;
}

.lightshare-toast.is-visible {
	opacity: 1;
}

/* Hide on mobile if needed, or adjust */
@media (max-width: 767px) {
	.lightshare-floating.lightshare-floating-mobile-bottom.lightshare-floating-scroll-gated {
		display: none;
	}

	.lightshare-floating.lightshare-floating-mobile-bottom {
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		transform: none;
		border-radius: 0;
		width: 100%;
		padding: 15px 10px; /* larger touch target area */
		background: #fff;
		border-top: 1px solid #eee;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
	}

	.lightshare-floating.lightshare-floating-mobile-bottom
		.lightshare-floating-count {
		margin-bottom: 0;
	}

	.lightshare-floating.lightshare-floating-mobile-bottom .lightshare-buttons {
		flex-direction: row;
		justify-content: center;
	}

	.lightshare-floating.lightshare-floating-mobile-bottom .lightshare-button {
		flex: 0 0 auto;
	}

	.lightshare-floating.lightshare-floating-mobile-left {
		left: 10px;
		right: auto;
		top: 50%;
		bottom: auto;
		transform: translateY(-50%);
		width: auto;
	}

	.lightshare-floating.lightshare-floating-mobile-right {
		right: 10px;
		left: auto;
		top: 50%;
		bottom: auto;
		transform: translateY(-50%);
		width: auto;
	}

	/* Keep this last so mobile position classes cannot override it. */
	.lightshare-floating.lightshare-floating-hide-mobile {
		display: none !important;
	}
}
