/* Back to top button. Colours follow the site's Elementor variables, with the brand values as fallback.
   button.szb-top outranks the theme's [type=button] reset (pink border and hover). */
button.szb-top {
	--szb-progress: 0;
	position: fixed;
	right: clamp(16px, 2.5vw, 32px);
	bottom: clamp(16px, 2.5vw, 32px);
	z-index: 90;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--zold-800, #2C3C16);
	color: var(--feher, #fff);
	box-shadow: none;
	cursor: pointer;
	opacity: 0;
	translate: 0 12px;
	pointer-events: none;
	transition: opacity .3s cubic-bezier(.22, .8, .3, 1), translate .3s cubic-bezier(.22, .8, .3, 1), background-color .25s;
}
button.szb-top.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.szb-top[hidden] { display: none; }
button.szb-top:hover,
button.szb-top:focus { background: var(--zold-600, #4A5F2A); color: var(--feher, #fff); border: 0; }
button.szb-top:focus-visible { outline: 3px solid var(--szena, #C8A252); outline-offset: 3px; }
.szb-top__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.szb-top__frame rect {
	fill: none;
	stroke: var(--szena, #C8A252);
	stroke-width: 3;
	stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - var(--szb-progress));
}
.szb-top__arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; transition: translate .3s cubic-bezier(.22, .8, .3, 1); }
.szb-top:hover .szb-top__arrow { translate: 0 -3px; }
@media (max-width: 767px) { button.szb-top { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .szb-top, .szb-top__arrow { transition: none; } }
@media print { .szb-top { display: none !important; } }
