.tbss{min-width:0}
.tbss-inline{display:flex;align-items:center;width:100%;height:48px;border:1px solid #dfe5ec;border-radius:12px;background:#f7f8fa;overflow:hidden;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.tbss-inline:focus-within,.tbss-inline:hover{background:#fff;border-color:#bdc9da;box-shadow:0 5px 18px rgba(17,24,39,.06)}
.tbss-inline input{flex:1;min-width:0;height:100%;border:0!important;background:transparent!important;box-shadow:none!important;padding:0 16px;font-size:15px;color:#151922;outline:none!important}
.tbss-inline input:focus,.tbss-inline input:focus-visible{outline:none!important;box-shadow:none!important}
.tbss-inline button{display:grid;place-items:center;width:50px;height:100%;border:0;background:transparent;color:#111827}

.tbss-layer{position:fixed;inset:0;z-index:1800}
.tbss-layer[hidden]{display:none!important}
.tbss-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(11,18,32,.46);opacity:0;backdrop-filter:blur(2px);transition:opacity .2s ease}
.tbss-layer.is-open .tbss-backdrop{opacity:1}
.tbss-layer.is-closing .tbss-backdrop{opacity:0}

.tbss-dialog{--tbss-width:1180px;--tbss-columns:2;--tbss-card-height:286px;--tbss-image-size:132px;position:absolute;top:54px;left:50%;width:min(var(--tbss-width),calc(100vw - 32px));max-height:calc(100dvh - 80px);display:flex;flex-direction:column;background:#fff;border:1px solid rgba(220,226,235,.92);border-radius:22px;box-shadow:0 32px 90px rgba(15,23,42,.24);overflow:hidden;transform:translateX(-50%);isolation:isolate}
.tbss-dialog.tbss-bar-stage{background:transparent;border-color:transparent;box-shadow:none;overflow:visible;pointer-events:none}
.tbss-dialog.tbss-bar-stage .tbss-command{pointer-events:auto;box-shadow:0 18px 48px rgba(21,152,255,.16)}
.tbss-dialog.tbss-bar-stage .tbss-smart-hint,.tbss-dialog.tbss-bar-stage .tbss-body,.tbss-dialog.tbss-bar-stage .tbss-footer{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
.tbss-dialog.tbss-panel-stage .tbss-smart-hint,.tbss-dialog.tbss-panel-stage .tbss-body,.tbss-dialog.tbss-panel-stage .tbss-footer{visibility:hidden;opacity:0;pointer-events:none}
.tbss-dialog.tbss-enter-content .tbss-smart-hint,.tbss-dialog.tbss-enter-content .tbss-body,.tbss-dialog.tbss-enter-content .tbss-footer{animation:tbssContentIn .22s both cubic-bezier(.2,.75,.3,1)}
@keyframes tbssContentIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

.tbss-command{position:relative;z-index:4;display:flex;align-items:center;gap:8px;min-height:64px;margin:18px 20px 0;padding:6px 8px;border:1.5px solid #1598ff;border-radius:999px;background:#fff;box-shadow:0 8px 24px rgba(15,91,170,.06);transform-origin:top left;box-sizing:border-box;will-change:transform}
.tbss-command:focus-within{border-color:#22bff8;box-shadow:0 0 0 3px rgba(42,195,255,.10),0 12px 32px rgba(38,124,219,.10)}
.tbss-command input{flex:1;min-width:0;height:48px;padding:0 14px;border:0!important;border-left:1px solid #e3e8ef!important;border-radius:0!important;background:transparent!important;outline:none!important;font-size:17px;color:#182235;box-shadow:none!important;-webkit-appearance:none;appearance:none}
.tbss-command input:focus,.tbss-command input:focus-visible,.tbss-command input:active{border-top:0!important;border-right:0!important;border-bottom:0!important;border-left:1px solid #e3e8ef!important;outline:none!important;box-shadow:none!important;background:transparent!important}
.tbss-command input::placeholder{color:#9099a8}
.tbss-command input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}
.tbss-back,.tbss-clear,.tbss-submit{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:999px;background:transparent;color:#14213a;font-size:20px;transition:background .16s ease,transform .16s ease,color .16s ease}
.tbss-clear{width:36px;height:36px;color:#8491a3;font-size:25px;line-height:1}
.tbss-clear[hidden]{display:none!important}
.tbss-clear:hover,.tbss-clear:focus-visible{background:#eef4fb;color:#17233a;outline:none}
.tbss-back:hover,.tbss-submit:hover{background:#f0f6ff}
.tbss-submit:hover{transform:scale(1.04)}

.tbss-mode{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:148px;height:44px;padding:4px;border:0;border-radius:999px;background:#e8eef5;color:#526174;font-size:13px;font-weight:700;letter-spacing:.01em;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(118,139,163,.12);transition:background .22s ease,box-shadow .22s ease,transform .18s ease}
.tbss-mode-label{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:999px;background:rgba(255,255,255,.72);transition:background .2s ease,color .2s ease,box-shadow .2s ease}
.tbss-mode:hover{transform:translateY(-1px)}
.tbss-mode[aria-pressed=true]{background:linear-gradient(100deg,#36d9ff 0%,#4e91ff 55%,#7c78ff 100%);box-shadow:0 0 0 4px rgba(54,191,255,.13),0 8px 24px rgba(55,123,255,.26)}
.tbss-mode[aria-pressed=true] .tbss-mode-label{background:#fff;color:#1688ff;box-shadow:0 2px 10px rgba(31,107,255,.18)}
.tbss-smart-hint{margin:10px 28px 0;padding:8px 2px;color:#6a83aa;font-size:13px}

.tbss-body{display:grid;grid-template-columns:minmax(330px,.86fr) minmax(520px,1.24fr);flex:1 1 auto;min-height:0;overflow:hidden;padding-top:8px;background:#fff}
.tbss-discovery,.tbss-results-wrap{min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px 24px 26px;scrollbar-width:thin;scrollbar-color:rgba(78,116,164,.38) transparent}
.tbss-results-wrap::-webkit-scrollbar,.tbss-discovery::-webkit-scrollbar{width:4px;height:4px}
.tbss-results-wrap::-webkit-scrollbar-track,.tbss-discovery::-webkit-scrollbar-track{background:transparent}
.tbss-results-wrap::-webkit-scrollbar-thumb,.tbss-discovery::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(73,163,232,.52),rgba(91,105,184,.38));border-radius:999px}
.tbss-results-wrap::-webkit-scrollbar-thumb:hover,.tbss-discovery::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,rgba(40,151,235,.72),rgba(80,96,184,.56))}
.tbss-discovery{border-right:1px solid #edf1f6;background:#fbfcfe}
.tbss-results-wrap{position:relative;background:#fff}
.tbss-section+.tbss-section{margin-top:25px}
.tbss-section h2,.tbss-results-head h2{margin:0 0 14px;font-size:18px;line-height:1.2;font-weight:750;letter-spacing:-.025em;color:#17233a}
.tbss-chips,.tbss-links{display:flex;flex-wrap:wrap;gap:8px}
.tbss-chips button,.tbss-links a{display:inline-flex;align-items:center;min-height:34px;padding:7px 12px;border:1px solid #e4e9ef;border-radius:999px;background:#fff;color:#46566d;font-size:13px;transition:.16s ease}
.tbss-chips button:hover,.tbss-links a:hover{border-color:#b7d5ff;background:#f4f8ff;color:#087dff}
.tbss-prompts{display:grid;gap:8px}
.tbss-prompts button{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:44px;text-align:left;padding:10px 12px;border:1px solid #e7ebf0;border-radius:11px;background:#fff;color:#26364d}
.tbss-prompts button:hover{background:#f5f8ff;border-color:#c7d9f4}
.tbss-prompts b{color:#168cff}
.tbss-articles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tbss-article{display:grid;grid-template-columns:68px minmax(0,1fr);gap:10px;align-items:center;padding:9px;border:1px solid #e7ebf0;border-radius:12px;background:#fff;color:#111827}
.tbss-article img{width:68px;height:52px;object-fit:cover;border-radius:8px;background:#f3f4f6}
.tbss-article strong{display:block;font-size:13px;line-height:1.35}
.tbss-article span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:4px;color:#7a8494;font-size:11px;line-height:1.35}

.tbss-results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}
.tbss-status{color:#8a93a3;font-size:12px}
.tbss-results{display:grid;grid-template-columns:repeat(var(--tbss-columns),minmax(0,1fr));gap:14px;padding-top:8px}
.tbss-product{display:flex;flex-direction:column;min-width:0;min-height:var(--tbss-card-height);padding:14px;border:1px solid #e7ebf1;border-radius:18px;background:#fff;color:#172033;box-shadow:0 6px 18px rgba(18,42,72,.05)}
.tbss-product:hover{transform:none;border-color:#e7ebf1;box-shadow:0 6px 18px rgba(18,42,72,.05)}
.tbss-product[aria-selected=true]{outline:2px solid rgba(22,140,255,.3);outline-offset:2px}
.tbss-product-image{display:grid;place-items:center;width:100%;height:calc(var(--tbss-image-size) + 10px);margin-bottom:10px;border-radius:13px;background:linear-gradient(180deg,#fff,#fbfcfe);overflow:hidden}
.tbss-product-image img{width:var(--tbss-image-size);height:var(--tbss-image-size);object-fit:contain;background:transparent;transform:scale(1);transition:transform .24s cubic-bezier(.2,.75,.3,1)}
.tbss-product:hover .tbss-product-image img{transform:scale(.955)}
.tbss-product-copy{display:grid;gap:5px;min-width:0}
.tbss-product-title{display:-webkit-box;min-height:40px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:14px;line-height:1.42;font-weight:700;color:#087dff}
.tbss-product-copy small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#9099a8;font-size:11px}
.tbss-product-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:auto;padding-top:12px}
.tbss-price{white-space:nowrap;font-size:17px;font-weight:750;color:#17233a}
.tbss-stock{max-width:48%;text-align:right;font-size:11px;color:#7b8494}
.tbss-stock.is-available{color:#1eb45a}
.tbss-empty{display:grid;place-items:center;gap:6px;min-height:260px;text-align:center;color:#677184}
.tbss-empty[hidden]{display:none!important}
.tbss-empty strong{font-size:19px;color:#111827}

.tbss-footer{display:flex;align-items:center;gap:20px;min-height:58px;padding:8px 24px;border-top:1px solid #edf0f4;background:#fff}
.tbss-footer a{font-size:13px;font-weight:650;color:#168cff}
.tbss-footer button{margin-left:auto;border:0;background:transparent;color:#8190a8}
.tbss-loading .tbss-results{opacity:.52}
html.tbss-lock,html.tbss-lock body{overflow:hidden;overscroll-behavior:none}

@media(prefers-reduced-motion:reduce){
  .tbss-backdrop,.tbss-inline,.tbss-mode,.tbss-clear,.tbss-chips button,.tbss-links a,.tbss-product-image img{transition:none}
  .tbss-dialog.tbss-enter-content .tbss-smart-hint,.tbss-dialog.tbss-enter-content .tbss-body,.tbss-dialog.tbss-enter-content .tbss-footer{animation:none}
}
@media(max-width:1050px){
  .tbss-body{grid-template-columns:minmax(300px,.82fr) minmax(430px,1.18fr)}
  .tbss-product-title{font-size:13px}
}
@media(max-width:900px){
  .tbss-layer{background:#fff}
  .tbss-dialog{inset:0;left:0;width:100vw;height:100vh;height:100dvh;max-height:none;border:0;border-radius:0;transform:none}
  .tbss-dialog.tbss-bar-stage{background:transparent;border:0;box-shadow:none}
  .tbss-command{position:relative;top:auto;z-index:4;flex:none;min-height:62px;margin:8px 10px 0;padding:5px 7px}
  .tbss-mode{width:124px;height:40px}
  .tbss-command input{font-size:16px}
  .tbss-smart-hint{flex:none;margin-top:6px;padding-top:5px;padding-bottom:7px;line-height:1.45}
  .tbss-body{display:block;flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;padding-top:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(78,116,164,.38) transparent}
  .tbss-body::-webkit-scrollbar{width:4px;height:4px}
  .tbss-body::-webkit-scrollbar-track{background:transparent}
  .tbss-body::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(73,163,232,.52),rgba(91,105,184,.38));border-radius:999px}
  .tbss-discovery,.tbss-results-wrap{overflow:visible;padding:20px 18px 24px}
  .tbss-discovery{border-right:0;border-bottom:1px solid #e8edf4;background:#fbfcfe}
  .tbss-results-wrap{padding-top:24px;padding-bottom:30px;background:#fff}
  .tbss-results-head{margin-bottom:8px}
  .tbss-articles{grid-template-columns:1fr}
  .tbss-footer{position:relative;bottom:auto;z-index:4;flex:none;min-height:58px;padding-bottom:max(8px,env(safe-area-inset-bottom));box-shadow:0 -8px 24px rgba(18,42,72,.045)}
  .tbss-results{grid-template-columns:repeat(var(--tbss-columns),minmax(0,1fr));gap:10px}
  .tbss-product{padding:11px}
}
@media(max-width:620px){
  .tbss-results{grid-template-columns:1fr}
  .tbss-product{display:grid;grid-template-columns:82px minmax(0,1fr);grid-template-rows:auto auto;min-height:104px!important;gap:8px 12px}
  .tbss-product-image{grid-row:1/3;width:82px;height:82px;margin:0}
  .tbss-product-image img{width:76px;height:76px}
  .tbss-product-copy{align-self:center}
  .tbss-product-footer{grid-column:2;margin:0;padding:0;align-items:center}
  .tbss-mode{width:108px}
  .tbss-mode-label{font-size:11px}
  .tbss-back,.tbss-submit{width:38px;height:38px}
  .tbss-clear{width:34px;height:34px}
  .tbss-command input{padding:0 8px}
  .tbss-smart-hint{margin-left:16px;margin-right:16px}
  .tbss-discovery,.tbss-results-wrap{padding-left:16px;padding-right:16px}
}
@media(max-width:420px){
  .tbss-mode{width:94px}
  .tbss-command{gap:3px}
  .tbss-footer{gap:12px;flex-wrap:wrap}
  .tbss-footer button{margin-left:0}
}
