/* ── Mobile Bottom Bar – Frontend ── */

#mbb-bar {
    display: none; /* hidden by default, shown only on mobile */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .25);
}

/* ── CTA row ── */
#mbb-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    text-align: center;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    line-height: 1.3;
    box-sizing: border-box;
    transition: filter .15s ease;
}

#mbb-cta:hover,
#mbb-cta:focus {
    filter: brightness(1.1);
    text-decoration: none;
}

/* ── Icon row ── */
#mbb-icons {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    box-sizing: border-box;
    padding: 0 8px;
}

.mbb-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #ffffff;
    text-decoration: none;
    transition: opacity .15s ease;
    min-width: 0;
    padding: 6px 4px;
    box-sizing: border-box;
}

.mbb-icon-link:hover,
.mbb-icon-link:focus {
    opacity: .75;
}

.mbb-icon-link img,
.mbb-icon-link svg {
    display: block;
    max-width: 100%;
    height: auto;
    flex-shrink: 0;
}

/* ── Only show on mobile ── */
@media (max-width: 768px) {
    #mbb-bar {
        display: block;
    }

    /* Push page content up so bar doesn't cover it */
    body {
        padding-bottom: calc(52px + 44px); /* icon row + cta row approx */
    }
}

/* ── Safe area for notched iPhones ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 768px) {
        #mbb-bar {
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}
