/* Search uses the customer's configured theme colors and inherited typography. */
.bh-search { position:relative; width:100%; min-width:0; }
.bh-shop .bh-search input.search-control { width:100%; padding-right:48px; }
.bh-shop .bh-search-clear {
 position:absolute; top:0; right:2px; display:flex; align-items:center; justify-content:center;
 width:42px; height:42px; padding:0; border:0; border-radius:4px; background:transparent;
 color:var(--bh-ink); font:inherit; font-size:26px; line-height:1; cursor:pointer;
}
.bh-shop .bh-search-clear:hover { color:var(--bh-rust); }
.bh-search-clear:focus-visible { outline:2px solid var(--bh-rust); outline-offset:-4px; }
.bh-search-panel {
 position:absolute; top:calc(100% + 4px); left:0; width:100%; max-width:100%; box-sizing:border-box;
 z-index:40; background:var(--bh-paper); color:var(--bh-ink); border:1px solid var(--bh-selection);
 border-radius:6px; box-shadow:0 14px 35px color-mix(in srgb,var(--bh-ink) 16%,transparent);
 text-align:left; overflow:hidden;
}
.bh-search [hidden] { display:none !important; }
.bh-search-status { padding:12px 16px; font-size:var(--bh-small-size,14px); border-bottom:1px solid var(--bh-selection); }
.bh-search-list { max-height:min(440px,45vh); overflow-y:auto; overscroll-behavior:contain; }
.bh-shop .bh-search-result {
 display:grid; grid-template-columns:64px minmax(0,1fr) auto; gap:14px; padding:16px;
 color:var(--bh-ink); background:var(--bh-paper); border-bottom:1px solid var(--bh-selection);
 line-height:1.4; text-decoration:none; font-size:var(--bh-text-size,16px);
}
.bh-shop .bh-search-result:hover,.bh-shop .bh-search-result[aria-selected="true"] { background:var(--bh-selection); color:var(--bh-ink); }
.bh-search-image { display:flex; width:64px; height:72px; align-items:center; justify-content:center; background:var(--bh-paper); border-radius:4px; }
.bh-search-image img { width:100%; height:100%; object-fit:contain; }
.bh-search-details { min-width:0; }
.bh-search-details>span,.bh-search-prices>span { display:block; }
.bh-search-title { font-weight:600; overflow-wrap:anywhere; }
.bh-search-brand,.bh-search-stock,.bh-search-tax { font-size:var(--bh-small-size,14px); margin-top:4px; }
.bh-search-description {
 display:-webkit-box !important; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
 margin-top:5px; font-size:var(--bh-small-size,14px); font-weight:400;
}
.bh-search-stock { color:var(--bh-green); }
.bh-search-prices { text-align:right; white-space:nowrap; }
.bh-search-price { font-weight:700; }
.bh-search-prices del { font-size:var(--bh-small-size,14px); }
.bh-search-label { margin-top:7px; padding:3px 7px; background:var(--bh-selection); border-radius:3px; font-size:12px; white-space:normal; }
.bh-shop .bh-search-retry,.bh-shop .bh-search-all {
 display:block; width:100%; padding:12px 16px; border:0; border-top:1px solid var(--bh-selection);
 background:var(--bh-paper); color:var(--bh-ink); font:inherit; font-size:var(--bh-text-size,16px); text-align:center;
}
.bh-shop .bh-search-all { font-weight:600; background:var(--bh-selection); }
.bh-search-result:focus-visible,.bh-search-retry:focus-visible,.bh-search-all:focus-visible { outline:2px solid var(--bh-rust); outline-offset:-3px; }
@media(max-width:991px) {
 .bh-search-panel { position:absolute; width:100%; max-width:100%; margin:0; }
 .bh-search-list { max-height:45vh; }
 .bh-shop .bh-search-result { grid-template-columns:44px minmax(0,1fr); gap:10px; padding:12px; }
 .bh-search-image { width:44px; height:56px; grid-row:span 2; }
 .bh-search-prices { grid-column:2; text-align:left; }
 .bh-search-prices>span,.bh-search-prices del { display:inline-block; margin-right:6px; }
 .bh-search-description { display:none !important; }
}
