/* Back to Top V2 - Floating Button Design */
.scroll-top-btn-v2 {
	position: fixed;
	bottom: 75px;
	right: 10px;
	width: 56px;
	height: 56px;
	background: var(--sc-back-to-top-v2-scroll-top-btn-v2-bg, var(--primary-brand-color));
	color: var(--sc-back-to-top-v2-scroll-top-btn-v2-text, var(--primary-button-text-color));
	border: none;
	border-radius: 50%;
	cursor: pointer;
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px) scale(0.8);
	transition: bottom 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	will-change: transform, opacity;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

.scroll-top-btn-v2.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.scroll-top-btn-v2:hover {
	background: var(--sc-back-to-top-v2-scroll-top-btn-v2-hover-bg, var(--primary-button-hover-background-color));
	transform: translateY(-4px) scale(1.05);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn-v2:active {
	transform: translateY(-2px) scale(0.98);
}

.scroll-top-btn-v2 i {
	transition: transform 0.3s ease;
}

.scroll-top-btn-v2:hover i {
	transform: translateY(-2px);
}

/* Push up when fixed action bar is visible - matches WhatsApp push-up */
.scroll-top-btn-v2.push-up {
	bottom: 165px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.scroll-top-btn-v2 {
		bottom: 125px;
		width: 50px;
		height: 50px;
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	.scroll-top-btn-v2 {
		bottom: 121px;
		width: 48px;
		height: 48px;
		font-size: 16px;
	}
}

/* RTL Support - Same side as WhatsApp (left in RTL) */
[dir="rtl"] .scroll-top-btn-v2 {
	right: auto;
	left: 10px;
}

@media (max-width: 768px) {
	[dir="rtl"] .scroll-top-btn-v2 {
		right: auto;
	}
}

@media (max-width: 480px) {
	[dir="rtl"] .scroll-top-btn-v2 {
		right: auto;
	}
}

