
.utility-bar {
    position: fixed;
    bottom: 0.5rem;
    left: 0.5rem;
    width: calc(100% - 1rem);
    min-height: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    z-index: 99;
    /*height: 1.6rem;*/
}

.utility-bar > * {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.3rem;
    text-transform: uppercase;
}


.utility-bar .menu-wrp {
    position: relative;
    display: flex;
}


.utility-bar .menu-wrp .util-menu {
    display: flex;
    position: absolute;
    bottom: 1.7rem;
    right: 0;
    width: fit-content;
    flex-direction: column;
    justify-content: center;
    align-items: end;
}

.utility-bar .menu-wrp .util-menu > a,
.utility-bar .menu-wrp .util-menu label {
    width: 100%;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    text-align: right;
    align-items: end;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.utility-bar .menu-wrp .util-menu label> *{
    text-align: right;
}


.utility-bar .menu-wrp .menu-btn label {
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
}

button label{
    display: flex;
    gap: 0.3rem;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
}

button label img,
.utility-bar .menu-wrp .util-menu label img ,
.utility-bar .menu-wrp .menu-btn label img {
    height: 1rem;
    width: 1rem;
    filter: var(--z-theme-color-filter);
}

button:hover label img,
button:focus label img,
button:active label img,
.utility-bar .menu-wrp .util-menu label:hover img,
.utility-bar .menu-wrp button.menu-btn:hover label img,
.utility-bar .menu-wrp button.menu-btn:focus label img,
.utility-bar .menu-wrp button.menu-btn:active label img {
        filter: var(--z-theme-background-color-filter);
    }



    button:hover label img,
    button:active label img {
        filter: var(--z-theme-background-color-filter);
    }


    .utility-bar .menu-wrp>button + .util-menu{
        animation: utility-menu-hide 0.2s forwards;
    }

    .utility-bar .menu-wrp>button:focus + .util-menu{
        animation: utility-menu-show 0.2s forwards;
    }


    @keyframes utility-menu-show {
        0% {
            opacity: 1;
            transform: translateY(0);
        }
        1% {
            transform: translateY(0);
            opacity: 1;
        }
        99% {
            opacity: 1;
            transform: translateY(0);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
    @keyframes utility-menu-hide {
        0% {
            opacity: 0;
            transform: translateY(0);
        }
        1% {
            transform: translateY(0);
            opacity: 0;
        }
        99% {
            opacity: 0;
            transform: translateY(0);
        }
        100% {
            opacity: 0;
            transform: translateY(10000%);
        }
    }


    /** LANGUAGE MENU **/




    body:not(:has(main .view-list)):not(:has(main .view-details)) .view-menu-button {
        display: none;
    }

    body:has(#view-list-detailed:checked) .view-details {
        /*display: flex ;*/
    }

    body:has(#view-list-list:checked) .discrete-view-selector-list {
        border-style: solid;
    }

body:has(#view-list-detailed:checked) .discrete-view-selector-details {
    border-style: solid;
}


    body:has(#view-list-detailed:checked) .view-list {
        display: none;
    }



    body:has(#view-list-list:checked) .view-details {
        display: none;
    }

    body:has(#view-list-list:checked) .view-list {
        /*display: flex;*/
    }

    body:has(#view-list-detailed:checked) .view-details-o {
        /*display: flex;*/
    }

    body:has(#view-list-detailed:checked) .view-list-o {
        opacity: 0;
    }


    body:has(#view-list-list:checked) .view-details-o {
        opacity: 0;
    }

    body:has(#view-list-list:checked) .view-list-o {
        /*display: flex;*/
    }




    .util-menu.footer-menu a {
        padding-left: 1rem;
        padding-right: 1rem;

    }

    .footer-menu {
        text-wrap: nowrap;
    }



    /*body:not(:has(button.language-menu-button:focus)) .utility-bar .menu-wrp .util-menu.language-menu {*/
    /*    animation: utility-menu-hide 0.2s forwards;*/
    /*}*/
    /*!** DISPLAY SETTINGS*!*/
    /*!*body:has(input[type="checkbox"][name="view-menu-toggle"]:checked)*!*/
    /*body:not(:has(button.view-menu-button:focus)) .utility-bar .menu-wrp .util-menu.view-menu {*/
    /*    animation: utility-menu-hide 0.2s forwards;*/
    /*}*/
    /*!** FOOTER MENU **!*/
    /*body:not(:has(button.footer-menu-button:focus)) .utility-bar .menu-wrp .util-menu.footer-menu {*/
    /*    animation: utility-menu-hide 0.2s forwards;*/
    /*}*/
    /*!** THEME MENU **!*/
    /*body:not(:has(button.theme-menu-button:focus)) .utility-bar .menu-wrp .util-menu.theme-menu {*/
    /*    animation: utility-menu-hide 0.2s forwards;*/
    /*}*/

    .util-menu.theme-menu {
        text-wrap: nowrap;
        display: flex;
        position: absolute;
        flex-direction: column;
        bottom: 1.6rem;
        right: 0;
    }

    body:has(input[type="checkbox"][name="theme-menu-toggle"]:checked) .utility-bar .menu-wrp .util-menu.theme-menu {

    }

    .theme-menu label {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /** Hide theme menu wrapper by default (no JavaScript) **/
    .theme-menu-wrp {
        display: none;
    }

    /** Show theme menu wrapper when JavaScript is enabled **/
    body.js-enabled .theme-menu-wrp {
        display: flex;
    }


    @media only screen and (pointer: coarse) {
        .utility-bar {

        }

        .utility-menu-btn label,
        .utility-bar .menu-btn label {
            padding: 0.8rem;
        }

        .utility-bar .menu-wrp .util-menu {
            bottom: 3.5rem;
        }

        .utility-bar .menu-wrp .util-menu > a,
        .utility-bar .menu-wrp .util-menu label {
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
            padding-right: 1rem;
        }
    }
