/* goforge.search — дропдаун живых подсказок (панель рендерится в body) */

.gs-sg {
    position: absolute;
    z-index: 10000;
    background: #fff;
    border: 1px solid #d5d9de;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(20, 30, 50, 0.12);
    overflow: hidden auto;
    font-size: 14px;
    max-height: 440px;
}

.gs-sg__hint {
    padding: 9px 14px;
    background: #f0f4ff;
    color: #333;
    border-bottom: 1px solid #e2e8f4;
}
.gs-sg__hint strong { color: #1a73e8; }

/* ── Миникарточка результата ── */
.gs-sg__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #f1f3f5;
    line-height: 1.35;
}
.gs-sg__thumb {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 4px;
    background: #f6f7f8;
}
.gs-sg__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.gs-sg__name {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.gs-sg__name b {
    background: #fff3cd;
    font-weight: inherit;
}
.gs-sg__price {
    font-weight: 600;
    color: #1a73e8;
    white-space: nowrap;
}

/* ── Секции пустого состояния ── */
.gs-sg__section {
    padding: 8px 14px 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #99a0a8;
}
.gs-sg__query {
    display: block;
    padding: 7px 14px;
    color: #222;
    text-decoration: none;
}

/* ── Общее ── */
.gs-sg__opt--active,
.gs-sg__item:hover,
.gs-sg__query:hover,
.gs-sg__all:hover { background: #f5f8ff; }

.gs-sg__all {
    display: block;
    padding: 10px 14px;
    color: #1a73e8;
    font-weight: 500;
    text-decoration: none;
    background: #fafbfc;
}

.gs-sg__empty {
    padding: 12px 14px;
    color: #888;
}

/* ── Кнопка голосового ввода (data-gs-voice) ── */
.gs-sg__mic {
    margin-left: 6px;
    padding: 6px 8px;
    border: 1px solid #c8cdd3;
    border-radius: 4px;
    background: #fff;
    color: #5f6b76;
    cursor: pointer;
    line-height: 0;
    vertical-align: middle;
}
.gs-sg__mic:hover { color: #1a73e8; border-color: #1a73e8; }
.gs-sg__mic--rec {
    color: #d33;
    border-color: #d33;
    animation: gs-mic-pulse 1s ease-in-out infinite;
}
@keyframes gs-mic-pulse {
    50% { box-shadow: 0 0 0 4px rgba(221, 51, 51, 0.15); }
}

/* ── Разделитель между группами в дропдауне ── */
.gs-sg__item + .gs-sg__section,
.gs-sg__hint + .gs-sg__section {
    border-top: 1px solid #f1f3f5;
    margin-top: 2px;
    padding-top: 10px;
}
