/* A compact consultation button in the bottom-left corner of the home page. */
body.home-page .home-consultation-cta {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.85rem 1.25rem;
    border: 1px solid #e2b900;
    border-radius: 999px;
    background: #ffcf00;
    color: #191700;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 16px rgb(120 89 0 / 10%);
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

body.home-page .home-consultation-cta:hover {
    background: #ffda35;
    box-shadow: 0 8px 20px rgb(120 89 0 / 16%);
}

body.home-page .home-consultation-cta:focus-visible {
    outline: 3px solid #191700;
    outline-offset: 4px;
}

.home-consultation-cta svg {
    flex: 0 0 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
}

.home-consultation-cta__label--mobile {
    display: none;
}

.home-consultation-dock {
    position: fixed;
    z-index: 85;
    left: max(1.5rem, env(safe-area-inset-left));
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.home-consultation-dock[hidden] {
    display: none !important;
}

/* Keep existing floating utilities below the consultation dialog. */
body.site-footer-consultation-open .pwa-install-btn,
body.site-footer-consultation-open .pwa-install-tip,
body.site-footer-consultation-open .back-to-top,
body.site-footer-consultation-open .back-to-bottom {
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 720px) {
    body.home-page {
        --home-floating-safe-bottom: env(safe-area-inset-bottom, 0px);
        --home-floating-bottom: calc(max(1.5rem, var(--home-floating-safe-bottom)) + 0.75rem);
    }

    .home-consultation-dock {
        left: max(1rem, env(safe-area-inset-left, 0px));
        /* Keep clearance even in embedded/PWA views that report a zero inset. */
        bottom: var(--home-floating-bottom);
        max-width: calc(100vw - 6rem);
    }

    body.home-page .home-consultation-dock .home-consultation-cta {
        gap: 0.5rem;
        min-height: 3rem;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .home-consultation-cta__label--desktop {
        display: none;
    }

    .home-consultation-cta__label--mobile {
        display: inline;
    }

    body.home-page .pwa-install-btn {
        right: max(1rem, env(safe-area-inset-right, 0px));
        bottom: var(--home-floating-bottom);
        min-height: 3rem;
        animation: none;
        transform: none;
    }

    body.home-page .pwa-install-btn.is-attention .pwa-install-btn__icon {
        animation: none;
    }

    body.home-page .back-to-top {
        bottom: calc(var(--home-floating-bottom) + 3.75rem);
    }

    body .site-footer.site-footer--beebee .site-footer__consultation,
    body .site-footer.site-footer--beebee .site-footer__consultation-success {
        padding: 0.5rem;
    }

    body .site-footer.site-footer--beebee .site-footer__consultation-panel {
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
    }

    body .site-footer.site-footer--beebee .site-footer__consultation-close {
        width: 2.75rem;
        height: 2.75rem;
    }

    body .site-footer.site-footer--beebee .site-footer__field input,
    body .site-footer.site-footer--beebee .site-footer__field textarea {
        min-width: 0;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-page .home-consultation-cta {
        transition: none;
    }
}
