.elementor-live-search-wrapper {
    position: relative;
    width: 100%;
}

.search-input-field {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Formato idêntico à foto (estilo pílula) */
.live-search-input {
    width: 100%;
    padding: 12px 45px 12px 25px; /* Mais espaçamento na esquerda e direita */
    border: 1px solid #e0e0e0;
    border-radius: 50px; 
    font-size: 15px;
    color: #333;
    background-color: #ffffff;
    outline: none;
    transition: box-shadow 0.2s ease;
}

.live-search-input:focus {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Ícone de lupa cinza alinhado à direita */
.search-icon {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
    pointer-events: none;
}

/* Spinner de carregamento discreto dentro do input */
.search-spinner {
    position: absolute;
    right: 45px;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin-search 0.8s linear infinite;
}

@keyframes spin-search {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Painel Suspenso de Resultados */
.live-search-results {
    position: absolute;
    top: calc(100% + 8px); /* Descolado levemente do input */
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px; /* Cantos arredondados modernos */
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 9999;
    max-height: 380px;
    overflow-y: auto;
}

.results-section h4 {
    background: #f8f9fa;
    margin: 0;
    padding: 10px 20px;
    font-size: 11px;
    text-transform: uppercase;
    color: #777;
    letter-spacing: 0.8px;
    border-bottom: 1px solid #eee;
}

.results-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.results-section li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f6f6f6;
    transition: background 0.2s, color 0.2s;
}

.results-section li:last-child a {
    border-bottom: none;
}

.results-section li a:hover {
    background: #f4f7ff;
    color: #000;
}

/* Badges de Categoria / Post Type */
.post-type-badge, .tax-badge {
    font-size: 11px;
    background: #f0f2f5;
    padding: 3px 8px;
    border-radius: 20px;
    color: #666;
}

.tax-badge {
    background: #e3f2fd;
    color: #0d47a1;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}