/**
 * ACSD Core - Back to Top Button
 *
 * @package ACSD
 */

.acsd-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0 !important;
    border: none;
    border-radius: 6px;
    background: var(--acsd-btt-bg, #667eea) !important;
    color: var(--acsd-btt-icon, #ffffff) !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

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

.acsd-back-to-top:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.acsd-back-to-top.is-visible:hover {
    transform: translateY(-2px);
}

.acsd-back-to-top:focus-visible {
    outline: 2px solid var(--acsd-btt-bg, #667eea);
    outline-offset: 3px;
}

.acsd-back-to-top svg {
    display: block;
    width: 20px;
    height: 20px;
}

@media (max-width: 782px) {
    .acsd-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .acsd-back-to-top svg {
        width: 18px;
        height: 18px;
    }
}
