/* assets/css/company-suggest.css — dropdown for assets/js/company-suggest.js */

.cs-sg {
    /* placed by the script under the search box (top / left / width / max-height) */
    position: fixed;
    z-index: 2147482000;
    max-height: 520px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
    text-align: left;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 24px 48px -16px rgba(15, 23, 42, .28);
    font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', system-ui, sans-serif;
    color: #0f172a;
    animation: cs-sg-in .14s ease-out;
}
.cs-sg[hidden] { display: none; }
@keyframes cs-sg-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.cs-sg-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 10px 4px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8494a8;
}
.cs-sg-h:first-child { padding-top: 6px; }
.cs-sg-clear {
    all: unset;
    cursor: pointer;
    padding: 4px 8px;
    margin: -4px -2px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #c2410c;
}
.cs-sg-clear:hover { background: #fff7ed; }

/* Recent searches as chips */
.cs-sg-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 8px 8px; }
.cs-sg-chip {
    display: inline-flex; align-items: center; max-width: 100%;
    border-radius: 999px; background: #f8fafc; border: 1px solid #e2e8f0;
    transition: border-color .15s ease, background-color .15s ease;
}
.cs-sg-chip:hover, .cs-sg-chip:has(.on) { background: #fff7ed; border-color: #fdba74; }
.cs-sg-chip-a {
    display: inline-flex; align-items: center; gap: 6px; min-width: 0; min-height: 32px;
    padding: 0 4px 0 11px; color: #334155; font-size: 13px; font-weight: 600; text-decoration: none;
}
.cs-sg-chip-a svg { width: 14px; height: 14px; flex: none; color: #94a3b8; }
.cs-sg-chip-a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.cs-sg-chip-a.on { color: #c2410c; }
.cs-sg-chip-x {
    all: unset; cursor: pointer; box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; margin-right: 3px; border-radius: 999px;
    color: #94a3b8; font-size: 16px; line-height: 1;
}
.cs-sg-chip-x:hover { background: #fed7aa; color: #9a3412; }
@media (pointer: coarse) { .cs-sg-chip-a { min-height: 38px; } .cs-sg-chip-x { width: 32px; height: 32px; } }

.cs-sg-it {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 48px;
    padding: 7px 10px;
    border-radius: 11px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .12s ease;
}
.cs-sg-it:hover, .cs-sg-it.on { background: #fff7ed; }
.cs-sg-it.on { box-shadow: inset 0 0 0 1.5px #fdba74; }

.cs-sg-ic {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #f4f7fb;
    border: 1px solid #eef2f7;
    color: #64748b;
}
.cs-sg-ic svg { width: 17px; height: 17px; }
.cs-sg-ic img { width: 100%; height: 100%; object-fit: contain; padding: 3px; background: #fff; }
.cs-sg-ic b { font-size: 15px; font-weight: 800; color: #c2410c; }
.cs-sg-topic .cs-sg-ic { background: linear-gradient(135deg, #f97316, #ea580c); border-color: transparent; color: #fff; }
.cs-sg-company .cs-sg-ic { background: #fff; }

.cs-sg-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cs-sg-tx b {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cs-sg-tx mark { background: none; color: #ea580c; font-weight: 800; }
.cs-sg-tx small {
    font-size: 12px;
    line-height: 1.35;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-sg-rt { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.cs-sg-star {
    padding: 2px 7px;
    border-radius: 99px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font: 800 11.5px/1.3 'Plus Jakarta Sans', system-ui, sans-serif;
    color: #92400e;
}
.cs-sg-rt em { font-style: normal; font-size: 10.5px; color: #8494a8; }
.cs-sg-rt .cs-sts { font: 800 12px/1.2 'Plus Jakarta Sans', system-ui, sans-serif; }
.cs-sg-badge {
    flex-shrink: 0;
    padding: 3px 9px;
    border-radius: 99px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    font-size: 11px;
    font-weight: 800;
    color: #c2410c;
}

.cs-sg-none { padding: 14px 12px 8px; font-size: 13px; color: #64748b; }
.cs-sg-none a { color: #c2410c; font-weight: 700; }

.cs-sg-allrow { margin-top: 4px; border-top: 1px solid #eef2f7; border-radius: 0 0 11px 11px; }
.cs-sg-allrow .cs-sg-tx b { font-weight: 600; color: #475569; }

@media (max-width: 640px) {
    .cs-sg { border-radius: 12px; }
    .cs-sg-it { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .cs-sg { animation: none; } }
