/* HONCW – heart-shaped scroll-to-top button.
 * Was WPCode 135362, which restyled Astra's #ast-scroll-top. Hello Elementor has no such button,
 * so the theme now outputs its own (.honcw-scroll-top, see functions.php) with the same look. */

.honcw-scroll-top {
	position: fixed;
	right: 30px;
	bottom: 30px;
	z-index: 99;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	background: linear-gradient(145deg, #F46A92 0%, var(--honcw-pink, #EF4E7A) 55%, var(--honcw-rose, #E33268) 100%);
	color: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, visibility .2s ease, transform .2s ease, filter .2s ease;
}

.honcw-scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* Arrow with a stem, drawn as a mask. */
.honcw-scroll-top::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 24px;
	height: 24px;
	transform: translate(-50%, -46%);
	background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5.5 11.5L12 5l6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5.5 11.5L12 5l6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.honcw-scroll-top.is-visible:hover,
.honcw-scroll-top.is-visible:focus-visible {
	filter: brightness(.92);
	transform: scale(1.08);
}

.honcw-scroll-top:focus-visible {
	outline: 3px solid var(--honcw-plum, #381641);
	outline-offset: 4px;
}

@media (max-width: 544px) {
	.honcw-scroll-top {
		right: 16px;
		bottom: 16px;
		width: 64px;
		height: 64px;
	}
	.honcw-scroll-top::after {
		width: 22px;
		height: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.honcw-scroll-top {
		transition: opacity .2s ease, visibility .2s ease;
		transform: none;
	}
	.honcw-scroll-top.is-visible:hover,
	.honcw-scroll-top.is-visible:focus-visible {
		transform: none;
	}
}
