/* BOC-WEB-004: Global overlay coordination so the cookie notice, floating chat launcher,
   and mobile sticky action bars never collide or cover form inputs / category cards.
   Loaded after lp-uiux-2026-09.css via default_head_blocks.xml. */

/* 1. Compact full-width bottom cookie strip instead of a tall floating left-corner card
   that covers left-column forms (e.g. /semi-custom-cabinets) and homepage style labels. */
html body #notice-cookie-block .cookie {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none !important;
}

html body #notice-cookie-block .cookie > div {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 0.55rem 2.75rem 0.55rem 1rem !important;
    font-size: 0.8125rem;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

html body #notice-cookie-block .cookie button {
    padding: 0.55rem 0.85rem;
    top: 50%;
    transform: translateY(-50%);
}

/* 2. On mobile when the semi-custom sticky action bar (.sc-qbar: Call / Text us / Free design)
   is active, dock the cookie strip cleanly above it and hide the redundant floating chat ball
   so three bottom chrome layers never stack over the form. */
@media (max-width: 767px) {
    html.sc-qbar-on body #notice-cookie-block .cookie {
        bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
    }

    html.sc-qbar-on body #boc-chat-launcher {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }

    html body:has([data-paperform-id] iframe:focus) #boc-chat-launcher {
        opacity: 0;
        pointer-events: none;
    }
}
