/* V10.25: Mobile keyboard-safe catalogue search overlay */
.smb-search-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.smb-category-chooser .smb-home-search-label{margin-bottom:7px}
.smb-search-close{appearance:none;border:1px solid #d9def5;border-radius:999px;background:#fff;color:#24395f;padding:7px 12px;font:700 12px/1.2 system-ui,sans-serif;cursor:pointer}
.smb-search-close span{font-size:17px;vertical-align:-1px;margin-left:4px}
@media (max-width:760px){
 body.smb-search-modal-open{overflow:hidden!important}
 body.smb-search-modal-open::before{content:"";position:fixed;inset:0;background:rgba(20,29,57,.53);backdrop-filter:blur(4px);z-index:9997}
 body.smb-search-modal-open .smb-bottom-nav{display:none!important}
 body > #smbSearchPanel:not([hidden]){position:fixed!important;z-index:9998!important;top:8px!important;left:10px!important;right:10px!important;width:auto!important;max-width:none!important;height:calc(var(--smb-search-viewport-height, 100dvh) - 16px)!important;max-height:calc(var(--smb-search-viewport-height, 100dvh) - 16px)!important;margin:0!important;padding:14px 12px 12px!important;box-sizing:border-box;display:flex!important;flex-direction:column;gap:8px;overflow:hidden!important;border:1px solid #dce3ff;border-radius:22px;background:linear-gradient(180deg,#f7f5ff 0%,#fff 38%);box-shadow:0 22px 70px #141b4145;animation:smbSearchModalEnter .23s ease-out both}
 body > #smbSearchPanel .smb-home-search-label{font-size:15px;margin:0;color:#152849}
 body > #smbSearchPanel .smb-search-close{flex-shrink:0;min-height:37px}
 body > #smbSearchPanel .smb-home-search-field{flex-shrink:0;width:100%;margin:0;height:52px!important;min-height:52px!important}
 body > #smbSearchPanel .smb-home-search-field input{min-width:0;flex:1;font-size:16px!important}
 body > #smbSearchPanel .smb-search-hint{flex-shrink:0;margin:0 2px 2px;color:#64748b;font-size:11px;line-height:1.35}
 body > #smbSearchPanel .smb-home-search-results:not([hidden]){display:block!important;flex:1 1 auto;min-height:0;max-height:none!important;overflow-y:auto!important;overflow-x:hidden;margin:0!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border:1px solid #dce4fa;border-radius:14px;background:white}
 body > #smbSearchPanel .smb-home-search-results[hidden]{display:none!important}
 body > #smbSearchPanel .search-result-label{position:sticky;top:0;z-index:1}
 body > #smbSearchPanel .search-item{width:100%;min-height:58px;touch-action:manipulation}
}
@keyframes smbSearchModalEnter{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){body > #smbSearchPanel:not([hidden]){animation:none!important}}

/* Portaled search must retain styles that originally depended on category parent. */
@media(max-width:760px){
 body > #smbSearchPanel[hidden]{display:none!important}
 body > #smbSearchPanel{isolation:isolate;color:#142449;transform:none!important;opacity:1!important;visibility:visible!important}
 body > #smbSearchPanel .smb-home-search-label{display:block;font-weight:800;letter-spacing:.01em}
 body > #smbSearchPanel .smb-home-search-field{display:flex;align-items:center;gap:10px;border:1px solid #bfcef4;border-radius:14px;padding:0 13px;background:#fff;box-shadow:0 9px 22px #28469a0c}
 body > #smbSearchPanel .smb-home-search-field:focus-within{border-color:#6a68e8;box-shadow:0 0 0 4px #6565ee1a}
 body > #smbSearchPanel .smb-home-search-field svg{flex:0 0 22px;width:22px;height:22px;color:#665bdc}
 body > #smbSearchPanel .smb-home-search-field input{border:0;background:transparent;outline:0;min-width:0;width:100%;font-size:16px!important;color:#142449;appearance:none;-webkit-appearance:none}
 body > #smbSearchPanel .smb-home-search-field input::placeholder{color:#7786a5;font-size:14px}
 body > #smbSearchPanel .smb-home-search-field .search-clear{border:0;border-radius:100%;flex:0 0 30px;height:30px;display:grid;place-items:center;background:#e9e8ff;color:#5040b9;font-size:21px}
 body > #smbSearchPanel .smb-home-search-field .search-clear[hidden]{display:none!important}
 body > #smbSearchPanel .search-result-label{background:#f7f8ff;color:#6670af;font-size:11px;padding:12px 14px;font-weight:800}
 body > #smbSearchPanel .search-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border:0;border-bottom:1px solid #edf0f8;background:#fff;text-align:left}
 body > #smbSearchPanel .search-item strong{font-size:13px;color:#1b2850;line-height:1.3}
 body > #smbSearchPanel .search-item small{display:block;color:#71819a;font-size:11px;margin-top:3px}
 body > #smbSearchPanel .search-item:focus-visible{outline:2px solid #6a68e8;outline-offset:-2px}
 body > #smbSearchPanel .search-result-icon{flex:0 0 35px;display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#f0edff}
 body > #smbSearchPanel .search-item > span:last-child{margin-left:auto}
 body > #smbSearchPanel .search-empty{padding:16px;font-size:13px;color:#61718f}
}
