#buttonbar {
    position: fixed;
    right: 0;
    bottom: 80px;
    font-size: 16px;
    transition: transform 700ms ease;
    transform: translate(0);
    z-index: 999;
}

#buttonbar.collapsed {
    transform: translate(calc(100% - 80px));
}

#buttonbar a {
    color: #fff !important;
}

#buttonbar ul,
#buttonbar li {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}

#buttonbar li::before {
    content: "";
}



#buttonbar .collapsed-show {
    display: none;
}

#buttonbar.collapsed .collapsed-show {
    display: unset;
}

#buttonbar .collapsed-hidden {
    display: unset;
}

#buttonbar.collapsed .collapsed-hidden {
    display: none;
}




#buttonbar .help-header {
    border-bottom: 1px solid #fff;
    font-size: 14px;
    padding: 0.5rem 0;
    cursor: pointer;
}

#buttonbar .help-header:focus {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

#buttonbar .help-header:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

#buttonbar .help-header-arrow {
    position: relative;
    top: 1px;
    width: 80px;
    display: inline-block;
    padding-left: 10px;
}

#buttonbar .help-header-text {
    transform: translate(0);
    /*width: calc(100% - 80px);*/
    display: inline-block;
    text-align: right;
    padding-right: 5px;
    transition: transform 700ms ease;
}

#buttonbar.collapsed .help-header-text {
    transform: translate(calc(-100%));
}




#buttonbar .help-content {
    padding: 1rem 0;
}

#buttonbar .help-item>a {
    display: block;
    text-align: left;
    width: 100%;
    height: 100%;
    padding: 5px 15px 5px 0;
}

#buttonbar .help-item>a:hover {
    color: #eee !important;
}

#buttonbar .help-item-icon {
    position: relative;
    top: -5px;
    width: 80px;
    text-align: center;
    display: inline-block;
    font-size: 20px;
}

#buttonbar .help-item-text {
    width: auto;
    overflow: hidden;
    transition: all 1s ease;
    display: inline-block;
}



/* smaller than ipad - portrait */
@media screen and (max-width: 767px) {
    footer .footer-buttonbar {
        height: 80px;
    }

    a.back-to-top {
        bottom: calc(0.5rem + 80px);
    }

    #buttonbar {
        position: fixed;
        right: 0;
        left: 0;
        bottom: 0;
        font-size: 16px;
        transition: none;
        border-top: 1px solid #fff;
    }

    #buttonbar.collapsed {
        transform: none;
    }


    #buttonbar .help-header {
        display: none;
    }

    #buttonbar .help-content {
        padding: 0.5rem 15px;
        display: flex;
        justify-content: space-evenly;
        align-items: flex-start;
        flex-wrap: nowrap;
    }

    #buttonbar .help-item>a {
        text-align: center;
        padding: 0 5px;
    }

    #buttonbar .help-item-icon {
        position: relative;
        width: auto;
        text-align: center;
        display: block;
        font-size: 20px;
    }

    #buttonbar .help-item-text {
        font-size: 13px;
        transition: none;
        display: block;
    }
}