.hvu-bsm-root {
    --hvu-bsm-bg: #fff;
    --hvu-bsm-text: #111;
    --hvu-bsm-active: #e6005c;
    --hvu-bsm-border: #e5e5e5;
    --hvu-bsm-icon-size: 29px;
    --hvu-bsm-label-size: 12px;
    --hvu-bsm-item-gap: 5px;
    --hvu-bsm-bar-padding: 7px;
    --hvu-bsm-max-width: 1200px;
    --hvu-bsm-z-index: 99999;
    --hvu-bsm-shadow: 0 -4px 18px rgba(0,0,0,.10);
    --hvu-bsm-safe-area: env(safe-area-inset-bottom, 0px);
    --hvu-bsm-measured-height: 76px;
    --hvu-bsm-reserve-height: var(--hvu-bsm-measured-height);
    display: block;
    width: 100%;
    height: var(--hvu-bsm-reserve-height);
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 1.2;
    box-sizing: border-box;
}

.hvu-bsm-root,
.hvu-bsm-root * {
    box-sizing: border-box;
}

.hvu-bsm-root__bar {
    position: fixed;
    z-index: var(--hvu-bsm-z-index);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--hvu-bsm-border);
    background: var(--hvu-bsm-bg);
    box-shadow: var(--hvu-bsm-shadow);
    color: var(--hvu-bsm-text);
    padding-bottom: var(--hvu-bsm-safe-area);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

.hvu-bsm-root__inner {
    display: grid;
    grid-template-columns: repeat(var(--hvu-bsm-columns), minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    max-width: var(--hvu-bsm-max-width);
    min-height: 62px;
    margin: 0 auto;
    padding: var(--hvu-bsm-bar-padding) 4px;
    background: var(--hvu-bsm-bg);
}

.hvu-bsm-root__item,
.hvu-bsm-root__item:link,
.hvu-bsm-root__item:visited,
.hvu-bsm-root__item:hover,
.hvu-bsm-root__item:focus {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--hvu-bsm-item-gap);
    margin: 0;
    padding: 2px 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--hvu-bsm-text);
    box-shadow: none;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    outline-offset: -2px;
    -webkit-tap-highlight-color: transparent;
}

.hvu-bsm-root__item:hover,
.hvu-bsm-root__item:focus-visible,
.hvu-bsm-root__item.is-active {
    color: var(--hvu-bsm-active);
}

.hvu-bsm-root__item:focus-visible {
    outline: 2px solid currentColor;
    border-radius: 6px;
}

.hvu-bsm-root__icon {
    display: flex;
    width: var(--hvu-bsm-item-icon-size, var(--hvu-bsm-icon-size));
    height: var(--hvu-bsm-item-icon-size, var(--hvu-bsm-icon-size));
    flex: 0 0 var(--hvu-bsm-item-icon-size, var(--hvu-bsm-icon-size));
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    color: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

.hvu-bsm-root__icon img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
}

.hvu-bsm-root__item:not(.is-active) .hvu-bsm-root__icon {
    opacity: .88;
}

.hvu-bsm-root__item.is-active .hvu-bsm-root__icon,
.hvu-bsm-root__item:hover .hvu-bsm-root__icon {
    opacity: 1;
    transform: translateY(-1px) scale(1.07);
}

.hvu-bsm-root__fallback {
    display: block;
    width: 70%;
    height: 70%;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.hvu-bsm-root__label {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: currentColor;
    font-family: inherit;
    font-size: var(--hvu-bsm-label-size);
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .hvu-bsm-root__inner {
        padding-right: 2px;
        padding-left: 2px;
    }

    .hvu-bsm-root__item {
        padding-right: 1px;
        padding-left: 1px;
    }

    .hvu-bsm-root__label {
        font-size: min(var(--hvu-bsm-label-size), 11px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hvu-bsm-root__icon {
        transition: none;
    }
}
