/**
 * Geposit Autocomplete – Stylesheet
 * Minimalt och lätt att overrida med tema-CSS.
 */

.geposit-dropdown {
    position: fixed;
    z-index: 99999;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 220px;
    overflow-y: auto;
    font-family: inherit;
    font-size: 0.9rem;
}

.geposit-dropdown__item {
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    line-height: 1.4;
    transition: background 0.1s ease;
}

.geposit-dropdown__item:last-child {
    border-bottom: none;
}

.geposit-dropdown__item:hover,
.geposit-dropdown__item:focus {
    background: #f5f7ff;
    color: #1a1a1a;
    outline: none;
}

/* Lätt markering av matchad text – kräver att JS wrappat texten i <mark> */
.geposit-dropdown__item mark {
    background: transparent;
    color: inherit;
    font-weight: 600;
}

/* Felmeddelande vid obligatoriskt val */
.geposit-error {
    display: block;
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 4px;
}

input[aria-invalid="true"] {
    outline: 2px solid #c0392b;
    outline-offset: 1px;
}
