.gta-sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--gta-header-background, #fff);
}

body.admin-bar .gta-sticky-header {
    top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 782px) {
    body.admin-bar .gta-sticky-header {
        top: var(--wp-admin--admin-bar--height, 46px);
    }
}

@media (max-width: 600px) {
    body.admin-bar .gta-sticky-header {
        top: 0;
    }
}

#gta-back-to-top {
    position: fixed;
    inset-inline-end: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 900;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #c6a35f;
    border-radius: 50%;
    background: #171717;
    color: #fff;
    font: 24px/1 system-ui, sans-serif;
    cursor: pointer;
}

#gta-back-to-top[hidden] {
    display: none;
}

#gta-back-to-top:hover {
    background: #333;
}

#gta-back-to-top:focus-visible {
    outline: 3px solid #c6a35f;
    outline-offset: 3px;
}
