/**
 * Snelkiezer: [rds_responsive_solution_anchors] (solution-anchors.php)
 * Veld in dezelfde stijl als [rdp_search_solutions], lijst als de zoeksuggesties (search.css).
 */
.rbd-solution-anchors,
.rbd-solution-anchors__list {
    --rbd-solution-anchors-height: 56px;
    --rbd-solution-anchors-bg: #f4f8fa;
    --rbd-solution-anchors-gutter: 25px;
}

.rbd-solution-anchors {
    box-sizing: border-box;
    /* Geen 100%: de Divi-module krimpt mee met de inhoud (zie solution-search.css) */
    width: calc(100vw - 2 * var(--rbd-solution-anchors-gutter));
    margin: 0 auto;
}

/* Tablet: even breed als de rij eronder */
@media (max-width: 980px) {
    .rbd-solution-anchors {
        --rbd-solution-anchors-gutter: 7.5vw;
    }
}

@media (max-width: 767px) {
    .rbd-solution-anchors {
        --rbd-solution-anchors-gutter: 25px;
    }
}

.rbd-solution-anchors[hidden],
.rbd-solution-anchors__list[hidden] {
    display: none !important;
}

.rbd-solution-anchors .rbd-solution-anchors__trigger {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: var(--rbd-solution-anchors-height);
    margin: 0;
    padding: 0 16px;
    color: var(--rbd-vac-primary);
    background: var(--rbd-solution-anchors-bg);
    border: 0;
    border-radius: var(--rbd-border-radius);
    font-family: "DIN Regular", Helvetica, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: box-shadow var(--rbd-vac-transition);
    appearance: none;
    -webkit-appearance: none;
}

.rbd-solution-anchors .rbd-solution-anchors__trigger:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--rbd-vac-check-focus);
}

.rbd-solution-anchors__label {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rbd-solution-anchors__trigger.is-placeholder .rbd-solution-anchors__label {
    opacity: 0.75;
}

.rbd-solution-anchors__trigger .rbd-vac-icon {
    font-size: 20px;
    transition: transform var(--rbd-vac-transition);
}

.rbd-solution-anchors__trigger[aria-expanded="true"] .rbd-vac-icon {
    transform: rotate(180deg);
}

/* Staat in de body (de Divi-kolom knipt hem anders af), solution-anchors.js zet hem onder het veld. Onder de header. */
.rbd-solution-anchors__list {
    position: absolute;
    z-index: 1000;
    box-sizing: border-box;
    max-height: min(60vh, 460px);
    margin: 0;
    padding: 6px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    background: #ffffff;
    border-radius: var(--rbd-border-radius);
    box-shadow: 0 10px 40px rgba(0, 36, 88, 0.25);
    clip-path: inset(0 -60px -60px -60px); /* Geen schaduw over het veld erboven */
}

.rbd-solution-anchors__item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rbd-solution-anchors__option {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 9px 16px;
    color: var(--rbd-vac-primary);
    background: none;
    border: 0;
    font-family: "DIN Regular", Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.25;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: background-color var(--rbd-vac-transition);
}

.rbd-solution-anchors__option:hover,
.rbd-solution-anchors__option:focus-visible,
.rbd-solution-anchors__option.is-active {
    outline: none;
    background: var(--rbd-solution-anchors-bg);
}

@media (prefers-reduced-motion: reduce) {
    .rbd-solution-anchors__trigger .rbd-vac-icon {
        transition: none;
    }
}
