@mixin matcha-select-multiple-theme($theme) {
    $foreground: map-get($theme, foreground);

    // O matcha-select-multiple reusa as classes .matcha-select-* do matcha-select
    // (.matcha-select-container, .matcha-select-trigger, .matcha-select-value, etc.),
    // então herda toda a aparência do trigger. Aqui replicamos apenas as regras
    // ligadas ao seletor de elemento, que são específicas por tag.
    matcha-select-multiple {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    // Campo de busca dentro do painel (fixo no topo enquanto rola as opções)
    .matcha-select-multiple-search {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        background: getSurface($theme);
        border-bottom: 1px solid getBackground($theme);

        .matcha-select-multiple-search-input {
            flex: 1;
            border: 0;
            outline: none;
            background: transparent;
            color: map-get($foreground, text);
            font-size: 14px;
            line-height: 20px;

            &::placeholder {
                color: getGrey($theme);
            }
        }
    }

    // Seção fixa das opções selecionadas (topo do painel, independente da busca)
    .matcha-select-multiple-selected {
        background: getSurface($theme);
        border-bottom: 1px solid getBackground($theme);

        .matcha-select-multiple-selected-header {
            padding: 8px 12px 4px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: getGrey($theme);
        }
    }
}
