/* Isolated styles: does not overwrite Bitrix JCTitleSearch rules. */
.top-panel__search-container .gs-smart-form { display:flex; align-items:stretch; width:100%; gap:4px; position:relative; z-index:2; }
.gs-smart-form[hidden], .gs-smart-suggestions[hidden], .gs-smart-notice[hidden], .gs-smart-modal[hidden] { display:none !important; }
.top-panel__search-container #title-search[hidden] { display:none !important; }
.top-panel__search-container.gs-smart-active .title-search-result { display:none !important; }
.gs-smart-input { min-width:0; flex:1; width:100%; box-sizing:border-box; background:#fff; color:#202f24; border:1px solid #bbd5be; border-radius:6px; padding:10px 12px; font:inherit; font-size:14px; }
.gs-smart-input:focus { outline:2px solid #65a969; outline-offset:1px; }
.gs-smart-submit { flex:0 0 auto; padding:9px 15px; border:0; border-radius:6px; background:#248446; color:#fff; font:inherit; font-size:13px; font-weight:600; cursor:pointer; }
.gs-smart-submit:hover { background:#1c8443; }
.gs-smart-toggle { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin:5px 0 0; font-size:12px; line-height:1.35; cursor:pointer; color:#2e6e40; }
.gs-smart-toggle input { margin:0; accent-color:#238346; width:15px; height:15px; cursor:pointer; }
.gs-smart-toggle-label { font-weight:600; }
.gs-smart-hours { color:#728276; font-size:11px; font-weight:400; margin-left:auto; }
.gs-smart-notice { font-size:12px; line-height:1.4; padding:6px 0; color:#29693c; }
.gs-smart-warning { color:#a14c12 !important; }
.gs-smart-suggestions { background:#fff; box-shadow:0 8px 22px rgba(12,56,23,.13); border-radius:0 0 9px 9px; overflow:hidden; max-height:420px; overflow-y:auto; z-index:250; position:relative; }
.gs-smart-result { display:flex; align-items:center; gap:10px; padding:10px 12px; color:#45694f; border-bottom:1px solid #edf2ed; text-decoration:none; font-size:13px; }
.gs-smart-result:hover { background:#f1f8f2; color:#176732; }
.gs-smart-image { width:46px; height:46px; object-fit:contain; flex:0 0 46px; background:#fff; }
.gs-smart-result-title { min-width:0; overflow-wrap:anywhere; }
.gs-smart-all { display:block; padding:12px; text-align:center; font-weight:600; font-size:13px; color:#23783e; text-decoration:none; }
.gs-smart-empty { padding:12px; font-size:13px; color:#69766b; }
.gs-smart-mobile-launch { display:none; border:0; background:none; color:#287846; cursor:pointer; font-size:11px; font-weight:600; padding:3px; }
.gs-smart-modal { position:fixed; inset:0; z-index:100500; background:rgba(15,35,23,.56); display:flex; align-items:flex-start; justify-content:center; padding:12vh 12px 15px; box-sizing:border-box; }
.gs-smart-dialog { background:#fff; color:#3c6a4b; width:min(100%,540px); box-sizing:border-box; padding:17px; border-radius:12px; box-shadow:0 20px 60px rgba(0,0,0,.22); }
.gs-smart-dialog-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:13px; font-size:16px; }
.gs-smart-close { border:0; background:none; font-size:25px; cursor:pointer; color:#647467; }
body.gs-smart-modal-open { overflow:hidden; }
.gs-smart-page-form { display:flex; gap:6px; max-width:770px; margin-bottom:18px; }
.gs-smart-page-results { max-width:870px; }
.gs-smart-page-results .gs-smart-result { padding:12px; font-size:15px; }
.gs-smart-standard-link { display:inline-block; margin:16px 0; color:#227a40; }
@media (max-width:991px) { .top-panel__search-container .gs-smart-mobile-launch { display:inline-block; } }
@media (min-width:992px) { .gs-smart-mobile-launch { display:none !important; } }

/* GrowSvet search v4: metadata is always taken live from Bitrix. */
.gs-smart-result-body { display:flex; flex-direction:column; min-width:0; flex:1; gap:4px; }
.gs-smart-result-meta { display:flex; flex-wrap:wrap; align-items:center; gap:5px 14px; font-size:12px; }
.gs-smart-price { font-weight:700; color:#216d39; white-space:nowrap; }
.gs-smart-available { color:#697b6d; }
