/* even-invest.com style mobile bottom tab bar */

:root {
    --mbn-even-h: 56px;
    --mbn-even-brand: #3182f6;
    --mbn-even-muted: #9ca3af;
    --mbn-even-bg: #ffffff;
    --mbn-even-border: #f0f0f0;
}

.mbn-even {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    width: 100%;
    height: calc(var(--mbn-even-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--mbn-even-bg);
    border-top: 1px solid var(--mbn-even-border);
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
}

.mbn-even__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    width: 100%;
    height: var(--mbn-even-h);
    margin: 0;
    padding: 0;
}

.mbn-even__item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px 4px;
    color: var(--mbn-even-muted);
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease;
}

.mbn-even__item:hover,
.mbn-even__item:focus {
    color: var(--mbn-even-muted);
    text-decoration: none !important;
}

.mbn-even__item.is-active {
    color: var(--mbn-even-brand);
}

.mbn-even__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.mbn-even__icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.mbn-even__label {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

@media (max-width: 1279px) {
    .mbn-even {
        display: block;
    }

    body.has-mbn-even {
        padding-bottom: calc(var(--mbn-even-h) + env(safe-area-inset-bottom, 0px));
    }

    .l1357-fab-support {
        bottom: calc(var(--mbn-even-h) + 12px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .l1357-fab-scroll-top {
        bottom: calc(var(--mbn-even-h) + 68px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (min-width: 1280px) {
    .mbn-even {
        display: none !important;
    }
}
