/* Easy Social Share Buttons — front-end styles */

.essb-wrap {
	margin: 24px 0;
	clear: both;
}

.essb-heading {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.essb-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.essb-align-center .essb-list { justify-content: center; }
.essb-align-right .essb-list { justify-content: flex-end; }

.essb-item { margin: 0; }

.essb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-decoration: none;
	color: #fff;
	background: var(--essb-color, #333);
	border: none;
	cursor: pointer;
	font-family: inherit;
	line-height: 1;
	transition: opacity .15s ease, transform .15s ease;
	padding: 10px;
}
.essb-btn:hover { opacity: .85; transform: translateY(-1px); color:#fff; }

.essb-icon {
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.essb-icon-img {
	width: 18px;
	height: 18px;
	object-fit: cover;
	display: block;
}
.essb-size-small .essb-icon-img { width: 14px; height: 14px; }
.essb-size-medium .essb-icon-img { width: 18px; height: 18px; }
.essb-size-large .essb-icon-img { width: 22px; height: 22px; }

/* Icon corner roundness (applies to custom uploaded icon images) */
.essb-icon-radius-none .essb-icon-img { border-radius: 0; }
.essb-icon-radius-slight .essb-icon-img { border-radius: 4px; }
.essb-icon-radius-rounded .essb-icon-img { border-radius: 10px; }
.essb-icon-radius-full .essb-icon-img { border-radius: 50%; }

.essb-label {
	font-size: 13px;
	white-space: nowrap;
}

/* Shapes */
.essb-style-circle .essb-btn { border-radius: 50%; }
.essb-style-rounded .essb-btn { border-radius: 8px; }
.essb-style-square .essb-btn { border-radius: 0; }

/* Sizes (width/height apply mainly when there is no label) */
.essb-size-small .essb-btn { width: 32px; height: 32px; font-size: 12px; }
.essb-size-medium .essb-btn { width: 40px; height: 40px; font-size: 14px; }
.essb-size-large .essb-btn { width: 48px; height: 48px; font-size: 16px; }

.essb-context-inline .essb-btn:has(.essb-label),
.essb-context-shortcode .essb-btn:has(.essb-label) {
	width: auto;
	border-radius: 6px;
	padding: 8px 14px;
}

/* Mono color scheme forces a single flat color already via --essb-color inline style */

/* Floating bar */
.essb-context-floating {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	z-index: 9999;
	margin: 0;
}
.essb-floating-left { left: 0; }
.essb-floating-right { right: 0; }
.essb-context-floating .essb-list {
	flex-direction: column;
}
.essb-context-floating .essb-btn { border-radius: 0; }
.essb-floating-left .essb-item:first-child .essb-btn { border-top-right-radius: 6px; }
.essb-floating-right .essb-item:first-child .essb-btn { border-top-left-radius: 6px; }
.essb-floating-left .essb-item:last-child .essb-btn { border-bottom-right-radius: 6px; }
.essb-floating-right .essb-item:last-child .essb-btn { border-bottom-left-radius: 6px; }

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

/* Copy link confirmation toast */
.essb-copied-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	background: #222;
	color: #fff;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 14px;
	z-index: 100000;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
}
.essb-copied-toast.essb-show { opacity: 1; }
