/**
 * Back to Top Button
 * @package Theme_352
 * @since 2.0.0
 */

.back-to-top {
    position: fixed;
    bottom: var(--theme-352-space-8);
    right: var(--theme-352-space-8);
    z-index: var(--theme-352-z-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: var(--theme-352-primary);
    color: var(--theme-352-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--theme-352-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--theme-352-transition-normal);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--theme-352-primary-dark);
    transform: translateY(-4px);
}

.back-to-top:focus {
    outline: 2px solid var(--theme-352-accent);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .back-to-top {
        bottom: var(--theme-352-space-4);
        right: var(--theme-352-space-4);
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}

@media print {
    .back-to-top {
        display: none !important;
    }
}
