/* Container voor de zoekmodule */
#tp-kiezer-container {
    position: relative;
    max-width: 500px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin-bottom: 1em;
    /* Voeg wat ruimte toe onder de module */
}

/* Styling voor het invoerveld */
#tp-search-input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 16px;
}

/* Container voor de zoekresultaten */
#tp-results-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
}

/* Algemene styling voor items in de resultatenlijst */
#tp-results-container>div {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* Flexbox layout voor een individueel resultaat */
.tp-profile-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tp-profile-item:hover {
    background-color: #f0f0f0;
}

/* Styling voor het ronde logo */
.tp-profile-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eee;
}

/* Container voor de tekst (naam en url) */
.tp-profile-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Styling voor de bedrijfsnaam en score */
.tp-profile-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #222;
}

/* Styling voor de TrustScore */
.tp-profile-score {
    background-color: #0040af;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Styling voor de URL */
.tp-profile-url {
    font-size: 14px;
    color: #555;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Styling voor statusberichten */
.tp-loading,
.tp-no-results,
.tp-error {
    color: #666;
    font-style: italic;
    padding: 10px;
}

.tp-error {
    color: #d63638;
}