/* Go-Top 1.1.0 - Bricks Builder Element */

.brxe-go-top {
    position: fixed;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    border: 0;
    cursor: pointer;
    user-select: none;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background-color .2s ease;
}

.brxe-go-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Always visible in the builder so it can be selected and styled */
.bricks-is-frontend.brx-body.iframe .brxe-go-top,
body.iframe .brxe-go-top {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.brxe-go-top:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.brxe-go-top.bottom-right  { bottom: 24px; right: 24px; }
.brxe-go-top.bottom-left   { bottom: 24px; left: 24px; }
.brxe-go-top.bottom-center { bottom: 24px; left: 50%; transform: translate(-50%, 12px); }
.brxe-go-top.bottom-center.is-visible { transform: translate(-50%, 0); }

.brxe-go-top .go-top-icon {
    display: inline-flex;
    line-height: 1;
}

.brxe-go-top .go-top-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.brxe-go-top .gtt-text {
    line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
    .brxe-go-top { transition: none; }
}
