/**
 * CAM Scroll Top — accent scroll-to-top button.
 * Injected by cam-scroll-top.js. Selectors are hardened because the Poco
 * theme ships global button rules (padding, min-width, radius, color) that
 * otherwise win over a plain class selector.
 */

html body .cam-scroll-top.cam-scroll-top {
    position: fixed !important;
    right: 24px !important;
    bottom: 96px !important;
    left: auto !important;
    top: auto !important;
    z-index: 9998 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;
    width: 48px !important;
    min-width: 0 !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 0 !important;
    max-height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 50% !important;
    background-color: #F4BB7A !important;
    background-image: none !important;
    color: #FFFFFF !important;
    line-height: 1 !important;
    font-size: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;

    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
    overflow: hidden !important;

    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(14px);
    pointer-events: none;

    box-shadow: 0 8px 20px rgba(244, 187, 122, 0.38) !important;
    transition:
        opacity 0.28s ease,
        transform 0.28s ease,
        visibility 0.28s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease !important;
}

html body .cam-scroll-top.cam-scroll-top.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    pointer-events: auto;
}

html body .cam-scroll-top.cam-scroll-top:hover,
html body .cam-scroll-top.cam-scroll-top.is-visible:hover {
    background-color: #EDC290 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(244, 187, 122, 0.5) !important;
}

html body .cam-scroll-top.cam-scroll-top:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(244, 187, 122, 0.4) !important;
}

html body .cam-scroll-top.cam-scroll-top:focus-visible {
    outline: 3px solid rgba(244, 187, 122, 0.55) !important;
    outline-offset: 3px;
}

html body .cam-scroll-top.cam-scroll-top svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    fill: none !important;
    pointer-events: none;
}

html body .cam-scroll-top.cam-scroll-top svg path {
    stroke: currentColor !important;
}

@media (max-width: 767px) {
    html body .cam-scroll-top.cam-scroll-top {
        right: 16px !important;
        bottom: 128px !important;
        width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        max-height: 44px !important;
    }

    html body .cam-scroll-top.cam-scroll-top svg {
        width: 20px !important;
        height: 20px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .cam-scroll-top.cam-scroll-top {
        transition: opacity 0.01s linear, visibility 0.01s linear !important;
    }
}
