/* Hidden real <select> for Powermail */
.is-visually-hidden {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* Unsere Eingabeleiste soll wie ein Select wirken */
.ac-wrap {
    position: relative;

    svg {
        position: relative;
        top: 3px;
    }
}

.ac-inputbar.select__field {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 1rem;
    font-size: 1rem;
    color: var(--aok-black);
    background-color: var(--aok-white);
    border-radius: 0.25rem;
    border: 1px solid var(--aok-black);
    cursor: text;
    transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;

    display: flex;
    align-items: center;
    gap: .5rem;
}

.ac-inputbar.select__field:focus-within {
    outline: none;
    border-color: var(--aok-green);
    box-shadow: 0 0 0 2px rgba(0, 94, 63, 0.1);
}

/* Pfeil/Icons */
.select__icon {
    position: absolute;
    top: 2.25rem;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    transform: rotate(90deg);
    pointer-events: none;
    color: var(--aok-grey);
    transition: color 0.2s ease-out;
}

.ac-icon {
    opacity: .6;
}

/* Eingabefeld */
.ac-input {
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    font: inherit;
    background: transparent;
    color: inherit;
}

/* Buttons */
.ac-clear {
    border: 0;
    padding: .4rem .6rem;
    border-radius: .4rem;
    cursor: pointer;
    color: var(--aok-black);
    background: transparent;
}

.is-hidden {
    display: none;
}

/* Dropdown-Liste */
.ac-list {
    position: absolute;
    z-index: 20;
    inset-inline: 0;
    top: calc(100% + .5rem);
    max-height: 18rem;
    overflow: auto;
    background: var(--aok-white);
    border-radius: .6rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    padding: .25rem 0;
    display: none;
}

.ac-list[aria-hidden="false"] {
    display: block;
}

.ac-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    cursor: pointer;
}

.ac-item:hover,
.ac-item[aria-selected="true"] {
    background: #f3f6f8;
}

.ac-item .ac-code {
    font-weight: 700;
    min-width: 5.5rem;
}

.ac-divider {
    height: 1px;
    background: #e8ecef;
    margin: .25rem 1rem;
}
