
/* copied from the search/aggregator component go-to-top button */
.aem-Grid:has(.gototop) {
    position: relative;
}

.gototop {
    background-color: transparent !important;
    width: 50px !important;
    z-index: 99;
}

.gototop, .cmp-gototop {
    position: absolute;
    margin: 0;
    top: auto;
    bottom: 20px;
    right: 60px;

    width: 50px;
    height: 50px;
    background: #CCC;
    border-radius: 50px;
    cursor: pointer;
    transition: all .25s;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.cmp-gototop {
    opacity: 1;
}

/* every major browser that supports sticky also support CSS.supports API */
@supports (position: sticky) {
    .gototop, .cmp-gototop.sticky {
        position: sticky;
        top: calc(100vh - 75px);
        margin-left: calc(100% - 60px);
        margin-top: -60px;
        margin-bottom: 10px;
    }
}

.cmp-gototop__arrow {
    border-top: 3px solid #000;
    border-left: 3px solid #000;
    width: 20px;
    height: 20px;
    transition: all .25s;
    transform: rotate(45deg) translate(3px, 3px);
}

.cmp-gototop:hover {
    background: rgba(173, 173, 173, 0.9);
}

.cmp-gototop:hover > .cmp-gototop__arrow {
    transform: rotate(45deg) translate(0, 0);
}