/* Back-to-top button — gambling.dk */
.gdk-to-top {
	position: fixed;
	bottom: 1.25rem;
	right: 1.25rem;
	z-index: 1000;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #34b27b;
	color: var(--bg, #031c1c);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.gdk-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.gdk-to-top:hover {
	background: #4fcf93;
}

.gdk-to-top:focus-visible {
	outline: 2px solid var(--accent, #faebda);
	outline-offset: 2px;
}

.gdk-to-top svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

[dir="rtl"] .gdk-to-top {
	right: auto;
	left: 1.25rem;
}

@media (min-width: 768px) {
	.gdk-to-top {
		width: 48px;
		height: 48px;
		bottom: 1.75rem;
		right: 1.75rem;
	}

	[dir="rtl"] .gdk-to-top {
		right: auto;
		left: 1.75rem;
	}

	.gdk-to-top svg {
		width: 22px;
		height: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gdk-to-top,
	.gdk-to-top.is-visible {
		transition: opacity 0.15s linear;
		transform: none;
	}
}
