.het-scroll-top {
position: fixed;
right: 1.5rem;
bottom: 1.5rem;
z-index: 9999;
display: block;
box-sizing: border-box;
inline-size: 56px;
block-size: 56px;
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 {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
inline-size: 56px;
block-size: 56px;
width: 56px;
height: 56px;
min-width: 56px;
min-height: 56px;
max-width: 56px;
max-height: 56px;
aspect-ratio: 1 / 1;
cursor: pointer;
appearance: none;
background: rgba(126, 148, 146, 0.7);
color: #ffffff;
font-size: 20px;
line-height: 1;
box-sizing: border-box;
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
padding: 0;
margin: 0;
border: 0;
-webkit-tap-highlight-color: transparent;
}
.het-scroll-top-btn:hover {
background: rgba(126, 148, 146, 0.9);
color: #ffffff;
}
.het-scroll-top-btn:focus-visible {
outline: 2px solid currentColor;
outline-offset: 3px;
}
.het-shape-round {
border-radius: 50%;
}
.het-shape-square {
border-radius: 8px;
}
.het-scroll-top-icon {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
inline-size: 100%;
block-size: 100%;
width: 100%;
height: 100%;
flex: none;
line-height: 1;
text-align: center;
pointer-events: none;
transform: none;
}
.het-icon {
display: inline-block;
position: relative;
box-sizing: border-box;
flex: 0 0 auto;
line-height: 1;
} .het-icon-divi-chevron-up {
position: absolute;
left: 50%;
top: 50%;
display: block;
width: 28px;
height: 28px;
transform: translate(-50%, calc(-50% + 3px));
}
.het-icon-divi-chevron-up svg {
display: block;
width: 100%;
height: 100%;
overflow: hidden;
}
.het-icon-divi-chevron-up path {
fill: none;
stroke: currentColor;
stroke-width: 4px;
stroke-linecap: round;
stroke-linejoin: round;
} .het-icon-chevron-up {
position: absolute;
left: 50%;
top: 50%;
width: 28px;
height: 28px;
transform: translate(-50%, calc(-50% + 3px));
}
.het-icon-chevron-up::before {
content: '';
position: absolute;
left: 50%;
top: 50%;
width: 13px;
height: 13px;
border-top: 4px solid currentColor;
border-left: 4px solid currentColor;
border-radius: 2px 0 0 0;
transform: translate(-50%, -42%) rotate(45deg);
} .het-icon-arrow-up::before {
content: '↑';
display: block;
font-size: 1.4em;
line-height: 1;
} .het-icon-thin-arrow-up {
width: 20px;
height: 22px;
}
.het-icon-thin-arrow-up::before,
.het-icon-thin-arrow-up::after {
content: '';
position: absolute;
left: 50%;
background: currentColor;
border-radius: 999px;
transform-origin: center;
}
.het-icon-thin-arrow-up::before {
bottom: 2px;
width: 3px;
height: 17px;
transform: translateX(-50%);
}
.het-icon-thin-arrow-up::after {
top: 3px;
width: 13px;
height: 3px;
transform: translateX(-50%) rotate(45deg);
box-shadow: -5px 5px 0 currentColor;
} .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-double-chevron-up {
width: 22px;
height: 22px;
}
.het-icon-double-chevron-up::before,
.het-icon-double-chevron-up::after {
content: '';
position: absolute;
left: 50%;
width: 13px;
height: 13px;
border-top: 3px solid currentColor;
border-left: 3px solid currentColor;
border-radius: 2px 0 0 0;
transform: translateX(-50%) rotate(45deg);
}
.het-icon-double-chevron-up::before {
top: 2px;
}
.het-icon-double-chevron-up::after {
top: 9px;
} .het-icon-caret-up::before {
content: '';
display: block;
width: 0;
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 12px 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: calc(1rem + env(safe-area-inset-right, 0px));
bottom: 1rem;
inline-size: 48px;
block-size: 48px;
}
.het-scroll-top-btn {
inline-size: 48px;
block-size: 48px;
width: 48px;
height: 48px;
min-width: 48px;
min-height: 48px;
max-width: 48px;
max-height: 48px;
font-size: 18px;
}
}