/* search-suggest.css - подсказки в търсачката, вариант А (Фаза 2). Всички правила са с префикс .ssg, не пипат останалия сайт. */
html.ssg-lock, html.ssg-lock body { overflow: hidden !important; }

.ssg { font-family: inherit; color: #1f2328; }
.ssg[hidden] { display: none !important; }
.ssg *, .ssg *::before, .ssg *::after { box-sizing: border-box; }
.ssg button { font-family: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; margin: 0; }
.ssg a { text-decoration: none; }

/* ---------- телефон: цял екран ---------- */
.ssg-mob { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2147483000; background: #fff; }  /* над лентата на Zotabox (z-index 2147482200) */
.ssg-mob .ssg-panel { display: flex; flex-direction: column; height: 100%; }
.ssg-top { display: flex; align-items: center; gap: 6px; padding: 10px 10px 8px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); border-bottom: 1px solid #eef0f2; background: #fff; }
.ssg-back { width: 42px; height: 42px; flex: none; border: 0; background: none; color: #1f2328; display: flex; align-items: center; justify-content: center; padding: 0; }
.ssg-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; border: 2px solid #fcaf17; border-radius: 12px; background: #fff; color: #6b7280; }
.ssg-field svg { flex: none; }
.ssg .ssg-input { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0; background: transparent !important; padding: 0 !important; margin: 0; box-shadow: none !important; font-size: 16px; color: #111; -webkit-appearance: none; appearance: none; border-radius: 0; }
.ssg .ssg-input::-webkit-search-cancel-button, .ssg .ssg-input::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.ssg-clear { flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: #e5e7eb; color: #374151; font-size: 16px; line-height: 22px; text-align: center; }
.ssg-clear[hidden] { display: none; }

.ssg-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #fff; }

/* ---------- компютър: падащ списък под кутията ---------- */
.ssg-desk { position: absolute; z-index: 2147483000; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14); overflow: hidden; }
.ssg-desk .ssg-top { display: none; }
.ssg-desk .ssg-panel { display: flex; flex-direction: column; max-height: 72vh; }

/* ---------- "Разбрахме" ---------- */
.ssg-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 14px 0; }
.ssg-tags[hidden], .ssg-notice[hidden], .ssg-foot[hidden] { display: none; }
.ssg-understood { font-size: 12px; color: #6b7280; margin-right: 2px; }
.ssg-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; line-height: 1; padding: 6px 10px; border-radius: 999px; background: #e8f5ec; color: #1b6b34; }
.ssg-notice { margin: 10px 14px 0; padding: 8px 10px; border-radius: 10px; background: #fff7e0; color: #6b4d00; font-size: 13px; line-height: 1.4; }

/* ---------- списък ---------- */
.ssg-label { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 6px; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #8a8f98; }
.ssg-link { border: 0; background: none; padding: 0; color: #1f6feb; font-size: 12px; text-transform: none; letter-spacing: 0; }
.ssg-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid #f0f1f3; color: #111; }
.ssg-item:active, .ssg-item:hover { background: #fafafa; }
.ssg-img { width: 56px; height: 56px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 10px; background: #f3f4f6; }
.ssg-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.ssg-txt { min-width: 0; flex: 1; }
.ssg-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.35; color: #111; }
.ssg-name b { font-weight: 600; background: #fff3b8; color: #3d3000; border-radius: 3px; padding: 0 1px; }
.ssg-price { display: block; margin-top: 3px; font-size: 14px; }
.ssg-price b { font-weight: 700; color: #111; }
.ssg-price s { margin-left: 8px; font-size: 12px; color: #9aa0a6; }

.ssg-recent { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid #f0f1f3; background: none; color: #1f2328; font-size: 15px; text-align: left; }
.ssg-recent svg { flex: none; color: #9aa0a6; }
.ssg-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 14px 14px; }
.ssg-chip { padding: 8px 12px; border: 1px solid #dfe3e8; border-radius: 999px; background: #fff; color: #1f2328; font-size: 13px; }
.ssg-empty { padding: 22px 14px 6px; font-size: 14px; line-height: 1.5; color: #4b5563; }

/* ---------- долен бутон ---------- */
.ssg-foot { padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #eef0f2; background: #fff; }
.ssg-all { display: block; width: 100%; padding: 13px; border: 0; border-radius: 12px; background: #fcaf17; color: #2b2200; font-size: 15px; font-weight: 600; }
.ssg-desk .ssg-foot { padding: 10px 14px; }

/* ---------- зареждане ---------- */
.ssg-sk { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid #f0f1f3; }
.ssg-sk-img { width: 56px; height: 56px; border-radius: 10px; background: #eceef1; flex: none; }
.ssg-sk-txt { flex: 1; }
.ssg-sk-txt i { display: block; height: 11px; border-radius: 6px; background: #eceef1; margin: 6px 0; }
.ssg-sk-txt i:last-child { width: 40%; }
.ssg-sk-img, .ssg-sk-txt i { animation: ssg-pulse 1.2s ease-in-out infinite; }
@keyframes ssg-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
