/**
 * Back to Top button styles.
 *
 * @package Enhanced Caretaker
 */
html {
	scroll-behavior: smooth;
}

#ec-back-to-top {
	position: fixed;
	bottom: 28px;
	right: 28px;
	width: 44px;
	height: 44px;
	background: var(--ec-back-to-top-color, #0e7490);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
	z-index: 9999;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

#ec-back-to-top.ec-btt-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

#ec-back-to-top:hover,
#ec-back-to-top:focus {
	opacity: .85;
	outline: 2px solid var(--ec-back-to-top-color, #0e7490);
	outline-offset: 2px;
}

#ec-back-to-top svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.screen-reader-text {
	position: absolute;
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
}

@media (max-width: 600px) {
	#ec-back-to-top {
		bottom: 16px;
		right: 16px;
	}
}
