/**
 * @package     Panky.Plugin
 * @subpackage  System.Pwsmoothscroll
 * @copyright   (C) 2020-2026 Panky. All rights reserved.
 * @license     GNU General Public License version 2 or later
 */

#pwsmoothscroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.1s linear;
}

#pwsmoothscroll-progress.position-bottom {
    top: auto;
    bottom: 0;
}

#pwsmoothscroll-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#pwsmoothscroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#pwsmoothscroll-top.position-left {
    right: auto;
    left: 2rem;
}

#pwsmoothscroll-top:hover,
#pwsmoothscroll-top:focus {
    background: rgba(0, 0, 0, 0.75);
    outline: none;
}
