button.fgma-back-to-top {
    position: fixed;
    bottom: 0;
    right: var(--fgma-gutter);
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: var(--fgma-space-sm);
    padding: var(--fgma-space-xs);
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-color: #fff;
    color: #000;
    /*
     * R3.7Q-052: `font: inherit` (the previous rule here) inherits from `<body>` -- but Hello
     * Elementor's own `reset.css` sets `body`'s font-family to a plain system-UI stack, never
     * Avenir, and separately resets `button`/`input`/`select`/`textarea` to inherit that same
     * font-family from body -- so a button relying on inheritance always gets that system stack,
     * confirmed live (every other real component avoids this by setting `font-family` explicitly on
     * its own class, never relying on inheriting through `body`). Font-family/weight are now
     * explicit, using the same tokens/mapping as every other component (Production's "Avenir Book"
     * maps to `--fgma-font-family` at `--fgma-weight-book`) -- `font-size`/`line-height` are
     * unchanged, so the button's dimensions are untouched.
     */
    font-family: var(--fgma-font-family);
    font-weight: var(--fgma-weight-book);
    font-size: var(--fgma-step-1);
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.fgma-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/*
 * reset.css's `[type=button],[type=submit],button:hover/:focus` rule ties the class-selector
 * specificity of the base rule above, and loads after this stylesheet, so it wins the pink
 * background/text on hover and mouse-focus unless explicitly neutralized here at equal
 * specificity to the base rule.
 */
button.fgma-back-to-top:hover,
button.fgma-back-to-top:focus {
    background-color: #fff;
    color: #000;
}

button.fgma-back-to-top:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.fgma-back-to-top__icon {
    flex-shrink: 0;
    width: 1.15em;
    height: auto;
    transform: rotate(-90deg);
}

@media (prefers-reduced-motion: reduce) {
    button.fgma-back-to-top {
        transition: none;
    }
}
