/* Barra fija de la app en mobile. Tokens de market.css. */

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: none;
    align-items: stretch;
    gap: 4px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--color-surface);
    border-top: 1px solid var(--color-line);
    box-shadow: var(--shadow-card);
}

.bottom-nav-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    border-radius: 10px;
    color: var(--color-muted);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.bottom-nav-item:hover {
    color: var(--color-ink);
}

.bottom-nav-item.active {
    color: var(--color-brand-strong);
}

html.dark .bottom-nav-item.active {
    color: var(--color-brand);
}

.bottom-nav-icon {
    flex: 0 0 auto;
}

@media (max-width: 767px) {
    .bottom-nav {
        display: flex;
    }

    body.has-bottom-nav {
        padding-bottom: 68px;
    }

    body.has-bottom-nav .feedback-widget,
    body.has-bottom-nav .chat-widget,
    body.has-bottom-nav #chatWidget {
        bottom: calc(68px + .5rem);
    }
}
