/* Keep the existing desktop panel and its labels. */
.bottom-menu .bottom-menu__mobile-icon,
.bottom-menu .bottom-menu__mobile-label {
    display: none;
}

.bottom-menu button.bottom-menu__button-up {
    background: transparent;
}

/* This label used to be a text node, so the mobile span rule must not hide it. */
.bottom-menu .bottom-menu__desktop-phone {
    display: inline;
}

@media (max-width: 790px) {
    .bottom-menu {
        padding-top: 0;
        padding-bottom: 0;
    }

    .bottom-menu .bottom-menu__container {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        padding: 0;
    }

    .bottom-menu .bottom-menu__row-item {
        display: contents;
    }

    .bottom-menu .bottom-menu__item,
    .bottom-menu .bottom-menu__button-up {
        display: grid;
        grid-template-rows: 18px 14px;
        justify-items: center;
        align-items: start;
        align-content: center;
        gap: 4px;
        width: 100%;
        min-width: 0;
        height: 56px;
        padding: 10px 0;
        color: #000;
        font: 400 12px/14px caviar, sans-serif;
        text-align: center;
    }

    .bottom-menu .bottom-menu__desktop-label,
    .bottom-menu .bottom-menu__desktop-phone {
        display: none;
    }

    .bottom-menu .bottom-menu__mobile-icon {
        display: block;
        width: 18px;
        height: 18px;
        color: #000;
        fill: none;
        stroke: currentColor;
        stroke-width: 1;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .bottom-menu .bottom-menu__mobile-icon path,
    .bottom-menu .bottom-menu__mobile-icon circle {
        vector-effect: non-scaling-stroke;
    }

    .bottom-menu .bottom-menu__mobile-label {
        display: block;
        max-width: 100%;
        padding: 0;
        line-height: 14px;
        white-space: nowrap;
    }

    .bottom-menu .bottom-menu__button-up:hover svg path {
        fill: none;
    }

    .bottom-menu .bottom-menu__item:focus-visible,
    .bottom-menu .bottom-menu__button-up:focus-visible {
        outline: 2px solid #000;
        outline-offset: -2px;
    }
}
