/* Shared pin / scroll-to-top button (one design for every page). Markup: <button id="scrollToTopBtn" class="tg-stt">, behaviour: assets/js/tg-scroll-top.js. Loaded by Web.Master. */
/* scroll to top: round button with a progress ring; appears after the first screens, fades out again at the top */
#scrollToTopBtn.tg-stt {
    position: fixed; bottom: 24px; right: 20px; left: auto; transform: translateY(12px); /* corner opposite the support button, never over the page content */
    z-index: 999; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.14);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s, box-shadow .2s ease, background .2s ease;
}
#scrollToTopBtn.tg-stt.show { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
#scrollToTopBtn.tg-stt:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.2); background: #378b95; }
#scrollToTopBtn.tg-stt:active { transform: translateY(-1px) scale(.96); }
[dir="rtl"] #scrollToTopBtn.tg-stt { right: auto; left: 20px; }
/* when the small offer button is showing in the same corner, the pin sits just above it */
@media (min-width: 769px) { body:has(#tgPromoWidget:not(.tgw-dismissed)) #scrollToTopBtn.tg-stt { bottom: 72px; } }
#scrollToTopBtn.tg-stt:focus-visible { outline: 3px solid #f5833d; outline-offset: 3px; }
#scrollToTopBtn.tg-stt .stt-ring, #scrollToTopBtn.tg-stt .stt-arrow { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
#scrollToTopBtn.tg-stt .stt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
#scrollToTopBtn.tg-stt .stt-track { fill: none; stroke: #e1ecee; stroke-width: 3; }
#scrollToTopBtn.tg-stt .stt-bar { fill: none; stroke: #378b95; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 131.95; stroke-dashoffset: 131.95; transition: stroke-dashoffset .15s linear, stroke .2s; }
#scrollToTopBtn.tg-stt .stt-arrow { position: relative; width: 22px; height: 22px; display: block; margin: auto; fill: none; stroke: #245f66; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
#scrollToTopBtn.tg-stt:hover .stt-arrow { stroke: #fff; }
#scrollToTopBtn.tg-stt:hover .stt-bar { stroke: #fff; }
#scrollToTopBtn.tg-stt:hover .stt-track { stroke: rgba(255,255,255,.35); }
@media (prefers-reduced-motion: reduce) { #scrollToTopBtn.tg-stt, #scrollToTopBtn.tg-stt .stt-bar { transition: none; } }
/* mobile: sits at the end edge, above the bottom bar (and the app banner when it is showing) */
@media (max-width: 768px) {
    #scrollToTopBtn.tg-stt {
        display: block !important; width: 44px; height: 44px;
        left: auto !important; right: 14px !important;
        bottom: calc(var(--tg-bottombar-height, 54px) + var(--tg-app-banner-height, 0px) + 14px + env(safe-area-inset-bottom, 0px));
        transform: translateY(12px); z-index: 9990;
    }
    [dir="rtl"] #scrollToTopBtn.tg-stt { left: 14px !important; right: auto !important; }
    #scrollToTopBtn.tg-stt.show { transform: translateY(0); }
    #scrollToTopBtn.tg-stt:hover { transform: translateY(0); background: #fff; }
    #scrollToTopBtn.tg-stt:hover .stt-arrow { stroke: #245f66; }
    #scrollToTopBtn.tg-stt:hover .stt-bar { stroke: #378b95; }
    #scrollToTopBtn.tg-stt:hover .stt-track { stroke: #e1ecee; }
    #scrollToTopBtn.tg-stt:active { transform: scale(.94); }
}

