/* 1.6.3 — the signed-in customer's shell on the web (js/customer-shell.js):
   the floating tab bar on phones (FloatingNavBar + CustomerBottomNav) and
   the signed-in Home (home_screen.dart: "Hey, {first}" and one search). */

:root {
    --cq-cbar-lift: calc(8px + env(safe-area-inset-bottom, 0px));
    --cq-cbar-footprint: calc(62px + var(--cq-cbar-lift));
}

.cq-cbar { display: none; }

@media (max-width: 768px) {
    .cq-cbar {
        display: flex;
        position: fixed;
        left: 21px;
        right: 21px;
        bottom: var(--cq-cbar-lift);
        height: 62px;
        box-sizing: border-box;
        padding: 0 4px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.75);
        box-shadow: 0 8px 24px rgba(17, 17, 17, 0.12);
        z-index: 1000;
        align-items: stretch;
        font-family: var(--font-primary, 'Outfit', sans-serif);
    }
    @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
        .cq-cbar {
            background: rgba(255, 255, 255, 0.66);
            -webkit-backdrop-filter: blur(22px);
            backdrop-filter: blur(22px);
        }
    }
    /* Every list ends clear of the capsule (FloatingNavBar.contentInset). */
    html.cq-cbar-on body { padding-bottom: calc(var(--cq-cbar-footprint) + 12px); }
}

.cq-cbar a.cq-cbar__tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 0;
    background: none;
    background-clip: content-box;
    border-radius: 999px;
    color: var(--text-primary, #111111);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;
    text-decoration: none;
    transition: background-color 0.18s ease-out;
    -webkit-tap-highlight-color: transparent;
}
.cq-cbar a.cq-cbar__tab.is-active {
    background-color: rgba(17, 17, 17, 0.07);
    color: var(--brand-accent, #3441B5);
    font-weight: 600;
}
.cq-cbar__tab svg { flex-shrink: 0; width: 24px; height: 24px; }
.cq-cbar__tab span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cq-cbar a.cq-cbar__tab:focus-visible { outline: 2px solid var(--brand-accent, #3441B5); outline-offset: -2px; }

/* ---- The signed-in Home (index.html) ---- */
.home-greeting { display: none; }
html.cq-signed-in .home-greeting {
    display: block;
    /* Lined up with the search box above it (max 600 px, centred). */
    max-width: 600px;
    margin: 20px auto 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.4px;
    text-align: left;
    color: var(--text-primary, #111111);
}
/* The marketing blocks are for visitors: the app's Home has none. */
html.cq-signed-in .hero .hero-title,
html.cq-signed-in .hero .hero-subtitle,
html.cq-signed-in .hero .hero-links,
html.cq-signed-in .hero .search-divider,
html.cq-signed-in .hero .search-field--location,
html.cq-signed-in #how-it-works,
html.cq-signed-in .home-get-app { display: none !important; }
html.cq-signed-in .hero { padding-top: 16px; padding-bottom: 8px; text-align: left; }
html.cq-signed-in .hero .hero-search { margin-top: 12px; }

/* ---- Discover: the guest strip (all_providers_screen.dart) ---- */
.cq-guest-strip { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--border-light, #e5e5e5); font-size: 13px; color: var(--text-tertiary, #757575); }
.cq-guest-strip span { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cq-guest-strip a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; min-width: 0; padding: 0 8px; font-weight: 600; color: var(--text-primary, #111111); text-decoration: none; }
html.cq-signed-in .cq-guest-strip { display: none; }
