#gg-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 52px;
	height: 52px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #FFFFFF;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	box-shadow: 0 4px 14px rgba(52, 30, 80, 0.35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px) scale(0.9);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.2s ease;
}

#gg-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

#gg-back-to-top:hover,
#gg-back-to-top:focus-visible {
	background: #F2F2F2;
}

#gg-back-to-top:focus-visible {
	outline: 2px solid #4E386C;
	outline-offset: 3px;
}

.gg-btt-ring {
	position: absolute;
	top: 0;
	left: 0;
	width: 52px;
	height: 52px;
	transform: rotate(-90deg);
	pointer-events: none;
}

.gg-btt-ring-track {
	fill: none;
	stroke: rgba(78, 56, 108, 0.15);
	stroke-width: 3;
}

.gg-btt-ring-progress {
	fill: none;
	stroke: url(#gg-btt-gradient);
	stroke-width: 3;
	stroke-linecap: round;
	transition: stroke-dashoffset 0.1s linear;
}

.gg-btt-icon {
	position: relative;
	display: flex;
	color: #4E386C;
}

#gg-back-to-top:hover .gg-btt-icon {
	color: #341E50;
}

@media (max-width: 768px) {
	#gg-back-to-top,
	.gg-btt-ring {
		width: 46px;
		height: 46px;
	}

	#gg-back-to-top {
		right: 16px;
		bottom: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#gg-back-to-top {
		transition: opacity 0.2s ease;
		transform: none !important;
	}
}
