/* Noor Mobile Bottom Bar */

.noor-mbb {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 9990;
    display: none; /* shown via inline media query at the configured breakpoint */
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    padding: 6px 4px max(6px, env(safe-area-inset-bottom));
    background: var(--noor-mbb-bg, Canvas);
    box-shadow: 0 -2px 12px color-mix(in srgb, CanvasText 8%, transparent);
    border-top: 1px solid color-mix(in srgb, CanvasText 6%, transparent);
}

.noor-mbb__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 4px 2px;
    color: var(--noor-mbb-icon, var(--wp--preset--color--foreground, CanvasText));
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    transition: color .15s ease;
}

button.noor-mbb__item {
    margin: 0;
    border: 0;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

.noor-mbb__item[hidden] {
    display: none;
}

.noor-mbb__item:hover,
.noor-mbb__item:focus,
.noor-mbb__item.is-active {
    color: var(--noor-mbb-active, var(--wp--preset--color--primary, LinkText));
}

.noor-mbb__icon-wrap {
    position: relative;
    display: inline-flex;
}

.noor-mbb__icon {
    width: 24px;
    height: 24px;
    display: block;
}

.noor-mbb__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.noor-mbb--no-labels .noor-mbb__item {
    gap: 0;
}

.noor-mbb__badge {
    position: absolute;
    top: -7px;
    inset-inline-end: -9px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--noor-mbb-badge-bg, var(--wp--preset--color--primary, LinkText));
    color: var(--noor-mbb-badge-color, Canvas);
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    box-sizing: border-box;
}
