.het-scroll-top {
position: fixed;
right: 1.5rem;
bottom: 1.5rem;
z-index: 9999;
opacity: 0;
visibility: hidden;
transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
transform: translateY(10px);
pointer-events: none;
}
.het-scroll-top.het-visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
pointer-events: auto;
}
.het-scroll-top-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
cursor: pointer;
background: transparent;
color: var(--e-global-color-primary, rgba(0, 0, 0, 0.9));
font-size: 20px;
line-height: 1;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
padding: 0;
border: 2px solid currentColor;
-webkit-tap-highlight-color: transparent;
}
.het-scroll-top-btn:hover {
background: currentColor;
color: #ffffff;
}
.het-scroll-top-btn:focus-visible {
outline: 2px solid currentColor;
outline-offset: 3px;
}
.het-shape-round {
border-radius: 999px;
}
.het-shape-square {
border-radius: 0;
}
.het-scroll-top-icon {
display: inline-flex;
align-items: center;
justify-content: center;
transform: none;
}
.het-icon {
display: inline-block;
position: relative;
} .het-icon-arrow-up::before {
content: '↑';
display: block;
font-size: 1.4em;
line-height: 1;
} .het-icon-triangle-up::before {
content: '';
display: block;
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 12px solid currentColor;
margin-top: 2px;
} .het-icon-block-arrow-up {
width: 18px;
height: 18px;
}
.het-icon-block-arrow-up::before,
.het-icon-block-arrow-up::after {
content: '';
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.het-icon-block-arrow-up::before {
top: 7px;
width: 4px;
height: 8px;
background: currentColor;
border-radius: 2px;
}
.het-icon-block-arrow-up::after {
top: 1px;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
border-bottom: 8px solid currentColor;
} .het-icon-text {
font-size: 1.1em;
font-weight: 600;
line-height: 1;
} .het-icon-image img {
display: block;
max-width: 20px;
max-height: 20px;
width: auto;
height: auto;
} @media (max-width: 767px) {
.het-scroll-top {
right: 1rem;
bottom: 1rem;
}
.het-scroll-top-btn {
width: 40px;
height: 40px;
font-size: 18px;
}
}