/* prevents target to be pushed down via body padding top */
#ekesto-to-the-top-target {
    position: absolute;
    top: 0;
}

.ekesto-to-the-top {
    --ekttt-size: 2.75rem;
    --ekttt-offset: 1rem;
    --ekttt-bg: rgba(17, 24, 39, 0.9);
    --ekttt-color: #ffffff;

    position: fixed;
    right: var(--ekttt-offset);
    bottom: var(--ekttt-offset);
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--ekttt-size);
    height: var(--ekttt-size);
    border-radius: 999px;
    background: var(--ekttt-bg);
    color: var(--ekttt-color);
    text-decoration: none;
    box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.5rem);
    transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
}

.ekesto-to-the-top::before {
    content: '';
    width: 0.65rem;
    height: 0.65rem;
    border-top: 0.125rem solid currentColor;
    border-right: 0.125rem solid currentColor;
    transform: translateY(0.125rem) rotate(-45deg);
}

.ekesto-to-the-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

.ekesto-to-the-top:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.ekesto-to-the-top__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .ekesto-to-the-top {
        transition: none;
        transform: none;
    }
}
