.tps-wrapper { 
    max-width: var(--tps-w); 
    margin: 10px auto; 
    position: relative; 
    z-index: 999999; 
    display: flex; 
    align-items: stretch; /* This forces input and button to same height */
    box-sizing: border-box;
}

.tps-input { 
    flex-grow: 1; 
    padding: 12px; 
    font-size: var(--tps-fs); 
    border: 2px solid #ddd; 
    border-radius: var(--tps-br) 0 0 var(--tps-br); 
    height: 50px; /* Fixed height for consistency */
    box-sizing: border-box;
    outline: none;
}

.tps-btn { 
    background: var(--tps-bc); 
    color: var(--tps-tc); 
    border: 2px solid var(--tps-bc); /* Matches input border thickness */
    padding: 0 25px; 
    border-radius: 0 var(--tps-br) var(--tps-br) 0; 
    cursor: pointer; 
    font-weight: bold;
    height: 50px; /* Matches input height exactly */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: background 0.3s;
}

.tps-btn:hover {
    opacity: 0.9;
}

/* RESULTS DROPDOWN - WIDTH MATCHING */
.tps-results { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; /* Matches the total width of wrapper */
    background: #fff; 
    z-index: 1000000 !important; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    display: none; 
    max-height: 400px; 
    overflow-y: auto; 
    box-sizing: border-box;
    border: 1px solid #eee;
    margin-top: 2px; /* Slight gap below the bar */
}

.tps-item { 
    display: flex; 
    padding: 12px; 
    border-bottom: 1px solid #eee; 
    text-decoration: none !important; 
    color: #333 !important; 
    align-items: center;
}

.tps-item:hover { background: #f9f9f9; }

.tps-item img { 
    width: 50px; 
    height: 50px; 
    margin-right: 15px; 
    object-fit: contain; 
    flex-shrink: 0;
}

.tps-item-info {
    overflow: hidden;
}

.tps-item-info strong { 
    display: block; 
    font-size: 14px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; /* Prevents long titles from breaking the layout */
}

.tps-item-info span { font-size: 12px; color: #777; }


/* Smooth Fade Animation */
@keyframes tpsFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tps-results {
    /* ... keep your existing styles ... */
    display: none;
    animation: tpsFadeIn 0.3s ease-out; /* Adds the smooth motion */
    transition: all 0.3s ease;
}

.tps-results {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}