.hatudo-mm-dropdown .select2-results__options {
    max-height: calc(var(--hatudo-mm-visible-rows, 5) * var(--hatudo-mm-row-height, 42px)) !important;
    overflow-y: auto !important;
}

.hatudo-mm-dropdown .select2-results__option {
    align-items: center;
    display: flex;
    min-height: var(--hatudo-mm-row-height, 42px);
}

.hatudo-mm-dropdown .select2-results__option--highlighted[aria-selected] {
    background: var(--hatudo-mm-primary, #0274c9) !important;
}

.hp-form .hatudo-mm-field .select2-selection {
    border-color: var(--hatudo-mm-border, #a9bfd3);
}

/* Pesquisa de marca/modelo: indicação de escrita e lupa. */
.hatudo-mm-search-field .select2-selection--single { position: relative; padding-left: 30px !important; }
.hatudo-mm-search-field .select2-selection--single::before,
.hatudo-mm-search-dropdown .select2-search--dropdown::before {
    content: ''; position: absolute; width: 15px; height: 15px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687583' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") center/contain no-repeat;
    left: 12px; top: 50%; transform: translateY(-50%);
}
.hatudo-mm-search-dropdown .select2-search--dropdown { position: relative; padding: 6px; }
.hatudo-mm-search-dropdown .select2-search--dropdown::before { left: 18px; }
.hatudo-mm-search-dropdown .select2-search__field {
    width: 100%; min-height: 42px; padding: 8px 10px 8px 34px !important;
    border: 1px solid var(--hatudo-mm-border, #a9bfd3); border-radius: 4px; font: inherit; box-sizing: border-box;
}
.hatudo-mm-search-dropdown .select2-search__field::placeholder { color: #687583; opacity: 1; }
.hatudo-mm-search-dropdown .select2-search__field:focus { border-color: var(--hatudo-mm-primary, #0274c9); outline: 2px solid #0274c926; outline-offset: 0; }
.hp-form .hatudo-mm-search-hint { display: block; grid-column: 1 / -1; margin-top: 0; color: #687583; font-size: 12px; line-height: 1.4; }

/* Model search guidance stays above its selector. */
body.gh-ui-enabled :is(.hp-form--listing-submit, .hp-form--listing-update) .hp-form__field .hp-field__description.hatudo-mm-search-hint {
    display: block;
    float: none;
    width: 100%;
    margin: 0 0 8px;
}
