/* ── OUTER WRAPPER — pill + button side by side ── */
.crm-ai-search-outer {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 640px;
    width: 100%;
    font-family: 'Figtree', sans-serif;
}

/* ── PILL (icon + input + tooltip) ── */
.crm-ai-search-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: none;
    border-radius: 50px;
    padding: 6px 14px 6px 18px;
    flex: 1;
    min-width: 0;
    gap: 10px;
}

/* ── AI SPARKLE ICON ── */
.crm-ai-search-icon {
    flex-shrink: 0;
    color: var(--e-global-color-primary, #11325C);
    opacity: 0.7;
    display: flex;
    align-items: center;
}

/* ── INPUT ── */
.crm-ai-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Figtree', sans-serif;
    color: #1a1a2e;
    background: transparent;
    padding: 7px 0;
    min-width: 0;
}
.crm-ai-search-input::placeholder { color: #9ca3af; }

/* ── TOOLTIP ── */
.crm-ai-tooltip-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.crm-ai-tooltip-trigger {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    cursor: default;
    user-select: none;
    transition: border-color .2s, color .2s;
    line-height: 1;
}
.crm-ai-tooltip-trigger:hover {
    border-color: var(--e-global-color-primary, #11325C);
    color: var(--e-global-color-primary, #11325C);
}
.crm-ai-tooltip-box {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: #1a1a2e;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
    padding: 10px 14px;
    border-radius: 10px;
    width: 220px;
    white-space: normal;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    pointer-events: none;
}
.crm-ai-tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 6px;
    border: 6px solid transparent;
    border-top-color: #1a1a2e;
}
.crm-ai-tooltip-wrap:hover .crm-ai-tooltip-box {
    display: block;
}

/* ── SEARCH BUTTON (outside pill, to the right) ── */
.crm-ai-search-btn {
    background: var(--e-global-color-primary, #11325C);
    color: #fff;
    border: none;
    border-radius: 44px;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Figtree', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: filter .15s, transform .1s;
}
.crm-ai-search-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.crm-ai-search-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
