.bv-findbox-site { padding-top:16px; padding-bottom:12px; }
.bv-findbox-site .bv-findbox { max-width:510px; }
.bv-home-catalog-layout .bv-findbox { align-self:start; }
@media (min-width:901px) {
    .bv-home-v2 .bv-home-catalog-layout { grid-template-columns:minmax(340px,400px) minmax(0,1fr); }
}
.bv-findbox.bv-home-catalog-search {
    position:relative; box-sizing:border-box; min-width:0; padding:16px 20px;
    border:1px solid #bfcfc3; border-radius:14px; background:#f5f9f5; color:#233c32;
}
.bv-findbox-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.bv-findbox .bv-findbox-heading h2 { margin:0; font-size:clamp(22px,2vw,29px); line-height:1.13; letter-spacing:-.02em; }
.bv-findbox-art { display:block; width:112px; height:72px; object-fit:contain; flex:none; }
.bv-findbox .bv-home-catalog-form { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; margin:0; }
.bv-findbox input[type=search], .bv-findbox button[type=submit] { min-height:48px; border-radius:7px; font:inherit; font-size:16px; }
.bv-findbox input[type=search] { box-sizing:border-box; width:100%; min-width:0; padding:0 10px; border:1px solid #93a797; background:#fff; color:#233c32; }
.bv-findbox button[type=submit] { padding:0 15px; border:0; background:#315d4f; color:#fff; font-weight:700; cursor:pointer; }
.bv-findbox button[type=submit]:hover { background:#25483e; }
.bv-findbox :focus-visible { outline:2px solid #315d4f; outline-offset:2px; }
.bv-findbox-sections > summary { display:list-item; width:max-content; max-width:100%; min-height:34px; box-sizing:border-box; padding-top:10px; color:#284d40; font-size:14px; font-weight:700; cursor:pointer; }
.bv-findbox .bv-home-catalog-sections { margin-top:4px; }
.bv-findbox .bv-home-catalog-sections details { border-top:1px solid #dee7de; }
.bv-findbox .bv-home-catalog-sections summary { cursor:pointer; padding:9px 0; font-weight:650; }
.bv-findbox .bv-home-catalog-sections ul { display:flex; flex-wrap:wrap; gap:4px 12px; list-style:none; margin:0 0 8px; padding:0; }
.bv-findbox .bv-home-catalog-sections li a { display:inline-block; padding:5px 0; color:#315d4f; text-decoration:underline; }
.bv-findbox .bv-home-suggestions { z-index:30; }
@keyframes bv-findbox-lift {
    0%,100% { transform:translateY(0); }
    45% { transform:translateY(-5px) rotate(-3deg); }
}
@media (prefers-reduced-motion:no-preference) {
    .bv-findbox:has(.bv-home-catalog-form :focus) .bv-findbox-art { animation:bv-findbox-lift 380ms ease-out; }
}
@media (max-width:760px) {
    .bv-findbox-site { padding-top:10px; padding-bottom:8px; }
    .bv-findbox.bv-home-catalog-search { padding:12px 14px; }
    .bv-findbox-art { width:76px; height:53px; }
    .bv-findbox button[type=submit] { padding:0 12px; }
}
.bv-home-catalog-form { position:relative; }
.bv-home-suggestions {
    position:absolute; z-index:12; inset:calc(100% + 6px) 0 auto; max-height:min(45vh,390px);
    overflow:auto; overscroll-behavior:contain; background:#fff; border:1px solid #dadfd5;
    border-radius:8px; box-shadow:0 10px 24px #243b3324; padding:4px 0;
}
.bv-home-suggestions[hidden] { display:none; }
.bv-home-suggestion-caption { font-size:13px; color:#52655b; font-weight:700; padding:8px 12px 4px; }
.bv-home-suggestions a { display:block; padding:10px 12px; color:#233c32; line-height:1.35; font-size:15px; text-decoration:none; }
.bv-home-suggestions a:hover,.bv-home-suggestions a[aria-selected=true] { background:#eaf2ec; }
.bv-home-suggestions [role=group] + [role=group] { border-top:1px solid #ecede8; }
@media(max-width:760px) { .bv-home-suggestions a { min-height:44px; } }

/* On wide store pages, use the available space beside the 1240px catalogue. */
@media (min-width:1840px) {
    body:is(.post-type-archive-product,.tax-product_cat,.single-product) .bv-findbox-site {
        position:relative;
        height:0;
        padding-top:0;
        padding-bottom:0;
        z-index:4;
    }
    body:is(.post-type-archive-product,.tax-product_cat,.single-product) .bv-findbox-site .bv-findbox {
        position:absolute;
        top:76px;
        right:calc(100% + 20px);
        width:clamp(245px,calc((100vw - 1260px)/2 - 42px),320px);
        padding:12px 14px;
    }
    body:is(.post-type-archive-product,.tax-product_cat,.single-product) .bv-findbox-site h2 { font-size:22px; }
    body:is(.post-type-archive-product,.tax-product_cat,.single-product) .bv-findbox-site .bv-findbox-art { width:68px; height:54px; }
    body:is(.post-type-archive-product,.tax-product_cat,.single-product) .bv-findbox-site button[type=submit] { padding-inline:10px; }
}
/* Give the illustration its own full-width area above the search controls. */
.bv-findbox .bv-findbox-heading { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; margin-bottom:10px; }
.bv-findbox .bv-findbox-art {
    grid-row:1;
    width:100%;
    height:clamp(126px,12vw,180px);
    object-fit:contain;
    object-position:center;
}
.bv-findbox .bv-findbox-heading h2 { font-size:clamp(22px,2vw,28px); }
.bv-findbox.bv-home-catalog-search { background:linear-gradient(180deg,#e8f1e9 0,#f5f9f5 180px); }
@media(max-width:760px){
    .bv-findbox .bv-findbox-heading { gap:8px; }
    .bv-findbox .bv-findbox-art { height:144px; }
}
@media(min-width:1840px){
    body:is(.post-type-archive-product,.tax-product_cat,.single-product) .bv-findbox-site .bv-findbox-art {
        width:100%;
        height:clamp(120px,7vw,150px);
    }
}

