.mcb-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    grid-template-columns: repeat(var(--mcb-columns, 4), minmax(0, 1fr));
    min-height: 68px;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--mcb-bg, #fff);
    border-top: 3px solid var(--mcb-border, #17365d);
    box-shadow: 0 -2px 10px rgba(0,0,0,.12);
}

.mcb-bar.mcb-count-1 { --mcb-columns: 1; }
.mcb-bar.mcb-count-2 { --mcb-columns: 2; }
.mcb-bar.mcb-count-3 { --mcb-columns: 3; }
.mcb-bar.mcb-count-4 { --mcb-columns: 4; }

.mcb-item {
    display: flex;
    min-width: 0;
    min-height: 68px;
    padding: 8px 3px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--mcb-text, #333);
    text-decoration: none !important;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.15;
    border-right: 1px solid rgba(0,0,0,.08);
    -webkit-tap-highlight-color: transparent;
}

.mcb-item:last-child { border-right: 0; }
.mcb-item:hover,
.mcb-item:focus,
.mcb-item:active {
    color: var(--mcb-border, #17365d);
    background: rgba(0,0,0,.04);
}

.mcb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.mcb-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.mcb-zalo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 20px;
    padding: 0 3px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.mcb-label {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

@media print {
    .mcb-bar { display: none !important; }
    body.mcb-active { padding-bottom: 0 !important; }
}
