
/*
  Floating utility layout
  Prevents Search, Ask Sanmarris, reCAPTCHA and Back-to-top controls
  from competing for the same bottom-right position.
*/

/* reCAPTCHA: move Google's badge away from the site's utility stack. */
.grecaptcha-badge{
    left: 14px !important;
    right: auto !important;
    bottom: 14px !important;
    z-index: 1030 !important;
}

/* Keep Sanmarris AI as the primary bottom-right action. */
.sc-ai-launcher,
.sc-ai-assistant-launcher,
#scAiLauncher,
#aiAssistantLauncher,
[data-ai-launcher]{
    right: 22px !important;
    bottom: 22px !important;
    z-index: 1060 !important;
}

/* Search sits clearly above AI rather than overlapping it. */
.sc-search-launcher,
.sc-search-trigger,
#scSearchLauncher,
[data-search-launcher]{
    right: 22px !important;
    bottom: 88px !important;
    z-index: 1055 !important;
}

/* Back-to-top becomes a small secondary control above the utility stack. */
.back-to-top,
.scroll-to-top,
.scroll-top,
#backToTop,
#scrollUp,
#gotoTop,
.sm-gotop{
    right: 26px !important;
    bottom: 148px !important;
    width: 40px !important;
    height: 40px !important;
    z-index: 1045 !important;
}

/* Compact mobile stack. */
@media (max-width: 767.98px){
    .grecaptcha-badge{
        left: 8px !important;
        bottom: 8px !important;
        transform: scale(.78);
        transform-origin: left bottom;
    }

    .sc-ai-launcher,
    .sc-ai-assistant-launcher,
    #scAiLauncher,
    #aiAssistantLauncher,
    [data-ai-launcher]{
        right: 12px !important;
        bottom: 14px !important;
    }

    .sc-search-launcher,
    .sc-search-trigger,
    #scSearchLauncher,
    [data-search-launcher]{
        right: 12px !important;
        bottom: 74px !important;
    }

    .back-to-top,
    .scroll-to-top,
    .scroll-top,
    #backToTop,
    #scrollUp,
#gotoTop,
.sm-gotop{
        right: 16px !important;
        bottom: 132px !important;
        width: 36px !important;
        height: 36px !important;
    }
}
