/**
 * Trickybytes scroll-to-top — above drawer (z-index 1000) and hero layers.
 */
#tb-scroll-top.tb-scroll-top {
	position: fixed;
	right: max(24px, env(safe-area-inset-right));
	bottom: max(24px, env(safe-area-inset-bottom));
	z-index: 100050;
	width: 48px;
	height: 48px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #ff711d;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

#tb-scroll-top.tb-scroll-top:hover {
	transform: translateY(-3px);
	background: #e65f10;
}

#tb-scroll-top.tb-scroll-top:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

#tb-scroll-top.tb-scroll-top[hidden] {
	display: none !important;
}

/* Admin bar offsets */
body.admin-bar #tb-scroll-top.tb-scroll-top {
	bottom: max(40px, env(safe-area-inset-bottom));
}

@media screen and (max-width: 782px) {
	body.admin-bar #tb-scroll-top.tb-scroll-top {
		bottom: max(56px, env(safe-area-inset-bottom));
	}
}
