.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px));
    background-color: #ffffff;
    --bottom-nav-bg: #ffffff;
    z-index: 1200;
}

.bottom-nav::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: 104px;
    height: 4px;
    border-radius: 999px;
    background-color: #b3b3b3;
}

.bottom-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #0d0d0d;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.72;
    transition: opacity 0.2s ease;
}

.bottom-nav__link:focus {
    outline: none;
}

.bottom-nav__link:hover,
.bottom-nav__link:focus {
    opacity: 1;
}

.bottom-nav__link--active {
    opacity: 1;
}

.bottom-nav__icon {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav__svg {
    width: 26px;
    height: 26px;
    display: block;
}

.bottom-nav__svg--filled {
    display: none;
}

.bottom-nav__link--active .bottom-nav__svg--filled {
    display: block;
}

.bottom-nav__link--active .bottom-nav__svg--outline {
    display: none;
}

.bottom-nav__link--cart {
    position: relative;
}

.bottom-nav__count {
    position: absolute;
    top: -2px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background-color: #f25c4e;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.bottom-nav-active {
    padding-bottom: 96px;
}

@media (min-width: 992px) {
    .bottom-nav {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(420px, 90%);
        border-radius: 22px;
    }

    .bottom-nav::after {
        display: none;
    }
}