.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 9999;
    background: var(--clinic-primary, #5C9DED);
    width: 44px;
    height: 44px;
    border-radius: 50px;
    transition: all 0.4s;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top i {
    font-size: 24px;
    color: #fff;
    line-height: 0;
    margin-top: 20px;
    margin-left: 4px;
}

.back-to-top:hover {
    background: var(--clinic-secondary, #48C9B0);
    color: #fff;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/* Mantém o atalho de topo fora da área clicável da Lumi. */
body:has(.qp-assistant) .back-to-top {
    right: 22px;
    bottom: 96px;
    z-index: 10010;
}

@media (max-width: 600px) {
    body:has(.qp-assistant) .back-to-top {
        right: 14px;
        bottom: 82px;
    }
}
