.vel-scroll-top {
--vel-stt-size: 48px;
--vel-stt-size-mobile: 44px;
--vel-stt-right: 22px;
--vel-stt-bottom: 22px;
--vel-stt-right-mobile: 12px;
--vel-stt-bottom-mobile: 58px;
--vel-stt-bg: #f7f2e8;
--vel-stt-bg-hover: #eee4d3;
--vel-stt-icon: #30493d;
--vel-stt-border: #b79a5b;
--vel-stt-shadow: #30493d;
position: fixed !important;
right: var(--vel-stt-right) !important;
bottom: var(--vel-stt-bottom) !important;
left: auto !important;
z-index: 2147483000 !important;
display: grid !important;
width: var(--vel-stt-size) !important;
height: var(--vel-stt-size) !important;
min-width: 0 !important;
min-height: 0 !important;
margin: 0 !important;
padding: 0 !important;
place-items: center;
border: 1px solid var(--vel-stt-border) !important;
border-radius: 999px !important;
background: var(--vel-stt-bg) !important;
color: var(--vel-stt-icon) !important;
box-shadow: 0 5px 16px color-mix(in srgb, var(--vel-stt-shadow) 18%, transparent) !important;
cursor: pointer;
opacity: 0;
transform: translateY(9px) scale(.94);
visibility: hidden;
pointer-events: none;
-webkit-appearance: none;
appearance: none;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
isolation: isolate;
will-change: transform, opacity;
-webkit-transform: translateZ(0) translateY(9px) scale(.94);
transition: opacity .18s ease, transform .18s ease, visibility .18s ease, background-color .18s ease;
}
.vel-scroll-top.is-visible {
opacity: .92;
transform: translateY(0) scale(1);
-webkit-transform: translateZ(0) translateY(0) scale(1);
visibility: visible;
pointer-events: auto;
}
.vel-scroll-top:hover,
.vel-scroll-top:focus-visible {
background: var(--vel-stt-bg-hover) !important;
opacity: 1;
}
.vel-scroll-top:active,
.vel-scroll-top.is-pressed {
transform: scale(.95);
}
.vel-scroll-top:focus-visible {
outline: 3px solid rgba(183, 154, 91, .42);
outline-offset: 3px;
}
.vel-scroll-top__icon {
display: block;
width: 48%;
height: 48%;
overflow: visible;
}
.vel-scroll-top__icon path {
fill: none;
stroke: currentColor;
stroke-width: 1.9;
stroke-linecap: round;
stroke-linejoin: round;
}
@media (max-width: 767px) {
.vel-scroll-top {
right: max(var(--vel-stt-right-mobile), env(safe-area-inset-right, 0px)) !important;
bottom: max(var(--vel-stt-bottom-mobile), calc(env(safe-area-inset-bottom, 0px) + 18px)) !important;
width: var(--vel-stt-size-mobile) !important;
height: var(--vel-stt-size-mobile) !important;
box-shadow: 0 4px 12px rgba(48, 73, 61, .15) !important;
}
.vel-scroll-top.is-visible { opacity: .86; } .vel-scroll-top {
transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}
}
@media (prefers-reduced-motion: reduce) {
.vel-scroll-top { transition: none; }
}