/**
 * EgniTech One — Scroll-to-Top Button
 *
 * @package EgniTech_One
 * @since   1.1.0
 */

.egnitech-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--wp--preset--color--contrast, #111);
    color: var(--wp--preset--color--base, #fff);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.egnitech-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.egnitech-scroll-top:hover {
    background: var(--wp--preset--color--accent, #00D4AA);
}

.egnitech-scroll-top:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent, #00D4AA);
    outline-offset: 2px;
}

.egnitech-scroll-top svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}