.spb-wrapper {
	position: fixed;
	bottom: 20px;
	z-index: 999999;
	direction: rtl;
	font-family: inherit;
}

.spb-wrapper.spb-right {
	direction: ltr;
}

.spb-toggle {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--spb-btn-bg, #25D366);
	color: var(--spb-btn-icon, #fff);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	position: relative;
}

.spb-toggle:hover {
	transform: scale(1.06);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.spb-toggle-icon {
	width: 26px;
	height: 26px;
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.spb-toggle-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.spb-toggle-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 50%;
}

.spb-icon-close {
	opacity: 0;
	transform: rotate(-90deg) scale(0.6);
}

.spb-wrapper.spb-open .spb-icon-open {
	opacity: 0;
	transform: rotate(90deg) scale(0.6);
}

.spb-wrapper.spb-open .spb-icon-close {
	opacity: 1;
	transform: rotate(0) scale(1);
}

.spb-panel {
	position: absolute;
	bottom: 68px;
	min-width: 220px;
	background: var(--spb-panel-bg, #fff);
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.spb-right .spb-panel {
	right: 0;
}

.spb-left .spb-panel {
	left: 0;
}

.spb-wrapper.spb-open .spb-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.spb-panel ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.spb-panel li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	text-decoration: none;
	color: var(--spb-link-text, #333);
	transition: background 0.2s ease;
	white-space: nowrap;
}

.spb-panel li a:hover {
	background: var(--spb-link-hover, #f2f2f2);
	color: var(--spb-link-text, #333);
}

.spb-icon {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	display: flex;
}

.spb-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.spb-label {
	font-size: 14px;
}

@media (max-width: 480px) {
	.spb-panel {
		min-width: 190px;
	}
}
